From 862a07b789c8d42f350f76732c87c7255c3a16ce Mon Sep 17 00:00:00 2001 From: antoineatstariongroup Date: Wed, 14 Jan 2026 10:23:54 +0100 Subject: [PATCH 1/6] Fix #47: Json Serialization supports derived properties --- SysML2.NET.API/Modules/BaseModule.cs | 4 +- .../AnnotatingElementDeSerializer.cs | 285 +- .../AssociationDeSerializer.cs | 953 ++++++- .../DependencyDeSerializer.cs | 245 +- .../EnumerationDefinitionDeSerializer.cs | 1439 +++++++++- .../FeatureDeSerializer.cs | 1124 +++++++- .../FeatureTypingDeSerializer.cs | 301 +- .../AutoGenDeSerializer/FlowDeSerializer.cs | 1624 ++++++++++- .../FramedConcernMembershipDeSerializer.cs | 487 +++- .../LiteralIntegerDeSerializer.cs | 1329 ++++++++- .../LiteralRationalDeSerializer.cs | 1329 ++++++++- .../MembershipDeSerializer.cs | 280 +- .../MultiplicityRangeDeSerializer.cs | 1301 ++++++++- .../OwningMembershipDeSerializer.cs | 337 ++- .../ReferenceSubsettingDeSerializer.cs | 330 ++- .../RequirementUsageDeSerializer.cs | 2351 +++++++++++++++- .../SelectExpressionDeSerializer.cs | 1392 +++++++++- .../SubclassificationDeSerializer.cs | 301 +- .../TextualRepresentationDeSerializer.cs | 310 ++- .../AutoGenDeSerializer/UsageDeSerializer.cs | 1956 ++++++++++++- .../UML/Core/AutoGenDto/AnnotatingElement.cs | 30 +- .../UML/Core/AutoGenDto/Association.cs | 90 +- .../UML/Core/AutoGenDto/Dependency.cs | 24 +- .../Core/AutoGenDto/EnumerationDefinition.cs | 146 +- .../Expected/UML/Core/AutoGenDto/Feature.cs | 110 +- .../UML/Core/AutoGenDto/FeatureTyping.cs | 28 +- .../Expected/UML/Core/AutoGenDto/Flow.cs | 140 +- .../AutoGenDto/FramedConcernMembership.cs | 52 +- .../UML/Core/AutoGenDto/IAnnotatingElement.cs | 8 +- .../UML/Core/AutoGenDto/IAssociation.cs | 8 +- .../Expected/UML/Core/AutoGenDto/IElement.cs | 22 +- .../Core/AutoGenDto/IEnumerationDefinition.cs | 2 +- .../Expected/UML/Core/AutoGenDto/IFeature.cs | 32 +- .../UML/Core/AutoGenDto/IFeatureTyping.cs | 2 +- .../Expected/UML/Core/AutoGenDto/IFlow.cs | 12 +- .../AutoGenDto/IFramedConcernMembership.cs | 4 +- .../UML/Core/AutoGenDto/IMembership.cs | 4 +- .../UML/Core/AutoGenDto/IMultiplicityRange.cs | 6 +- .../UML/Core/AutoGenDto/IOwningMembership.cs | 8 +- .../Core/AutoGenDto/IReferenceSubsetting.cs | 2 +- .../UML/Core/AutoGenDto/IRelationship.cs | 2 +- .../UML/Core/AutoGenDto/IRequirementUsage.cs | 16 +- .../UML/Core/AutoGenDto/ISubclassification.cs | 2 +- .../Core/AutoGenDto/ITextualRepresentation.cs | 2 +- .../Expected/UML/Core/AutoGenDto/IUsage.cs | 72 +- .../UML/Core/AutoGenDto/LiteralInteger.cs | 120 +- .../UML/Core/AutoGenDto/LiteralRational.cs | 120 +- .../UML/Core/AutoGenDto/Membership.cs | 30 +- .../UML/Core/AutoGenDto/MultiplicityRange.cs | 116 +- .../UML/Core/AutoGenDto/OwningMembership.cs | 38 +- .../Core/AutoGenDto/ReferenceSubsetting.cs | 30 +- .../UML/Core/AutoGenDto/RequirementUsage.cs | 216 +- .../UML/Core/AutoGenDto/SelectExpression.cs | 126 +- .../UML/Core/AutoGenDto/Subclassification.cs | 28 +- .../Core/AutoGenDto/TextualRepresentation.cs | 32 +- .../Expected/UML/Core/AutoGenDto/Usage.cs | 182 +- .../UML/Core/AutoGenPoco/AnnotatingElement.cs | 75 +- .../UML/Core/AutoGenPoco/Association.cs | 225 +- .../UML/Core/AutoGenPoco/Dependency.cs | 60 +- .../Core/AutoGenPoco/EnumerationDefinition.cs | 362 +-- .../Expected/UML/Core/AutoGenPoco/Feature.cs | 277 +- .../UML/Core/AutoGenPoco/FeatureTyping.cs | 70 +- .../Expected/UML/Core/AutoGenPoco/Flow.cs | 352 +-- .../AutoGenPoco/FramedConcernMembership.cs | 124 +- .../Core/AutoGenPoco/IAnnotatingElement.cs | 8 +- .../UML/Core/AutoGenPoco/IAssociation.cs | 8 +- .../Expected/UML/Core/AutoGenPoco/IElement.cs | 22 +- .../AutoGenPoco/IEnumerationDefinition.cs | 2 +- .../Expected/UML/Core/AutoGenPoco/IFeature.cs | 32 +- .../UML/Core/AutoGenPoco/IFeatureTyping.cs | 2 +- .../Expected/UML/Core/AutoGenPoco/IFlow.cs | 12 +- .../AutoGenPoco/IFramedConcernMembership.cs | 4 +- .../UML/Core/AutoGenPoco/IMembership.cs | 4 +- .../Core/AutoGenPoco/IMultiplicityRange.cs | 6 +- .../UML/Core/AutoGenPoco/IOwningMembership.cs | 8 +- .../Core/AutoGenPoco/IReferenceSubsetting.cs | 2 +- .../UML/Core/AutoGenPoco/IRelationship.cs | 2 +- .../UML/Core/AutoGenPoco/IRequirementUsage.cs | 16 +- .../Core/AutoGenPoco/ISubclassification.cs | 2 +- .../AutoGenPoco/ITextualRepresentation.cs | 2 +- .../Expected/UML/Core/AutoGenPoco/IUsage.cs | 72 +- .../UML/Core/AutoGenPoco/LiteralInteger.cs | 302 +- .../UML/Core/AutoGenPoco/LiteralRational.cs | 302 +- .../UML/Core/AutoGenPoco/Membership.cs | 72 +- .../UML/Core/AutoGenPoco/MultiplicityRange.cs | 292 +- .../UML/Core/AutoGenPoco/OwningMembership.cs | 92 +- .../Core/AutoGenPoco/ReferenceSubsetting.cs | 75 +- .../UML/Core/AutoGenPoco/RequirementUsage.cs | 542 +--- .../UML/Core/AutoGenPoco/SelectExpression.cs | 314 +-- .../UML/Core/AutoGenPoco/Subclassification.cs | 70 +- .../Core/AutoGenPoco/TextualRepresentation.cs | 80 +- .../Expected/UML/Core/AutoGenPoco/Usage.cs | 457 +-- .../AnnotatingElementSerializer.cs | 241 +- .../AssociationSerializer.cs | 667 ++++- .../AutoGenSerializer/DependencySerializer.cs | 280 +- .../EnumerationDefinitionSerializer.cs | 937 ++++++- .../AutoGenSerializer/FeatureSerializer.cs | 771 +++++- .../FeatureTypingSerializer.cs | 306 +- .../Core/AutoGenSerializer/FlowSerializer.cs | 1016 ++++++- .../FramedConcernMembershipSerializer.cs | 332 ++- .../LiteralIntegerSerializer.cs | 821 +++++- .../LiteralRationalSerializer.cs | 821 +++++- .../AutoGenSerializer/MembershipSerializer.cs | 278 +- .../MultiplicityRangeSerializer.cs | 803 +++++- .../OwningMembershipSerializer.cs | 293 +- .../ReferenceSubsettingSerializer.cs | 318 ++- .../RequirementUsageSerializer.cs | 1397 +++++++++- .../SelectExpressionSerializer.cs | 839 +++++- .../SubclassificationSerializer.cs | 306 +- .../TextualRepresentationSerializer.cs | 251 +- .../Core/AutoGenSerializer/UsageSerializer.cs | 1192 +++++++- ...JsonDtoDeSerializerGeneratorTestFixture.cs | 2 +- .../SysML2.NET.CodeGenerator.Tests.csproj | 314 +-- .../Extensions/PropertyExtension.cs | 35 + .../HandleBarHelpers/PropertyHelper.cs | 252 +- ...ore-json-dto-deserializer-uml-template.hbs | 52 +- ...to-serialization-provider-uml-template.hbs | 14 +- .../core-json-dto-serializer-uml-template.hbs | 230 +- SysML2.NET.Dal/Assembler.cs | 2 +- .../ApiSerializerTestFixture.cs | 27 +- .../SerializerTestFixture.cs | 27 +- .../AcceptActionUsageDeSerializer.cs | 2151 +++++++++++++- .../ActionDefinitionDeSerializer.cs | 1479 +++++++++- .../ActionUsageDeSerializer.cs | 2078 +++++++++++++- .../ActorMembershipDeSerializer.cs | 437 ++- .../AllocationDefinitionDeSerializer.cs | 1609 ++++++++++- .../AllocationUsageDeSerializer.cs | 2320 +++++++++++++++- .../AnalysisCaseDefinitionDeSerializer.cs | 1647 ++++++++++- .../AnalysisCaseUsageDeSerializer.cs | 2318 +++++++++++++++- .../AnnotatingElementDeSerializer.cs | 285 +- .../AnnotationDeSerializer.cs | 338 ++- .../AssertConstraintUsageDeSerializer.cs | 2206 ++++++++++++++- .../AssignmentActionUsageDeSerializer.cs | 2151 +++++++++++++- .../AssociationDeSerializer.cs | 953 ++++++- .../AssociationStructureDeSerializer.cs | 953 ++++++- .../AttributeDefinitionDeSerializer.cs | 1419 +++++++++- .../AttributeUsageDeSerializer.cs | 1976 ++++++++++++- .../BehaviorDeSerializer.cs | 839 +++++- .../BindingConnectorAsUsageDeSerializer.cs | 2186 ++++++++++++++- .../BindingConnectorDeSerializer.cs | 1454 +++++++++- .../BooleanExpressionDeSerializer.cs | 1353 ++++++++- .../CalculationDefinitionDeSerializer.cs | 1554 ++++++++++- .../CalculationUsageDeSerializer.cs | 2169 ++++++++++++++- .../CaseDefinitionDeSerializer.cs | 1623 ++++++++++- .../CaseUsageDeSerializer.cs | 2266 ++++++++++++++- .../AutoGenDeSerializer/ClassDeSerializer.cs | 799 +++++- .../ClassifierDeSerializer.cs | 799 +++++- .../CollectExpressionDeSerializer.cs | 1392 +++++++++- .../CommentDeSerializer.cs | 285 +- .../ConcernDefinitionDeSerializer.cs | 1656 ++++++++++- .../ConcernUsageDeSerializer.cs | 2377 +++++++++++++++- .../ConjugatedPortDefinitionDeSerializer.cs | 1493 +++++++++- .../ConjugatedPortTypingDeSerializer.cs | 330 ++- .../ConjugationDeSerializer.cs | 269 +- .../ConnectionDefinitionDeSerializer.cs | 1593 ++++++++++- .../ConnectionUsageDeSerializer.cs | 2300 ++++++++++++++- .../ConnectorDeSerializer.cs | 1454 +++++++++- .../ConstraintDefinitionDeSerializer.cs | 1516 +++++++++- .../ConstraintUsageDeSerializer.cs | 2171 ++++++++++++++- .../ConstructorExpressionDeSerializer.cs | 1368 ++++++++- .../CrossSubsettingDeSerializer.cs | 330 ++- .../DataTypeDeSerializer.cs | 799 +++++- .../DecisionNodeDeSerializer.cs | 2078 +++++++++++++- .../DefinitionDeSerializer.cs | 1419 +++++++++- .../DependencyDeSerializer.cs | 245 +- .../DifferencingDeSerializer.cs | 266 +- .../DisjoiningDeSerializer.cs | 269 +- .../DocumentationDeSerializer.cs | 310 ++- .../ElementFilterMembershipDeSerializer.cs | 362 ++- .../EndFeatureMembershipDeSerializer.cs | 387 ++- .../EnumerationDefinitionDeSerializer.cs | 1439 +++++++++- .../EnumerationUsageDeSerializer.cs | 1999 ++++++++++++- .../EventOccurrenceUsageDeSerializer.cs | 2037 +++++++++++++- .../ExhibitStateUsageDeSerializer.cs | 2261 ++++++++++++++- .../ExpressionDeSerializer.cs | 1329 ++++++++- .../FeatureChainExpressionDeSerializer.cs | 1417 +++++++++- .../FeatureChainingDeSerializer.cs | 266 +- .../FeatureDeSerializer.cs | 1124 +++++++- .../FeatureInvertingDeSerializer.cs | 269 +- .../FeatureMembershipDeSerializer.cs | 387 ++- .../FeatureReferenceExpressionDeSerializer.cs | 1354 ++++++++- .../FeatureTypingDeSerializer.cs | 301 +- .../FeatureValueDeSerializer.cs | 387 ++- .../AutoGenDeSerializer/FlowDeSerializer.cs | 1624 ++++++++++- .../FlowDefinitionDeSerializer.cs | 1649 ++++++++++- .../FlowEndDeSerializer.cs | 1124 +++++++- .../FlowUsageDeSerializer.cs | 2466 ++++++++++++++++- .../ForLoopActionUsageDeSerializer.cs | 2163 ++++++++++++++- .../ForkNodeDeSerializer.cs | 2078 +++++++++++++- .../FramedConcernMembershipDeSerializer.cs | 487 +++- .../FunctionDeSerializer.cs | 896 +++++- .../IfActionUsageDeSerializer.cs | 2150 +++++++++++++- .../IncludeUseCaseUsageDeSerializer.cs | 2389 +++++++++++++++- .../IndexExpressionDeSerializer.cs | 1392 +++++++++- .../InteractionDeSerializer.cs | 993 ++++++- .../InterfaceDefinitionDeSerializer.cs | 1609 ++++++++++- .../InterfaceUsageDeSerializer.cs | 2320 +++++++++++++++- .../IntersectingDeSerializer.cs | 266 +- .../InvariantDeSerializer.cs | 1373 ++++++++- .../InvocationExpressionDeSerializer.cs | 1368 ++++++++- .../ItemDefinitionDeSerializer.cs | 1419 +++++++++- .../ItemUsageDeSerializer.cs | 2034 +++++++++++++- .../JoinNodeDeSerializer.cs | 2078 +++++++++++++- .../LibraryPackageDeSerializer.cs | 341 ++- .../LiteralBooleanDeSerializer.cs | 1329 ++++++++- .../LiteralExpressionDeSerializer.cs | 1329 ++++++++- .../LiteralInfinityDeSerializer.cs | 1329 ++++++++- .../LiteralIntegerDeSerializer.cs | 1329 ++++++++- .../LiteralRationalDeSerializer.cs | 1329 ++++++++- .../LiteralStringDeSerializer.cs | 1329 ++++++++- .../MembershipDeSerializer.cs | 280 +- .../MembershipExposeDeSerializer.cs | 291 +- .../MembershipImportDeSerializer.cs | 291 +- .../MergeNodeDeSerializer.cs | 2078 +++++++++++++- .../MetaclassDeSerializer.cs | 799 +++++- .../MetadataAccessExpressionDeSerializer.cs | 1354 ++++++++- .../MetadataDefinitionDeSerializer.cs | 1419 +++++++++- .../MetadataFeatureDeSerializer.cs | 1338 ++++++++- .../MetadataUsageDeSerializer.cs | 2170 ++++++++++++++- .../MultiplicityDeSerializer.cs | 1124 +++++++- .../MultiplicityRangeDeSerializer.cs | 1301 ++++++++- .../NamespaceDeSerializer.cs | 321 ++- .../NamespaceExposeDeSerializer.cs | 291 +- .../NamespaceImportDeSerializer.cs | 291 +- .../NullExpressionDeSerializer.cs | 1329 ++++++++- .../ObjectiveMembershipDeSerializer.cs | 412 ++- .../OccurrenceDefinitionDeSerializer.cs | 1419 +++++++++- .../OccurrenceUsageDeSerializer.cs | 2014 +++++++++++++- .../OperatorExpressionDeSerializer.cs | 1392 +++++++++- .../OwningMembershipDeSerializer.cs | 337 ++- .../PackageDeSerializer.cs | 341 ++- .../ParameterMembershipDeSerializer.cs | 412 ++- .../PartDefinitionDeSerializer.cs | 1419 +++++++++- .../PartUsageDeSerializer.cs | 2054 +++++++++++++- .../PayloadFeatureDeSerializer.cs | 1124 +++++++- .../PerformActionUsageDeSerializer.cs | 2128 +++++++++++++- .../PortConjugationDeSerializer.cs | 298 +- .../PortDefinitionDeSerializer.cs | 1443 +++++++++- .../PortUsageDeSerializer.cs | 2034 +++++++++++++- .../PredicateDeSerializer.cs | 896 +++++- .../RedefinitionDeSerializer.cs | 309 ++- .../ReferenceSubsettingDeSerializer.cs | 330 ++- .../ReferenceUsageDeSerializer.cs | 1956 ++++++++++++- .../RenderingDefinitionDeSerializer.cs | 1439 +++++++++- .../RenderingUsageDeSerializer.cs | 2078 +++++++++++++- ...irementConstraintMembershipDeSerializer.cs | 437 ++- .../RequirementDefinitionDeSerializer.cs | 1656 ++++++++++- .../RequirementUsageDeSerializer.cs | 2351 +++++++++++++++- ...ementVerificationMembershipDeSerializer.cs | 487 +++- .../ResultExpressionMembershipDeSerializer.cs | 412 ++- .../ReturnParameterMembershipDeSerializer.cs | 412 ++- .../SatisfyRequirementUsageDeSerializer.cs | 2440 +++++++++++++++- .../SelectExpressionDeSerializer.cs | 1392 +++++++++- .../SendActionUsageDeSerializer.cs | 2151 +++++++++++++- .../SpecializationDeSerializer.cs | 269 +- .../StakeholderMembershipDeSerializer.cs | 437 ++- .../StateDefinitionDeSerializer.cs | 1567 ++++++++++- .../StateSubactionMembershipDeSerializer.cs | 412 ++- .../StateUsageDeSerializer.cs | 2176 ++++++++++++++- .../AutoGenDeSerializer/StepDeSerializer.cs | 1272 ++++++++- .../StructureDeSerializer.cs | 799 +++++- .../SubclassificationDeSerializer.cs | 301 +- .../SubjectMembershipDeSerializer.cs | 437 ++- .../SubsettingDeSerializer.cs | 301 +- .../SuccessionAsUsageDeSerializer.cs | 2186 ++++++++++++++- .../SuccessionDeSerializer.cs | 1454 +++++++++- .../SuccessionFlowDeSerializer.cs | 1624 ++++++++++- .../SuccessionFlowUsageDeSerializer.cs | 2466 ++++++++++++++++- .../TerminateActionUsageDeSerializer.cs | 2102 +++++++++++++- .../TextualRepresentationDeSerializer.cs | 310 ++- ...TransitionFeatureMembershipDeSerializer.cs | 412 ++- .../TransitionUsageDeSerializer.cs | 2211 ++++++++++++++- ...TriggerInvocationExpressionDeSerializer.cs | 1386 ++++++++- .../AutoGenDeSerializer/TypeDeSerializer.cs | 779 +++++- .../TypeFeaturingDeSerializer.cs | 269 +- .../UnioningDeSerializer.cs | 266 +- .../AutoGenDeSerializer/UsageDeSerializer.cs | 1956 ++++++++++++- .../UseCaseDefinitionDeSerializer.cs | 1687 ++++++++++- .../UseCaseUsageDeSerializer.cs | 2310 ++++++++++++++- .../VariantMembershipDeSerializer.cs | 362 ++- .../VerificationCaseDefinitionDeSerializer.cs | 1643 ++++++++++- .../VerificationCaseUsageDeSerializer.cs | 2310 ++++++++++++++- .../ViewDefinitionDeSerializer.cs | 1503 +++++++++- .../ViewRenderingMembershipDeSerializer.cs | 437 ++- .../ViewUsageDeSerializer.cs | 2160 ++++++++++++++- .../ViewpointDefinitionDeSerializer.cs | 1676 ++++++++++- .../ViewpointUsageDeSerializer.cs | 2395 +++++++++++++++- .../WhileLoopActionUsageDeSerializer.cs | 2162 ++++++++++++++- .../AcceptActionUsageSerializer.cs | 1302 ++++++++- .../ActionDefinitionSerializer.cs | 964 ++++++- .../ActionUsageSerializer.cs | 1270 ++++++++- .../ActorMembershipSerializer.cs | 317 ++- .../AllocationDefinitionSerializer.cs | 1069 ++++++- .../AllocationUsageSerializer.cs | 1423 +++++++++- .../AnalysisCaseDefinitionSerializer.cs | 1043 ++++++- .../AnalysisCaseUsageSerializer.cs | 1377 ++++++++- .../AnnotatingElementSerializer.cs | 241 +- .../AutoGenSerializer/AnnotationSerializer.cs | 308 +- .../AssertConstraintUsageSerializer.cs | 1316 ++++++++- .../AssignmentActionUsageSerializer.cs | 1302 ++++++++- .../AssociationSerializer.cs | 667 ++++- .../AssociationStructureSerializer.cs | 667 ++++- .../AttributeDefinitionSerializer.cs | 925 ++++++- .../AttributeUsageSerializer.cs | 1204 +++++++- .../AutoGenSerializer/BehaviorSerializer.cs | 564 +++- .../BindingConnectorAsUsageSerializer.cs | 1335 ++++++++- .../BindingConnectorSerializer.cs | 914 +++++- .../BooleanExpressionSerializer.cs | 832 +++++- .../CalculationDefinitionSerializer.cs | 997 ++++++- .../CalculationUsageSerializer.cs | 1305 ++++++++- .../CaseDefinitionSerializer.cs | 1029 ++++++- .../AutoGenSerializer/CaseUsageSerializer.cs | 1349 ++++++++- .../Core/AutoGenSerializer/ClassSerializer.cs | 540 +++- .../AutoGenSerializer/ClassifierSerializer.cs | 540 +++- .../CollectExpressionSerializer.cs | 839 +++++- .../AutoGenSerializer/CommentSerializer.cs | 247 +- .../ConcernDefinitionSerializer.cs | 1049 ++++++- .../ConcernUsageSerializer.cs | 1411 +++++++++- .../ConjugatedPortDefinitionSerializer.cs | 952 ++++++- .../ConjugatedPortTypingSerializer.cs | 318 ++- .../ConjugationSerializer.cs | 280 +- .../ConnectionDefinitionSerializer.cs | 1057 ++++++- .../ConnectionUsageSerializer.cs | 1411 +++++++++- .../AutoGenSerializer/ConnectorSerializer.cs | 914 +++++- .../ConstraintDefinitionSerializer.cs | 973 ++++++- .../ConstraintUsageSerializer.cs | 1307 ++++++++- .../ConstructorExpressionSerializer.cs | 836 +++++- .../CrossSubsettingSerializer.cs | 318 ++- .../AutoGenSerializer/DataTypeSerializer.cs | 540 +++- .../DecisionNodeSerializer.cs | 1270 ++++++++- .../AutoGenSerializer/DefinitionSerializer.cs | 925 ++++++- .../AutoGenSerializer/DependencySerializer.cs | 280 +- .../DifferencingSerializer.cs | 266 +- .../AutoGenSerializer/DisjoiningSerializer.cs | 280 +- .../DocumentationSerializer.cs | 253 +- .../ElementFilterMembershipSerializer.cs | 299 +- .../EndFeatureMembershipSerializer.cs | 305 +- .../EnumerationDefinitionSerializer.cs | 937 ++++++- .../EnumerationUsageSerializer.cs | 1210 +++++++- .../EventOccurrenceUsageSerializer.cs | 1240 ++++++++- .../ExhibitStateUsageSerializer.cs | 1343 ++++++++- .../AutoGenSerializer/ExpressionSerializer.cs | 818 +++++- .../FeatureChainExpressionSerializer.cs | 843 +++++- .../FeatureChainingSerializer.cs | 266 +- .../FeatureInvertingSerializer.cs | 280 +- .../FeatureMembershipSerializer.cs | 305 +- .../FeatureReferenceExpressionSerializer.cs | 824 +++++- .../AutoGenSerializer/FeatureSerializer.cs | 771 +++++- .../FeatureTypingSerializer.cs | 306 +- .../FeatureValueSerializer.cs | 311 ++- .../FlowDefinitionSerializer.cs | 1093 +++++++- .../AutoGenSerializer/FlowEndSerializer.cs | 771 +++++- .../Core/AutoGenSerializer/FlowSerializer.cs | 1016 ++++++- .../AutoGenSerializer/FlowUsageSerializer.cs | 1501 +++++++++- .../ForLoopActionUsageSerializer.cs | 1286 ++++++++- .../AutoGenSerializer/ForkNodeSerializer.cs | 1270 ++++++++- .../FramedConcernMembershipSerializer.cs | 332 ++- .../AutoGenSerializer/FunctionSerializer.cs | 583 +++- .../IfActionUsageSerializer.cs | 1294 ++++++++- .../IncludeUseCaseUsageSerializer.cs | 1393 +++++++++- .../IndexExpressionSerializer.cs | 839 +++++- .../InteractionSerializer.cs | 691 ++++- .../InterfaceDefinitionSerializer.cs | 1069 ++++++- .../InterfaceUsageSerializer.cs | 1423 +++++++++- .../IntersectingSerializer.cs | 266 +- .../AutoGenSerializer/InvariantSerializer.cs | 835 +++++- .../InvocationExpressionSerializer.cs | 836 +++++- .../ItemDefinitionSerializer.cs | 928 ++++++- .../AutoGenSerializer/ItemUsageSerializer.cs | 1246 ++++++++- .../AutoGenSerializer/JoinNodeSerializer.cs | 1270 ++++++++- .../LibraryPackageSerializer.cs | 278 +- .../LiteralBooleanSerializer.cs | 821 +++++- .../LiteralExpressionSerializer.cs | 818 +++++- .../LiteralInfinitySerializer.cs | 818 +++++- .../LiteralIntegerSerializer.cs | 821 +++++- .../LiteralRationalSerializer.cs | 821 +++++- .../LiteralStringSerializer.cs | 821 +++++- .../MembershipExposeSerializer.cs | 281 +- .../MembershipImportSerializer.cs | 281 +- .../AutoGenSerializer/MembershipSerializer.cs | 278 +- .../AutoGenSerializer/MergeNodeSerializer.cs | 1270 ++++++++- .../AutoGenSerializer/MetaclassSerializer.cs | 540 +++- .../MetadataAccessExpressionSerializer.cs | 824 +++++- .../MetadataDefinitionSerializer.cs | 928 ++++++- .../MetadataFeatureSerializer.cs | 835 +++++- .../MetadataUsageSerializer.cs | 1324 ++++++++- .../MultiplicityRangeSerializer.cs | 803 +++++- .../MultiplicitySerializer.cs | 771 +++++- .../NamespaceExposeSerializer.cs | 281 +- .../NamespaceImportSerializer.cs | 281 +- .../AutoGenSerializer/NamespaceSerializer.cs | 263 +- .../NullExpressionSerializer.cs | 818 +++++- .../ObjectiveMembershipSerializer.cs | 311 ++- .../OccurrenceDefinitionSerializer.cs | 928 ++++++- .../OccurrenceUsageSerializer.cs | 1234 ++++++++- .../OperatorExpressionSerializer.cs | 839 +++++- .../OwningMembershipSerializer.cs | 293 +- .../AutoGenSerializer/PackageSerializer.cs | 275 +- .../ParameterMembershipSerializer.cs | 311 ++- .../PartDefinitionSerializer.cs | 928 ++++++- .../AutoGenSerializer/PartUsageSerializer.cs | 1258 ++++++++- .../PayloadFeatureSerializer.cs | 771 +++++- .../PerformActionUsageSerializer.cs | 1280 ++++++++- .../PortConjugationSerializer.cs | 292 +- .../PortDefinitionSerializer.cs | 942 ++++++- .../AutoGenSerializer/PortUsageSerializer.cs | 1246 ++++++++- .../AutoGenSerializer/PredicateSerializer.cs | 583 +++- .../RedefinitionSerializer.cs | 318 ++- .../ReferenceSubsettingSerializer.cs | 318 ++- .../ReferenceUsageSerializer.cs | 1192 +++++++- .../RenderingDefinitionSerializer.cs | 940 ++++++- .../RenderingUsageSerializer.cs | 1272 ++++++++- ...quirementConstraintMembershipSerializer.cs | 320 ++- .../RequirementDefinitionSerializer.cs | 1049 ++++++- .../RequirementUsageSerializer.cs | 1397 +++++++++- ...irementVerificationMembershipSerializer.cs | 332 ++- .../ResultExpressionMembershipSerializer.cs | 311 ++- .../ReturnParameterMembershipSerializer.cs | 311 ++- .../SatisfyRequirementUsageSerializer.cs | 1418 +++++++++- .../SelectExpressionSerializer.cs | 839 +++++- .../SendActionUsageSerializer.cs | 1302 ++++++++- .../SerializationProvider.cs | 494 ++-- .../SpecializationSerializer.cs | 280 +- .../StakeholderMembershipSerializer.cs | 317 ++- .../StateDefinitionSerializer.cs | 1021 ++++++- .../StateSubactionMembershipSerializer.cs | 314 ++- .../AutoGenSerializer/StateUsageSerializer.cs | 1327 ++++++++- .../Core/AutoGenSerializer/StepSerializer.cs | 795 +++++- .../AutoGenSerializer/StructureSerializer.cs | 540 +++- .../SubclassificationSerializer.cs | 306 +- .../SubjectMembershipSerializer.cs | 317 ++- .../AutoGenSerializer/SubsettingSerializer.cs | 306 +- .../SuccessionAsUsageSerializer.cs | 1335 ++++++++- .../SuccessionFlowSerializer.cs | 1016 ++++++- .../SuccessionFlowUsageSerializer.cs | 1501 +++++++++- .../AutoGenSerializer/SuccessionSerializer.cs | 914 +++++- .../TerminateActionUsageSerializer.cs | 1284 ++++++++- .../TextualRepresentationSerializer.cs | 251 +- .../TransitionFeatureMembershipSerializer.cs | 314 ++- .../TransitionUsageSerializer.cs | 1320 ++++++++- .../TriggerInvocationExpressionSerializer.cs | 839 +++++- .../TypeFeaturingSerializer.cs | 280 +- .../Core/AutoGenSerializer/TypeSerializer.cs | 528 +++- .../AutoGenSerializer/UnioningSerializer.cs | 266 +- .../Core/AutoGenSerializer/UsageSerializer.cs | 1192 +++++++- .../UseCaseDefinitionSerializer.cs | 1041 ++++++- .../UseCaseUsageSerializer.cs | 1375 ++++++++- .../VariantMembershipSerializer.cs | 299 +- .../VerificationCaseDefinitionSerializer.cs | 1041 ++++++- .../VerificationCaseUsageSerializer.cs | 1375 ++++++++- .../ViewDefinitionSerializer.cs | 978 ++++++- .../ViewRenderingMembershipSerializer.cs | 317 ++- .../AutoGenSerializer/ViewUsageSerializer.cs | 1322 ++++++++- .../ViewpointDefinitionSerializer.cs | 1061 ++++++- .../ViewpointUsageSerializer.cs | 1423 +++++++++- .../WhileLoopActionUsageSerializer.cs | 1294 ++++++++- SysML2.NET.Serializer.Json/ISerializer.cs | 21 +- .../PIM/ApiSerializationProvider.cs | 4 +- .../PIM/BranchSerializer.cs | 5 +- .../PIM/CommitSerializer.cs | 5 +- .../PIM/DataIdentitySerializer.cs | 5 +- .../PIM/DataVersionSerializer.cs | 9 +- .../PIM/ProjectSerializer.cs | 5 +- .../PIM/TagSerializer.cs | 5 +- SysML2.NET.Serializer.Json/Serializer.cs | 146 +- .../Core/AutoGenDto/AcceptActionUsage.cs | 198 +- .../Core/AutoGenDto/ActionDefinition.cs | 148 +- SysML2.NET/Core/AutoGenDto/ActionUsage.cs | 192 +- SysML2.NET/Core/AutoGenDto/ActorMembership.cs | 46 +- .../Core/AutoGenDto/AllocationDefinition.cs | 158 +- SysML2.NET/Core/AutoGenDto/AllocationUsage.cs | 208 +- .../Core/AutoGenDto/AnalysisCaseDefinition.cs | 164 +- .../Core/AutoGenDto/AnalysisCaseUsage.cs | 212 +- .../Core/AutoGenDto/AnnotatingElement.cs | 30 +- SysML2.NET/Core/AutoGenDto/Annotation.cs | 32 +- .../Core/AutoGenDto/AssertConstraintUsage.cs | 202 +- .../Core/AutoGenDto/AssignmentActionUsage.cs | 198 +- SysML2.NET/Core/AutoGenDto/Association.cs | 90 +- .../Core/AutoGenDto/AssociationStructure.cs | 90 +- .../Core/AutoGenDto/AttributeDefinition.cs | 142 +- SysML2.NET/Core/AutoGenDto/AttributeUsage.cs | 186 +- SysML2.NET/Core/AutoGenDto/Behavior.cs | 84 +- .../Core/AutoGenDto/BindingConnector.cs | 124 +- .../AutoGenDto/BindingConnectorAsUsage.cs | 196 +- .../Core/AutoGenDto/BooleanExpression.cs | 122 +- .../Core/AutoGenDto/CalculationDefinition.cs | 156 +- .../Core/AutoGenDto/CalculationUsage.cs | 200 +- SysML2.NET/Core/AutoGenDto/CaseDefinition.cs | 162 +- SysML2.NET/Core/AutoGenDto/CaseUsage.cs | 208 +- SysML2.NET/Core/AutoGenDto/Class.cs | 80 +- SysML2.NET/Core/AutoGenDto/Classifier.cs | 80 +- .../Core/AutoGenDto/CollectExpression.cs | 126 +- SysML2.NET/Core/AutoGenDto/Comment.cs | 30 +- .../Core/AutoGenDto/ConcernDefinition.cs | 166 +- SysML2.NET/Core/AutoGenDto/ConcernUsage.cs | 218 +- .../AutoGenDto/ConjugatedPortDefinition.cs | 148 +- .../Core/AutoGenDto/ConjugatedPortTyping.cs | 30 +- SysML2.NET/Core/AutoGenDto/Conjugation.cs | 26 +- .../Core/AutoGenDto/ConnectionDefinition.cs | 156 +- SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs | 206 +- SysML2.NET/Core/AutoGenDto/Connector.cs | 124 +- .../Core/AutoGenDto/ConstraintDefinition.cs | 152 +- SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs | 200 +- .../Core/AutoGenDto/ConstructorExpression.cs | 124 +- SysML2.NET/Core/AutoGenDto/CrossSubsetting.cs | 30 +- SysML2.NET/Core/AutoGenDto/DataType.cs | 80 +- SysML2.NET/Core/AutoGenDto/DecisionNode.cs | 192 +- SysML2.NET/Core/AutoGenDto/Definition.cs | 142 +- SysML2.NET/Core/AutoGenDto/Dependency.cs | 24 +- SysML2.NET/Core/AutoGenDto/Differencing.cs | 26 +- SysML2.NET/Core/AutoGenDto/Disjoining.cs | 26 +- SysML2.NET/Core/AutoGenDto/Documentation.cs | 32 +- .../AutoGenDto/ElementFilterMembership.cs | 40 +- .../Core/AutoGenDto/EndFeatureMembership.cs | 44 +- .../Core/AutoGenDto/EnumerationDefinition.cs | 146 +- .../Core/AutoGenDto/EnumerationUsage.cs | 188 +- .../Core/AutoGenDto/EventOccurrenceUsage.cs | 190 +- .../Core/AutoGenDto/ExhibitStateUsage.cs | 208 +- SysML2.NET/Core/AutoGenDto/Expression.cs | 120 +- SysML2.NET/Core/AutoGenDto/Feature.cs | 110 +- .../Core/AutoGenDto/FeatureChainExpression.cs | 128 +- SysML2.NET/Core/AutoGenDto/FeatureChaining.cs | 26 +- .../Core/AutoGenDto/FeatureInverting.cs | 26 +- .../Core/AutoGenDto/FeatureMembership.cs | 42 +- .../AutoGenDto/FeatureReferenceExpression.cs | 122 +- SysML2.NET/Core/AutoGenDto/FeatureTyping.cs | 28 +- SysML2.NET/Core/AutoGenDto/FeatureValue.cs | 42 +- SysML2.NET/Core/AutoGenDto/Flow.cs | 140 +- SysML2.NET/Core/AutoGenDto/FlowDefinition.cs | 160 +- SysML2.NET/Core/AutoGenDto/FlowEnd.cs | 110 +- SysML2.NET/Core/AutoGenDto/FlowUsage.cs | 220 +- .../Core/AutoGenDto/ForLoopActionUsage.cs | 198 +- SysML2.NET/Core/AutoGenDto/ForkNode.cs | 192 +- .../AutoGenDto/FramedConcernMembership.cs | 52 +- SysML2.NET/Core/AutoGenDto/Function.cs | 90 +- .../Core/AutoGenDto/IAcceptActionUsage.cs | 6 +- .../Core/AutoGenDto/IActionDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/IActionUsage.cs | 2 +- .../Core/AutoGenDto/IActorMembership.cs | 2 +- .../Core/AutoGenDto/IAllocationDefinition.cs | 2 +- .../Core/AutoGenDto/IAllocationUsage.cs | 2 +- .../AutoGenDto/IAnalysisCaseDefinition.cs | 2 +- .../Core/AutoGenDto/IAnalysisCaseUsage.cs | 4 +- .../Core/AutoGenDto/IAnnotatingElement.cs | 8 +- SysML2.NET/Core/AutoGenDto/IAnnotation.cs | 8 +- .../Core/AutoGenDto/IAssertConstraintUsage.cs | 2 +- .../Core/AutoGenDto/IAssignmentActionUsage.cs | 6 +- SysML2.NET/Core/AutoGenDto/IAssociation.cs | 8 +- SysML2.NET/Core/AutoGenDto/IAttributeUsage.cs | 4 +- SysML2.NET/Core/AutoGenDto/IBehavior.cs | 4 +- .../Core/AutoGenDto/IBooleanExpression.cs | 2 +- .../Core/AutoGenDto/ICalculationDefinition.cs | 2 +- .../Core/AutoGenDto/ICalculationUsage.cs | 2 +- SysML2.NET/Core/AutoGenDto/ICaseDefinition.cs | 6 +- SysML2.NET/Core/AutoGenDto/ICaseUsage.cs | 8 +- SysML2.NET/Core/AutoGenDto/IClassifier.cs | 2 +- SysML2.NET/Core/AutoGenDto/IConcernUsage.cs | 2 +- .../AutoGenDto/IConjugatedPortDefinition.cs | 4 +- .../Core/AutoGenDto/IConjugatedPortTyping.cs | 2 +- SysML2.NET/Core/AutoGenDto/IConjugation.cs | 2 +- .../Core/AutoGenDto/IConnectionDefinition.cs | 2 +- .../Core/AutoGenDto/IConnectionUsage.cs | 2 +- SysML2.NET/Core/AutoGenDto/IConnector.cs | 12 +- .../Core/AutoGenDto/IConstraintUsage.cs | 2 +- .../Core/AutoGenDto/ICrossSubsetting.cs | 2 +- SysML2.NET/Core/AutoGenDto/IDefinition.cs | 62 +- SysML2.NET/Core/AutoGenDto/IDifferencing.cs | 2 +- SysML2.NET/Core/AutoGenDto/IDisjoining.cs | 2 +- SysML2.NET/Core/AutoGenDto/IDocumentation.cs | 2 +- SysML2.NET/Core/AutoGenDto/IElement.cs | 22 +- .../AutoGenDto/IElementFilterMembership.cs | 2 +- .../Core/AutoGenDto/IEndFeatureMembership.cs | 2 +- .../Core/AutoGenDto/IEnumerationDefinition.cs | 2 +- .../Core/AutoGenDto/IEnumerationUsage.cs | 2 +- .../Core/AutoGenDto/IEventOccurrenceUsage.cs | 4 +- .../Core/AutoGenDto/IExhibitStateUsage.cs | 2 +- SysML2.NET/Core/AutoGenDto/IExpression.cs | 6 +- SysML2.NET/Core/AutoGenDto/IFeature.cs | 32 +- .../AutoGenDto/IFeatureChainExpression.cs | 2 +- .../Core/AutoGenDto/IFeatureChaining.cs | 2 +- .../Core/AutoGenDto/IFeatureInverting.cs | 2 +- .../Core/AutoGenDto/IFeatureMembership.cs | 4 +- .../AutoGenDto/IFeatureReferenceExpression.cs | 2 +- SysML2.NET/Core/AutoGenDto/IFeatureTyping.cs | 2 +- SysML2.NET/Core/AutoGenDto/IFeatureValue.cs | 4 +- SysML2.NET/Core/AutoGenDto/IFlow.cs | 12 +- SysML2.NET/Core/AutoGenDto/IFlowDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/IFlowUsage.cs | 2 +- .../Core/AutoGenDto/IForLoopActionUsage.cs | 4 +- .../AutoGenDto/IFramedConcernMembership.cs | 4 +- SysML2.NET/Core/AutoGenDto/IFunction.cs | 6 +- SysML2.NET/Core/AutoGenDto/IIfActionUsage.cs | 6 +- SysML2.NET/Core/AutoGenDto/IImport.cs | 4 +- .../Core/AutoGenDto/IIncludeUseCaseUsage.cs | 2 +- .../AutoGenDto/IInstantiationExpression.cs | 4 +- .../Core/AutoGenDto/IInterfaceDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/IInterfaceUsage.cs | 2 +- SysML2.NET/Core/AutoGenDto/IIntersecting.cs | 2 +- SysML2.NET/Core/AutoGenDto/IItemUsage.cs | 2 +- .../Core/AutoGenDto/ILoopActionUsage.cs | 2 +- SysML2.NET/Core/AutoGenDto/IMembership.cs | 4 +- .../AutoGenDto/IMetadataAccessExpression.cs | 2 +- .../Core/AutoGenDto/IMetadataFeature.cs | 2 +- SysML2.NET/Core/AutoGenDto/IMetadataUsage.cs | 2 +- .../Core/AutoGenDto/IMultiplicityRange.cs | 6 +- SysML2.NET/Core/AutoGenDto/INamespace.cs | 12 +- .../Core/AutoGenDto/IObjectiveMembership.cs | 2 +- .../Core/AutoGenDto/IOccurrenceUsage.cs | 4 +- .../Core/AutoGenDto/IOwningMembership.cs | 8 +- SysML2.NET/Core/AutoGenDto/IPackage.cs | 2 +- .../Core/AutoGenDto/IParameterMembership.cs | 2 +- SysML2.NET/Core/AutoGenDto/IPartUsage.cs | 2 +- .../Core/AutoGenDto/IPerformActionUsage.cs | 2 +- .../Core/AutoGenDto/IPortConjugation.cs | 2 +- SysML2.NET/Core/AutoGenDto/IPortDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/IPortUsage.cs | 2 +- .../Core/AutoGenDto/IReferenceSubsetting.cs | 2 +- SysML2.NET/Core/AutoGenDto/IReferenceUsage.cs | 2 +- SysML2.NET/Core/AutoGenDto/IRelationship.cs | 2 +- .../Core/AutoGenDto/IRenderingDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/IRenderingUsage.cs | 2 +- .../IRequirementConstraintMembership.cs | 4 +- .../Core/AutoGenDto/IRequirementDefinition.cs | 14 +- .../Core/AutoGenDto/IRequirementUsage.cs | 16 +- .../IRequirementVerificationMembership.cs | 4 +- .../AutoGenDto/IResultExpressionMembership.cs | 2 +- .../AutoGenDto/ISatisfyRequirementUsage.cs | 4 +- .../Core/AutoGenDto/ISendActionUsage.cs | 6 +- SysML2.NET/Core/AutoGenDto/ISpecialization.cs | 2 +- .../Core/AutoGenDto/IStakeholderMembership.cs | 2 +- .../Core/AutoGenDto/IStateDefinition.cs | 8 +- .../AutoGenDto/IStateSubactionMembership.cs | 2 +- SysML2.NET/Core/AutoGenDto/IStateUsage.cs | 8 +- SysML2.NET/Core/AutoGenDto/IStep.cs | 4 +- .../Core/AutoGenDto/ISubclassification.cs | 2 +- .../Core/AutoGenDto/ISubjectMembership.cs | 2 +- SysML2.NET/Core/AutoGenDto/ISubsetting.cs | 2 +- .../Core/AutoGenDto/ITerminateActionUsage.cs | 2 +- .../Core/AutoGenDto/ITextualRepresentation.cs | 2 +- .../ITransitionFeatureMembership.cs | 2 +- .../Core/AutoGenDto/ITransitionUsage.cs | 12 +- SysML2.NET/Core/AutoGenDto/IType.cs | 44 +- SysML2.NET/Core/AutoGenDto/ITypeFeaturing.cs | 2 +- SysML2.NET/Core/AutoGenDto/IUnioning.cs | 2 +- SysML2.NET/Core/AutoGenDto/IUsage.cs | 72 +- .../Core/AutoGenDto/IUseCaseDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/IUseCaseUsage.cs | 4 +- .../Core/AutoGenDto/IVariantMembership.cs | 2 +- .../AutoGenDto/IVerificationCaseDefinition.cs | 2 +- .../Core/AutoGenDto/IVerificationCaseUsage.cs | 4 +- SysML2.NET/Core/AutoGenDto/IViewDefinition.cs | 8 +- .../AutoGenDto/IViewRenderingMembership.cs | 4 +- SysML2.NET/Core/AutoGenDto/IViewUsage.cs | 10 +- .../Core/AutoGenDto/IViewpointDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/IViewpointUsage.cs | 4 +- .../Core/AutoGenDto/IWhileLoopActionUsage.cs | 4 +- SysML2.NET/Core/AutoGenDto/IfActionUsage.cs | 198 +- .../Core/AutoGenDto/IncludeUseCaseUsage.cs | 220 +- SysML2.NET/Core/AutoGenDto/IndexExpression.cs | 126 +- SysML2.NET/Core/AutoGenDto/Interaction.cs | 94 +- .../Core/AutoGenDto/InterfaceDefinition.cs | 158 +- SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs | 208 +- SysML2.NET/Core/AutoGenDto/Intersecting.cs | 26 +- SysML2.NET/Core/AutoGenDto/Invariant.cs | 122 +- .../Core/AutoGenDto/InvocationExpression.cs | 124 +- SysML2.NET/Core/AutoGenDto/ItemDefinition.cs | 142 +- SysML2.NET/Core/AutoGenDto/ItemUsage.cs | 188 +- SysML2.NET/Core/AutoGenDto/JoinNode.cs | 192 +- SysML2.NET/Core/AutoGenDto/LibraryPackage.cs | 36 +- SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs | 120 +- .../Core/AutoGenDto/LiteralExpression.cs | 120 +- SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs | 120 +- SysML2.NET/Core/AutoGenDto/LiteralInteger.cs | 120 +- SysML2.NET/Core/AutoGenDto/LiteralRational.cs | 120 +- SysML2.NET/Core/AutoGenDto/LiteralString.cs | 120 +- SysML2.NET/Core/AutoGenDto/Membership.cs | 30 +- .../Core/AutoGenDto/MembershipExpose.cs | 34 +- .../Core/AutoGenDto/MembershipImport.cs | 30 +- SysML2.NET/Core/AutoGenDto/MergeNode.cs | 192 +- SysML2.NET/Core/AutoGenDto/Metaclass.cs | 80 +- .../AutoGenDto/MetadataAccessExpression.cs | 122 +- .../Core/AutoGenDto/MetadataDefinition.cs | 142 +- SysML2.NET/Core/AutoGenDto/MetadataFeature.cs | 120 +- SysML2.NET/Core/AutoGenDto/MetadataUsage.cs | 200 +- SysML2.NET/Core/AutoGenDto/Multiplicity.cs | 110 +- .../Core/AutoGenDto/MultiplicityRange.cs | 116 +- SysML2.NET/Core/AutoGenDto/Namespace.cs | 34 +- SysML2.NET/Core/AutoGenDto/NamespaceExpose.cs | 34 +- SysML2.NET/Core/AutoGenDto/NamespaceImport.cs | 30 +- SysML2.NET/Core/AutoGenDto/NullExpression.cs | 120 +- .../Core/AutoGenDto/ObjectiveMembership.cs | 44 +- .../Core/AutoGenDto/OccurrenceDefinition.cs | 142 +- SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs | 186 +- .../Core/AutoGenDto/OperatorExpression.cs | 124 +- .../Core/AutoGenDto/OwningMembership.cs | 38 +- SysML2.NET/Core/AutoGenDto/Package.cs | 36 +- .../Core/AutoGenDto/ParameterMembership.cs | 44 +- SysML2.NET/Core/AutoGenDto/PartDefinition.cs | 142 +- SysML2.NET/Core/AutoGenDto/PartUsage.cs | 190 +- SysML2.NET/Core/AutoGenDto/PayloadFeature.cs | 110 +- .../Core/AutoGenDto/PerformActionUsage.cs | 198 +- SysML2.NET/Core/AutoGenDto/PortConjugation.cs | 28 +- SysML2.NET/Core/AutoGenDto/PortDefinition.cs | 144 +- SysML2.NET/Core/AutoGenDto/PortUsage.cs | 188 +- SysML2.NET/Core/AutoGenDto/Predicate.cs | 90 +- SysML2.NET/Core/AutoGenDto/Redefinition.cs | 28 +- .../Core/AutoGenDto/ReferenceSubsetting.cs | 30 +- SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs | 184 +- .../Core/AutoGenDto/RenderingDefinition.cs | 144 +- SysML2.NET/Core/AutoGenDto/RenderingUsage.cs | 192 +- .../RequirementConstraintMembership.cs | 46 +- .../Core/AutoGenDto/RequirementDefinition.cs | 166 +- .../Core/AutoGenDto/RequirementUsage.cs | 216 +- .../RequirementVerificationMembership.cs | 52 +- .../AutoGenDto/ResultExpressionMembership.cs | 44 +- .../AutoGenDto/ReturnParameterMembership.cs | 44 +- .../AutoGenDto/SatisfyRequirementUsage.cs | 222 +- .../Core/AutoGenDto/SelectExpression.cs | 126 +- SysML2.NET/Core/AutoGenDto/SendActionUsage.cs | 198 +- SysML2.NET/Core/AutoGenDto/Specialization.cs | 26 +- .../Core/AutoGenDto/StakeholderMembership.cs | 46 +- SysML2.NET/Core/AutoGenDto/StateDefinition.cs | 156 +- .../AutoGenDto/StateSubactionMembership.cs | 44 +- SysML2.NET/Core/AutoGenDto/StateUsage.cs | 200 +- SysML2.NET/Core/AutoGenDto/Step.cs | 114 +- SysML2.NET/Core/AutoGenDto/Structure.cs | 80 +- .../Core/AutoGenDto/Subclassification.cs | 28 +- .../Core/AutoGenDto/SubjectMembership.cs | 46 +- SysML2.NET/Core/AutoGenDto/Subsetting.cs | 28 +- SysML2.NET/Core/AutoGenDto/Succession.cs | 124 +- .../Core/AutoGenDto/SuccessionAsUsage.cs | 196 +- SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs | 140 +- .../Core/AutoGenDto/SuccessionFlowUsage.cs | 220 +- .../Core/AutoGenDto/TerminateActionUsage.cs | 194 +- .../Core/AutoGenDto/TextualRepresentation.cs | 32 +- .../AutoGenDto/TransitionFeatureMembership.cs | 44 +- SysML2.NET/Core/AutoGenDto/TransitionUsage.cs | 204 +- .../AutoGenDto/TriggerInvocationExpression.cs | 124 +- SysML2.NET/Core/AutoGenDto/Type.cs | 78 +- SysML2.NET/Core/AutoGenDto/TypeFeaturing.cs | 26 +- SysML2.NET/Core/AutoGenDto/Unioning.cs | 26 +- SysML2.NET/Core/AutoGenDto/Usage.cs | 182 +- .../Core/AutoGenDto/UseCaseDefinition.cs | 164 +- SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs | 212 +- .../Core/AutoGenDto/VariantMembership.cs | 40 +- .../AutoGenDto/VerificationCaseDefinition.cs | 164 +- .../Core/AutoGenDto/VerificationCaseUsage.cs | 212 +- SysML2.NET/Core/AutoGenDto/ViewDefinition.cs | 150 +- .../AutoGenDto/ViewRenderingMembership.cs | 46 +- SysML2.NET/Core/AutoGenDto/ViewUsage.cs | 200 +- .../Core/AutoGenDto/ViewpointDefinition.cs | 168 +- SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs | 220 +- .../Core/AutoGenDto/WhileLoopActionUsage.cs | 198 +- .../Core/AutoGenPoco/AcceptActionUsage.cs | 497 +--- .../Core/AutoGenPoco/ActionDefinition.cs | 370 +-- SysML2.NET/Core/AutoGenPoco/ActionUsage.cs | 482 +--- .../Core/AutoGenPoco/ActorMembership.cs | 112 +- .../Core/AutoGenPoco/AllocationDefinition.cs | 392 +-- .../Core/AutoGenPoco/AllocationUsage.cs | 522 +--- .../AutoGenPoco/AnalysisCaseDefinition.cs | 410 +-- .../Core/AutoGenPoco/AnalysisCaseUsage.cs | 532 +--- .../Core/AutoGenPoco/AnnotatingElement.cs | 75 +- SysML2.NET/Core/AutoGenPoco/Annotation.cs | 80 +- .../Core/AutoGenPoco/AssertConstraintUsage.cs | 507 +--- .../Core/AutoGenPoco/AssignmentActionUsage.cs | 497 +--- SysML2.NET/Core/AutoGenPoco/Association.cs | 225 +- .../Core/AutoGenPoco/AssociationStructure.cs | 225 +- .../Core/AutoGenPoco/AttributeDefinition.cs | 355 +-- SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs | 467 +--- SysML2.NET/Core/AutoGenPoco/Behavior.cs | 210 +- .../Core/AutoGenPoco/BindingConnector.cs | 312 +-- .../AutoGenPoco/BindingConnectorAsUsage.cs | 492 +--- .../Core/AutoGenPoco/BooleanExpression.cs | 307 +- .../Core/AutoGenPoco/CalculationDefinition.cs | 390 +-- .../Core/AutoGenPoco/CalculationUsage.cs | 502 +--- SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs | 405 +-- SysML2.NET/Core/AutoGenPoco/CaseUsage.cs | 522 +--- SysML2.NET/Core/AutoGenPoco/Class.cs | 200 +- SysML2.NET/Core/AutoGenPoco/Classifier.cs | 200 +- .../Core/AutoGenPoco/CollectExpression.cs | 314 +-- SysML2.NET/Core/AutoGenPoco/Comment.cs | 75 +- .../Core/AutoGenPoco/ConcernDefinition.cs | 415 +-- SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs | 547 +--- .../AutoGenPoco/ConjugatedPortDefinition.cs | 370 +-- .../Core/AutoGenPoco/ConjugatedPortTyping.cs | 75 +- SysML2.NET/Core/AutoGenPoco/Conjugation.cs | 65 +- .../Core/AutoGenPoco/ConnectionDefinition.cs | 387 +-- .../Core/AutoGenPoco/ConnectionUsage.cs | 517 +--- SysML2.NET/Core/AutoGenPoco/Connector.cs | 312 +-- .../Core/AutoGenPoco/ConnectorAsUsage.cs | 492 +--- .../Core/AutoGenPoco/ConstraintDefinition.cs | 380 +-- .../Core/AutoGenPoco/ConstraintUsage.cs | 502 +--- .../Core/AutoGenPoco/ConstructorExpression.cs | 312 +-- SysML2.NET/Core/AutoGenPoco/ControlNode.cs | 482 +--- .../Core/AutoGenPoco/CrossSubsetting.cs | 75 +- SysML2.NET/Core/AutoGenPoco/DataType.cs | 200 +- SysML2.NET/Core/AutoGenPoco/DecisionNode.cs | 482 +--- SysML2.NET/Core/AutoGenPoco/Definition.cs | 355 +-- SysML2.NET/Core/AutoGenPoco/Dependency.cs | 60 +- SysML2.NET/Core/AutoGenPoco/Differencing.cs | 65 +- SysML2.NET/Core/AutoGenPoco/Disjoining.cs | 65 +- SysML2.NET/Core/AutoGenPoco/Documentation.cs | 80 +- SysML2.NET/Core/AutoGenPoco/Element.cs | 55 +- .../AutoGenPoco/ElementFilterMembership.cs | 97 +- .../Core/AutoGenPoco/EndFeatureMembership.cs | 107 +- .../Core/AutoGenPoco/EnumerationDefinition.cs | 362 +-- .../Core/AutoGenPoco/EnumerationUsage.cs | 472 +--- .../Core/AutoGenPoco/EventOccurrenceUsage.cs | 477 +--- .../Core/AutoGenPoco/ExhibitStateUsage.cs | 522 +--- SysML2.NET/Core/AutoGenPoco/Expose.cs | 76 +- SysML2.NET/Core/AutoGenPoco/Expression.cs | 302 +- SysML2.NET/Core/AutoGenPoco/Feature.cs | 277 +- .../AutoGenPoco/FeatureChainExpression.cs | 319 +-- .../Core/AutoGenPoco/FeatureChaining.cs | 65 +- .../Core/AutoGenPoco/FeatureInverting.cs | 65 +- .../Core/AutoGenPoco/FeatureMembership.cs | 102 +- .../AutoGenPoco/FeatureReferenceExpression.cs | 307 +- SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs | 70 +- SysML2.NET/Core/AutoGenPoco/FeatureValue.cs | 102 +- SysML2.NET/Core/AutoGenPoco/Flow.cs | 352 +-- SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs | 400 +-- SysML2.NET/Core/AutoGenPoco/FlowEnd.cs | 277 +- SysML2.NET/Core/AutoGenPoco/FlowUsage.cs | 552 +--- .../Core/AutoGenPoco/ForLoopActionUsage.cs | 497 +--- SysML2.NET/Core/AutoGenPoco/ForkNode.cs | 482 +--- .../AutoGenPoco/FramedConcernMembership.cs | 124 +- SysML2.NET/Core/AutoGenPoco/Function.cs | 225 +- .../Core/AutoGenPoco/IAcceptActionUsage.cs | 6 +- .../Core/AutoGenPoco/IActionDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IActionUsage.cs | 2 +- .../Core/AutoGenPoco/IActorMembership.cs | 2 +- .../Core/AutoGenPoco/IAllocationDefinition.cs | 2 +- .../Core/AutoGenPoco/IAllocationUsage.cs | 2 +- .../AutoGenPoco/IAnalysisCaseDefinition.cs | 2 +- .../Core/AutoGenPoco/IAnalysisCaseUsage.cs | 4 +- .../Core/AutoGenPoco/IAnnotatingElement.cs | 8 +- SysML2.NET/Core/AutoGenPoco/IAnnotation.cs | 8 +- .../AutoGenPoco/IAssertConstraintUsage.cs | 2 +- .../AutoGenPoco/IAssignmentActionUsage.cs | 6 +- SysML2.NET/Core/AutoGenPoco/IAssociation.cs | 8 +- .../Core/AutoGenPoco/IAttributeUsage.cs | 4 +- SysML2.NET/Core/AutoGenPoco/IBehavior.cs | 4 +- .../Core/AutoGenPoco/IBooleanExpression.cs | 2 +- .../AutoGenPoco/ICalculationDefinition.cs | 2 +- .../Core/AutoGenPoco/ICalculationUsage.cs | 2 +- .../Core/AutoGenPoco/ICaseDefinition.cs | 6 +- SysML2.NET/Core/AutoGenPoco/ICaseUsage.cs | 8 +- SysML2.NET/Core/AutoGenPoco/IClassifier.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IConcernUsage.cs | 2 +- .../AutoGenPoco/IConjugatedPortDefinition.cs | 4 +- .../Core/AutoGenPoco/IConjugatedPortTyping.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IConjugation.cs | 2 +- .../Core/AutoGenPoco/IConnectionDefinition.cs | 2 +- .../Core/AutoGenPoco/IConnectionUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IConnector.cs | 12 +- .../Core/AutoGenPoco/IConstraintUsage.cs | 2 +- .../Core/AutoGenPoco/ICrossSubsetting.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IDefinition.cs | 62 +- SysML2.NET/Core/AutoGenPoco/IDifferencing.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IDisjoining.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IDocumentation.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IElement.cs | 22 +- .../AutoGenPoco/IElementFilterMembership.cs | 2 +- .../Core/AutoGenPoco/IEndFeatureMembership.cs | 2 +- .../AutoGenPoco/IEnumerationDefinition.cs | 2 +- .../Core/AutoGenPoco/IEnumerationUsage.cs | 2 +- .../Core/AutoGenPoco/IEventOccurrenceUsage.cs | 4 +- .../Core/AutoGenPoco/IExhibitStateUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IExpression.cs | 6 +- SysML2.NET/Core/AutoGenPoco/IFeature.cs | 32 +- .../AutoGenPoco/IFeatureChainExpression.cs | 2 +- .../Core/AutoGenPoco/IFeatureChaining.cs | 2 +- .../Core/AutoGenPoco/IFeatureInverting.cs | 2 +- .../Core/AutoGenPoco/IFeatureMembership.cs | 4 +- .../IFeatureReferenceExpression.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IFeatureTyping.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IFeatureValue.cs | 4 +- SysML2.NET/Core/AutoGenPoco/IFlow.cs | 12 +- .../Core/AutoGenPoco/IFlowDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IFlowUsage.cs | 2 +- .../Core/AutoGenPoco/IForLoopActionUsage.cs | 4 +- .../AutoGenPoco/IFramedConcernMembership.cs | 4 +- SysML2.NET/Core/AutoGenPoco/IFunction.cs | 6 +- SysML2.NET/Core/AutoGenPoco/IIfActionUsage.cs | 6 +- SysML2.NET/Core/AutoGenPoco/IImport.cs | 4 +- .../Core/AutoGenPoco/IIncludeUseCaseUsage.cs | 2 +- .../AutoGenPoco/IInstantiationExpression.cs | 4 +- .../Core/AutoGenPoco/IInterfaceDefinition.cs | 2 +- .../Core/AutoGenPoco/IInterfaceUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IIntersecting.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IItemUsage.cs | 2 +- .../Core/AutoGenPoco/ILoopActionUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IMembership.cs | 4 +- .../AutoGenPoco/IMetadataAccessExpression.cs | 2 +- .../Core/AutoGenPoco/IMetadataFeature.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IMetadataUsage.cs | 2 +- .../Core/AutoGenPoco/IMultiplicityRange.cs | 6 +- SysML2.NET/Core/AutoGenPoco/INamespace.cs | 12 +- .../Core/AutoGenPoco/IObjectiveMembership.cs | 2 +- .../Core/AutoGenPoco/IOccurrenceUsage.cs | 4 +- .../Core/AutoGenPoco/IOwningMembership.cs | 8 +- SysML2.NET/Core/AutoGenPoco/IPackage.cs | 2 +- .../Core/AutoGenPoco/IParameterMembership.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IPartUsage.cs | 2 +- .../Core/AutoGenPoco/IPerformActionUsage.cs | 2 +- .../Core/AutoGenPoco/IPortConjugation.cs | 2 +- .../Core/AutoGenPoco/IPortDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IPortUsage.cs | 2 +- .../Core/AutoGenPoco/IReferenceSubsetting.cs | 2 +- .../Core/AutoGenPoco/IReferenceUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IRelationship.cs | 2 +- .../Core/AutoGenPoco/IRenderingDefinition.cs | 2 +- .../Core/AutoGenPoco/IRenderingUsage.cs | 2 +- .../IRequirementConstraintMembership.cs | 4 +- .../AutoGenPoco/IRequirementDefinition.cs | 14 +- .../Core/AutoGenPoco/IRequirementUsage.cs | 16 +- .../IRequirementVerificationMembership.cs | 4 +- .../IResultExpressionMembership.cs | 2 +- .../AutoGenPoco/ISatisfyRequirementUsage.cs | 4 +- .../Core/AutoGenPoco/ISendActionUsage.cs | 6 +- .../Core/AutoGenPoco/ISpecialization.cs | 2 +- .../AutoGenPoco/IStakeholderMembership.cs | 2 +- .../Core/AutoGenPoco/IStateDefinition.cs | 8 +- .../AutoGenPoco/IStateSubactionMembership.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IStateUsage.cs | 8 +- SysML2.NET/Core/AutoGenPoco/IStep.cs | 4 +- .../Core/AutoGenPoco/ISubclassification.cs | 2 +- .../Core/AutoGenPoco/ISubjectMembership.cs | 2 +- SysML2.NET/Core/AutoGenPoco/ISubsetting.cs | 2 +- .../Core/AutoGenPoco/ITerminateActionUsage.cs | 2 +- .../AutoGenPoco/ITextualRepresentation.cs | 2 +- .../ITransitionFeatureMembership.cs | 2 +- .../Core/AutoGenPoco/ITransitionUsage.cs | 12 +- SysML2.NET/Core/AutoGenPoco/IType.cs | 44 +- SysML2.NET/Core/AutoGenPoco/ITypeFeaturing.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IUnioning.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IUsage.cs | 72 +- .../Core/AutoGenPoco/IUseCaseDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/IUseCaseUsage.cs | 4 +- .../Core/AutoGenPoco/IVariantMembership.cs | 2 +- .../IVerificationCaseDefinition.cs | 2 +- .../AutoGenPoco/IVerificationCaseUsage.cs | 4 +- .../Core/AutoGenPoco/IViewDefinition.cs | 8 +- .../AutoGenPoco/IViewRenderingMembership.cs | 4 +- SysML2.NET/Core/AutoGenPoco/IViewUsage.cs | 10 +- .../Core/AutoGenPoco/IViewpointDefinition.cs | 2 +- .../Core/AutoGenPoco/IViewpointUsage.cs | 4 +- .../Core/AutoGenPoco/IWhileLoopActionUsage.cs | 4 +- SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs | 497 +--- SysML2.NET/Core/AutoGenPoco/Import.cs | 72 +- .../Core/AutoGenPoco/IncludeUseCaseUsage.cs | 552 +--- .../Core/AutoGenPoco/IndexExpression.cs | 314 +-- .../AutoGenPoco/InstantiationExpression.cs | 312 +-- SysML2.NET/Core/AutoGenPoco/Interaction.cs | 235 +- .../Core/AutoGenPoco/InterfaceDefinition.cs | 392 +-- SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs | 522 +--- SysML2.NET/Core/AutoGenPoco/Intersecting.cs | 65 +- SysML2.NET/Core/AutoGenPoco/Invariant.cs | 307 +- .../Core/AutoGenPoco/InvocationExpression.cs | 312 +-- SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs | 355 +-- SysML2.NET/Core/AutoGenPoco/ItemUsage.cs | 472 +--- SysML2.NET/Core/AutoGenPoco/JoinNode.cs | 482 +--- SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs | 90 +- SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs | 302 +- .../Core/AutoGenPoco/LiteralExpression.cs | 302 +- .../Core/AutoGenPoco/LiteralInfinity.cs | 302 +- SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs | 302 +- .../Core/AutoGenPoco/LiteralRational.cs | 302 +- SysML2.NET/Core/AutoGenPoco/LiteralString.cs | 302 +- .../Core/AutoGenPoco/LoopActionUsage.cs | 487 +--- SysML2.NET/Core/AutoGenPoco/Membership.cs | 72 +- .../Core/AutoGenPoco/MembershipExpose.cs | 76 +- .../Core/AutoGenPoco/MembershipImport.cs | 72 +- SysML2.NET/Core/AutoGenPoco/MergeNode.cs | 482 +--- SysML2.NET/Core/AutoGenPoco/Metaclass.cs | 200 +- .../AutoGenPoco/MetadataAccessExpression.cs | 307 +- .../Core/AutoGenPoco/MetadataDefinition.cs | 355 +-- .../Core/AutoGenPoco/MetadataFeature.cs | 302 +- SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs | 502 +--- SysML2.NET/Core/AutoGenPoco/Multiplicity.cs | 277 +- .../Core/AutoGenPoco/MultiplicityRange.cs | 292 +- SysML2.NET/Core/AutoGenPoco/Namespace.cs | 85 +- .../Core/AutoGenPoco/NamespaceExpose.cs | 76 +- .../Core/AutoGenPoco/NamespaceImport.cs | 72 +- SysML2.NET/Core/AutoGenPoco/NullExpression.cs | 302 +- .../Core/AutoGenPoco/ObjectiveMembership.cs | 107 +- .../Core/AutoGenPoco/OccurrenceDefinition.cs | 355 +-- .../Core/AutoGenPoco/OccurrenceUsage.cs | 467 +--- .../Core/AutoGenPoco/OperatorExpression.cs | 312 +-- .../Core/AutoGenPoco/OwningMembership.cs | 92 +- SysML2.NET/Core/AutoGenPoco/Package.cs | 90 +- .../Core/AutoGenPoco/ParameterMembership.cs | 107 +- SysML2.NET/Core/AutoGenPoco/PartDefinition.cs | 355 +-- SysML2.NET/Core/AutoGenPoco/PartUsage.cs | 477 +--- SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs | 277 +- .../Core/AutoGenPoco/PerformActionUsage.cs | 497 +--- .../Core/AutoGenPoco/PortConjugation.cs | 70 +- SysML2.NET/Core/AutoGenPoco/PortDefinition.cs | 360 +-- SysML2.NET/Core/AutoGenPoco/PortUsage.cs | 472 +--- SysML2.NET/Core/AutoGenPoco/Predicate.cs | 225 +- SysML2.NET/Core/AutoGenPoco/Redefinition.cs | 70 +- .../Core/AutoGenPoco/ReferenceSubsetting.cs | 75 +- SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs | 462 +-- SysML2.NET/Core/AutoGenPoco/Relationship.cs | 60 +- .../Core/AutoGenPoco/RenderingDefinition.cs | 360 +-- SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs | 482 +--- .../RequirementConstraintMembership.cs | 112 +- .../Core/AutoGenPoco/RequirementDefinition.cs | 415 +-- .../Core/AutoGenPoco/RequirementUsage.cs | 542 +--- .../RequirementVerificationMembership.cs | 124 +- .../AutoGenPoco/ResultExpressionMembership.cs | 107 +- .../AutoGenPoco/ReturnParameterMembership.cs | 107 +- .../AutoGenPoco/SatisfyRequirementUsage.cs | 557 +--- .../Core/AutoGenPoco/SelectExpression.cs | 314 +-- .../Core/AutoGenPoco/SendActionUsage.cs | 497 +--- SysML2.NET/Core/AutoGenPoco/Specialization.cs | 65 +- .../Core/AutoGenPoco/StakeholderMembership.cs | 112 +- .../Core/AutoGenPoco/StateDefinition.cs | 390 +-- .../AutoGenPoco/StateSubactionMembership.cs | 107 +- SysML2.NET/Core/AutoGenPoco/StateUsage.cs | 502 +--- SysML2.NET/Core/AutoGenPoco/Step.cs | 287 +- SysML2.NET/Core/AutoGenPoco/Structure.cs | 200 +- .../Core/AutoGenPoco/Subclassification.cs | 70 +- .../Core/AutoGenPoco/SubjectMembership.cs | 112 +- SysML2.NET/Core/AutoGenPoco/Subsetting.cs | 70 +- SysML2.NET/Core/AutoGenPoco/Succession.cs | 312 +-- .../Core/AutoGenPoco/SuccessionAsUsage.cs | 492 +--- SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs | 352 +-- .../Core/AutoGenPoco/SuccessionFlowUsage.cs | 552 +--- .../Core/AutoGenPoco/TerminateActionUsage.cs | 487 +--- .../Core/AutoGenPoco/TextualRepresentation.cs | 80 +- .../TransitionFeatureMembership.cs | 107 +- .../Core/AutoGenPoco/TransitionUsage.cs | 512 +--- .../TriggerInvocationExpression.cs | 312 +-- SysML2.NET/Core/AutoGenPoco/Type.cs | 195 +- SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs | 65 +- SysML2.NET/Core/AutoGenPoco/Unioning.cs | 65 +- SysML2.NET/Core/AutoGenPoco/Usage.cs | 457 +-- .../Core/AutoGenPoco/UseCaseDefinition.cs | 410 +-- SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs | 532 +--- .../Core/AutoGenPoco/VariantMembership.cs | 97 +- .../AutoGenPoco/VerificationCaseDefinition.cs | 410 +-- .../Core/AutoGenPoco/VerificationCaseUsage.cs | 532 +--- SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs | 375 +-- .../AutoGenPoco/ViewRenderingMembership.cs | 112 +- SysML2.NET/Core/AutoGenPoco/ViewUsage.cs | 502 +--- .../Core/AutoGenPoco/ViewpointDefinition.cs | 420 +-- SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs | 552 +--- .../Core/AutoGenPoco/WhileLoopActionUsage.cs | 497 +--- SysML2.NET/SysML2.NET.csproj | 3 + 1050 files changed, 393760 insertions(+), 66763 deletions(-) diff --git a/SysML2.NET.API/Modules/BaseModule.cs b/SysML2.NET.API/Modules/BaseModule.cs index a77247c42..13a3f9a5e 100644 --- a/SysML2.NET.API/Modules/BaseModule.cs +++ b/SysML2.NET.API/Modules/BaseModule.cs @@ -103,7 +103,7 @@ protected async Task WriteResultsToResponse(IEnumerable dataItems, Serial this.logger.LogDebug("start serializing {DtoTypeName} objects to result Stream", dtoTypeName); var resultStream = new MemoryStream(); - await this.serializer.SerializeAsync(dataItems, serializationModeKind, resultStream, jsonWriterOptions, cancellationToken); + await this.serializer.SerializeAsync(dataItems, serializationModeKind, false, resultStream, jsonWriterOptions, cancellationToken); this.logger.LogDebug("{DtoTypeName} objects serialized to stream in {Elapsed} [ms]", dtoTypeName, sw.ElapsedMilliseconds); @@ -143,7 +143,7 @@ protected async Task WriteResultToResponse(IData dataItem, SerializationModeKind this.logger.LogDebug("start serializing {DtoTypeName} objects to result Stream", dtoTypeName); var resultStream = new MemoryStream(); - await this.serializer.SerializeAsync(dataItem, serializationModeKind, resultStream, jsonWriterOptions, cancellationToken); + await this.serializer.SerializeAsync(dataItem, serializationModeKind, false, resultStream, jsonWriterOptions, cancellationToken); this.logger.LogDebug("{DtoTypeName} object serialized to stream in {Elapsed} [ms]", dtoTypeName, sw.ElapsedMilliseconds); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AnnotatingElementDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AnnotatingElementDeSerializer.cs index 2934759a3..6669c5a9d 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AnnotatingElementDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AnnotatingElementDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The AnnotatingElementDeSerializer can only be used to deserialize objects of type IAnnotatingElement, a {@type.GetString()} was provided"); } - IAnnotatingElement dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.AnnotatingElement(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.AnnotatingElement(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,46 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("annotatedElement"u8, out var annotatedElementProperty)) + { + foreach (var arrayItem in annotatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotatedElementExternalIdProperty)) + { + var propertyValue = annotatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotatedElement Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("annotation"u8, out var annotationProperty)) + { + foreach (var arrayItem in annotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotationExternalIdProperty)) + { + var propertyValue = annotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotation Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +160,26 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -146,13 +206,94 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isImpliedIncluded Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotatingRelationship"u8, out var ownedAnnotatingRelationshipProperty)) + { + foreach (var arrayItem in ownedAnnotatingRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = ownedAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotatingRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotatingRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -166,6 +307,102 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the ownedRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningAnnotatingRelationship"u8, out var owningAnnotatingRelationshipProperty)) + { + if (owningAnnotatingRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningAnnotatingRelationship = null; + } + else + { + if (owningAnnotatingRelationshipProperty.TryGetProperty("@id"u8, out var owningAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = owningAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningAnnotatingRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningAnnotatingRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) @@ -174,9 +411,9 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -190,6 +427,44 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the owningRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AssociationDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AssociationDeSerializer.cs index 2534bf92c..1570e770e 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AssociationDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AssociationDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM throw new InvalidOperationException($"The AssociationDeSerializer can only be used to deserialize objects of type IAssociation, a {@type.GetString()} was provided"); } - IAssociation dtoInstance = new SysML2.NET.Core.DTO.Kernel.Associations.Association(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Associations.Association(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,26 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the aliasIds Json property was not found in the Association: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("associationEnd"u8, out var associationEndProperty)) + { + foreach (var arrayItem in associationEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationEndExternalIdProperty)) + { + var propertyValue = associationEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.associationEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the associationEnd Json property was not found in the Association: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +140,66 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the declaredShortName Json property was not found in the Association: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Association: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,166 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the elementId Json property was not found in the Association: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Association: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the isAbstract Json property was not found in the Association: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Association: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +422,18 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the isImpliedIncluded Json property was not found in the Association: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Association: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -182,132 +446,743 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the isSufficient Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the Association: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = membershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.membership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Association: { Id }", dtoInstance.Id); + logger.LogDebug("the membership Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (multiplicityProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.multiplicity = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the Association: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Association: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedConjugator Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the Association: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedDifferencing Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the Association: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedDisjoining Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + { + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelatedElement Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) + { + foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedTypeExternalIdProperty)) + { + var propertyValue = relatedTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedType Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the source Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) + { + if (sourceTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceType = null; + } + else + { + if (sourceTypeProperty.TryGetProperty("@id"u8, out var sourceTypeExternalIdProperty)) + { + var propertyValue = sourceTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceType Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + { + foreach (var arrayItem in targetProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the target Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) + { + foreach (var arrayItem in targetTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetTypeExternalIdProperty)) + { + var propertyValue = targetTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the targetType Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Association: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/DependencyDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/DependencyDeSerializer.cs index 29abec71d..09f4b28ca 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/DependencyDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/DependencyDeSerializer.cs @@ -69,7 +69,7 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo throw new InvalidOperationException($"The DependencyDeSerializer can only be used to deserialize objects of type IDependency, a {@type.GetString()} was provided"); } - IDependency dtoInstance = new SysML2.NET.Core.DTO.Root.Dependencies.Dependency(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Dependencies.Dependency(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -106,9 +106,9 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in clientProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var clientIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var clientExternalIdProperty)) { - var propertyValue = clientIdProperty.GetString(); + var propertyValue = clientExternalIdProperty.GetString(); if (propertyValue != null) { @@ -140,6 +140,26 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the declaredShortName Json property was not found in the Dependency: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -178,13 +198,74 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isImpliedIncluded Json property was not found in the Dependency: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -202,9 +283,9 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -218,6 +299,78 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the ownedRelationship Json property was not found in the Dependency: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -226,9 +379,9 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -250,9 +403,9 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -266,13 +419,51 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the owningRelationship Json property was not found in the Dependency: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -290,9 +481,9 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in supplierProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var supplierIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var supplierExternalIdProperty)) { - var propertyValue = supplierIdProperty.GetString(); + var propertyValue = supplierExternalIdProperty.GetString(); if (propertyValue != null) { @@ -310,9 +501,9 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -326,6 +517,26 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the target Json property was not found in the Dependency: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs index 1d5b92aa0..a109d21e5 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri throw new InvalidOperationException($"The EnumerationDefinitionDeSerializer can only be used to deserialize objects of type IEnumerationDefinition, a {@type.GetString()} was provided"); } - IEnumerationDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Enumerations.EnumerationDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Enumerations.EnumerationDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,86 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the declaredShortName Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,186 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the elementId Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("enumeratedValue"u8, out var enumeratedValueProperty)) + { + foreach (var arrayItem in enumeratedValueProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var enumeratedValueExternalIdProperty)) + { + var propertyValue = enumeratedValueExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.enumeratedValue.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the enumeratedValue Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +406,18 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isAbstract Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -158,6 +430,18 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isImpliedIncluded Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -182,48 +466,1175 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isVariation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureDeSerializer.cs index 4f59725dd..36de4a242 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK throw new InvalidOperationException($"The FeatureDeSerializer can only be used to deserialize objects of type IFeature, a {@type.GetString()} was provided"); } - IFeature dtoInstance = new SysML2.NET.Core.DTO.Core.Features.Feature(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Features.Feature(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the aliasIds Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +164,46 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the declaredShortName Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +213,26 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the direction Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,6 +247,235 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the elementId Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the Feature.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -167,6 +500,18 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the isComposite Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) { if (isConstantProperty.ValueKind != JsonValueKind.Null) @@ -215,6 +560,18 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the isImpliedIncluded Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) { if (isOrderedProperty.ValueKind != JsonValueKind.Null) @@ -275,37 +632,678 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the isVariable Json property was not found in the Feature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Feature: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Feature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -319,6 +1317,108 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the owningRelationship Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs index 23e073776..d5fa2bb72 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio throw new InvalidOperationException($"The FeatureTypingDeSerializer can only be used to deserialize objects of type IFeatureTyping, a {@type.GetString()} was provided"); } - IFeatureTyping dtoInstance = new SysML2.NET.Core.DTO.Core.Features.FeatureTyping(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Features.FeatureTyping(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the declaredShortName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,9 +163,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio } else { - if (generalProperty.TryGetProperty("@id"u8, out var generalIdProperty)) + if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) { - var propertyValue = generalIdProperty.GetString(); + var propertyValue = generalExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,13 +203,74 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the isImpliedIncluded Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +288,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +304,102 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the ownedRelationship Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeature"u8, out var owningFeatureProperty)) + { + if (owningFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeature = null; + } + else + { + if (owningFeatureProperty.TryGetProperty("@id"u8, out var owningFeatureExternalIdProperty)) + { + var propertyValue = owningFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeature Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +408,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +432,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,13 +448,75 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the owningRelationship Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -300,9 +539,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio } else { - if (specificProperty.TryGetProperty("@id"u8, out var specificIdProperty)) + if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) { - var propertyValue = specificIdProperty.GetString(); + var propertyValue = specificExternalIdProperty.GetString(); if (propertyValue != null) { @@ -320,9 +559,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -336,6 +575,26 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the target Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) { if (typeProperty.ValueKind == JsonValueKind.Null) @@ -345,9 +604,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio } else { - if (typeProperty.TryGetProperty("@id"u8, out var typeIdProperty)) + if (typeProperty.TryGetProperty("@id"u8, out var typeExternalIdProperty)) { - var propertyValue = typeIdProperty.GetString(); + var propertyValue = typeExternalIdProperty.GetString(); if (propertyValue != null) { @@ -370,9 +629,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio } else { - if (typedFeatureProperty.TryGetProperty("@id"u8, out var typedFeatureIdProperty)) + if (typedFeatureProperty.TryGetProperty("@id"u8, out var typedFeatureExternalIdProperty)) { - var propertyValue = typedFeatureIdProperty.GetString(); + var propertyValue = typedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FlowDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FlowDeSerializer.cs index 383661add..7d28ee1dd 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FlowDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FlowDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind throw new InvalidOperationException($"The FlowDeSerializer can only be used to deserialize objects of type IFlow, a {@type.GetString()} was provided"); } - IFlow dtoInstance = new SysML2.NET.Core.DTO.Kernel.Interactions.Flow(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Interactions.Flow(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,317 +102,1737 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the aliasIds Json property was not found in the Flow: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) + { + foreach (var arrayItem in associationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) + { + var propertyValue = associationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.association.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the association Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) + { + foreach (var arrayItem in connectorEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var connectorEndExternalIdProperty)) + { + var propertyValue = connectorEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectorEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the connectorEnd Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the declaredName Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty)) + { + if (defaultFeaturingTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.defaultFeaturingType = null; + } + else + { + if (defaultFeaturingTypeProperty.TryGetProperty("@id"u8, out var defaultFeaturingTypeExternalIdProperty)) + { + var propertyValue = defaultFeaturingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.defaultFeaturingType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the defaultFeaturingType Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + { + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + { + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ElementId = propertyValue; + } + } + else + { + logger.LogDebug("the elementId Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the Flow.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("flowEnd"u8, out var flowEndProperty)) + { + foreach (var arrayItem in flowEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var flowEndExternalIdProperty)) + { + var propertyValue = flowEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.flowEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the flowEnd Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("interaction"u8, out var interactionProperty)) + { + foreach (var arrayItem in interactionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var interactionExternalIdProperty)) + { + var propertyValue = interactionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.interaction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the interaction Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + { + if (isImpliedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImplied Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedUnioning Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the owner Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) { - var propertyValue = elementIdProperty.GetString(); + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); - if (propertyValue != null) + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningNamespace Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelationship Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (owningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningType Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in parameterProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the parameter Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + if (jsonElement.TryGetProperty("payloadFeature"u8, out var payloadFeatureProperty)) { - if (isImpliedProperty.ValueKind != JsonValueKind.Null) + if (payloadFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + dtoInstance.payloadFeature = null; + } + else + { + if (payloadFeatureProperty.TryGetProperty("@id"u8, out var payloadFeatureExternalIdProperty)) + { + var propertyValue = payloadFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.payloadFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImplied Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the payloadFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("payloadType"u8, out var payloadTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in payloadTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var payloadTypeExternalIdProperty)) + { + var propertyValue = payloadTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.payloadType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the payloadType Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var relatedFeatureExternalIdProperty)) + { + var propertyValue = relatedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the source Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.sourceFeature = null; + } + else + { + if (sourceFeatureProperty.TryGetProperty("@id"u8, out var sourceFeatureExternalIdProperty)) + { + var propertyValue = sourceFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the sourceFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("sourceOutputFeature"u8, out var sourceOutputFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (sourceOutputFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.sourceOutputFeature = null; + } + else + { + if (sourceOutputFeatureProperty.TryGetProperty("@id"u8, out var sourceOutputFeatureExternalIdProperty)) + { + var propertyValue = sourceOutputFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceOutputFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the sourceOutputFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.Target.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the target Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = targetFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.targetFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the targetFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("targetInputFeature"u8, out var targetInputFeatureProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (targetInputFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.targetInputFeature = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (targetInputFeatureProperty.TryGetProperty("@id"u8, out var targetInputFeatureExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = targetInputFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.targetInputFeature = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the targetInputFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.OwningRelationship = null; - } - else + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = textualRepresentationExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the textualRepresentation Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in typeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = typeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.type.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the type Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = unioningTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the unioningType Json property was not found in the Flow: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs index 534585b2b..92833128f 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se throw new InvalidOperationException($"The FramedConcernMembershipDeSerializer can only be used to deserialize objects of type IFramedConcernMembership, a {@type.GetString()} was provided"); } - IFramedConcernMembership dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.FramedConcernMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.FramedConcernMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the declaredShortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the isImpliedIncluded Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("kind"u8, out var kindProperty)) { dtoInstance.Kind = RequirementConstraintKindDeSerializer.Deserialize(kindProperty.GetString()); @@ -176,9 +208,9 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -192,6 +224,20 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the memberElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -201,6 +247,31 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the memberName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -210,13 +281,194 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the memberShortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + if (ownedConcernProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConcern = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.ownedConcern property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedConcernProperty.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + if (ownedConstraintProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConstraint = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.ownedConstraint property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedConstraintProperty.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -234,9 +486,9 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -250,6 +502,78 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the ownedRelationship Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -258,9 +582,9 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -282,9 +606,9 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -298,13 +622,126 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the owningRelationship Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("referencedConcern"u8, out var referencedConcernProperty)) + { + if (referencedConcernProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.referencedConcern = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.referencedConcern property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (referencedConcernProperty.TryGetProperty("@id"u8, out var referencedConcernExternalIdProperty)) + { + var propertyValue = referencedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.referencedConcern = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the referencedConcern Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("referencedConstraint"u8, out var referencedConstraintProperty)) + { + if (referencedConstraintProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.referencedConstraint = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.referencedConstraint property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (referencedConstraintProperty.TryGetProperty("@id"u8, out var referencedConstraintExternalIdProperty)) + { + var propertyValue = referencedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.referencedConstraint = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the referencedConstraint Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -322,9 +759,9 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -338,6 +775,26 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the target Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs index fb83c49ba..6940054af 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs @@ -69,7 +69,7 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The LiteralIntegerDeSerializer can only be used to deserialize objects of type ILiteralInteger, a {@type.GetString()} was provided"); } - ILiteralInteger dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralInteger(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralInteger(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +184,46 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +233,26 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the direction Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +267,1257 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the LiteralInteger.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (isAbstractProperty.ValueKind != JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); } - else + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) - { - var propertyValue = owningRelationshipIdProperty.GetString(); + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); - } - } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); } } else { - logger.LogDebug("the owningRelationship Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the isConjugated Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the LiteralInteger.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } if (jsonElement.TryGetProperty("value"u8, out var valueProperty)) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs index 3d038b6e3..b9a2abc2e 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs @@ -69,7 +69,7 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The LiteralRationalDeSerializer can only be used to deserialize objects of type ILiteralRational, a {@type.GetString()} was provided"); } - ILiteralRational dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralRational(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralRational(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +184,46 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +233,26 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the direction Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +267,1257 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the elementId Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the LiteralRational.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (isAbstractProperty.ValueKind != JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); } - else + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) - { - var propertyValue = owningRelationshipIdProperty.GetString(); + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); - } - } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); } } else { - logger.LogDebug("the owningRelationship Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the isConjugated Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the LiteralRational.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } if (jsonElement.TryGetProperty("value"u8, out var valueProperty)) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MembershipDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MembershipDeSerializer.cs index 645c9caf1..2d26f987f 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MembershipDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo throw new InvalidOperationException($"The MembershipDeSerializer can only be used to deserialize objects of type IMembership, a {@type.GetString()} was provided"); } - IMembership dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.Membership(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.Membership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the declaredShortName Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isImpliedIncluded Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the memberElement Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the memberName Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the Membership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,62 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the memberShortName Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +345,9 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +361,78 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the ownedRelationship Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +441,9 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +465,9 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +481,51 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the owningRelationship Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +543,9 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +559,26 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the target Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MultiplicityRangeDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MultiplicityRangeDeSerializer.cs index 2ef56593e..14804ba30 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MultiplicityRangeDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MultiplicityRangeDeSerializer.cs @@ -69,7 +69,7 @@ internal static IMultiplicityRange DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The MultiplicityRangeDeSerializer can only be used to deserialize objects of type IMultiplicityRange, a {@type.GetString()} was provided"); } - IMultiplicityRange dtoInstance = new SysML2.NET.Core.DTO.Kernel.Multiplicities.MultiplicityRange(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Multiplicities.MultiplicityRange(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,197 +102,1239 @@ internal static IMultiplicityRange DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("bound"u8, out var boundProperty)) + { + foreach (var arrayItem in boundProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var boundExternalIdProperty)) + { + var propertyValue = boundExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.bound.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the bound Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the declaredName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + { + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + { + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ElementId = propertyValue; + } + } + else + { + logger.LogDebug("the elementId Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the MultiplicityRange.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("lowerBound"u8, out var lowerBoundProperty)) + { + if (lowerBoundProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.lowerBound = null; + } + else + { + if (lowerBoundProperty.TryGetProperty("@id"u8, out var lowerBoundExternalIdProperty)) + { + var propertyValue = lowerBoundExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.lowerBound = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the lowerBound Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedIntersecting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedMember Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedRedefinition Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedRelationship Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSpecialization Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSubsetting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTyping Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedUnioning Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (ownerProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the owner Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the owningFeatureMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the owningMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = owningNamespaceExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.owningNamespace = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the owningNamespace Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) @@ -303,9 +1345,9 @@ internal static IMultiplicityRange DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -319,6 +1361,133 @@ internal static IMultiplicityRange DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the owningRelationship Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("upperBound"u8, out var upperBoundProperty)) + { + if (upperBoundProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.upperBound = Guid.Empty; + logger.LogDebug($"the MultiplicityRange.upperBound property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (upperBoundProperty.TryGetProperty("@id"u8, out var upperBoundExternalIdProperty)) + { + var propertyValue = upperBoundExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.upperBound = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the upperBound Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs index 71d262de5..9c23ceb29 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa throw new InvalidOperationException($"The OwningMembershipDeSerializer can only be used to deserialize objects of type IOwningMembership, a {@type.GetString()} was provided"); } - IOwningMembership dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.OwningMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.OwningMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the declaredShortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isImpliedIncluded Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the memberElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the memberName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the OwningMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,119 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the memberShortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the OwningMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +402,9 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +418,78 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the ownedRelationship Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +498,9 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +522,9 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +538,51 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the owningRelationship Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +600,9 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +616,26 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the target Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs index 31550f590..7a19c3736 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs @@ -69,7 +69,7 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial throw new InvalidOperationException($"The ReferenceSubsettingDeSerializer can only be used to deserialize objects of type IReferenceSubsetting, a {@type.GetString()} was provided"); } - IReferenceSubsetting dtoInstance = new SysML2.NET.Core.DTO.Core.Features.ReferenceSubsetting(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Features.ReferenceSubsetting(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the declaredShortName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,9 +163,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (generalProperty.TryGetProperty("@id"u8, out var generalIdProperty)) + if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) { - var propertyValue = generalIdProperty.GetString(); + var propertyValue = generalExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,13 +203,74 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isImpliedIncluded Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +288,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +304,102 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the ownedRelationship Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeature"u8, out var owningFeatureProperty)) + { + if (owningFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeature = null; + } + else + { + if (owningFeatureProperty.TryGetProperty("@id"u8, out var owningFeatureExternalIdProperty)) + { + var propertyValue = owningFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +408,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +432,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,6 +448,39 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the owningRelationship Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("referencedFeature"u8, out var referencedFeatureProperty)) { if (referencedFeatureProperty.ValueKind == JsonValueKind.Null) @@ -280,9 +490,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (referencedFeatureProperty.TryGetProperty("@id"u8, out var referencedFeatureIdProperty)) + if (referencedFeatureProperty.TryGetProperty("@id"u8, out var referencedFeatureExternalIdProperty)) { - var propertyValue = referencedFeatureIdProperty.GetString(); + var propertyValue = referencedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -296,13 +506,67 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the referencedFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("referencingFeature"u8, out var referencingFeatureProperty)) + { + if (referencingFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.referencingFeature = Guid.Empty; + logger.LogDebug($"the ReferenceSubsetting.referencingFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (referencingFeatureProperty.TryGetProperty("@id"u8, out var referencingFeatureExternalIdProperty)) + { + var propertyValue = referencingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.referencingFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the referencingFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -325,9 +589,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (specificProperty.TryGetProperty("@id"u8, out var specificIdProperty)) + if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) { - var propertyValue = specificIdProperty.GetString(); + var propertyValue = specificExternalIdProperty.GetString(); if (propertyValue != null) { @@ -350,9 +614,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureIdProperty)) + if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureExternalIdProperty)) { - var propertyValue = subsettedFeatureIdProperty.GetString(); + var propertyValue = subsettedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -375,9 +639,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureIdProperty)) + if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureExternalIdProperty)) { - var propertyValue = subsettingFeatureIdProperty.GetString(); + var propertyValue = subsettingFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -395,9 +659,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -411,6 +675,26 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the target Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs index 1fa657f1a..dd1df2634 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa throw new InvalidOperationException($"The RequirementUsageDeSerializer can only be used to deserialize objects of type IRequirementUsage, a {@type.GetString()} was provided"); } - IRequirementUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.RequirementUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.RequirementUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa } } + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,263 +122,2414 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the aliasIds Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("assumedConstraint"u8, out var assumedConstraintProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in assumedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var assumedConstraintExternalIdProperty)) + { + var propertyValue = assumedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.assumedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the assumedConstraint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("constraintDefinition"u8, out var constraintDefinitionProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + if (constraintDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.constraintDefinition = null; + } + else + { + if (constraintDefinitionProperty.TryGetProperty("@id"u8, out var constraintDefinitionExternalIdProperty)) + { + var propertyValue = constraintDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.constraintDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the constraintDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + dtoInstance.DeclaredName = declaredNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) + { + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isIndividual Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the RequirementUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("framedConcern"u8, out var framedConcernProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in framedConcernProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var framedConcernExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = framedConcernExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.framedConcern.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the framedConcern Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.function = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = functionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.function = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty)) - { - dtoInstance.ReqId = reqIdProperty.GetString(); - } - else + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - logger.LogDebug("the reqId Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the individualDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) + { + if (predicateProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.predicate = null; + } + else + { + if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) + { + var propertyValue = predicateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.predicate = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the predicate Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty)) + { + dtoInstance.ReqId = reqIdProperty.GetString(); + } + else + { + logger.LogDebug("the reqId Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("requiredConstraint"u8, out var requiredConstraintProperty)) + { + foreach (var arrayItem in requiredConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var requiredConstraintExternalIdProperty)) + { + var propertyValue = requiredConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.requiredConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the requiredConstraint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("requirementDefinition"u8, out var requirementDefinitionProperty)) + { + if (requirementDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.requirementDefinition = null; + } + else + { + if (requirementDefinitionProperty.TryGetProperty("@id"u8, out var requirementDefinitionExternalIdProperty)) + { + var propertyValue = requirementDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.requirementDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the requirementDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the RequirementUsage.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("stakeholderParameter"u8, out var stakeholderParameterProperty)) + { + foreach (var arrayItem in stakeholderParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stakeholderParameterExternalIdProperty)) + { + var propertyValue = stakeholderParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.stakeholderParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the stakeholderParameter Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the RequirementUsage.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("text"u8, out var textProperty)) + { + foreach (var arrayItem in textProperty.EnumerateArray()) + { + var propertyValue = arrayItem.GetString(); + + if (propertyValue != null) + { + dtoInstance.text.Add(propertyValue); + } + } + } + else + { + logger.LogDebug("the text Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs index c0d27212b..bafae0d16 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static ISelectExpression DeSerialize(JsonElement jsonElement, Serializa throw new InvalidOperationException($"The SelectExpressionDeSerializer can only be used to deserialize objects of type ISelectExpression, a {@type.GetString()} was provided"); } - ISelectExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.SelectExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.SelectExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,90 @@ internal static ISelectExpression DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the aliasIds Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("argument"u8, out var argumentProperty)) + { + foreach (var arrayItem in argumentProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var argumentExternalIdProperty)) + { + var propertyValue = argumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.argument.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the argument Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,217 +204,1379 @@ internal static ISelectExpression DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the declaredShortName Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isComposite Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the SelectExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - var propertyValue = operatorProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.Operator = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the operator Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("instantiatedType"u8, out var instantiatedTypeProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (instantiatedTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.instantiatedType = Guid.Empty; + logger.LogDebug($"the SelectExpression.instantiatedType property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (instantiatedTypeProperty.TryGetProperty("@id"u8, out var instantiatedTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = instantiatedTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.instantiatedType = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the instantiatedType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty)) + { + var propertyValue = operatorProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Operator = propertyValue; + } + } + else + { + logger.LogDebug("the operator Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the SelectExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs index f1920c67d..7d0a0800e 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs @@ -69,7 +69,7 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The SubclassificationDeSerializer can only be used to deserialize objects of type ISubclassification, a {@type.GetString()} was provided"); } - ISubclassification dtoInstance = new SysML2.NET.Core.DTO.Core.Classifiers.Subclassification(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Classifiers.Subclassification(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,9 +163,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ } else { - if (generalProperty.TryGetProperty("@id"u8, out var generalIdProperty)) + if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) { - var propertyValue = generalIdProperty.GetString(); + var propertyValue = generalExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,13 +203,74 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isImpliedIncluded Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +288,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +304,102 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the ownedRelationship Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningClassifier"u8, out var owningClassifierProperty)) + { + if (owningClassifierProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningClassifier = null; + } + else + { + if (owningClassifierProperty.TryGetProperty("@id"u8, out var owningClassifierExternalIdProperty)) + { + var propertyValue = owningClassifierExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningClassifier = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningClassifier Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +408,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +432,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,13 +448,75 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the owningRelationship Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -300,9 +539,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ } else { - if (specificProperty.TryGetProperty("@id"u8, out var specificIdProperty)) + if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) { - var propertyValue = specificIdProperty.GetString(); + var propertyValue = specificExternalIdProperty.GetString(); if (propertyValue != null) { @@ -325,9 +564,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ } else { - if (subclassifierProperty.TryGetProperty("@id"u8, out var subclassifierIdProperty)) + if (subclassifierProperty.TryGetProperty("@id"u8, out var subclassifierExternalIdProperty)) { - var propertyValue = subclassifierIdProperty.GetString(); + var propertyValue = subclassifierExternalIdProperty.GetString(); if (propertyValue != null) { @@ -350,9 +589,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ } else { - if (superclassifierProperty.TryGetProperty("@id"u8, out var superclassifierIdProperty)) + if (superclassifierProperty.TryGetProperty("@id"u8, out var superclassifierExternalIdProperty)) { - var propertyValue = superclassifierIdProperty.GetString(); + var propertyValue = superclassifierExternalIdProperty.GetString(); if (propertyValue != null) { @@ -370,9 +609,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -386,6 +625,26 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the target Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs index 96c284025..6603632e3 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs @@ -69,7 +69,7 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri throw new InvalidOperationException($"The TextualRepresentationDeSerializer can only be used to deserialize objects of type ITextualRepresentation, a {@type.GetString()} was provided"); } - ITextualRepresentation dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.TextualRepresentation(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.TextualRepresentation(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,46 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the aliasIds Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("annotatedElement"u8, out var annotatedElementProperty)) + { + foreach (var arrayItem in annotatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotatedElementExternalIdProperty)) + { + var propertyValue = annotatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotatedElement Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("annotation"u8, out var annotationProperty)) + { + foreach (var arrayItem in annotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotationExternalIdProperty)) + { + var propertyValue = annotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotation Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("body"u8, out var bodyProperty)) { var propertyValue = bodyProperty.GetString(); @@ -134,6 +174,26 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the declaredShortName Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -160,6 +220,18 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isImpliedIncluded Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("language"u8, out var languageProperty)) { var propertyValue = languageProperty.GetString(); @@ -174,13 +246,82 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the language Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotatingRelationship"u8, out var ownedAnnotatingRelationshipProperty)) + { + foreach (var arrayItem in ownedAnnotatingRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = ownedAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotatingRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotatingRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -194,6 +335,102 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the ownedRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningAnnotatingRelationship"u8, out var owningAnnotatingRelationshipProperty)) + { + if (owningAnnotatingRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningAnnotatingRelationship = null; + } + else + { + if (owningAnnotatingRelationshipProperty.TryGetProperty("@id"u8, out var owningAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = owningAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningAnnotatingRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningAnnotatingRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) @@ -202,9 +439,9 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -218,6 +455,69 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the owningRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("representedElement"u8, out var representedElementProperty)) + { + if (representedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.representedElement = Guid.Empty; + logger.LogDebug($"the TextualRepresentation.representedElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (representedElementProperty.TryGetProperty("@id"u8, out var representedElementExternalIdProperty)) + { + var propertyValue = representedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.representedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the representedElement Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/UsageDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/UsageDeSerializer.cs index 1176aca70..4fca12fd8 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/UsageDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/UsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IUsage DeSerialize(JsonElement jsonElement, SerializationModeKin throw new InvalidOperationException($"The UsageDeSerializer can only be used to deserialize objects of type IUsage, a {@type.GetString()} was provided"); } - IUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.Usage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.Usage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IUsage DeSerialize(JsonElement jsonElement, SerializationModeKin logger.LogDebug("the aliasIds Json property was not found in the Usage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,215 +164,1983 @@ internal static IUsage DeSerialize(JsonElement jsonElement, SerializationModeKin logger.LogDebug("the declaredShortName Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isDerived Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the Usage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the input Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/AnnotatingElement.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/AnnotatingElement.cs index 5919b2077..4bbf43d37 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/AnnotatingElement.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/AnnotatingElement.cs @@ -61,7 +61,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List AnnotatedElement { get; internal set; } + public List annotatedElement { get; internal set; } = []; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -70,7 +70,7 @@ public partial class AnnotatingElement : IAnnotatingElement [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List Annotation { get; internal set; } + public List annotation { get; internal set; } = []; /// /// The declared name of this Element. @@ -96,7 +96,7 @@ public partial class AnnotatingElement : IAnnotatingElement [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -122,7 +122,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -132,7 +132,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -142,7 +142,7 @@ public partial class AnnotatingElement : IAnnotatingElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List OwnedAnnotatingRelationship { get; internal set; } + public List ownedAnnotatingRelationship { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -152,7 +152,7 @@ public partial class AnnotatingElement : IAnnotatingElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -160,7 +160,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -176,7 +176,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -185,7 +185,7 @@ public partial class AnnotatingElement : IAnnotatingElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public Guid? OwningAnnotatingRelationship { get; internal set; } + public Guid? owningAnnotatingRelationship { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -194,7 +194,7 @@ public partial class AnnotatingElement : IAnnotatingElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -203,7 +203,7 @@ public partial class AnnotatingElement : IAnnotatingElement [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -223,7 +223,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -233,7 +233,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -242,7 +242,7 @@ public partial class AnnotatingElement : IAnnotatingElement [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Association.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Association.cs index d3147dadb..d9a7e722c 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Association.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Association.cs @@ -63,7 +63,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1562477648742_24204_22901", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List AssociationEnd { get; internal set; } + public List associationEnd { get; internal set; } = []; /// /// The declared name of this Element. @@ -93,7 +93,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -101,7 +101,7 @@ public partial class Association : IAssociation [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -110,7 +110,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -127,7 +127,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -135,7 +135,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -144,7 +144,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -152,7 +152,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -160,7 +160,7 @@ public partial class Association : IAssociation [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -169,7 +169,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -177,7 +177,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -190,7 +190,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -205,7 +205,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -231,7 +231,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -251,7 +251,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -259,7 +259,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -269,7 +269,7 @@ public partial class Association : IAssociation [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -279,7 +279,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -287,7 +287,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -297,7 +297,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -306,7 +306,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -316,7 +316,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -326,7 +326,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -334,7 +334,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -343,7 +343,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -351,7 +351,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -361,7 +361,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -371,7 +371,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -380,7 +380,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -389,7 +389,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -400,7 +400,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -426,7 +426,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -435,7 +435,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -444,7 +444,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -452,7 +452,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -461,7 +461,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -470,7 +470,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -498,7 +498,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -507,7 +507,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -516,7 +516,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List RelatedType { get; internal set; } + public List relatedType { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -526,7 +526,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -544,7 +544,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public Guid? SourceType { get; internal set; } + public Guid? sourceType { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -563,7 +563,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List TargetType { get; internal set; } + public List targetType { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -572,7 +572,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -583,7 +583,7 @@ public partial class Association : IAssociation /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Dependency.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Dependency.cs index 74baeb1a5..1d52d4d39 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Dependency.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Dependency.cs @@ -87,7 +87,7 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -121,7 +121,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -131,7 +131,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -141,7 +141,7 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -149,7 +149,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -173,7 +173,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -182,7 +182,7 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -191,7 +191,7 @@ public partial class Dependency : IDependency [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -219,7 +219,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -227,7 +227,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -237,7 +237,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -272,7 +272,7 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/EnumerationDefinition.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/EnumerationDefinition.cs index 6b3e5aeb2..0a98030ff 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/EnumerationDefinition.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/EnumerationDefinition.cs @@ -82,7 +82,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -90,7 +90,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -99,7 +99,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -108,7 +108,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -124,7 +124,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// EnumerationUsages of this EnumerationDefinitionthat have distinct, fixed values. Each @@ -133,7 +133,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946634788_959145_265", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1590979457191_746167_951")] [Implements(implementation: "IEnumerationDefinition.EnumeratedValue")] - public List EnumeratedValue { get; internal set; } + public List enumeratedValue { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -141,7 +141,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -150,7 +150,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -158,7 +158,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -166,7 +166,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -175,7 +175,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -183,7 +183,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -196,7 +196,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -211,7 +211,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -229,7 +229,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -250,7 +250,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946783667_895456_287", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1590978283180_265362_419")] [Implements(implementation: "IEnumerationDefinition.IsVariation")] - bool IEnumerationDefinition.IsVariation { get; set; } = true; + public bool IsVariation { get; set; } = true; /// /// Whether this Definition is for a variation point or not. If true, then all the memberships of the @@ -267,7 +267,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -275,7 +275,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -285,7 +285,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -295,7 +295,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -303,7 +303,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -311,7 +311,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -319,7 +319,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -327,7 +327,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -337,7 +337,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -345,7 +345,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -353,7 +353,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -361,7 +361,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -369,7 +369,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -378,7 +378,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -388,7 +388,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -396,7 +396,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -406,7 +406,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -416,7 +416,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -424,7 +424,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -433,7 +433,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -441,7 +441,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -449,7 +449,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -459,7 +459,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -467,7 +467,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -477,7 +477,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -485,7 +485,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -494,7 +494,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -502,7 +502,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -511,7 +511,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -522,7 +522,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -530,7 +530,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -538,7 +538,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -546,7 +546,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -554,7 +554,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -562,7 +562,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -578,7 +578,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -586,7 +586,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -596,7 +596,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -604,7 +604,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -613,7 +613,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -621,7 +621,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -630,7 +630,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -639,7 +639,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -647,7 +647,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -655,7 +655,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -663,7 +663,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -671,7 +671,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -679,7 +679,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -688,7 +688,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -697,7 +697,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -717,7 +717,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -727,7 +727,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -736,7 +736,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -747,7 +747,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -755,7 +755,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -765,7 +765,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [RedefinedByProperty("IEnumerationDefinition.EnumeratedValue")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -775,7 +775,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Feature.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Feature.cs index 0a7f128ef..90329563b 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Feature.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Feature.cs @@ -77,7 +77,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -87,7 +87,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -117,7 +117,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -125,7 +125,7 @@ public partial class Feature : IFeature [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -142,7 +142,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -158,7 +158,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -168,7 +168,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -176,7 +176,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - List Core.Types.IType.Feature { get; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -185,14 +185,14 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -202,7 +202,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -210,7 +210,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -218,7 +218,7 @@ public partial class Feature : IFeature [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -227,7 +227,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -235,7 +235,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -248,7 +248,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -272,7 +272,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -319,7 +319,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -369,7 +369,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -377,7 +377,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -387,7 +387,7 @@ public partial class Feature : IFeature [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -397,7 +397,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -405,7 +405,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -415,7 +415,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -424,7 +424,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -433,7 +433,7 @@ public partial class Feature : IFeature [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -443,7 +443,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -453,7 +453,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -461,7 +461,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -470,7 +470,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -478,7 +478,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -488,7 +488,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -498,7 +498,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -508,7 +508,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -518,7 +518,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -527,7 +527,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -536,7 +536,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -547,7 +547,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -556,7 +556,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -565,7 +565,7 @@ public partial class Feature : IFeature [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -583,7 +583,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -593,7 +593,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -603,7 +603,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -613,7 +613,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -622,7 +622,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -630,7 +630,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -638,7 +638,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -647,7 +647,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -656,7 +656,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -674,7 +674,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -686,7 +686,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -696,7 +696,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -705,7 +705,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -715,7 +715,7 @@ public partial class Feature : IFeature /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -726,7 +726,7 @@ public partial class Feature : IFeature /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FeatureTyping.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FeatureTyping.cs index 3d68bd38b..6184f9ff5 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FeatureTyping.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FeatureTyping.cs @@ -79,7 +79,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -122,7 +122,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -132,7 +132,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -142,7 +142,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -150,7 +150,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -174,7 +174,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// A typedFeature that is also the owningRelatedElement of this FeatureTyping. @@ -183,7 +183,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_13273_21101")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "IFeatureTyping.OwningFeature")] - public Guid? OwningFeature { get; internal set; } + public Guid? owningFeature { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -192,7 +192,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -201,7 +201,7 @@ public partial class FeatureTyping : IFeatureTyping [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -227,7 +227,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IFeatureTyping.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -239,7 +239,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -247,7 +247,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -257,7 +257,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -293,7 +293,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The Type that is being applied by this FeatureTyping. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Flow.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Flow.cs index 76107e078..bedd547b6 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Flow.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Flow.cs @@ -62,7 +62,7 @@ public partial class Flow : IFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List Association { get; internal set; } + public List association { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -71,7 +71,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -83,7 +83,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -93,7 +93,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List ConnectorEnd { get; internal set; } + public List connectorEnd { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -103,7 +103,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -129,7 +129,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public Guid? DefaultFeaturingType { get; internal set; } + public Guid? defaultFeaturingType { get; internal set; } /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -142,7 +142,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -151,7 +151,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -168,7 +168,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -185,7 +185,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -195,7 +195,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -203,7 +203,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -212,14 +212,14 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -229,7 +229,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The connectorEnds of this Flow that are FlowEnds. @@ -237,7 +237,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] [Implements(implementation: "IFlow.FlowEnd")] - public List FlowEnd { get; internal set; } + public List flowEnd { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -245,7 +245,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -253,7 +253,7 @@ public partial class Flow : IFlow [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -262,7 +262,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -270,7 +270,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -280,7 +280,7 @@ public partial class Flow : IFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IFlow.Interaction")] - public List Interaction { get; internal set; } + public List interaction { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -293,7 +293,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -317,7 +317,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -372,7 +372,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -422,7 +422,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -430,7 +430,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -440,7 +440,7 @@ public partial class Flow : IFlow [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -450,7 +450,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -458,7 +458,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -468,7 +468,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -477,7 +477,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -486,7 +486,7 @@ public partial class Flow : IFlow [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -496,7 +496,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -506,7 +506,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -514,7 +514,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -523,7 +523,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -531,7 +531,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -541,7 +541,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -551,7 +551,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -561,7 +561,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -571,7 +571,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -580,7 +580,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -589,7 +589,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -600,7 +600,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -609,7 +609,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -618,7 +618,7 @@ public partial class Flow : IFlow [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -644,7 +644,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -654,7 +654,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -664,7 +664,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -674,7 +674,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -683,7 +683,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -691,7 +691,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -699,7 +699,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -708,7 +708,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -717,7 +717,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -743,7 +743,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -752,7 +752,7 @@ public partial class Flow : IFlow [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). @@ -760,14 +760,14 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IFlow.PayloadFeature")] - public Guid? PayloadFeature { get; internal set; } + public Guid? payloadFeature { get; internal set; } /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.PayloadType")] - public List PayloadType { get; internal set; } + public List payloadType { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -779,7 +779,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -788,7 +788,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -797,7 +797,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List RelatedFeature { get; internal set; } + public List relatedFeature { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -807,7 +807,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -825,7 +825,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public Guid? SourceFeature { get; internal set; } + public Guid? sourceFeature { get; internal set; } /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the @@ -833,7 +833,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.SourceOutputFeature")] - public Guid? SourceOutputFeature { get; internal set; } + public Guid? sourceOutputFeature { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -852,7 +852,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List TargetFeature { get; internal set; } + public List targetFeature { get; internal set; } = []; /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the @@ -860,7 +860,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.TargetInputFeature")] - public Guid? TargetInputFeature { get; internal set; } + public Guid? targetInputFeature { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -869,7 +869,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -880,7 +880,7 @@ public partial class Flow : IFlow [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -891,7 +891,7 @@ public partial class Flow : IFlow /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FramedConcernMembership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FramedConcernMembership.cs index 07594a164..f2afad4e1 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FramedConcernMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FramedConcernMembership.cs @@ -78,7 +78,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -112,7 +112,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The kind of an FramedConcernMembership must be requirement. @@ -120,7 +120,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1617120451812_644221_3690", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "requirement")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048161309_821854_390")] [Implements(implementation: "IFramedConcernMembership.Kind")] - RequirementConstraintKind IFramedConcernMembership.Kind { get; set; } + public RequirementConstraintKind Kind { get; set; } = RequirementConstraintKind.Requirement; /// /// Whether the RequirementConstraintMembership is for an assumed or required ConstraintUsage. @@ -145,7 +145,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -164,7 +164,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -182,7 +182,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -192,7 +192,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The ConcernUsage that is the ownedConstraint of this FramedConcernMembership. @@ -200,7 +200,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1617120590170_490370_3748", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048366950_985767_426")] [Implements(implementation: "IFramedConcernMembership.OwnedConcern")] - public Guid OwnedConcern { get; internal set; } + public Guid ownedConcern { get; internal set; } /// /// The ConstraintUsage that is the ownedMemberFeature of this RequirementConstraintMembership. @@ -209,7 +209,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IFramedConcernMembership.OwnedConcern")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public Guid OwnedConstraint { get; internal set; } + public Guid ownedConstraint { get; internal set; } /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -217,7 +217,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -228,7 +228,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -236,7 +236,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -246,7 +246,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -254,7 +254,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -262,7 +262,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -286,7 +286,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -295,7 +295,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -304,7 +304,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -329,7 +329,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -341,7 +341,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The ConcernUsage that is referenced through this FramedConcernMembership. It is the @@ -351,7 +351,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1617120658044_92083_3773", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1617118807597_77864_3544")] [Implements(implementation: "IFramedConcernMembership.ReferencedConcern")] - public Guid ReferencedConcern { get; internal set; } + public Guid referencedConcern { get; internal set; } /// /// The ConstraintUsage that is referenced through this RequirementConstraintMembership. It is the @@ -361,7 +361,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IFramedConcernMembership.ReferencedConcern")] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public Guid ReferencedConstraint { get; internal set; } + public Guid referencedConstraint { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -369,7 +369,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -379,7 +379,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -406,7 +406,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -414,7 +414,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IAnnotatingElement.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IAnnotatingElement.cs index ea795179d..6c86eadf8 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IAnnotatingElement.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IAnnotatingElement.cs @@ -46,7 +46,7 @@ public partial interface IAnnotatingElement : IElement /// AnnotatingElement. /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List AnnotatedElement { get; } + List annotatedElement { get; } /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -54,7 +54,7 @@ public partial interface IAnnotatingElement : IElement /// [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] - List Annotation { get; } + List annotation { get; } /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -63,7 +63,7 @@ public partial interface IAnnotatingElement : IElement [Property(xmiId: "_19_0_4_12e503d9_1703019570915_375100_18", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List OwnedAnnotatingRelationship { get; } + List ownedAnnotatingRelationship { get; } /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -71,7 +71,7 @@ public partial interface IAnnotatingElement : IElement [Property(xmiId: "_2022x_2_12e503d9_1735188506571_308678_376", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] - Guid? OwningAnnotatingRelationship { get; } + Guid? owningAnnotatingRelationship { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IAssociation.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IAssociation.cs index abbf321cd..eb072d324 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IAssociation.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IAssociation.cs @@ -48,7 +48,7 @@ public partial interface IAssociation : IClassifier, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1562477648742_24204_22901", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] - List AssociationEnd { get; } + List associationEnd { get; } /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -56,7 +56,7 @@ public partial interface IAssociation : IClassifier, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] - List RelatedType { get; } + List relatedType { get; } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -64,7 +64,7 @@ public partial interface IAssociation : IClassifier, IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594939013292_377668_3566", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - Guid? SourceType { get; } + Guid? sourceType { get; } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the @@ -73,7 +73,7 @@ public partial interface IAssociation : IClassifier, IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594939237325_861933_3707", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] - List TargetType { get; } + List targetType { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IElement.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IElement.cs index 21e592893..fe2792ccd 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IElement.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IElement.cs @@ -67,7 +67,7 @@ public partial interface IElement [Property(xmiId: "_19_0_2_12e503d9_1594150061166_345630_1621", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] - List Documentation { get; } + List documentation { get; } /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -90,7 +90,7 @@ public partial interface IElement /// Whether this Element is contained in the ownership tree of a library model. /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool IsLibraryElement { get; } + bool isLibraryElement { get; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -99,7 +99,7 @@ public partial interface IElement /// null. /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string Name { get; } + string name { get; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -108,14 +108,14 @@ public partial interface IElement [Property(xmiId: "_19_0_2_12e503d9_1594152527165_702130_2500", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] - List OwnedAnnotation { get; } + List ownedAnnotation { get; } /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of /// this Element. /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List OwnedElement { get; } + List ownedElement { get; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -129,7 +129,7 @@ public partial interface IElement /// Element, if any. /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? Owner { get; } + Guid? owner { get; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -137,7 +137,7 @@ public partial interface IElement [Property(xmiId: "_18_5_3_12e503d9_1533160674972_622493_43236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] - Guid? OwningMembership { get; } + Guid? owningMembership { get; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -145,7 +145,7 @@ public partial interface IElement /// [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] - Guid? OwningNamespace { get; } + Guid? owningNamespace { get; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -163,7 +163,7 @@ public partial interface IElement /// then the qualifiedName is null for all such Elements other than the first. /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string QualifiedName { get; } + string qualifiedName { get; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -172,7 +172,7 @@ public partial interface IElement /// when the declaredName is null. /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string ShortName { get; } + string shortName { get; } /// /// The TextualRepresentations that annotate this Element. @@ -180,7 +180,7 @@ public partial interface IElement [Property(xmiId: "_19_0_2_12e503d9_1594154758493_640290_3388", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] - List TextualRepresentation { get; } + List textualRepresentation { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IEnumerationDefinition.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IEnumerationDefinition.cs index 9d16308cd..d92a81487 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IEnumerationDefinition.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IEnumerationDefinition.cs @@ -46,7 +46,7 @@ public partial interface IEnumerationDefinition : IAttributeDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1606946634788_959145_265", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1590979457191_746167_951")] - List EnumeratedValue { get; } + List enumeratedValue { get; } /// /// An EnumerationDefinition is considered semantically to be a variation whose allowed variants are its diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFeature.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFeature.cs index 433c85ecb..3f881d40b 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFeature.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFeature.cs @@ -62,7 +62,7 @@ public partial interface IFeature : IType /// Feature in chainingFeatures, and so on, to values of the last Feature. /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - List ChainingFeature { get; } + List chainingFeature { get; } /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -71,7 +71,7 @@ public partial interface IFeature : IType /// owningType. /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? CrossFeature { get; } + Guid? crossFeature { get; } /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -87,13 +87,13 @@ public partial interface IFeature : IType [Property(xmiId: "_18_5_3_12e503d9_1563834516279_920295_20653", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] - Guid? EndOwningType { get; } + Guid? endOwningType { get; } /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid FeatureTarget { get; } + Guid featureTarget { get; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -102,7 +102,7 @@ public partial interface IFeature : IType /// featuringTypes of the chained Feature. /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List FeaturingType { get; } + List featuringType { get; } /// /// Whether the Feature is a composite feature of its featuringType. If so, the values of the Feature @@ -170,7 +170,7 @@ public partial interface IFeature : IType /// [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] - Guid? OwnedCrossSubsetting { get; } + Guid? ownedCrossSubsetting { get; } /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -179,7 +179,7 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_4_b9102da_1622125589880_791465_72", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] - List OwnedFeatureChaining { get; } + List ownedFeatureChaining { get; } /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -188,7 +188,7 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_4_b9102da_1653567738671_359235_43", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List OwnedFeatureInverting { get; } + List ownedFeatureInverting { get; } /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -196,7 +196,7 @@ public partial interface IFeature : IType /// [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] - List OwnedRedefinition { get; } + List ownedRedefinition { get; } /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -204,7 +204,7 @@ public partial interface IFeature : IType /// [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] - Guid? OwnedReferenceSubsetting { get; } + Guid? ownedReferenceSubsetting { get; } /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -213,7 +213,7 @@ public partial interface IFeature : IType [Property(xmiId: "_18_5_3_12e503d9_1533160674970_472382_43221", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] - List OwnedSubsetting { get; } + List ownedSubsetting { get; } /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -222,7 +222,7 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_4_12e503d9_1603905673975_310948_762", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List OwnedTypeFeaturing { get; } + List ownedTypeFeaturing { get; } /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -231,14 +231,14 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_2_12e503d9_1596597427751_965862_42", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] - List OwnedTyping { get; } + List ownedTyping { get; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] - Guid? OwningFeatureMembership { get; } + Guid? owningFeatureMembership { get; } /// /// The Type that is the owningType of the owningFeatureMembership of this Feature. @@ -247,7 +247,7 @@ public partial interface IFeature : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_297074_43308")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] - Guid? OwningType { get; } + Guid? owningType { get; } /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -256,7 +256,7 @@ public partial interface IFeature : IType /// Feature. /// [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; } + List type { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFeatureTyping.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFeatureTyping.cs index 9e28109f1..e4b3415fa 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFeatureTyping.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFeatureTyping.cs @@ -47,7 +47,7 @@ public partial interface IFeatureTyping : ISpecialization [Property(xmiId: "_19_0_2_12e503d9_1596597427753_801746_43", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_13273_21101")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] - Guid? OwningFeature { get; } + Guid? owningFeature { get; } /// /// The Type that is being applied by this FeatureTyping. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFlow.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFlow.cs index 89c96ccdb..eb6ba8ae2 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFlow.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFlow.cs @@ -46,7 +46,7 @@ public partial interface IFlow : IConnector, IStep /// [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] - List FlowEnd { get; } + List flowEnd { get; } /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -55,34 +55,34 @@ public partial interface IFlow : IConnector, IStep [Property(xmiId: "_19_0_4_12e503d9_1661900477937_518125_727", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] - List Interaction { get; } + List interaction { get; } /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). /// [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - Guid? PayloadFeature { get; } + Guid? payloadFeature { get; } /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - List PayloadType { get; } + List payloadType { get; } /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the /// Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - Guid? SourceOutputFeature { get; } + Guid? sourceOutputFeature { get; } /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the /// Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - Guid? TargetInputFeature { get; } + Guid? targetInputFeature { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFramedConcernMembership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFramedConcernMembership.cs index 499d79972..75b688619 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFramedConcernMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IFramedConcernMembership.cs @@ -52,7 +52,7 @@ public partial interface IFramedConcernMembership : IRequirementConstraintMember /// [Property(xmiId: "_19_0_4_12e503d9_1617120590170_490370_3748", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048366950_985767_426")] - Guid OwnedConcern { get; } + Guid ownedConcern { get; } /// /// The ConcernUsage that is referenced through this FramedConcernMembership. It is the @@ -61,7 +61,7 @@ public partial interface IFramedConcernMembership : IRequirementConstraintMember /// [Property(xmiId: "_19_0_4_12e503d9_1617120658044_92083_3773", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1617118807597_77864_3544")] - Guid ReferencedConcern { get; } + Guid referencedConcern { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IMembership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IMembership.cs index 245455b6b..cd31dbfc1 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IMembership.cs @@ -56,7 +56,7 @@ public partial interface IMembership : IRelationship /// The elementId of the memberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string MemberElementId { get; } + string memberElementId { get; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -71,7 +71,7 @@ public partial interface IMembership : IRelationship [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_531296_43182")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - Guid MembershipOwningNamespace { get; } + Guid membershipOwningNamespace { get; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IMultiplicityRange.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IMultiplicityRange.cs index 2369b4ee9..5db88b139 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IMultiplicityRange.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IMultiplicityRange.cs @@ -51,7 +51,7 @@ public partial interface IMultiplicityRange : IMultiplicity /// [Property(xmiId: "_19_0_2_12e503d9_1573095221994_519580_5095", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List Bound { get; } + List bound { get; } /// /// The Expression whose result provides the lower bound of the MultiplicityRange. If no lowerBound @@ -60,14 +60,14 @@ public partial interface IMultiplicityRange : IMultiplicity /// [Property(xmiId: "_19_0_2_12e503d9_1573094905677_801324_4744", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] - Guid? LowerBound { get; } + Guid? lowerBound { get; } /// /// The Expression whose result is the upper bound of the MultiplicityRange. /// [Property(xmiId: "_19_0_2_12e503d9_1573094947427_797440_4796", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] - Guid UpperBound { get; } + Guid upperBound { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IOwningMembership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IOwningMembership.cs index e30761a85..6246fae29 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IOwningMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IOwningMembership.cs @@ -46,28 +46,28 @@ public partial interface IOwningMembership : IMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674965_501750_43196", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_59873_43302")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] - Guid OwnedMemberElement { get; } + Guid ownedMemberElement { get; } /// /// The elementId of the ownedMemberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] - string OwnedMemberElementId { get; } + string ownedMemberElementId { get; } /// /// The name of the ownedMemberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] - string OwnedMemberName { get; } + string ownedMemberName { get; } /// /// The shortName of the ownedMemberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] - string OwnedMemberShortName { get; } + string ownedMemberShortName { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IReferenceSubsetting.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IReferenceSubsetting.cs index 6ba40eea4..9ecb44c5f 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IReferenceSubsetting.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IReferenceSubsetting.cs @@ -55,7 +55,7 @@ public partial interface IReferenceSubsetting : ISubsetting [Property(xmiId: "_19_0_4_12e503d9_1661555161575_539076_256", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_236250_43311")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] - Guid ReferencingFeature { get; } + Guid referencingFeature { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IRelationship.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IRelationship.cs index 0bb5f7491..e8d5a9ec2 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IRelationship.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IRelationship.cs @@ -74,7 +74,7 @@ public partial interface IRelationship : IElement /// Elements of the Relationship. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - List RelatedElement { get; } + List relatedElement { get; } /// /// The relatedElements from which this Relationship is considered to be directed. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IRequirementUsage.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IRequirementUsage.cs index adb01f7ca..d7ff1ae54 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IRequirementUsage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IRequirementUsage.cs @@ -46,7 +46,7 @@ public partial interface IRequirementUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1621564075474_350859_2735", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List ActorParameter { get; } + List actorParameter { get; } /// /// The owned ConstraintUsages that represent assumptions of this RequirementUsage, derived as the @@ -55,7 +55,7 @@ public partial interface IRequirementUsage : IConstraintUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List AssumedConstraint { get; } + List assumedConstraint { get; } /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -63,7 +63,7 @@ public partial interface IRequirementUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] - List FramedConcern { get; } + List framedConcern { get; } /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -81,14 +81,14 @@ public partial interface IRequirementUsage : IConstraintUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List RequiredConstraint { get; } + List requiredConstraint { get; } /// /// The RequirementDefinition that is the single definition of this RequirementUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1583000408905_769743_1223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] - Guid? RequirementDefinition { get; } + Guid? requirementDefinition { get; } /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -96,7 +96,7 @@ public partial interface IRequirementUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1624032823963_328647_40107", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List StakeholderParameter { get; } + List stakeholderParameter { get; } /// /// The parameter of this RequirementUsage that represents its subject. @@ -104,14 +104,14 @@ public partial interface IRequirementUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1595189397261_941898_844", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - Guid SubjectParameter { get; } + Guid subjectParameter { get; } /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from /// the bodies of the documentation of the RequirementUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List Text { get; } + List text { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ISubclassification.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ISubclassification.cs index a12b9bc45..aeb84941f 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ISubclassification.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ISubclassification.cs @@ -44,7 +44,7 @@ public partial interface ISubclassification : ISpecialization /// [Property(xmiId: "_18_5_3_12e503d9_1543189170642_857401_25506", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] - Guid? OwningClassifier { get; } + Guid? owningClassifier { get; } /// /// The more specific Classifier in this Subclassification. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ITextualRepresentation.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ITextualRepresentation.cs index 7e195a1c4..58e630bbd 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ITextualRepresentation.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ITextualRepresentation.cs @@ -78,7 +78,7 @@ public partial interface ITextualRepresentation : IAnnotatingElement [Property(xmiId: "_19_0_2_12e503d9_1594154758494_414887_3389", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_744477_17277")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594145755058_99428_86")] - Guid RepresentedElement { get; } + Guid representedElement { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IUsage.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IUsage.cs index 5fb28def1..8066841a3 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IUsage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IUsage.cs @@ -52,7 +52,7 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] - List Definition { get; } + List definition { get; } /// /// The usages of this Usage that are directedFeatures. @@ -60,13 +60,13 @@ public partial interface IUsage : IFeature [Property(xmiId: "_19_0_2_12e503d9_1591217699198_66279_508", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List DirectedUsage { get; } + List directedUsage { get; } /// /// Whether this Usage is a referential Usage, that is, it has isComposite = false. /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool IsReference { get; } + bool isReference { get; } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -85,56 +85,56 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] - bool MayTimeVary { get; } + bool mayTimeVary { get; } /// /// The ActionUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] - List NestedAction { get; } + List nestedAction { get; } /// /// The AllocationUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] - List NestedAllocation { get; } + List nestedAllocation { get; } /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] - List NestedAnalysisCase { get; } + List nestedAnalysisCase { get; } /// /// The code>AttributeUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List NestedAttribute { get; } + List nestedAttribute { get; } /// /// The CalculationUsage that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] - List NestedCalculation { get; } + List nestedCalculation { get; } /// /// The CaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] - List NestedCase { get; } + List nestedCase { get; } /// /// The ConcernUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] - List NestedConcern { get; } + List nestedConcern { get; } /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -143,105 +143,105 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List NestedConnection { get; } + List nestedConnection { get; } /// /// The ConstraintUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] - List NestedConstraint { get; } + List nestedConstraint { get; } /// /// The code>EnumerationUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] - List NestedEnumeration { get; } + List nestedEnumeration { get; } /// /// The code>FlowUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] - List NestedFlow { get; } + List nestedFlow { get; } /// /// The InterfaceUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] - List NestedInterface { get; } + List nestedInterface { get; } /// /// The ItemUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] - List NestedItem { get; } + List nestedItem { get; } /// /// The MetadataUsages that are nestedUsages of this of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] - List NestedMetadata { get; } + List nestedMetadata { get; } /// /// The OccurrenceUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List NestedOccurrence { get; } + List nestedOccurrence { get; } /// /// The PartUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] - List NestedPart { get; } + List nestedPart { get; } /// /// The PortUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List NestedPort { get; } + List nestedPort { get; } /// /// The ReferenceUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List NestedReference { get; } + List nestedReference { get; } /// /// The RenderingUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] - List NestedRendering { get; } + List nestedRendering { get; } /// /// The RequirementUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] - List NestedRequirement { get; } + List nestedRequirement { get; } /// /// The StateUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] - List NestedState { get; } + List nestedState { get; } /// /// The TransitionUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List NestedTransition { get; } + List nestedTransition { get; } /// /// The Usages that are ownedFeatures of this Usage. @@ -249,35 +249,35 @@ public partial interface IUsage : IFeature [Property(xmiId: "_18_5_3_12e503d9_1565472757327_162097_21259", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List NestedUsage { get; } + List nestedUsage { get; } /// /// The UseCaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] - List NestedUseCase { get; } + List nestedUseCase { get; } /// /// The VerificationCaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] - List NestedVerificationCase { get; } + List nestedVerificationCase { get; } /// /// The ViewUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] - List NestedView { get; } + List nestedView { get; } /// /// The ViewpointUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] - List NestedViewpoint { get; } + List nestedViewpoint { get; } /// /// The Definition that owns this Usage (if any). @@ -285,21 +285,21 @@ public partial interface IUsage : IFeature [Property(xmiId: "_18_5_3_12e503d9_1565479686638_420576_23237", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] - Guid? OwningDefinition { get; } + Guid? owningDefinition { get; } /// /// The Usage in which this Usage is nested (if any). /// [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] - Guid? OwningUsage { get; } + Guid? owningUsage { get; } /// /// The Usages that are features of this Usage (not necessarily owned). /// [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List Usage { get; } + List usage { get; } /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -307,7 +307,7 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List Variant { get; } + List variant { get; } /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -315,7 +315,7 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] - List VariantMembership { get; } + List variantMembership { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralInteger.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralInteger.cs index c0d913d3a..e6d4e5c36 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralInteger.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralInteger.cs @@ -60,7 +60,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -72,7 +72,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -82,7 +82,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -121,7 +121,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -138,7 +138,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -154,7 +154,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -164,7 +164,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -172,7 +172,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -181,14 +181,14 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -198,7 +198,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -206,7 +206,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -214,7 +214,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -222,7 +222,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -231,7 +231,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -239,7 +239,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -252,7 +252,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -276,7 +276,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -323,7 +323,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -331,7 +331,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -381,7 +381,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -389,7 +389,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -399,7 +399,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -409,7 +409,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -417,7 +417,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -427,7 +427,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -436,7 +436,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -445,7 +445,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -455,7 +455,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -465,7 +465,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -473,7 +473,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -482,7 +482,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -490,7 +490,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -500,7 +500,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -510,7 +510,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -520,7 +520,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -530,7 +530,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -539,7 +539,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -548,7 +548,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -559,7 +559,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -568,7 +568,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -577,7 +577,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -595,7 +595,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -605,7 +605,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -615,7 +615,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -625,7 +625,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -634,7 +634,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -642,7 +642,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -650,7 +650,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -659,7 +659,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -668,7 +668,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -686,7 +686,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -695,7 +695,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -707,7 +707,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -718,7 +718,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -728,7 +728,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -737,7 +737,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -747,7 +747,7 @@ public partial class LiteralInteger : ILiteralInteger /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -758,7 +758,7 @@ public partial class LiteralInteger : ILiteralInteger /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Integer value that is the result of evaluating this LiteralInteger. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralRational.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralRational.cs index 4075eb855..8bc176e61 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralRational.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralRational.cs @@ -60,7 +60,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -72,7 +72,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -82,7 +82,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -121,7 +121,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -138,7 +138,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -154,7 +154,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -164,7 +164,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -172,7 +172,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -181,14 +181,14 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -198,7 +198,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -206,7 +206,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -214,7 +214,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -222,7 +222,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -231,7 +231,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -239,7 +239,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -252,7 +252,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -276,7 +276,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -323,7 +323,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -331,7 +331,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -381,7 +381,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -389,7 +389,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -399,7 +399,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -409,7 +409,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -417,7 +417,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -427,7 +427,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -436,7 +436,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -445,7 +445,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -455,7 +455,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -465,7 +465,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -473,7 +473,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -482,7 +482,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -490,7 +490,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -500,7 +500,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -510,7 +510,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -520,7 +520,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -530,7 +530,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -539,7 +539,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -548,7 +548,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -559,7 +559,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -568,7 +568,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -577,7 +577,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -595,7 +595,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -605,7 +605,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -615,7 +615,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -625,7 +625,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -634,7 +634,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -642,7 +642,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -650,7 +650,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -659,7 +659,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -668,7 +668,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -686,7 +686,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -695,7 +695,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -707,7 +707,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -718,7 +718,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -728,7 +728,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -737,7 +737,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -747,7 +747,7 @@ public partial class LiteralRational : ILiteralRational /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -758,7 +758,7 @@ public partial class LiteralRational : ILiteralRational /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The value whose rational approximation is the result of evaluating this LiteralRational. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Membership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Membership.cs index 00ae96f60..9288ceee3 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Membership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Membership.cs @@ -83,7 +83,7 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -117,7 +117,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -132,7 +132,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -149,7 +149,7 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -166,7 +166,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -176,7 +176,7 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -184,7 +184,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -208,7 +208,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -217,7 +217,7 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -226,7 +226,7 @@ public partial class Membership : IMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -254,7 +254,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -262,7 +262,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -272,7 +272,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -299,7 +299,7 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -307,7 +307,7 @@ public partial class Membership : IMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/MultiplicityRange.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/MultiplicityRange.cs index 0dc21051a..3c07b9a23 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/MultiplicityRange.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/MultiplicityRange.cs @@ -66,7 +66,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_2_12e503d9_1573095221994_519580_5095", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IMultiplicityRange.Bound")] - public List Bound { get; internal set; } + public List bound { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -78,7 +78,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -88,7 +88,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -118,7 +118,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -126,7 +126,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -143,7 +143,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -159,7 +159,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -169,7 +169,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -177,7 +177,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -186,14 +186,14 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -203,7 +203,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -211,7 +211,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -219,7 +219,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -228,7 +228,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -236,7 +236,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -249,7 +249,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -273,7 +273,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -320,7 +320,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -372,7 +372,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_2_12e503d9_1573094905677_801324_4744", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] [Implements(implementation: "IMultiplicityRange.LowerBound")] - public Guid? LowerBound { get; internal set; } + public Guid? lowerBound { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -380,7 +380,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -388,7 +388,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -398,7 +398,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -408,7 +408,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -416,7 +416,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -426,7 +426,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -435,7 +435,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -444,7 +444,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -454,7 +454,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -464,7 +464,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -472,7 +472,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -481,7 +481,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -489,7 +489,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -499,7 +499,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -509,7 +509,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -519,7 +519,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -529,7 +529,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -538,7 +538,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -547,7 +547,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -558,7 +558,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -567,7 +567,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -576,7 +576,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -594,7 +594,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -604,7 +604,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -614,7 +614,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -624,7 +624,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -633,7 +633,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -641,7 +641,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -649,7 +649,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -658,7 +658,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -667,7 +667,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -685,7 +685,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -697,7 +697,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -707,7 +707,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -716,7 +716,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -726,7 +726,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -737,7 +737,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Expression whose result is the upper bound of the MultiplicityRange. @@ -745,7 +745,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_2_12e503d9_1573094947427_797440_4796", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] [Implements(implementation: "IMultiplicityRange.UpperBound")] - public Guid UpperBound { get; internal set; } + public Guid upperBound { get; internal set; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/OwningMembership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/OwningMembership.cs index 222dfc6f9..520c74430 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/OwningMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/OwningMembership.cs @@ -77,7 +77,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -111,7 +111,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -128,7 +128,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -146,7 +146,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -164,7 +164,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -174,7 +174,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -182,7 +182,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -192,7 +192,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_59873_43302")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -200,7 +200,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The name of the ownedMemberElement. @@ -208,7 +208,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -216,7 +216,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -240,7 +240,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -249,7 +249,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - Guid? Root.Elements.IElement.OwningMembership { get; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -258,7 +258,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -286,7 +286,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -294,7 +294,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -304,7 +304,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -331,7 +331,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -339,7 +339,7 @@ public partial class OwningMembership : IOwningMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ReferenceSubsetting.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ReferenceSubsetting.cs index 971a426ae..64523e472 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ReferenceSubsetting.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ReferenceSubsetting.cs @@ -80,7 +80,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -123,7 +123,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -133,7 +133,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -143,7 +143,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -151,7 +151,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -175,7 +175,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// A subsettingFeature that is also the owningRelatedElement of this Subsetting. @@ -185,7 +185,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [RedefinedByProperty("IReferenceSubsetting.ReferencingFeature")] [Implements(implementation: "ISubsetting.OwningFeature")] - public Guid? OwningFeature { get; internal set; } + public Guid? owningFeature { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -194,7 +194,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -203,7 +203,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -229,7 +229,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -241,7 +241,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Feature that is referenced by the referencingFeature of this ReferenceSubsetting. @@ -258,7 +258,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_236250_43311")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] [Implements(implementation: "IReferenceSubsetting.ReferencingFeature")] - public Guid ReferencingFeature { get; internal set; } + public Guid referencingFeature { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -266,7 +266,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -276,7 +276,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -330,7 +330,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/RequirementUsage.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/RequirementUsage.cs index 12ac3b39f..f1c917183 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/RequirementUsage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/RequirementUsage.cs @@ -54,7 +54,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -71,7 +71,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.AssumedConstraint")] - public List AssumedConstraint { get; internal set; } + public List assumedConstraint { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -80,7 +80,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -92,7 +92,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -103,7 +103,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public Guid? ConstraintDefinition { get; internal set; } + public Guid? constraintDefinition { get; internal set; } /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -113,7 +113,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -142,7 +142,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -155,7 +155,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -164,7 +164,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -173,7 +173,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -190,7 +190,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -206,7 +206,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -216,7 +216,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -224,7 +224,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -233,14 +233,14 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -250,7 +250,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -259,7 +259,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] [Implements(implementation: "IRequirementUsage.FramedConcern")] - public List FramedConcern { get; internal set; } + public List framedConcern { get; internal set; } = []; /// /// The Function that types this Expression. @@ -268,7 +268,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -276,7 +276,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -284,7 +284,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -292,7 +292,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -301,7 +301,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -309,7 +309,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -322,7 +322,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -346,7 +346,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -401,7 +401,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -409,7 +409,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -431,7 +431,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -480,7 +480,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -488,7 +488,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -496,7 +496,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -506,7 +506,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -516,7 +516,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -524,7 +524,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -532,7 +532,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -540,7 +540,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -548,7 +548,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -556,7 +556,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -564,7 +564,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -572,7 +572,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -582,7 +582,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -590,7 +590,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -598,7 +598,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -606,7 +606,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -614,7 +614,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -622,7 +622,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -630,7 +630,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -638,7 +638,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -646,7 +646,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -654,7 +654,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -662,7 +662,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -670,7 +670,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -678,7 +678,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -686,7 +686,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -694,7 +694,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -703,7 +703,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -711,7 +711,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -719,7 +719,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -727,7 +727,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -735,7 +735,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -745,7 +745,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -753,7 +753,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -763,7 +763,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -772,7 +772,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -781,7 +781,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -791,7 +791,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -801,7 +801,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -809,7 +809,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -818,7 +818,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -826,7 +826,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -836,7 +836,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -846,7 +846,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -856,7 +856,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -866,7 +866,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -875,7 +875,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -884,7 +884,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -895,7 +895,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -904,7 +904,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -913,7 +913,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -931,7 +931,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -941,7 +941,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -951,7 +951,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -961,7 +961,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -970,7 +970,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -978,7 +978,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -987,7 +987,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -995,7 +995,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1004,7 +1004,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1013,7 +1013,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1031,7 +1031,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1039,7 +1039,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1048,7 +1048,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1066,7 +1066,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? Predicate { get; internal set; } + public Guid? predicate { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1078,7 +1078,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -1098,7 +1098,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.RequiredConstraint")] - public List RequiredConstraint { get; internal set; } + public List requiredConstraint { get; internal set; } = []; /// /// The RequirementDefinition that is the single definition of this RequirementUsage. @@ -1106,7 +1106,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1583000408905_769743_1223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public Guid? RequirementDefinition { get; internal set; } + public Guid? requirementDefinition { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1117,7 +1117,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1127,7 +1127,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -1136,7 +1136,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.StakeholderParameter")] - public List StakeholderParameter { get; internal set; } + public List stakeholderParameter { get; internal set; } = []; /// /// The parameter of this RequirementUsage that represents its subject. @@ -1145,7 +1145,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from @@ -1153,7 +1153,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementUsage.Text")] - public List Text { get; internal set; } + public List text { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -1162,7 +1162,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1173,7 +1173,7 @@ public partial class RequirementUsage : IRequirementUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1184,7 +1184,7 @@ public partial class RequirementUsage : IRequirementUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1192,7 +1192,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1201,7 +1201,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1210,7 +1210,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/SelectExpression.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/SelectExpression.cs index c3ed29200..b4f157d68 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/SelectExpression.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/SelectExpression.cs @@ -61,7 +61,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List Argument { get; internal set; } + public List argument { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -70,7 +70,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,7 +82,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -92,7 +92,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -122,7 +122,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -131,7 +131,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -148,7 +148,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -164,7 +164,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -174,7 +174,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -182,7 +182,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -191,14 +191,14 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -208,7 +208,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -216,7 +216,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -224,7 +224,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -232,7 +232,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -241,7 +241,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -249,7 +249,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Type that is being instantiated. @@ -257,7 +257,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public Guid InstantiatedType { get; internal set; } + public Guid instantiatedType { get; internal set; } /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -270,7 +270,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -294,7 +294,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -341,7 +341,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -349,7 +349,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -399,7 +399,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -407,7 +407,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -417,7 +417,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -427,14 +427,14 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// [Property(xmiId: "_18_5_3_12e503d9_1559596728932_861031_29126", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "select")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528808100_646606_111674")] [Implements(implementation: "ISelectExpression.Operator")] - string ISelectExpression.Operator { get; set; } = "select"; + public string Operator { get; set; } = "select"; /// /// An operator symbol that names a corresponding Function from one of the standard packages from the @@ -451,7 +451,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -461,7 +461,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -470,7 +470,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -479,7 +479,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -489,7 +489,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -499,7 +499,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -507,7 +507,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -516,7 +516,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -524,7 +524,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -534,7 +534,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -544,7 +544,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -554,7 +554,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -564,7 +564,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -573,7 +573,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -582,7 +582,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -593,7 +593,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -602,7 +602,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -611,7 +611,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -629,7 +629,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -639,7 +639,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -649,7 +649,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -659,7 +659,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -668,7 +668,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -676,7 +676,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -684,7 +684,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -693,7 +693,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -702,7 +702,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -720,7 +720,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -729,7 +729,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -741,7 +741,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -752,7 +752,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -762,7 +762,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -771,7 +771,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -781,7 +781,7 @@ public partial class SelectExpression : ISelectExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -792,7 +792,7 @@ public partial class SelectExpression : ISelectExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Subclassification.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Subclassification.cs index 4edc024e8..e27b70961 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Subclassification.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Subclassification.cs @@ -77,7 +77,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -120,7 +120,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -130,7 +130,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -140,7 +140,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -148,7 +148,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -172,7 +172,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Classifier that owns this Subclassification relationship, which must also be its subclassifier. @@ -180,7 +180,7 @@ public partial class Subclassification : ISubclassification [Property(xmiId: "_18_5_3_12e503d9_1543189170642_857401_25506", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "ISubclassification.OwningClassifier")] - public Guid? OwningClassifier { get; internal set; } + public Guid? owningClassifier { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -189,7 +189,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -198,7 +198,7 @@ public partial class Subclassification : ISubclassification [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -224,7 +224,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubclassification.OwningClassifier")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -236,7 +236,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -244,7 +244,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -254,7 +254,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -306,7 +306,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/TextualRepresentation.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/TextualRepresentation.cs index 8073399e8..eea9fb431 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/TextualRepresentation.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/TextualRepresentation.cs @@ -82,7 +82,7 @@ public partial class TextualRepresentation : ITextualRepresentation [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("ITextualRepresentation.RepresentedElement")] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List AnnotatedElement { get; internal set; } + public List annotatedElement { get; internal set; } = []; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -91,7 +91,7 @@ public partial class TextualRepresentation : ITextualRepresentation [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List Annotation { get; internal set; } + public List annotation { get; internal set; } = []; /// /// The textual representation of the representedElement in the given language. @@ -124,7 +124,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -150,7 +150,7 @@ public partial class TextualRepresentation : ITextualRepresentation /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The natural or artifical language in which the body text is written. @@ -167,7 +167,7 @@ public partial class TextualRepresentation : ITextualRepresentation /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -177,7 +177,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List OwnedAnnotatingRelationship { get; internal set; } + public List ownedAnnotatingRelationship { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -187,7 +187,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -195,7 +195,7 @@ public partial class TextualRepresentation : ITextualRepresentation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -211,7 +211,7 @@ public partial class TextualRepresentation : ITextualRepresentation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -220,7 +220,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public Guid? OwningAnnotatingRelationship { get; internal set; } + public Guid? owningAnnotatingRelationship { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -229,7 +229,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -238,7 +238,7 @@ public partial class TextualRepresentation : ITextualRepresentation [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -258,7 +258,7 @@ public partial class TextualRepresentation : ITextualRepresentation /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Element that is represented by this TextualRepresentation. @@ -267,7 +267,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_744477_17277")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594145755058_99428_86")] [Implements(implementation: "ITextualRepresentation.RepresentedElement")] - public Guid RepresentedElement { get; internal set; } + public Guid representedElement { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -277,7 +277,7 @@ public partial class TextualRepresentation : ITextualRepresentation /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -286,7 +286,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - List Root.Elements.IElement.TextualRepresentation { get; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Usage.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Usage.cs index fcc31f1de..2fe52c1c0 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Usage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Usage.cs @@ -69,7 +69,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -79,7 +79,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -106,7 +106,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -119,7 +119,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -127,7 +127,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -136,7 +136,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -153,7 +153,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -169,7 +169,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -179,7 +179,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -187,7 +187,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -196,14 +196,14 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -213,7 +213,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -221,7 +221,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -229,7 +229,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -238,7 +238,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -246,7 +246,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -259,7 +259,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -283,7 +283,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -330,7 +330,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -352,7 +352,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -401,7 +401,7 @@ public partial class Usage : IUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -409,7 +409,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -417,7 +417,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -427,7 +427,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -437,7 +437,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -445,7 +445,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -453,7 +453,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -461,7 +461,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -469,7 +469,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -477,7 +477,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -485,7 +485,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -493,7 +493,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -503,7 +503,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -511,7 +511,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -519,7 +519,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -527,7 +527,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -535,7 +535,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -543,7 +543,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -551,7 +551,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -559,7 +559,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -567,7 +567,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -575,7 +575,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -583,7 +583,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -591,7 +591,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -599,7 +599,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -607,7 +607,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -615,7 +615,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -624,7 +624,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -632,7 +632,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -640,7 +640,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -648,7 +648,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -656,7 +656,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -664,7 +664,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -674,7 +674,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -683,7 +683,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -692,7 +692,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -702,7 +702,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -712,7 +712,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -720,7 +720,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -729,7 +729,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -737,7 +737,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -747,7 +747,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -757,7 +757,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -767,7 +767,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -777,7 +777,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -786,7 +786,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -795,7 +795,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -806,7 +806,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -815,7 +815,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -824,7 +824,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -842,7 +842,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -852,7 +852,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -862,7 +862,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -872,7 +872,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -881,7 +881,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -889,7 +889,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -898,7 +898,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -906,7 +906,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -915,7 +915,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -924,7 +924,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -942,7 +942,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -950,7 +950,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -962,7 +962,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -972,7 +972,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -981,7 +981,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -992,7 +992,7 @@ public partial class Usage : IUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1003,7 +1003,7 @@ public partial class Usage : IUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1011,7 +1011,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - List IUsage.Usage { get; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1020,7 +1020,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1029,7 +1029,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } 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 be4660ab2..163d17d5a 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/AnnotatingElement.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/AnnotatingElement.cs @@ -62,10 +62,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List QueryAnnotatedElement() - { - return this.ComputeAnnotatedElement(); - } + public List annotatedElement => this.ComputeAnnotatedElement(); /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -74,10 +71,7 @@ public List QueryAnnotatedElement() [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List QueryAnnotation() - { - return this.ComputeAnnotation(); - } + public List annotation => this.ComputeAnnotation(); /// /// The declared name of this Element. @@ -103,10 +97,7 @@ public List QueryAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -132,10 +123,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -145,10 +133,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -158,10 +143,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List QueryOwnedAnnotatingRelationship() - { - return this.ComputeOwnedAnnotatingRelationship(); - } + public List ownedAnnotatingRelationship => this.ComputeOwnedAnnotatingRelationship(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -171,10 +153,7 @@ public List QueryOwnedAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -182,10 +161,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -201,10 +177,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -213,10 +186,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public IAnnotation QueryOwningAnnotatingRelationship() - { - return this.ComputeOwningAnnotatingRelationship(); - } + public IAnnotation owningAnnotatingRelationship => this.ComputeOwningAnnotatingRelationship(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -225,10 +195,7 @@ public IAnnotation QueryOwningAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -237,10 +204,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -260,10 +224,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -273,10 +234,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -285,10 +243,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } 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 bb67bd860..afc565084 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Association.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Association.cs @@ -67,10 +67,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1562477648742_24204_22901", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List QueryAssociationEnd() - { - return this.ComputeAssociationEnd(); - } + public List associationEnd => this.ComputeAssociationEnd(); /// /// The declared name of this Element. @@ -100,10 +97,7 @@ public List QueryAssociationEnd() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -111,10 +105,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The Documentation owned by this Element. @@ -123,10 +114,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -143,10 +131,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -154,10 +139,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -166,10 +148,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -177,10 +156,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -188,10 +164,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -200,10 +173,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -211,10 +181,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -227,10 +194,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -245,10 +209,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -274,10 +235,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -297,10 +255,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -308,10 +263,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -321,10 +273,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -334,10 +283,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -345,10 +291,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -358,10 +301,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -370,10 +310,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -383,10 +320,7 @@ public IConjugation QueryOwnedConjugator() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -396,10 +330,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -407,10 +338,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -419,10 +347,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -430,10 +355,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -443,10 +365,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -456,10 +375,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -468,10 +384,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -480,10 +393,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -494,10 +404,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -523,10 +430,7 @@ public List QueryOwnedMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -535,10 +439,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -547,10 +448,7 @@ public List QueryOwnedSubclassification() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -558,10 +456,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -570,10 +465,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -582,10 +474,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -613,10 +502,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -625,10 +511,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -637,10 +520,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List QueryRelatedType() - { - return this.ComputeRelatedType(); - } + public List relatedType => this.ComputeRelatedType(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -650,10 +530,7 @@ public List QueryRelatedType() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -671,10 +548,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public IType QuerySourceType() - { - return this.ComputeSourceType(); - } + public IType sourceType => this.ComputeSourceType(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -693,10 +567,7 @@ public IType QuerySourceType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List QueryTargetType() - { - return this.ComputeTargetType(); - } + public List targetType => this.ComputeTargetType(); /// /// The TextualRepresentations that annotate this Element. @@ -705,10 +576,7 @@ public List QueryTargetType() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -719,10 +587,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } 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 1f4763f88..006059c19 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Dependency.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Dependency.cs @@ -89,10 +89,7 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -126,10 +123,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -139,10 +133,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -152,10 +143,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -163,10 +151,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -190,10 +175,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -202,10 +184,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -214,10 +193,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -245,10 +221,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -256,10 +229,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -269,10 +239,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -307,10 +274,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } 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 87d8a66d1..31cd19d13 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/EnumerationDefinition.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/EnumerationDefinition.cs @@ -108,10 +108,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -119,10 +116,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -131,10 +125,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -143,10 +134,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -162,10 +150,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// EnumerationUsages of this EnumerationDefinitionthat have distinct, fixed values. Each @@ -174,10 +159,7 @@ public List QueryEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946634788_959145_265", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1590979457191_746167_951")] [Implements(implementation: "IEnumerationDefinition.EnumeratedValue")] - public List QueryEnumeratedValue() - { - return this.ComputeEnumeratedValue(); - } + public List enumeratedValue => this.ComputeEnumeratedValue(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -185,10 +167,7 @@ public List QueryEnumeratedValue() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -197,10 +176,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -208,10 +184,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -219,10 +192,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -231,10 +201,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -242,10 +209,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -258,10 +222,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -276,10 +237,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -297,10 +255,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -321,7 +276,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1606946783667_895456_287", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1590978283180_265362_419")] [Implements(implementation: "IEnumerationDefinition.IsVariation")] - bool IEnumerationDefinition.IsVariation { get; set; } + public bool IsVariation { get; set; } = true; /// /// Whether this Definition is for a variation point or not. If true, then all the memberships of the @@ -338,10 +293,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -349,10 +301,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -362,10 +311,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -375,10 +321,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -386,10 +329,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -397,10 +337,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -408,10 +345,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -419,10 +353,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -432,10 +363,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -443,10 +371,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -454,10 +379,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -465,10 +387,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -476,10 +395,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -488,10 +404,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -501,10 +414,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -512,10 +422,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -525,10 +432,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -538,10 +442,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -549,10 +450,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -561,10 +459,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -572,10 +467,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -583,10 +475,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -596,10 +485,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -607,10 +493,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -620,10 +503,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -631,10 +511,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -643,10 +520,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -654,10 +528,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -666,10 +537,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -680,10 +548,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -691,10 +556,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -702,10 +564,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -713,10 +572,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -724,10 +580,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -735,10 +588,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -754,10 +604,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -765,10 +612,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -778,10 +622,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -789,10 +630,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -801,10 +639,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -812,10 +647,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -824,10 +656,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -836,10 +665,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -847,10 +673,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -858,10 +681,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -869,10 +689,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -880,10 +697,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -891,10 +705,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -903,10 +714,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -915,10 +723,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -938,10 +743,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -951,10 +753,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -963,10 +762,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -977,10 +773,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -988,10 +781,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1001,10 +791,7 @@ public List QueryUsage() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [RedefinedByProperty("IEnumerationDefinition.EnumeratedValue")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1014,10 +801,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } 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 79150ccbf..4129388e7 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Feature.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Feature.cs @@ -80,10 +80,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -93,10 +90,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -126,10 +120,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -137,10 +128,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -157,10 +145,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -176,10 +161,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -189,10 +171,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -200,10 +179,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -212,20 +188,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -235,10 +205,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -246,10 +213,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -257,10 +221,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -269,10 +230,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -280,10 +238,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -296,10 +251,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -323,10 +275,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -373,10 +322,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -410,7 +356,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -426,10 +372,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -437,10 +380,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -450,10 +390,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -463,10 +400,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -474,10 +408,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -487,10 +418,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -499,10 +427,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -511,10 +436,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -524,10 +446,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -537,10 +456,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -548,10 +464,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -560,10 +473,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -571,10 +481,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -584,10 +491,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -597,10 +501,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -610,10 +511,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -623,10 +521,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -635,10 +530,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -647,10 +539,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -661,10 +550,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -673,10 +559,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -685,10 +568,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -706,10 +586,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -719,10 +596,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -732,10 +606,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -745,10 +616,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -757,10 +625,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -768,10 +633,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -779,10 +641,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -791,10 +650,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -803,10 +659,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -824,10 +677,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -839,10 +689,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -852,10 +699,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -864,10 +708,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -877,10 +718,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -891,10 +729,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } 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 1c7fd2e96..cc0299823 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FeatureTyping.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FeatureTyping.cs @@ -82,10 +82,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -128,10 +125,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -141,10 +135,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -154,10 +145,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -165,10 +153,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -192,10 +177,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// A typedFeature that is also the owningRelatedElement of this FeatureTyping. @@ -204,10 +186,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_13273_21101")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "IFeatureTyping.OwningFeature")] - public IFeature QueryOwningFeature() - { - return this.ComputeOwningFeature(); - } + public IFeature owningFeature => this.ComputeOwningFeature(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -216,10 +195,7 @@ public IFeature QueryOwningFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -228,10 +204,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -257,10 +230,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IFeatureTyping.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -272,10 +242,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -283,10 +250,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -296,10 +260,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -335,10 +296,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The Type that is being applied by this FeatureTyping. 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 cb201d757..80a56b088 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Flow.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Flow.cs @@ -69,10 +69,7 @@ public partial class Flow : IFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Behaviors that type this Step. @@ -81,10 +78,7 @@ public List QueryAssociation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -96,10 +90,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -109,10 +100,7 @@ public List QueryChainingFeature() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -122,10 +110,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -151,10 +136,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -167,10 +149,7 @@ public IType QueryDefaultFeaturingType() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -179,10 +158,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -199,10 +175,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -219,10 +192,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -232,10 +202,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -243,10 +210,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -255,20 +219,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -278,10 +236,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The connectorEnds of this Flow that are FlowEnds. @@ -289,10 +244,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] [Implements(implementation: "IFlow.FlowEnd")] - public List QueryFlowEnd() - { - return this.ComputeFlowEnd(); - } + public List flowEnd => this.ComputeFlowEnd(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -300,10 +252,7 @@ public List QueryFlowEnd() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -311,10 +260,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -323,10 +269,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -334,10 +277,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -347,10 +287,7 @@ public List QueryInput() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IFlow.Interaction")] - public List QueryInteraction() - { - return this.ComputeInteraction(); - } + public List interaction => this.ComputeInteraction(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -363,10 +300,7 @@ public List QueryInteraction() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -390,10 +324,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -448,10 +379,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -485,7 +413,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -501,10 +429,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -512,10 +437,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -525,10 +447,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -538,10 +457,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -549,10 +465,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -562,10 +475,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -574,10 +484,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -586,10 +493,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -599,10 +503,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -612,10 +513,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -623,10 +521,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -635,10 +530,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -646,10 +538,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -659,10 +548,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -672,10 +558,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -685,10 +568,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -698,10 +578,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -710,10 +587,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -722,10 +596,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -736,10 +607,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -748,10 +616,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -760,10 +625,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -789,10 +651,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -802,10 +661,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -815,10 +671,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -828,10 +681,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -840,10 +690,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -851,10 +698,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -862,10 +706,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -874,10 +715,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -886,10 +724,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -915,10 +750,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -927,10 +759,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). @@ -938,20 +767,14 @@ public List QueryParameter() [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IFlow.PayloadFeature")] - public IPayloadFeature QueryPayloadFeature() - { - return this.ComputePayloadFeature(); - } + public IPayloadFeature payloadFeature => this.ComputePayloadFeature(); /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.PayloadType")] - public List QueryPayloadType() - { - return this.ComputePayloadType(); - } + public List payloadType => this.ComputePayloadType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -963,10 +786,7 @@ public List QueryPayloadType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -975,10 +795,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -987,10 +804,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1000,10 +814,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1021,10 +832,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the @@ -1032,10 +840,7 @@ public IFeature QuerySourceFeature() /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.SourceOutputFeature")] - public IFeature QuerySourceOutputFeature() - { - return this.ComputeSourceOutputFeature(); - } + public IFeature sourceOutputFeature => this.ComputeSourceOutputFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1054,10 +859,7 @@ public IFeature QuerySourceOutputFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the @@ -1065,10 +867,7 @@ public List QueryTargetFeature() /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.TargetInputFeature")] - public IFeature QueryTargetInputFeature() - { - return this.ComputeTargetInputFeature(); - } + public IFeature targetInputFeature => this.ComputeTargetInputFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -1077,10 +876,7 @@ public IFeature QueryTargetInputFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1091,10 +887,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1105,10 +898,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } 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 9e725183e..e3e9b0adb 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FramedConcernMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FramedConcernMembership.cs @@ -84,10 +84,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -121,10 +118,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The kind of an FramedConcernMembership must be requirement. @@ -132,7 +126,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1617120451812_644221_3690", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "requirement")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048161309_821854_390")] [Implements(implementation: "IFramedConcernMembership.Kind")] - RequirementConstraintKind IFramedConcernMembership.Kind { get; set; } + public RequirementConstraintKind Kind { get; set; } = RequirementConstraintKind.Requirement; /// /// Whether the RequirementConstraintMembership is for an assumed or required ConstraintUsage. @@ -157,10 +151,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -179,10 +170,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -200,10 +188,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -213,10 +198,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The ConcernUsage that is the ownedConstraint of this FramedConcernMembership. @@ -224,10 +206,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_4_12e503d9_1617120590170_490370_3748", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048366950_985767_426")] [Implements(implementation: "IFramedConcernMembership.OwnedConcern")] - public IConcernUsage QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public IConcernUsage ownedConcern => this.ComputeOwnedConcern(); /// /// The ConstraintUsage that is the ownedMemberFeature of this RequirementConstraintMembership. @@ -236,10 +215,7 @@ public IConcernUsage QueryOwnedConcern() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IFramedConcernMembership.OwnedConcern")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public IConstraintUsage QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public IConstraintUsage ownedConstraint => this.ComputeOwnedConstraint(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -247,10 +223,7 @@ public IConstraintUsage QueryOwnedConstraint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -261,10 +234,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -272,10 +242,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -285,10 +252,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -296,10 +260,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -307,10 +268,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -334,10 +292,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -346,10 +301,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -358,10 +310,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -386,10 +335,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -401,10 +347,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The ConcernUsage that is referenced through this FramedConcernMembership. It is the @@ -414,10 +357,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_4_12e503d9_1617120658044_92083_3773", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1617118807597_77864_3544")] [Implements(implementation: "IFramedConcernMembership.ReferencedConcern")] - public IConcernUsage QueryReferencedConcern() - { - return this.ComputeReferencedConcern(); - } + public IConcernUsage referencedConcern => this.ComputeReferencedConcern(); /// /// The ConstraintUsage that is referenced through this RequirementConstraintMembership. It is the @@ -427,10 +367,7 @@ public IConcernUsage QueryReferencedConcern() [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IFramedConcernMembership.ReferencedConcern")] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public IConstraintUsage QueryReferencedConstraint() - { - return this.ComputeReferencedConstraint(); - } + public IConstraintUsage referencedConstraint => this.ComputeReferencedConstraint(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -438,10 +375,7 @@ public IConstraintUsage QueryReferencedConstraint() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -451,10 +385,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -481,10 +412,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -492,7 +420,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IAnnotatingElement.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IAnnotatingElement.cs index e6b8df171..92e9d897b 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IAnnotatingElement.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IAnnotatingElement.cs @@ -47,7 +47,7 @@ public partial interface IAnnotatingElement : IElement /// AnnotatingElement. /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryAnnotatedElement(); + List annotatedElement { get; } /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -55,7 +55,7 @@ public partial interface IAnnotatingElement : IElement /// [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] - List QueryAnnotation(); + List annotation { get; } /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -64,7 +64,7 @@ public partial interface IAnnotatingElement : IElement [Property(xmiId: "_19_0_4_12e503d9_1703019570915_375100_18", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List QueryOwnedAnnotatingRelationship(); + List ownedAnnotatingRelationship { get; } /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -72,7 +72,7 @@ public partial interface IAnnotatingElement : IElement [Property(xmiId: "_2022x_2_12e503d9_1735188506571_308678_376", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] - IAnnotation QueryOwningAnnotatingRelationship(); + IAnnotation owningAnnotatingRelationship { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IAssociation.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IAssociation.cs index 10049504f..7c99bafc9 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IAssociation.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IAssociation.cs @@ -52,7 +52,7 @@ public partial interface IAssociation : IClassifier, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1562477648742_24204_22901", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] - List QueryAssociationEnd(); + List associationEnd { get; } /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -60,7 +60,7 @@ public partial interface IAssociation : IClassifier, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] - List QueryRelatedType(); + List relatedType { get; } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -68,7 +68,7 @@ public partial interface IAssociation : IClassifier, IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594939013292_377668_3566", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - IType QuerySourceType(); + IType sourceType { get; } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the @@ -77,7 +77,7 @@ public partial interface IAssociation : IClassifier, IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594939237325_861933_3707", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] - List QueryTargetType(); + List targetType { get; } } } 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 2d09a488b..f9db6f505 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IElement.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IElement.cs @@ -69,7 +69,7 @@ public partial interface IElement [Property(xmiId: "_19_0_2_12e503d9_1594150061166_345630_1621", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] - List QueryDocumentation(); + List documentation { get; } /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -92,7 +92,7 @@ public partial interface IElement /// Whether this Element is contained in the ownership tree of a library model. /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool QueryIsLibraryElement(); + bool isLibraryElement { get; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -101,7 +101,7 @@ public partial interface IElement /// null. /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string QueryName(); + string name { get; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -110,14 +110,14 @@ public partial interface IElement [Property(xmiId: "_19_0_2_12e503d9_1594152527165_702130_2500", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] - List QueryOwnedAnnotation(); + List ownedAnnotation { get; } /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of /// this Element. /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryOwnedElement(); + List ownedElement { get; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -131,7 +131,7 @@ public partial interface IElement /// Element, if any. /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IElement QueryOwner(); + IElement owner { get; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -139,7 +139,7 @@ public partial interface IElement [Property(xmiId: "_18_5_3_12e503d9_1533160674972_622493_43236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] - IOwningMembership QueryOwningMembership(); + IOwningMembership owningMembership { get; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -147,7 +147,7 @@ public partial interface IElement /// [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] - INamespace QueryOwningNamespace(); + INamespace owningNamespace { get; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -165,7 +165,7 @@ public partial interface IElement /// then the qualifiedName is null for all such Elements other than the first. /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string QueryQualifiedName(); + string qualifiedName { get; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -174,7 +174,7 @@ public partial interface IElement /// when the declaredName is null. /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string QueryShortName(); + string shortName { get; } /// /// The TextualRepresentations that annotate this Element. @@ -182,7 +182,7 @@ public partial interface IElement [Property(xmiId: "_19_0_2_12e503d9_1594154758493_640290_3388", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] - List QueryTextualRepresentation(); + List textualRepresentation { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IEnumerationDefinition.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IEnumerationDefinition.cs index ebf068305..20c553993 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IEnumerationDefinition.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IEnumerationDefinition.cs @@ -72,7 +72,7 @@ public partial interface IEnumerationDefinition : IAttributeDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1606946634788_959145_265", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1590979457191_746167_951")] - List QueryEnumeratedValue(); + List enumeratedValue { get; } /// /// An EnumerationDefinition is considered semantically to be a variation whose allowed variants are its 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 623335fe4..1f2b35be7 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFeature.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFeature.cs @@ -65,7 +65,7 @@ public partial interface IFeature : IType /// Feature in chainingFeatures, and so on, to values of the last Feature. /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - List QueryChainingFeature(); + List chainingFeature { get; } /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -74,7 +74,7 @@ public partial interface IFeature : IType /// owningType. /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IFeature QueryCrossFeature(); + IFeature crossFeature { get; } /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -90,13 +90,13 @@ public partial interface IFeature : IType [Property(xmiId: "_18_5_3_12e503d9_1563834516279_920295_20653", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] - IType QueryEndOwningType(); + IType endOwningType { get; } /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IFeature QueryFeatureTarget(); + IFeature featureTarget { get; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -105,7 +105,7 @@ public partial interface IFeature : IType /// featuringTypes of the chained Feature. /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryFeaturingType(); + List featuringType { get; } /// /// Whether the Feature is a composite feature of its featuringType. If so, the values of the Feature @@ -173,7 +173,7 @@ public partial interface IFeature : IType /// [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] - ICrossSubsetting QueryOwnedCrossSubsetting(); + ICrossSubsetting ownedCrossSubsetting { get; } /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -182,7 +182,7 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_4_b9102da_1622125589880_791465_72", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] - List QueryOwnedFeatureChaining(); + List ownedFeatureChaining { get; } /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -191,7 +191,7 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_4_b9102da_1653567738671_359235_43", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List QueryOwnedFeatureInverting(); + List ownedFeatureInverting { get; } /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -199,7 +199,7 @@ public partial interface IFeature : IType /// [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] - List QueryOwnedRedefinition(); + List ownedRedefinition { get; } /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -207,7 +207,7 @@ public partial interface IFeature : IType /// [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] - IReferenceSubsetting QueryOwnedReferenceSubsetting(); + IReferenceSubsetting ownedReferenceSubsetting { get; } /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -216,7 +216,7 @@ public partial interface IFeature : IType [Property(xmiId: "_18_5_3_12e503d9_1533160674970_472382_43221", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] - List QueryOwnedSubsetting(); + List ownedSubsetting { get; } /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -225,7 +225,7 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_4_12e503d9_1603905673975_310948_762", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List QueryOwnedTypeFeaturing(); + List ownedTypeFeaturing { get; } /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -234,14 +234,14 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_2_12e503d9_1596597427751_965862_42", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] - List QueryOwnedTyping(); + List ownedTyping { get; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] - IFeatureMembership QueryOwningFeatureMembership(); + IFeatureMembership owningFeatureMembership { get; } /// /// The Type that is the owningType of the owningFeatureMembership of this Feature. @@ -250,7 +250,7 @@ public partial interface IFeature : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_297074_43308")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] - IType QueryOwningType(); + IType owningType { get; } /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -259,7 +259,7 @@ public partial interface IFeature : IType /// Feature. /// [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 QueryType(); + List type { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFeatureTyping.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFeatureTyping.cs index 793cdb481..1dd9607b8 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFeatureTyping.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFeatureTyping.cs @@ -50,7 +50,7 @@ public partial interface IFeatureTyping : ISpecialization [Property(xmiId: "_19_0_2_12e503d9_1596597427753_801746_43", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_13273_21101")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] - IFeature QueryOwningFeature(); + IFeature owningFeature { get; } /// /// The Type that is being applied by this FeatureTyping. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFlow.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFlow.cs index ea83f1bc0..7eeeaf1b9 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFlow.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFlow.cs @@ -53,7 +53,7 @@ public partial interface IFlow : IConnector, IStep /// [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] - List QueryFlowEnd(); + List flowEnd { get; } /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -62,34 +62,34 @@ public partial interface IFlow : IConnector, IStep [Property(xmiId: "_19_0_4_12e503d9_1661900477937_518125_727", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] - List QueryInteraction(); + List interaction { get; } /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). /// [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - IPayloadFeature QueryPayloadFeature(); + IPayloadFeature payloadFeature { get; } /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - List QueryPayloadType(); + List payloadType { get; } /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the /// Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - IFeature QuerySourceOutputFeature(); + IFeature sourceOutputFeature { get; } /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the /// Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - IFeature QueryTargetInputFeature(); + IFeature targetInputFeature { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFramedConcernMembership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFramedConcernMembership.cs index e9abf8ed7..902458f57 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFramedConcernMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFramedConcernMembership.cs @@ -58,7 +58,7 @@ public partial interface IFramedConcernMembership : IRequirementConstraintMember /// [Property(xmiId: "_19_0_4_12e503d9_1617120590170_490370_3748", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048366950_985767_426")] - IConcernUsage QueryOwnedConcern(); + IConcernUsage ownedConcern { get; } /// /// The ConcernUsage that is referenced through this FramedConcernMembership. It is the @@ -67,7 +67,7 @@ public partial interface IFramedConcernMembership : IRequirementConstraintMember /// [Property(xmiId: "_19_0_4_12e503d9_1617120658044_92083_3773", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1617118807597_77864_3544")] - IConcernUsage QueryReferencedConcern(); + IConcernUsage referencedConcern { get; } } } 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 afe214316..7fa7e28b4 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IMembership.cs @@ -57,7 +57,7 @@ public partial interface IMembership : IRelationship /// The elementId of the memberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string QueryMemberElementId(); + string memberElementId { get; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -72,7 +72,7 @@ public partial interface IMembership : IRelationship [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_531296_43182")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - INamespace QueryMembershipOwningNamespace(); + INamespace membershipOwningNamespace { get; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. 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 e1981b18f..c51a76719 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IMultiplicityRange.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IMultiplicityRange.cs @@ -56,7 +56,7 @@ public partial interface IMultiplicityRange : IMultiplicity /// [Property(xmiId: "_19_0_2_12e503d9_1573095221994_519580_5095", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List QueryBound(); + List bound { get; } /// /// The Expression whose result provides the lower bound of the MultiplicityRange. If no lowerBound @@ -65,14 +65,14 @@ public partial interface IMultiplicityRange : IMultiplicity /// [Property(xmiId: "_19_0_2_12e503d9_1573094905677_801324_4744", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] - IExpression QueryLowerBound(); + IExpression lowerBound { get; } /// /// The Expression whose result is the upper bound of the MultiplicityRange. /// [Property(xmiId: "_19_0_2_12e503d9_1573094947427_797440_4796", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] - IExpression QueryUpperBound(); + IExpression upperBound { get; } } } 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 98daac12b..9d6b471ed 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IOwningMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IOwningMembership.cs @@ -48,28 +48,28 @@ public partial interface IOwningMembership : IMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674965_501750_43196", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_59873_43302")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] - IElement QueryOwnedMemberElement(); + IElement ownedMemberElement { get; } /// /// The elementId of the ownedMemberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] - string QueryOwnedMemberElementId(); + string ownedMemberElementId { get; } /// /// The name of the ownedMemberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] - string QueryOwnedMemberName(); + string ownedMemberName { get; } /// /// The shortName of the ownedMemberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] - string QueryOwnedMemberShortName(); + string ownedMemberShortName { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IReferenceSubsetting.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IReferenceSubsetting.cs index bbd740fb1..b1d730521 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IReferenceSubsetting.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IReferenceSubsetting.cs @@ -59,7 +59,7 @@ public partial interface IReferenceSubsetting : ISubsetting [Property(xmiId: "_19_0_4_12e503d9_1661555161575_539076_256", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_236250_43311")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] - IFeature QueryReferencingFeature(); + IFeature referencingFeature { get; } } } 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 15b928f22..6357e0d58 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IRelationship.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IRelationship.cs @@ -76,7 +76,7 @@ public partial interface IRelationship : IElement /// Elements of the Relationship. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - List QueryRelatedElement(); + List relatedElement { get; } /// /// The relatedElements from which this Relationship is considered to be directed. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IRequirementUsage.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IRequirementUsage.cs index 24a76083e..1052b087b 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IRequirementUsage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IRequirementUsage.cs @@ -75,7 +75,7 @@ public partial interface IRequirementUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1621564075474_350859_2735", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List QueryActorParameter(); + List actorParameter { get; } /// /// The owned ConstraintUsages that represent assumptions of this RequirementUsage, derived as the @@ -84,7 +84,7 @@ public partial interface IRequirementUsage : IConstraintUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List QueryAssumedConstraint(); + List assumedConstraint { get; } /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -92,7 +92,7 @@ public partial interface IRequirementUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] - List QueryFramedConcern(); + List framedConcern { get; } /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -110,14 +110,14 @@ public partial interface IRequirementUsage : IConstraintUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List QueryRequiredConstraint(); + List requiredConstraint { get; } /// /// The RequirementDefinition that is the single definition of this RequirementUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1583000408905_769743_1223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] - IRequirementDefinition QueryRequirementDefinition(); + IRequirementDefinition requirementDefinition { get; } /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -125,7 +125,7 @@ public partial interface IRequirementUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1624032823963_328647_40107", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List QueryStakeholderParameter(); + List stakeholderParameter { get; } /// /// The parameter of this RequirementUsage that represents its subject. @@ -133,14 +133,14 @@ public partial interface IRequirementUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1595189397261_941898_844", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - IUsage QuerySubjectParameter(); + IUsage subjectParameter { get; } /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from /// the bodies of the documentation of the RequirementUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryText(); + List text { get; } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ISubclassification.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ISubclassification.cs index 75fba217b..5b69ea49e 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ISubclassification.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ISubclassification.cs @@ -47,7 +47,7 @@ public partial interface ISubclassification : ISpecialization /// [Property(xmiId: "_18_5_3_12e503d9_1543189170642_857401_25506", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] - IClassifier QueryOwningClassifier(); + IClassifier owningClassifier { get; } /// /// The more specific Classifier in this Subclassification. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ITextualRepresentation.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ITextualRepresentation.cs index fa02183b7..a9764b551 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ITextualRepresentation.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ITextualRepresentation.cs @@ -80,7 +80,7 @@ public partial interface ITextualRepresentation : IAnnotatingElement [Property(xmiId: "_19_0_2_12e503d9_1594154758494_414887_3389", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_744477_17277")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594145755058_99428_86")] - IElement QueryRepresentedElement(); + IElement representedElement { get; } } } 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 6f3f58d9a..7eea6815c 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IUsage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IUsage.cs @@ -78,7 +78,7 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] - List QueryDefinition(); + List definition { get; } /// /// The usages of this Usage that are directedFeatures. @@ -86,13 +86,13 @@ public partial interface IUsage : IFeature [Property(xmiId: "_19_0_2_12e503d9_1591217699198_66279_508", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List QueryDirectedUsage(); + List directedUsage { get; } /// /// Whether this Usage is a referential Usage, that is, it has isComposite = false. /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool QueryIsReference(); + bool isReference { get; } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -111,56 +111,56 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] - bool QueryMayTimeVary(); + bool mayTimeVary { get; } /// /// The ActionUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] - List QueryNestedAction(); + List nestedAction { get; } /// /// The AllocationUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] - List QueryNestedAllocation(); + List nestedAllocation { get; } /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] - List QueryNestedAnalysisCase(); + List nestedAnalysisCase { get; } /// /// The code>AttributeUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List QueryNestedAttribute(); + List nestedAttribute { get; } /// /// The CalculationUsage that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] - List QueryNestedCalculation(); + List nestedCalculation { get; } /// /// The CaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] - List QueryNestedCase(); + List nestedCase { get; } /// /// The ConcernUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] - List QueryNestedConcern(); + List nestedConcern { get; } /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -169,105 +169,105 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List QueryNestedConnection(); + List nestedConnection { get; } /// /// The ConstraintUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] - List QueryNestedConstraint(); + List nestedConstraint { get; } /// /// The code>EnumerationUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] - List QueryNestedEnumeration(); + List nestedEnumeration { get; } /// /// The code>FlowUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] - List QueryNestedFlow(); + List nestedFlow { get; } /// /// The InterfaceUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] - List QueryNestedInterface(); + List nestedInterface { get; } /// /// The ItemUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] - List QueryNestedItem(); + List nestedItem { get; } /// /// The MetadataUsages that are nestedUsages of this of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] - List QueryNestedMetadata(); + List nestedMetadata { get; } /// /// The OccurrenceUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List QueryNestedOccurrence(); + List nestedOccurrence { get; } /// /// The PartUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] - List QueryNestedPart(); + List nestedPart { get; } /// /// The PortUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List QueryNestedPort(); + List nestedPort { get; } /// /// The ReferenceUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List QueryNestedReference(); + List nestedReference { get; } /// /// The RenderingUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] - List QueryNestedRendering(); + List nestedRendering { get; } /// /// The RequirementUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] - List QueryNestedRequirement(); + List nestedRequirement { get; } /// /// The StateUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] - List QueryNestedState(); + List nestedState { get; } /// /// The TransitionUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List QueryNestedTransition(); + List nestedTransition { get; } /// /// The Usages that are ownedFeatures of this Usage. @@ -275,35 +275,35 @@ public partial interface IUsage : IFeature [Property(xmiId: "_18_5_3_12e503d9_1565472757327_162097_21259", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List QueryNestedUsage(); + List nestedUsage { get; } /// /// The UseCaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] - List QueryNestedUseCase(); + List nestedUseCase { get; } /// /// The VerificationCaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] - List QueryNestedVerificationCase(); + List nestedVerificationCase { get; } /// /// The ViewUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] - List QueryNestedView(); + List nestedView { get; } /// /// The ViewpointUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] - List QueryNestedViewpoint(); + List nestedViewpoint { get; } /// /// The Definition that owns this Usage (if any). @@ -311,21 +311,21 @@ public partial interface IUsage : IFeature [Property(xmiId: "_18_5_3_12e503d9_1565479686638_420576_23237", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] - IDefinition QueryOwningDefinition(); + IDefinition owningDefinition { get; } /// /// The Usage in which this Usage is nested (if any). /// [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] - IUsage QueryOwningUsage(); + IUsage owningUsage { get; } /// /// The Usages that are features of this Usage (not necessarily owned). /// [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List QueryUsage(); + List usage { get; } /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -333,7 +333,7 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List QueryVariant(); + List variant { get; } /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -341,7 +341,7 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] - List QueryVariantMembership(); + List variantMembership { get; } } } 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 dd5762e0c..841d4856b 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralInteger.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralInteger.cs @@ -67,10 +67,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,10 +79,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -95,10 +89,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -128,10 +119,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -140,10 +128,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -160,10 +145,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -179,10 +161,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -192,10 +171,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -203,10 +179,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -215,20 +188,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -238,10 +205,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -249,10 +213,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -260,10 +221,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -271,10 +229,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -283,10 +238,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -294,10 +246,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -310,10 +259,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -337,10 +283,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -387,10 +330,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -398,10 +338,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -435,7 +372,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -451,10 +388,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -462,10 +396,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -475,10 +406,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -488,10 +416,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -499,10 +424,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -512,10 +434,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -524,10 +443,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -536,10 +452,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -549,10 +462,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -562,10 +472,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -573,10 +480,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -585,10 +489,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -596,10 +497,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -609,10 +507,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -622,10 +517,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -635,10 +527,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -648,10 +537,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -660,10 +546,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -672,10 +555,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -686,10 +566,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -698,10 +575,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -710,10 +584,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -731,10 +602,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -744,10 +612,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -757,10 +622,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -770,10 +632,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -782,10 +641,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -793,10 +649,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -804,10 +657,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -816,10 +666,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -828,10 +675,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -849,10 +693,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -861,10 +702,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -876,10 +714,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -890,10 +725,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -903,10 +735,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -915,10 +744,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -928,10 +754,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -942,10 +765,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Integer value that is the result of evaluating this LiteralInteger. 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 072b06377..61c54fea3 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralRational.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralRational.cs @@ -67,10 +67,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,10 +79,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -95,10 +89,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -128,10 +119,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -140,10 +128,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -160,10 +145,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -179,10 +161,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -192,10 +171,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -203,10 +179,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -215,20 +188,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -238,10 +205,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -249,10 +213,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -260,10 +221,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -271,10 +229,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -283,10 +238,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -294,10 +246,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -310,10 +259,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -337,10 +283,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -387,10 +330,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -398,10 +338,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -435,7 +372,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -451,10 +388,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -462,10 +396,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -475,10 +406,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -488,10 +416,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -499,10 +424,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -512,10 +434,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -524,10 +443,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -536,10 +452,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -549,10 +462,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -562,10 +472,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -573,10 +480,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -585,10 +489,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -596,10 +497,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -609,10 +507,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -622,10 +517,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -635,10 +527,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -648,10 +537,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -660,10 +546,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -672,10 +555,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -686,10 +566,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -698,10 +575,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -710,10 +584,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -731,10 +602,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -744,10 +612,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -757,10 +622,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -770,10 +632,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -782,10 +641,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -793,10 +649,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -804,10 +657,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -816,10 +666,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -828,10 +675,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -849,10 +693,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -861,10 +702,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -876,10 +714,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -890,10 +725,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -903,10 +735,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -915,10 +744,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -928,10 +754,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -942,10 +765,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The value whose rational approximation is the result of evaluating this LiteralRational. 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 7e95788b9..f299d450b 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Membership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Membership.cs @@ -84,10 +84,7 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -121,10 +118,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -139,10 +133,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -159,10 +150,7 @@ public string QueryMemberElementId() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -179,10 +167,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -192,10 +177,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -203,10 +185,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -230,10 +209,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -242,10 +218,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -254,10 +227,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -285,10 +255,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -296,10 +263,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -309,10 +273,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -339,10 +300,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -350,7 +308,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } 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 4318018d9..34d194ece 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/MultiplicityRange.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/MultiplicityRange.cs @@ -71,10 +71,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_2_12e503d9_1573095221994_519580_5095", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IMultiplicityRange.Bound")] - public List QueryBound() - { - return this.ComputeBound(); - } + public List bound => this.ComputeBound(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -86,10 +83,7 @@ public List QueryBound() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -99,10 +93,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -132,10 +123,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -143,10 +131,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -163,10 +148,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -182,10 +164,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -195,10 +174,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -206,10 +182,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -218,20 +191,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -241,10 +208,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -252,10 +216,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -263,10 +224,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -275,10 +233,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -286,10 +241,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -302,10 +254,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -329,10 +278,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -379,10 +325,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -416,7 +359,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -434,10 +377,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_2_12e503d9_1573094905677_801324_4744", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] [Implements(implementation: "IMultiplicityRange.LowerBound")] - public IExpression QueryLowerBound() - { - return this.ComputeLowerBound(); - } + public IExpression lowerBound => this.ComputeLowerBound(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -445,10 +385,7 @@ public IExpression QueryLowerBound() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -456,10 +393,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -469,10 +403,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -482,10 +413,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -493,10 +421,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -506,10 +431,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -518,10 +440,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -530,10 +449,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -543,10 +459,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -556,10 +469,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -567,10 +477,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -579,10 +486,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -590,10 +494,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -603,10 +504,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -616,10 +514,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -629,10 +524,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -642,10 +534,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -654,10 +543,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -666,10 +552,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -680,10 +563,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -692,10 +572,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -704,10 +581,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -725,10 +599,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -738,10 +609,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -751,10 +619,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -764,10 +629,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -776,10 +638,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -787,10 +646,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -798,10 +654,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -810,10 +663,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -822,10 +672,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -843,10 +690,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -858,10 +702,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -871,10 +712,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -883,10 +721,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -896,10 +731,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -910,10 +742,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Expression whose result is the upper bound of the MultiplicityRange. @@ -921,10 +750,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1573094947427_797440_4796", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] [Implements(implementation: "IMultiplicityRange.UpperBound")] - public IExpression QueryUpperBound() - { - return this.ComputeUpperBound(); - } + public IExpression upperBound => this.ComputeUpperBound(); } } 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 0e4b9fa55..a2676641e 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/OwningMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/OwningMembership.cs @@ -79,10 +79,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -116,10 +113,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -136,10 +130,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -157,10 +148,7 @@ public string QueryMemberElementId() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -178,10 +166,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -191,10 +176,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -202,10 +184,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -215,10 +194,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_59873_43302")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -226,10 +202,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The name of the ownedMemberElement. @@ -237,10 +210,7 @@ public string QueryOwnedMemberElementId() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -248,10 +218,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -275,10 +242,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -287,10 +251,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -299,10 +260,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -330,10 +288,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -341,10 +296,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -354,10 +306,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -384,10 +333,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -395,7 +341,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } 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 8aafc9696..710fee411 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ReferenceSubsetting.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ReferenceSubsetting.cs @@ -84,10 +84,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -130,10 +127,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -143,10 +137,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -156,10 +147,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -167,10 +155,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -194,10 +179,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// A subsettingFeature that is also the owningRelatedElement of this Subsetting. @@ -207,10 +189,7 @@ public IElement QueryOwner() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [RedefinedByProperty("IReferenceSubsetting.ReferencingFeature")] [Implements(implementation: "ISubsetting.OwningFeature")] - public IFeature QueryOwningFeature() - { - return this.ComputeOwningFeature(); - } + public IFeature owningFeature => this.ComputeOwningFeature(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -219,10 +198,7 @@ public IFeature QueryOwningFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -231,10 +207,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -260,10 +233,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -275,10 +245,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Feature that is referenced by the referencingFeature of this ReferenceSubsetting. @@ -295,10 +262,7 @@ public string QueryQualifiedName() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_236250_43311")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] [Implements(implementation: "IReferenceSubsetting.ReferencingFeature")] - public IFeature QueryReferencingFeature() - { - return this.ComputeReferencingFeature(); - } + public IFeature referencingFeature => this.ComputeReferencingFeature(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -306,10 +270,7 @@ public IFeature QueryReferencingFeature() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -319,10 +280,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -376,10 +334,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } 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 eb77b1cb7..cf45508a3 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/RequirementUsage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/RequirementUsage.cs @@ -83,10 +83,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -103,10 +100,7 @@ public List QueryActorParameter() [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.AssumedConstraint")] - public List QueryAssumedConstraint() - { - return this.ComputeAssumedConstraint(); - } + public List assumedConstraint => this.ComputeAssumedConstraint(); /// /// The Behaviors that type this Step. @@ -115,10 +109,7 @@ public List QueryAssumedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -130,10 +121,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -144,10 +132,7 @@ public List QueryChainingFeature() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public IPredicate QueryConstraintDefinition() - { - return this.ComputeConstraintDefinition(); - } + public IPredicate constraintDefinition => this.ComputeConstraintDefinition(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -157,10 +142,7 @@ public IPredicate QueryConstraintDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -189,10 +171,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -205,10 +184,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -217,10 +193,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -229,10 +202,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -249,10 +219,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -268,10 +235,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -281,10 +245,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -292,10 +253,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -304,20 +262,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -327,10 +279,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -339,10 +288,7 @@ public List QueryFeaturingType() [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] [Implements(implementation: "IRequirementUsage.FramedConcern")] - public List QueryFramedConcern() - { - return this.ComputeFramedConcern(); - } + public List framedConcern => this.ComputeFramedConcern(); /// /// The Function that types this Expression. @@ -351,10 +297,7 @@ public List QueryFramedConcern() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -362,10 +305,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -373,10 +313,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -384,10 +321,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -396,10 +330,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -407,10 +338,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -423,10 +351,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -450,10 +375,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -508,10 +430,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -519,10 +438,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -544,10 +460,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -566,7 +479,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -596,10 +509,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -607,10 +517,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -618,10 +525,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -631,10 +535,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -644,10 +545,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -655,10 +553,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -666,10 +561,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -677,10 +569,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -688,10 +577,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -699,10 +585,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -710,10 +593,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -721,10 +601,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -734,10 +611,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -745,10 +619,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -756,10 +627,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -767,10 +635,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -778,10 +643,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -789,10 +651,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -800,10 +659,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -811,10 +667,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -822,10 +675,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -833,10 +683,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -844,10 +691,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -855,10 +699,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -866,10 +707,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -877,10 +715,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -888,10 +723,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -900,10 +732,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -911,10 +740,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -922,10 +748,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -933,10 +756,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -944,10 +764,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -957,10 +774,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -968,10 +782,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -981,10 +792,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -993,10 +801,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1005,10 +810,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1018,10 +820,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1031,10 +830,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1042,10 +838,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1054,10 +847,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1065,10 +855,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1078,10 +865,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1091,10 +875,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1104,10 +885,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1117,10 +895,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1129,10 +904,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1141,10 +913,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1155,10 +924,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1167,10 +933,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1179,10 +942,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1200,10 +960,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1213,10 +970,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1226,10 +980,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1239,10 +990,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1251,10 +999,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1262,10 +1007,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1274,10 +1016,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1285,10 +1024,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1297,10 +1033,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1309,10 +1042,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1330,10 +1060,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1341,10 +1068,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1353,10 +1077,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1374,10 +1095,7 @@ public List QueryParameter() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate QueryPredicate() - { - return this.ComputePredicate(); - } + public IPredicate predicate => this.ComputePredicate(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1389,10 +1107,7 @@ public IPredicate QueryPredicate() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -1412,10 +1127,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.RequiredConstraint")] - public List QueryRequiredConstraint() - { - return this.ComputeRequiredConstraint(); - } + public List requiredConstraint => this.ComputeRequiredConstraint(); /// /// The RequirementDefinition that is the single definition of this RequirementUsage. @@ -1423,10 +1135,7 @@ public List QueryRequiredConstraint() [Property(xmiId: "_19_0_2_12e503d9_1583000408905_769743_1223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public IRequirementDefinition QueryRequirementDefinition() - { - return this.ComputeRequirementDefinition(); - } + public IRequirementDefinition requirementDefinition => this.ComputeRequirementDefinition(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1437,10 +1146,7 @@ public IRequirementDefinition QueryRequirementDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1450,10 +1156,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -1462,10 +1165,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.StakeholderParameter")] - public List QueryStakeholderParameter() - { - return this.ComputeStakeholderParameter(); - } + public List stakeholderParameter => this.ComputeStakeholderParameter(); /// /// The parameter of this RequirementUsage that represents its subject. @@ -1474,10 +1174,7 @@ public List QueryStakeholderParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from @@ -1485,10 +1182,7 @@ public IUsage QuerySubjectParameter() /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementUsage.Text")] - public List QueryText() - { - return this.ComputeText(); - } + public List text => this.ComputeText(); /// /// The TextualRepresentations that annotate this Element. @@ -1497,10 +1191,7 @@ public List QueryText() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1511,10 +1202,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1525,10 +1213,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1536,10 +1221,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1548,10 +1230,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1560,10 +1239,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } 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 e18439051..ccb87dd6a 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/SelectExpression.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/SelectExpression.cs @@ -68,10 +68,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List QueryArgument() - { - return this.ComputeArgument(); - } + public List argument => this.ComputeArgument(); /// /// The Behaviors that type this Step. @@ -80,10 +77,7 @@ public List QueryArgument() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -95,10 +89,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -108,10 +99,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -141,10 +129,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -153,10 +138,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -173,10 +155,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -192,10 +171,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -205,10 +181,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -216,10 +189,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -228,20 +198,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -251,10 +215,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -262,10 +223,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -273,10 +231,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -284,10 +239,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -296,10 +248,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -307,10 +256,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Type that is being instantiated. @@ -318,10 +264,7 @@ public List QueryInput() [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public IType QueryInstantiatedType() - { - return this.ComputeInstantiatedType(); - } + public IType instantiatedType => this.ComputeInstantiatedType(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -334,10 +277,7 @@ public IType QueryInstantiatedType() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -361,10 +301,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -411,10 +348,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -422,10 +356,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -459,7 +390,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -475,10 +406,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -486,10 +414,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -499,10 +424,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -512,17 +434,14 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// [Property(xmiId: "_18_5_3_12e503d9_1559596728932_861031_29126", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "select")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528808100_646606_111674")] [Implements(implementation: "ISelectExpression.Operator")] - string ISelectExpression.Operator { get; set; } + public string Operator { get; set; } = "select"; /// /// An operator symbol that names a corresponding Function from one of the standard packages from the @@ -539,10 +458,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -552,10 +468,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -564,10 +477,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -576,10 +486,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -589,10 +496,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -602,10 +506,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -613,10 +514,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -625,10 +523,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -636,10 +531,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -649,10 +541,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -662,10 +551,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -675,10 +561,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -688,10 +571,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -700,10 +580,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -712,10 +589,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -726,10 +600,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -738,10 +609,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -750,10 +618,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -771,10 +636,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -784,10 +646,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -797,10 +656,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -810,10 +666,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -822,10 +675,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -833,10 +683,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -844,10 +691,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -856,10 +700,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -868,10 +709,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -889,10 +727,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -901,10 +736,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -916,10 +748,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -930,10 +759,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -943,10 +769,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -955,10 +778,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -968,10 +788,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -982,10 +799,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } 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 1e35fc8ee..d075a2759 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Subclassification.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Subclassification.cs @@ -80,10 +80,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -126,10 +123,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -139,10 +133,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -152,10 +143,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -163,10 +151,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -190,10 +175,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Classifier that owns this Subclassification relationship, which must also be its subclassifier. @@ -201,10 +183,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1543189170642_857401_25506", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "ISubclassification.OwningClassifier")] - public IClassifier QueryOwningClassifier() - { - return this.ComputeOwningClassifier(); - } + public IClassifier owningClassifier => this.ComputeOwningClassifier(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -213,10 +192,7 @@ public IClassifier QueryOwningClassifier() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -225,10 +201,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -254,10 +227,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubclassification.OwningClassifier")] [Implements(implementation: "ISpecialization.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -269,10 +239,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -280,10 +247,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -293,10 +257,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -348,10 +309,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } 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 318f2ab14..300dc4990 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/TextualRepresentation.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/TextualRepresentation.cs @@ -84,10 +84,7 @@ public partial class TextualRepresentation : ITextualRepresentation [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("ITextualRepresentation.RepresentedElement")] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List QueryAnnotatedElement() - { - return this.ComputeAnnotatedElement(); - } + public List annotatedElement => this.ComputeAnnotatedElement(); /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -96,10 +93,7 @@ public List QueryAnnotatedElement() [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List QueryAnnotation() - { - return this.ComputeAnnotation(); - } + public List annotation => this.ComputeAnnotation(); /// /// The textual representation of the representedElement in the given language. @@ -132,10 +126,7 @@ public List QueryAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -161,10 +152,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The natural or artifical language in which the body text is written. @@ -181,10 +169,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -194,10 +179,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List QueryOwnedAnnotatingRelationship() - { - return this.ComputeOwnedAnnotatingRelationship(); - } + public List ownedAnnotatingRelationship => this.ComputeOwnedAnnotatingRelationship(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -207,10 +189,7 @@ public List QueryOwnedAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -218,10 +197,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -237,10 +213,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -249,10 +222,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public IAnnotation QueryOwningAnnotatingRelationship() - { - return this.ComputeOwningAnnotatingRelationship(); - } + public IAnnotation owningAnnotatingRelationship => this.ComputeOwningAnnotatingRelationship(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -261,10 +231,7 @@ public IAnnotation QueryOwningAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -273,10 +240,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -296,10 +260,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Element that is represented by this TextualRepresentation. @@ -308,10 +269,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_744477_17277")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594145755058_99428_86")] [Implements(implementation: "ITextualRepresentation.RepresentedElement")] - public IElement QueryRepresentedElement() - { - return this.ComputeRepresentedElement(); - } + public IElement representedElement => this.ComputeRepresentedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -321,10 +279,7 @@ public IElement QueryRepresentedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -333,10 +288,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } 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 063e4b5cf..413f6221d 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Usage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Usage.cs @@ -95,10 +95,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -108,10 +105,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -138,10 +132,7 @@ public IFeature QueryCrossFeature() [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -154,10 +145,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -165,10 +153,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -177,10 +162,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -197,10 +179,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -216,10 +195,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -229,10 +205,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -240,10 +213,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -252,20 +222,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -275,10 +239,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -286,10 +247,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -297,10 +255,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -309,10 +264,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -320,10 +272,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -336,10 +285,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -363,10 +309,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -413,10 +356,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -438,10 +378,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -460,7 +397,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -490,10 +427,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -501,10 +435,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -512,10 +443,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -525,10 +453,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -538,10 +463,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -549,10 +471,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -560,10 +479,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -571,10 +487,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -582,10 +495,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -593,10 +503,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -604,10 +511,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -615,10 +519,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -628,10 +529,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -639,10 +537,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -650,10 +545,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -661,10 +553,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -672,10 +561,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -683,10 +569,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -694,10 +577,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -705,10 +585,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -716,10 +593,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -727,10 +601,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -738,10 +609,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -749,10 +617,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -760,10 +625,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -771,10 +633,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -782,10 +641,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -794,10 +650,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -805,10 +658,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -816,10 +666,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -827,10 +674,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -838,10 +682,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -849,10 +690,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -862,10 +700,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -874,10 +709,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -886,10 +718,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -899,10 +728,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -912,10 +738,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -923,10 +746,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -935,10 +755,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -946,10 +763,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -959,10 +773,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -972,10 +783,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -985,10 +793,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -998,10 +803,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1010,10 +812,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1022,10 +821,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1036,10 +832,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1048,10 +841,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1060,10 +850,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1081,10 +868,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1094,10 +878,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1107,10 +888,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1120,10 +898,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1132,10 +907,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1143,10 +915,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1155,10 +924,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1166,10 +932,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1178,10 +941,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1190,10 +950,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1211,10 +968,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1222,10 +976,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1237,10 +988,7 @@ public IUsage QueryOwningUsage() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1250,10 +998,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1262,10 +1007,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1276,10 +1018,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1290,10 +1029,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1301,10 +1037,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1313,10 +1046,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1325,10 +1055,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AnnotatingElementSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AnnotatingElementSerializer.cs index f2e45b8e4..c91aa4d6b 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AnnotatingElementSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AnnotatingElementSerializer.cs @@ -49,7 +49,10 @@ internal static class AnnotatingElementSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAnnotatingElement iAnnotatingElement) { @@ -64,6 +67,241 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iAnnotatingElement.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAnnotatingElement, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAnnotatingElement, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAnnotatingElement iAnnotatingElement, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAnnotatingElement.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("annotatedElement"u8); + + foreach (var item in iAnnotatingElement.annotatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("annotation"u8); + + foreach (var item in iAnnotatingElement.annotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAnnotatingElement.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAnnotatingElement.DeclaredShortName); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAnnotatingElement.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAnnotatingElement.ElementId); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAnnotatingElement.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAnnotatingElement.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAnnotatingElement.name); + + writer.WriteStartArray("ownedAnnotatingRelationship"u8); + + foreach (var item in iAnnotatingElement.ownedAnnotatingRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAnnotatingElement.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAnnotatingElement.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAnnotatingElement.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAnnotatingElement.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotatingElement.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningAnnotatingRelationship"u8); + + if (iAnnotatingElement.owningAnnotatingRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotatingElement.owningAnnotatingRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAnnotatingElement.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotatingElement.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAnnotatingElement.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotatingElement.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAnnotatingElement.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotatingElement.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAnnotatingElement.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAnnotatingElement.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAnnotatingElement.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAnnotatingElement iAnnotatingElement, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAnnotatingElement.AliasIds) @@ -111,7 +349,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AssociationSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AssociationSerializer.cs index 342db4f46..7c994785a 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AssociationSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AssociationSerializer.cs @@ -49,21 +49,673 @@ internal static class AssociationSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAssociation iAssociation) { - throw new ArgumentException("The object shall be an IAssociation", nameof(obj)); + throw new ArgumentException("The object shall be an IAssociation", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("Association"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAssociation, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAssociation, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociation, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAssociation.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("associationEnd"u8); + + foreach (var item in iAssociation.associationEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAssociation.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAssociation.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iAssociation.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAssociation.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAssociation.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAssociation.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAssociation.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iAssociation.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iAssociation.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iAssociation.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iAssociation.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iAssociation.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iAssociation.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iAssociation.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iAssociation.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iAssociation.isConjugated); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iAssociation.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAssociation.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAssociation.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iAssociation.IsSufficient); + + writer.WriteStartArray("member"u8); + + foreach (var item in iAssociation.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iAssociation.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iAssociation.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAssociation.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iAssociation.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAssociation.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iAssociation.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iAssociation.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iAssociation.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAssociation.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iAssociation.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iAssociation.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iAssociation.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iAssociation.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("Association"u8); + writer.WriteStartArray("ownedIntersecting"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAssociation.Id); + foreach (var item in iAssociation.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iAssociation.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iAssociation.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iAssociation.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAssociation.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iAssociation.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iAssociation.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iAssociation.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAssociation.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAssociation.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAssociation.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iAssociation.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAssociation.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAssociation.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iAssociation.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedType"u8); + + foreach (var item in iAssociation.relatedType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAssociation.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iAssociation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceType"u8); + + if (iAssociation.sourceType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.sourceType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iAssociation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetType"u8); + + foreach (var item in iAssociation.targetType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAssociation.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iAssociation.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAssociation iAssociation, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAssociation.AliasIds) @@ -170,7 +822,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/DependencySerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/DependencySerializer.cs index 9c43de480..6209a62f5 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/DependencySerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/DependencySerializer.cs @@ -49,7 +49,10 @@ internal static class DependencySerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IDependency iDependency) { @@ -64,6 +67,280 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iDependency.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iDependency, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iDependency, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IDependency iDependency, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iDependency.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("client"u8); + + foreach (var item in iDependency.Client) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iDependency.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iDependency.DeclaredShortName); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iDependency.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iDependency.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iDependency.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iDependency.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iDependency.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iDependency.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iDependency.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iDependency.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iDependency.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iDependency.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iDependency.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDependency.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iDependency.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDependency.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iDependency.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDependency.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iDependency.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDependency.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iDependency.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDependency.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iDependency.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iDependency.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iDependency.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iDependency.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("supplier"u8); + + foreach (var item in iDependency.Supplier) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iDependency.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iDependency.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IDependency iDependency, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iDependency.AliasIds) @@ -188,7 +465,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs index 756d2c70c..f50753362 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class EnumerationDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IEnumerationDefinition iEnumerationDefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iEnumerationDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iEnumerationDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iEnumerationDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IEnumerationDefinition iEnumerationDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iEnumerationDefinition.AliasIds) @@ -79,24 +105,186 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iEnumerationDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iEnumerationDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iEnumerationDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iEnumerationDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iEnumerationDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iEnumerationDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iEnumerationDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("enumeratedValue"u8); + + foreach (var item in iEnumerationDefinition.enumeratedValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iEnumerationDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iEnumerationDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iEnumerationDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iEnumerationDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iEnumerationDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iEnumerationDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iEnumerationDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iEnumerationDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iEnumerationDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iEnumerationDefinition.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iEnumerationDefinition.isLibraryElement); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iEnumerationDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iEnumerationDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iEnumerationDefinition.OwnedRelationship) + foreach (var item in iEnumerationDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -106,13 +294,749 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iEnumerationDefinition.OwningRelationship.HasValue) + foreach (var item in iEnumerationDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iEnumerationDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iEnumerationDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iEnumerationDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iEnumerationDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iEnumerationDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iEnumerationDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iEnumerationDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iEnumerationDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iEnumerationDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iEnumerationDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iEnumerationDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iEnumerationDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iEnumerationDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iEnumerationDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iEnumerationDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iEnumerationDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iEnumerationDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iEnumerationDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iEnumerationDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iEnumerationDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iEnumerationDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iEnumerationDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iEnumerationDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iEnumerationDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iEnumerationDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iEnumerationDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iEnumerationDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iEnumerationDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iEnumerationDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iEnumerationDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iEnumerationDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iEnumerationDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iEnumerationDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iEnumerationDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iEnumerationDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iEnumerationDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iEnumerationDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iEnumerationDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iEnumerationDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iEnumerationDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iEnumerationDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iEnumerationDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iEnumerationDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iEnumerationDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iEnumerationDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iEnumerationDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iEnumerationDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iEnumerationDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iEnumerationDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iEnumerationDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iEnumerationDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iEnumerationDefinition.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iEnumerationDefinition.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iEnumerationDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iEnumerationDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iEnumerationDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iEnumerationDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iEnumerationDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IEnumerationDefinition iEnumerationDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iEnumerationDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iEnumerationDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iEnumerationDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iEnumerationDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iEnumerationDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iEnumerationDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iEnumerationDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iEnumerationDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iEnumerationDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iEnumerationDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -120,7 +1044,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureSerializer.cs index 4819d123c..4d443c2f4 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureSerializer.cs @@ -49,7 +49,10 @@ internal static class FeatureSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFeature iFeature) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFeature.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFeature, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFeature, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFeature iFeature, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFeature.AliasIds) @@ -73,12 +99,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iFeature.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iFeature.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iFeature.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iFeature.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iFeature.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFeature.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iFeature.Direction.HasValue) @@ -90,15 +166,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFeature.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeature.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFeature.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iFeature.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iFeature.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iFeature.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iFeature.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iFeature.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iFeature.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iFeature.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iFeature.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iFeature.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iFeature.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iFeature.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iFeature.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iFeature.IsConstant); @@ -111,6 +330,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFeature.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFeature.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iFeature.IsOrdered); @@ -126,9 +348,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iFeature.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iFeature.OwnedRelationship) + foreach (var item in iFeature.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +360,549 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iFeature.OwningRelationship.HasValue) + foreach (var item in iFeature.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeature.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iFeature.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFeature.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iFeature.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFeature.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iFeature.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iFeature.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iFeature.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iFeature.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFeature.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iFeature.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iFeature.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iFeature.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iFeature.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iFeature.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iFeature.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iFeature.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iFeature.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iFeature.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iFeature.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iFeature.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFeature.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iFeature.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iFeature.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iFeature.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iFeature.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iFeature.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iFeature.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iFeature.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFeature.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFeature.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFeature.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iFeature.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFeature.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFeature.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFeature.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iFeature.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iFeature.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFeature iFeature, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFeature.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFeature.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFeature.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iFeature.Direction.HasValue) + { + writer.WriteStringValue(iFeature.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFeature.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iFeature.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iFeature.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iFeature.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iFeature.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iFeature.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFeature.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iFeature.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iFeature.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iFeature.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iFeature.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iFeature.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFeature.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iFeature.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +910,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureTypingSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureTypingSerializer.cs index 4cf8dc1db..0d2e618b5 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureTypingSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureTypingSerializer.cs @@ -49,7 +49,10 @@ internal static class FeatureTypingSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFeatureTyping iFeatureTyping) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFeatureTyping.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFeatureTyping, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFeatureTyping, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeatureTyping, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFeatureTyping.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iFeatureTyping.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFeatureTyping.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureTyping.ElementId); @@ -94,6 +132,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFeatureTyping.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFeatureTyping.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFeatureTyping.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFeatureTyping.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFeatureTyping.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFeatureTyping.OwnedRelatedElement) @@ -118,6 +186,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iFeatureTyping.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeature"u8); + + if (iFeatureTyping.owningFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.owningFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFeatureTyping.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFeatureTyping.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iFeatureTyping.OwningRelatedElement.HasValue) @@ -146,6 +270,38 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iFeatureTyping.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFeatureTyping.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFeatureTyping.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFeatureTyping.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iFeatureTyping.Source) @@ -176,6 +332,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFeatureTyping.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("type"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -188,7 +356,143 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iFeatureTyping.TypedFeature); writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFeatureTyping iFeatureTyping, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFeatureTyping.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFeatureTyping.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFeatureTyping.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFeatureTyping.ElementId); + + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.General); + writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iFeatureTyping.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFeatureTyping.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iFeatureTyping.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFeatureTyping.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iFeatureTyping.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFeatureTyping.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureTyping.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.Specific); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureTyping.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("type"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.Type); + writer.WriteEndObject(); + + writer.WritePropertyName("typedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.TypedFeature); writer.WriteEndObject(); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FlowSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FlowSerializer.cs index ab8b7b387..348f2753c 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FlowSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FlowSerializer.cs @@ -49,21 +49,1022 @@ internal static class FlowSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFlow iFlow) { - throw new ArgumentException("The object shall be an IFlow", nameof(obj)); + throw new ArgumentException("The object shall be an IFlow", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("Flow"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFlow, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFlow, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFlow.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("association"u8); + + foreach (var item in iFlow.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iFlow.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iFlow.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectorEnd"u8); + + foreach (var item in iFlow.connectorEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iFlow.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFlow.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFlow.DeclaredShortName); + + writer.WritePropertyName("defaultFeaturingType"u8); + + if (iFlow.defaultFeaturingType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.defaultFeaturingType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iFlow.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFlow.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iFlow.Direction.HasValue) + { + writer.WriteStringValue(iFlow.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFlow.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFlow.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFlow.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iFlow.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iFlow.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iFlow.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iFlow.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("flowEnd"u8); + + foreach (var item in iFlow.flowEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iFlow.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iFlow.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iFlow.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iFlow.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("interaction"u8); + + foreach (var item in iFlow.interaction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iFlow.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iFlow.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iFlow.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iFlow.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iFlow.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iFlow.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iFlow.IsEnd); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iFlow.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFlow.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFlow.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iFlow.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iFlow.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iFlow.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iFlow.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iFlow.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iFlow.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iFlow.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iFlow.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFlow.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iFlow.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFlow.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iFlow.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iFlow.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iFlow.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iFlow.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFlow.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iFlow.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iFlow.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iFlow.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iFlow.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iFlow.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iFlow.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iFlow.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iFlow.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iFlow.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iFlow.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iFlow.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iFlow.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFlow.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iFlow.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iFlow.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iFlow.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iFlow.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iFlow.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("Flow"u8); + writer.WritePropertyName("owner"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFlow.Id); + if (iFlow.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iFlow.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFlow.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFlow.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iFlow.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFlow.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iFlow.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iFlow.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("payloadFeature"u8); + + if (iFlow.payloadFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.payloadFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("payloadType"u8); + + foreach (var item in iFlow.payloadType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFlow.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + foreach (var item in iFlow.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedFeature"u8); + + foreach (var item in iFlow.relatedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFlow.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iFlow.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceFeature"u8); + + if (iFlow.sourceFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.sourceFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("sourceOutputFeature"u8); + + if (iFlow.sourceOutputFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.sourceOutputFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iFlow.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetFeature"u8); + + foreach (var item in iFlow.targetFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("targetInputFeature"u8); + + if (iFlow.targetInputFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.targetInputFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFlow.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iFlow.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iFlow.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFlow iFlow, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFlow.AliasIds) @@ -205,7 +1206,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs index 7c4398393..dcc15c599 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class FramedConcernMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFramedConcernMembership iFramedConcernMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFramedConcernMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFramedConcernMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFramedConcernMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembership iFramedConcernMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFramedConcernMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iFramedConcernMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFramedConcernMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFramedConcernMembership.ElementId); @@ -88,6 +126,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFramedConcernMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFramedConcernMembership.isLibraryElement); + writer.WritePropertyName("kind"u8); writer.WriteStringValue(iFramedConcernMembership.Kind.ToString().ToLower()); @@ -97,12 +138,81 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iFramedConcernMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iFramedConcernMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iFramedConcernMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iFramedConcernMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFramedConcernMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFramedConcernMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConcern"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedConcern); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedConstraint); + writer.WriteEndObject(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFramedConcernMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFramedConcernMembership.OwnedRelatedElement) @@ -127,6 +237,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iFramedConcernMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFramedConcernMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFramedConcernMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iFramedConcernMembership.OwningRelatedElement.HasValue) @@ -155,6 +307,42 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFramedConcernMembership.qualifiedName); + + writer.WritePropertyName("referencedConcern"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.referencedConcern); + writer.WriteEndObject(); + + writer.WritePropertyName("referencedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.referencedConstraint); + writer.WriteEndObject(); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFramedConcernMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFramedConcernMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iFramedConcernMembership.Source) @@ -179,10 +367,152 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFramedConcernMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iFramedConcernMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFramedConcernMembership iFramedConcernMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFramedConcernMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFramedConcernMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFramedConcernMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFramedConcernMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iFramedConcernMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFramedConcernMembership.IsImpliedIncluded); + + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(iFramedConcernMembership.Kind.ToString().ToLower()); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iFramedConcernMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFramedConcernMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iFramedConcernMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFramedConcernMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iFramedConcernMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFramedConcernMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iFramedConcernMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralIntegerSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralIntegerSerializer.cs index 85210a2f4..57fce9ec2 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralIntegerSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralIntegerSerializer.cs @@ -49,21 +49,829 @@ internal static class LiteralIntegerSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ILiteralInteger iLiteralInteger) { - throw new ArgumentException("The object shall be an ILiteralInteger", nameof(obj)); + throw new ArgumentException("The object shall be an ILiteralInteger", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("LiteralInteger"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iLiteralInteger, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iLiteralInteger, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ILiteralInteger iLiteralInteger, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iLiteralInteger.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralInteger.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iLiteralInteger.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iLiteralInteger.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iLiteralInteger.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iLiteralInteger.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iLiteralInteger.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralInteger.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iLiteralInteger.Direction.HasValue) + { + writer.WriteStringValue(iLiteralInteger.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iLiteralInteger.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iLiteralInteger.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iLiteralInteger.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iLiteralInteger.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iLiteralInteger.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iLiteralInteger.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iLiteralInteger.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iLiteralInteger.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iLiteralInteger.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iLiteralInteger.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iLiteralInteger.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iLiteralInteger.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iLiteralInteger.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iLiteralInteger.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iLiteralInteger.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iLiteralInteger.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iLiteralInteger.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iLiteralInteger.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iLiteralInteger.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iLiteralInteger.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iLiteralInteger.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iLiteralInteger.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iLiteralInteger.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iLiteralInteger.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iLiteralInteger.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iLiteralInteger.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iLiteralInteger.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iLiteralInteger.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iLiteralInteger.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iLiteralInteger.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iLiteralInteger.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iLiteralInteger.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iLiteralInteger.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iLiteralInteger.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iLiteralInteger.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iLiteralInteger.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iLiteralInteger.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iLiteralInteger.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iLiteralInteger.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iLiteralInteger.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iLiteralInteger.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iLiteralInteger.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iLiteralInteger.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iLiteralInteger.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("LiteralInteger"u8); + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iLiteralInteger.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iLiteralInteger.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iLiteralInteger.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iLiteralInteger.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iLiteralInteger.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iLiteralInteger.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iLiteralInteger.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iLiteralInteger.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iLiteralInteger.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iLiteralInteger.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iLiteralInteger.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iLiteralInteger.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iLiteralInteger.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iLiteralInteger.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iLiteralInteger.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iLiteralInteger.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iLiteralInteger.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iLiteralInteger.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iLiteralInteger.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iLiteralInteger.Id); + writer.WriteStringValue(iLiteralInteger.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iLiteralInteger.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iLiteralInteger.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iLiteralInteger.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iLiteralInteger.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("value"u8); + writer.WriteNumberValue(iLiteralInteger.Value); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ILiteralInteger iLiteralInteger, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iLiteralInteger.AliasIds) @@ -155,7 +963,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("value"u8); writer.WriteNumberValue(iLiteralInteger.Value); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralRationalSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralRationalSerializer.cs index 355aa7e47..0a0427ab8 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralRationalSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralRationalSerializer.cs @@ -49,21 +49,829 @@ internal static class LiteralRationalSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ILiteralRational iLiteralRational) { - throw new ArgumentException("The object shall be an ILiteralRational", nameof(obj)); + throw new ArgumentException("The object shall be an ILiteralRational", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("LiteralRational"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iLiteralRational, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iLiteralRational, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ILiteralRational iLiteralRational, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iLiteralRational.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralRational.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iLiteralRational.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iLiteralRational.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iLiteralRational.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iLiteralRational.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iLiteralRational.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralRational.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iLiteralRational.Direction.HasValue) + { + writer.WriteStringValue(iLiteralRational.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iLiteralRational.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iLiteralRational.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iLiteralRational.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iLiteralRational.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iLiteralRational.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iLiteralRational.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iLiteralRational.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iLiteralRational.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iLiteralRational.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iLiteralRational.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iLiteralRational.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iLiteralRational.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iLiteralRational.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iLiteralRational.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iLiteralRational.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iLiteralRational.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iLiteralRational.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iLiteralRational.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iLiteralRational.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iLiteralRational.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iLiteralRational.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iLiteralRational.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iLiteralRational.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iLiteralRational.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iLiteralRational.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iLiteralRational.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iLiteralRational.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iLiteralRational.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iLiteralRational.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iLiteralRational.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iLiteralRational.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iLiteralRational.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iLiteralRational.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iLiteralRational.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iLiteralRational.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iLiteralRational.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iLiteralRational.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iLiteralRational.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iLiteralRational.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iLiteralRational.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iLiteralRational.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iLiteralRational.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iLiteralRational.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iLiteralRational.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("LiteralRational"u8); + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iLiteralRational.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iLiteralRational.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iLiteralRational.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iLiteralRational.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iLiteralRational.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iLiteralRational.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iLiteralRational.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iLiteralRational.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iLiteralRational.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iLiteralRational.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iLiteralRational.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iLiteralRational.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iLiteralRational.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iLiteralRational.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iLiteralRational.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iLiteralRational.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iLiteralRational.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iLiteralRational.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iLiteralRational.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iLiteralRational.Id); + writer.WriteStringValue(iLiteralRational.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iLiteralRational.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iLiteralRational.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iLiteralRational.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iLiteralRational.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("value"u8); + writer.WriteNumberValue(iLiteralRational.Value); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ILiteralRational iLiteralRational, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iLiteralRational.AliasIds) @@ -155,7 +963,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("value"u8); writer.WriteNumberValue(iLiteralRational.Value); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MembershipSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MembershipSerializer.cs index cbe185da7..afd21edc7 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MembershipSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class MembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IMembership iMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IMembership iMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iMembership.ElementId); @@ -88,18 +126,57 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iMembership.OwnedRelatedElement) @@ -124,6 +201,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iMembership.OwningRelatedElement.HasValue) @@ -152,6 +271,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iMembership.Source) @@ -176,10 +313,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IMembership iMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MultiplicityRangeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MultiplicityRangeSerializer.cs index 7ba221b27..de2f586cb 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MultiplicityRangeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MultiplicityRangeSerializer.cs @@ -49,7 +49,10 @@ internal static class MultiplicityRangeSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IMultiplicityRange iMultiplicityRange) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMultiplicityRange.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iMultiplicityRange, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iMultiplicityRange, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IMultiplicityRange iMultiplicityRange, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iMultiplicityRange.AliasIds) @@ -73,12 +99,74 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("bound"u8); + + foreach (var item in iMultiplicityRange.bound) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iMultiplicityRange.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iMultiplicityRange.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iMultiplicityRange.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMultiplicityRange.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iMultiplicityRange.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iMultiplicityRange.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iMultiplicityRange.Direction.HasValue) @@ -90,15 +178,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iMultiplicityRange.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iMultiplicityRange.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iMultiplicityRange.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iMultiplicityRange.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iMultiplicityRange.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iMultiplicityRange.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iMultiplicityRange.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iMultiplicityRange.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iMultiplicityRange.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iMultiplicityRange.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iMultiplicityRange.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iMultiplicityRange.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iMultiplicityRange.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iMultiplicityRange.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iMultiplicityRange.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iMultiplicityRange.IsConstant); @@ -111,6 +342,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iMultiplicityRange.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iMultiplicityRange.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iMultiplicityRange.IsOrdered); @@ -126,9 +360,23 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iMultiplicityRange.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WritePropertyName("lowerBound"u8); - foreach (var item in iMultiplicityRange.OwnedRelationship) + if (iMultiplicityRange.lowerBound.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.lowerBound.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("member"u8); + + foreach (var item in iMultiplicityRange.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +386,555 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iMultiplicityRange.OwningRelationship.HasValue) + foreach (var item in iMultiplicityRange.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iMultiplicityRange.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iMultiplicityRange.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iMultiplicityRange.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iMultiplicityRange.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iMultiplicityRange.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iMultiplicityRange.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iMultiplicityRange.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iMultiplicityRange.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iMultiplicityRange.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iMultiplicityRange.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iMultiplicityRange.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iMultiplicityRange.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iMultiplicityRange.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iMultiplicityRange.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iMultiplicityRange.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iMultiplicityRange.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iMultiplicityRange.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iMultiplicityRange.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iMultiplicityRange.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iMultiplicityRange.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iMultiplicityRange.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMultiplicityRange.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iMultiplicityRange.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iMultiplicityRange.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iMultiplicityRange.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iMultiplicityRange.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iMultiplicityRange.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iMultiplicityRange.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iMultiplicityRange.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iMultiplicityRange.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iMultiplicityRange.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iMultiplicityRange.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iMultiplicityRange.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iMultiplicityRange.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iMultiplicityRange.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iMultiplicityRange.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iMultiplicityRange.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iMultiplicityRange.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("upperBound"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.upperBound); + writer.WriteEndObject(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IMultiplicityRange iMultiplicityRange, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iMultiplicityRange.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iMultiplicityRange.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iMultiplicityRange.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iMultiplicityRange.Direction.HasValue) + { + writer.WriteStringValue(iMultiplicityRange.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iMultiplicityRange.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMultiplicityRange.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iMultiplicityRange.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +942,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/OwningMembershipSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/OwningMembershipSerializer.cs index 4436a3540..0d664aa76 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/OwningMembershipSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/OwningMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class OwningMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IOwningMembership iOwningMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iOwningMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iOwningMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iOwningMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IOwningMembership iOwningMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iOwningMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iOwningMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iOwningMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iOwningMembership.ElementId); @@ -88,18 +126,72 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iOwningMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iOwningMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iOwningMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iOwningMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iOwningMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iOwningMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iOwningMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iOwningMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iOwningMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iOwningMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iOwningMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iOwningMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iOwningMembership.OwnedRelatedElement) @@ -124,6 +216,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iOwningMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iOwningMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iOwningMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iOwningMembership.OwningRelatedElement.HasValue) @@ -152,6 +286,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iOwningMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iOwningMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iOwningMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iOwningMembership.Source) @@ -176,10 +328,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iOwningMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iOwningMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IOwningMembership iOwningMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iOwningMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iOwningMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iOwningMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iOwningMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iOwningMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iOwningMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iOwningMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iOwningMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iOwningMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iOwningMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iOwningMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iOwningMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iOwningMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iOwningMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iOwningMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs index 6a5da8313..d71581432 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs @@ -49,7 +49,10 @@ internal static class ReferenceSubsettingSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IReferenceSubsetting iReferenceSubsetting) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iReferenceSubsetting.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iReferenceSubsetting, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iReferenceSubsetting, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iReferenceSubsetting, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iReferenceSubsetting.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iReferenceSubsetting.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iReferenceSubsetting.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iReferenceSubsetting.ElementId); @@ -94,6 +132,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iReferenceSubsetting.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iReferenceSubsetting.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iReferenceSubsetting.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iReferenceSubsetting.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iReferenceSubsetting.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iReferenceSubsetting.OwnedRelatedElement) @@ -118,6 +186,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iReferenceSubsetting.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeature"u8); + + if (iReferenceSubsetting.owningFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owningFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iReferenceSubsetting.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iReferenceSubsetting.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iReferenceSubsetting.OwningRelatedElement.HasValue) @@ -146,12 +270,50 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iReferenceSubsetting.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iReferenceSubsetting.qualifiedName); + writer.WritePropertyName("referencedFeature"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iReferenceSubsetting.ReferencedFeature); writer.WriteEndObject(); + writer.WritePropertyName("referencingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.referencingFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iReferenceSubsetting.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iReferenceSubsetting.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iReferenceSubsetting.Source) @@ -194,7 +356,161 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iReferenceSubsetting.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IReferenceSubsetting iReferenceSubsetting, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iReferenceSubsetting.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iReferenceSubsetting.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iReferenceSubsetting.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iReferenceSubsetting.ElementId); + + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.General); + writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iReferenceSubsetting.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iReferenceSubsetting.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iReferenceSubsetting.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iReferenceSubsetting.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iReferenceSubsetting.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iReferenceSubsetting.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("referencedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.ReferencedFeature); writer.WriteEndObject(); + + writer.WriteStartArray("source"u8); + + foreach (var item in iReferenceSubsetting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.SubsettedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.SubsettingFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iReferenceSubsetting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/RequirementUsageSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/RequirementUsageSerializer.cs index 4ac823a53..3ae507840 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/RequirementUsageSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/RequirementUsageSerializer.cs @@ -49,21 +49,1407 @@ internal static class RequirementUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IRequirementUsage iRequirementUsage) { - throw new ArgumentException("The object shall be an IRequirementUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IRequirementUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("RequirementUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iRequirementUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iRequirementUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequirementUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iRequirementUsage.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iRequirementUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("assumedConstraint"u8); + + foreach (var item in iRequirementUsage.assumedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iRequirementUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iRequirementUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("constraintDefinition"u8); + + if (iRequirementUsage.constraintDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.constraintDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("crossFeature"u8); + + if (iRequirementUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iRequirementUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRequirementUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iRequirementUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iRequirementUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iRequirementUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iRequirementUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iRequirementUsage.Direction.HasValue) + { + writer.WriteStringValue(iRequirementUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iRequirementUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iRequirementUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iRequirementUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iRequirementUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iRequirementUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iRequirementUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iRequirementUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("framedConcern"u8); + + foreach (var item in iRequirementUsage.framedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iRequirementUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iRequirementUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iRequirementUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iRequirementUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iRequirementUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iRequirementUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iRequirementUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iRequirementUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iRequirementUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iRequirementUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iRequirementUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iRequirementUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iRequirementUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iRequirementUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iRequirementUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iRequirementUsage.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iRequirementUsage.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iRequirementUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iRequirementUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iRequirementUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iRequirementUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iRequirementUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iRequirementUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iRequirementUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iRequirementUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iRequirementUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iRequirementUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iRequirementUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iRequirementUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iRequirementUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iRequirementUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iRequirementUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iRequirementUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iRequirementUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iRequirementUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iRequirementUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iRequirementUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iRequirementUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iRequirementUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iRequirementUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iRequirementUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iRequirementUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iRequirementUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iRequirementUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iRequirementUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iRequirementUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iRequirementUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iRequirementUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iRequirementUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iRequirementUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iRequirementUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iRequirementUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iRequirementUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iRequirementUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iRequirementUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iRequirementUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iRequirementUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iRequirementUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iRequirementUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iRequirementUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iRequirementUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iRequirementUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iRequirementUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iRequirementUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iRequirementUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iRequirementUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iRequirementUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iRequirementUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iRequirementUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iRequirementUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iRequirementUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iRequirementUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iRequirementUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iRequirementUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iRequirementUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iRequirementUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iRequirementUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iRequirementUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iRequirementUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iRequirementUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iRequirementUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iRequirementUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iRequirementUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iRequirementUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iRequirementUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iRequirementUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iRequirementUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iRequirementUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iRequirementUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iRequirementUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iRequirementUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iRequirementUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("predicate"u8); + + if (iRequirementUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iRequirementUsage.qualifiedName); + + writer.WritePropertyName("reqId"u8); + writer.WriteStringValue(iRequirementUsage.ReqId); + + writer.WriteStartArray("requiredConstraint"u8); + + foreach (var item in iRequirementUsage.requiredConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("requirementDefinition"u8); + + if (iRequirementUsage.requirementDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.requirementDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } + writer.WritePropertyName("result"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.result); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("RequirementUsage"u8); + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iRequirementUsage.shortName); + + writer.WriteStartArray("stakeholderParameter"u8); + + foreach (var item in iRequirementUsage.stakeholderParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementUsage.Id); + writer.WriteStringValue(iRequirementUsage.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("text"u8); + + foreach (var item in iRequirementUsage.text) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iRequirementUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iRequirementUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iRequirementUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iRequirementUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iRequirementUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iRequirementUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IRequirementUsage iRequirementUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iRequirementUsage.AliasIds) @@ -172,7 +1558,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("reqId"u8); writer.WriteStringValue(iRequirementUsage.ReqId); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SelectExpressionSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SelectExpressionSerializer.cs index 812795e02..84be29b54 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SelectExpressionSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SelectExpressionSerializer.cs @@ -49,21 +49,847 @@ internal static class SelectExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ISelectExpression iSelectExpression) { - throw new ArgumentException("The object shall be an ISelectExpression", nameof(obj)); + throw new ArgumentException("The object shall be an ISelectExpression", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("SelectExpression"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iSelectExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iSelectExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ISelectExpression iSelectExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iSelectExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("argument"u8); + + foreach (var item in iSelectExpression.argument) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iSelectExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iSelectExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iSelectExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iSelectExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSelectExpression.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iSelectExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSelectExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iSelectExpression.Direction.HasValue) + { + writer.WriteStringValue(iSelectExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iSelectExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iSelectExpression.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iSelectExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iSelectExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iSelectExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iSelectExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iSelectExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iSelectExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iSelectExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iSelectExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iSelectExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iSelectExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("instantiatedType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.instantiatedType); + writer.WriteEndObject(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iSelectExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iSelectExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iSelectExpression.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iSelectExpression.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iSelectExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iSelectExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iSelectExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iSelectExpression.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iSelectExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iSelectExpression.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iSelectExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iSelectExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iSelectExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iSelectExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSelectExpression.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iSelectExpression.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iSelectExpression.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iSelectExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iSelectExpression.name); + + writer.WritePropertyName("operator"u8); + writer.WriteStringValue(iSelectExpression.Operator); + + writer.WriteStartArray("output"u8); + + foreach (var item in iSelectExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iSelectExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iSelectExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iSelectExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iSelectExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iSelectExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iSelectExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iSelectExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iSelectExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iSelectExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iSelectExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iSelectExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("SelectExpression"u8); + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iSelectExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iSelectExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iSelectExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iSelectExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iSelectExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iSelectExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iSelectExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iSelectExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iSelectExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iSelectExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iSelectExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iSelectExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iSelectExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iSelectExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iSelectExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iSelectExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iSelectExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iSelectExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iSelectExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iSelectExpression.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSelectExpression.Id); + writer.WriteStringValue(iSelectExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iSelectExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iSelectExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iSelectExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iSelectExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ISelectExpression iSelectExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iSelectExpression.AliasIds) @@ -155,7 +981,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SubclassificationSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SubclassificationSerializer.cs index a80c2909f..f627523ca 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SubclassificationSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SubclassificationSerializer.cs @@ -49,7 +49,10 @@ internal static class SubclassificationSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ISubclassification iSubclassification) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iSubclassification.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iSubclassification, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iSubclassification, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSubclassification, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iSubclassification.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iSubclassification.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iSubclassification.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubclassification.ElementId); @@ -94,6 +132,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iSubclassification.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iSubclassification.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iSubclassification.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iSubclassification.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iSubclassification.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iSubclassification.OwnedRelatedElement) @@ -118,6 +186,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iSubclassification.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningClassifier"u8); + + if (iSubclassification.owningClassifier.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.owningClassifier.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iSubclassification.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iSubclassification.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iSubclassification.OwningRelatedElement.HasValue) @@ -146,6 +270,38 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iSubclassification.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iSubclassification.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iSubclassification.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iSubclassification.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iSubclassification.Source) @@ -188,7 +344,155 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iSubclassification.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification iSubclassification, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iSubclassification.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iSubclassification.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSubclassification.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iSubclassification.ElementId); + + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.General); + writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iSubclassification.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iSubclassification.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iSubclassification.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iSubclassification.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iSubclassification.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iSubclassification.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iSubclassification.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subclassifier"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.Subclassifier); + writer.WriteEndObject(); + + writer.WritePropertyName("superclassifier"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.Superclassifier); writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iSubclassification.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/TextualRepresentationSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/TextualRepresentationSerializer.cs index a5e1c77d9..210ba1a28 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/TextualRepresentationSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/TextualRepresentationSerializer.cs @@ -49,7 +49,10 @@ internal static class TextualRepresentationSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ITextualRepresentation iTextualRepresentation) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iTextualRepresentation.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iTextualRepresentation, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iTextualRepresentation, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ITextualRepresentation iTextualRepresentation, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iTextualRepresentation.AliasIds) @@ -73,6 +99,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("annotatedElement"u8); + + foreach (var item in iTextualRepresentation.annotatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("annotation"u8); + + foreach (var item in iTextualRepresentation.annotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("body"u8); writer.WriteStringValue(iTextualRepresentation.Body); @@ -82,15 +132,69 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iTextualRepresentation.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iTextualRepresentation.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iTextualRepresentation.ElementId); writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iTextualRepresentation.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iTextualRepresentation.isLibraryElement); + writer.WritePropertyName("language"u8); writer.WriteStringValue(iTextualRepresentation.Language); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iTextualRepresentation.name); + + writer.WriteStartArray("ownedAnnotatingRelationship"u8); + + foreach (var item in iTextualRepresentation.ownedAnnotatingRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iTextualRepresentation.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iTextualRepresentation.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelationship"u8); foreach (var item in iTextualRepresentation.OwnedRelationship) @@ -103,6 +207,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iTextualRepresentation.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTextualRepresentation.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningAnnotatingRelationship"u8); + + if (iTextualRepresentation.owningAnnotatingRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTextualRepresentation.owningAnnotatingRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iTextualRepresentation.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTextualRepresentation.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iTextualRepresentation.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTextualRepresentation.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelationship"u8); if (iTextualRepresentation.OwningRelationship.HasValue) @@ -117,7 +277,96 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iTextualRepresentation.qualifiedName); + + writer.WritePropertyName("representedElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTextualRepresentation.representedElement); writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iTextualRepresentation.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iTextualRepresentation.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ITextualRepresentation iTextualRepresentation, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iTextualRepresentation.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("body"u8); + writer.WriteStringValue(iTextualRepresentation.Body); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iTextualRepresentation.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iTextualRepresentation.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iTextualRepresentation.ElementId); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iTextualRepresentation.IsImpliedIncluded); + + writer.WritePropertyName("language"u8); + writer.WriteStringValue(iTextualRepresentation.Language); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iTextualRepresentation.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iTextualRepresentation.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTextualRepresentation.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/UsageSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/UsageSerializer.cs index 0fbca2452..0ffb507ee 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/UsageSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/UsageSerializer.cs @@ -49,7 +49,10 @@ internal static class UsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IUsage iUsage) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iUsage.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IUsage iUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iUsage.AliasIds) @@ -73,12 +99,86 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iUsage.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iUsage.Direction.HasValue) @@ -90,15 +190,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iUsage.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iUsage.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iUsage.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iUsage.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iUsage.IsConstant); @@ -111,12 +354,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iUsage.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iUsage.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iUsage.IsOrdered); writer.WritePropertyName("isPortion"u8); writer.WriteBooleanValue(iUsage.IsPortion); + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iUsage.isReference); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iUsage.IsSufficient); @@ -129,9 +378,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUsage.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iUsage.mayTimeVary); - foreach (var item in iUsage.OwnedRelationship) + writer.WriteStartArray("member"u8); + + foreach (var item in iUsage.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -141,13 +393,940 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iUsage.OwningRelationship.HasValue) + foreach (var item in iUsage.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iUsage.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IUsage iUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iUsage.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iUsage.Direction.HasValue) + { + writer.WriteStringValue(iUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iUsage.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iUsage.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iUsage.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iUsage.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iUsage.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -155,7 +1334,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreJsonDtoDeSerializerGeneratorTestFixture.cs b/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreJsonDtoDeSerializerGeneratorTestFixture.cs index 9c117469f..5db63a98c 100644 --- a/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreJsonDtoDeSerializerGeneratorTestFixture.cs +++ b/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreJsonDtoDeSerializerGeneratorTestFixture.cs @@ -52,7 +52,7 @@ public async Task VerifyCanGenerateDtoJsonDeSerializer() } [Test, TestCaseSource(typeof(ExpectedConcreteClasses)), Category("Expected")] - public async Task VerifyMatchesExpectedSerializerClass(string className) + public async Task VerifyMatchesExpectedDeSerializerClass(string className) { var generatedCode = await this.umlCoreDtoDeSerializerGenerator.GenerateDtoDeSerializerClass(GeneratorSetupFixture.XmiReaderResult, this.umlDtoDeserializerDirectoryInfo, className); diff --git a/SysML2.NET.CodeGenerator.Tests/SysML2.NET.CodeGenerator.Tests.csproj b/SysML2.NET.CodeGenerator.Tests/SysML2.NET.CodeGenerator.Tests.csproj index 90716cf63..e6f438231 100644 --- a/SysML2.NET.CodeGenerator.Tests/SysML2.NET.CodeGenerator.Tests.csproj +++ b/SysML2.NET.CodeGenerator.Tests/SysML2.NET.CodeGenerator.Tests.csproj @@ -262,46 +262,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1231,349 +1191,389 @@ Always - - - - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + Always - + + + + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always diff --git a/SysML2.NET.CodeGenerator/Extensions/PropertyExtension.cs b/SysML2.NET.CodeGenerator/Extensions/PropertyExtension.cs index 0de395dc6..5523c1e77 100644 --- a/SysML2.NET.CodeGenerator/Extensions/PropertyExtension.cs +++ b/SysML2.NET.CodeGenerator/Extensions/PropertyExtension.cs @@ -20,8 +20,12 @@ namespace SysML2.NET.CodeGenerator.Extensions { + using System; + using System.Linq; + using uml4net.Classification; using uml4net.Extensions; + using uml4net.SimpleClassifiers; /// /// Extension class for the @@ -37,5 +41,36 @@ public static bool QueryIsNullableAndNotString(this IProperty property) { return property.QueryIsNullable() && property.QueryCSharpTypeName() != "string"; } + + /// + /// Asserts that the is an enum type with a default value provided + /// + /// The to assert + /// True if the have a default value for an enum + public static bool QueryIsEnumPropertyWithDefaultValue(this IProperty property) + { + ArgumentNullException.ThrowIfNull(property); + + if (!property.QueryIsEnum()) + { + return false; + } + + var defaultValue = property.QueryDefaultValueAsString(); + + if (defaultValue == "null") + { + return false; + } + + var valueSpecification = property.DefaultValue.FirstOrDefault(); + + if (valueSpecification is IInstanceValue instanceValue) + { + return instanceValue.Instance is IEnumerationLiteral; + } + + return false; + } } } diff --git a/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs b/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs index 6c0dfd39e..86986a187 100644 --- a/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs +++ b/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs @@ -56,12 +56,12 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) } var sb = new StringBuilder(); - + if (property.RedefinedProperty.Any(x => x.Name == property.Name)) { sb.Append("new "); } - + if (property.Type is IDataType) { if (property.QueryIsEnumerable()) @@ -72,12 +72,12 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) else { sb.Append($"{property.QueryCSharpTypeName()}"); - + if (property.QueryIsNullableAndNotString()) { sb.Append('?'); } - + sb.Append(' '); } } @@ -99,13 +99,13 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) sb.Append(' '); } - } - + } + var propertyName = StringExtensions.CapitalizeFirstLetter(property.Name); - if (property.IsReadOnly || property.IsDerived || property.IsDerivedUnion) + if (property.IsDerived || property.IsDerivedUnion) { - propertyName = $"{propertyName}"; + propertyName = StringExtensions.LowerCaseFirstLetter(propertyName); } sb.Append(propertyName); @@ -135,13 +135,12 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) var sb = new StringBuilder(); var propertyName = StringExtensions.CapitalizeFirstLetter(property.Name); - var hasSameNameAsClass = generatedClass.Name == propertyName; - var classHaveToImplementTwiceSameProperty = generatedClass.QueryAllProperties().Count(x => x.Name == property.Name) > 1; - - if (!hasSameNameAsClass && !classHaveToImplementTwiceSameProperty) + var isRedefinedByPropertyWithTheSameName = property.TryQueryRedefinedByProperty(generatedClass, out var redefiningProperty) && redefiningProperty.Name == property.Name; + + if (!isRedefinedByPropertyWithTheSameName) { sb.Append(property.Visibility.ToString().ToLower(CultureInfo.InvariantCulture)); - sb.Append(' '); + sb.Append(' '); } if (property.Type is IDataType) @@ -154,12 +153,12 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) else { sb.Append($"{property.QueryCSharpTypeName()}"); - + if (property.QueryIsNullableAndNotString()) { sb.Append('?'); } - + sb.Append(' '); } } @@ -183,12 +182,12 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) } } - if (property.IsReadOnly || property.IsDerived || property.IsDerivedUnion) + if (property.IsDerived || property.IsDerivedUnion) { - propertyName = $"{propertyName}"; + propertyName = StringExtensions.LowerCaseFirstLetter(propertyName); } - if (hasSameNameAsClass || classHaveToImplementTwiceSameProperty) + if (isRedefinedByPropertyWithTheSameName) { var owner = (INamedElement)property.Owner; propertyName = $"I{owner.Name}.{propertyName}"; @@ -204,9 +203,21 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) sb.Append(propertyName); sb.Append(' '); - if (property.IsReadOnly || property.IsDerived || property.IsDerivedUnion) + if (property.IsReadOnly || property.IsDerived || property.IsDerivedUnion) { - sb.Append($"{{ get; {(hasSameNameAsClass || classHaveToImplementTwiceSameProperty ? "" : "internal set;" )}}}"); + if(isRedefinedByPropertyWithTheSameName) + { + sb.Append("{ get; }"); + } + else + { + sb.Append("{ get; internal set; }"); + } + + if (property.QueryIsEnumerable()) + { + sb.Append(" = [];"); + } } else { @@ -216,22 +227,27 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) { sb.Append(" = [];"); } - else if (property.QueryIsDefaultValueDifferentThanDefault()) + } + + if (property.QueryIsDefaultValueDifferentThanDefault()) + { + if (property.QueryIsString()) { - if (property.QueryIsString()) - { - sb.Append($" = \"{property.QueryDefaultValueAsString()}\";"); - } - else - { - sb.Append($" = {property.QueryDefaultValueAsString()};"); - } + sb.Append($" = \"{property.QueryDefaultValueAsString()}\";"); } + else + { + sb.Append($" = {property.QueryDefaultValueAsString()};"); + } + } + else if (property.QueryIsEnumPropertyWithDefaultValue()) + { + sb.Append($" = {StringExtensions.CapitalizeFirstLetter(property.Type.Name)}.{StringExtensions.CapitalizeFirstLetter(property.QueryDefaultValueAsString())};"); } writer.WriteSafeString(sb + Environment.NewLine); }); - + handlebars.RegisterHelper("Property.WriteForPOCOInterface", (writer, context, _) => { if (context.Value is not IProperty property) @@ -246,7 +262,7 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) { sb.Append("new "); } - + if (property.Type is not IDataType) { typeName = $"I{typeName}"; @@ -263,25 +279,21 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) sb.Append($"{typeName}? "); } else - { + { sb.Append($"{typeName} "); } } - + var propertyName = StringExtensions.CapitalizeFirstLetter(property.Name); if (property.IsDerived || property.IsDerivedUnion) { - propertyName = $"Query{propertyName}"; + propertyName = StringExtensions.LowerCaseFirstLetter(propertyName); } sb.Append(propertyName); - if (property.IsDerived || property.IsDerivedUnion) - { - sb.Append("();"); - } - else if (property.IsReadOnly) + if (property.IsReadOnly || property.IsDerived || property.IsDerivedUnion) { sb.Append(" { get; }"); } @@ -292,7 +304,7 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) writer.WriteSafeString(sb + Environment.NewLine); }); - + handlebars.RegisterHelper("Property.WriteForPOCOClass", (writer, context, arguments) => { if (context.Value is not IProperty property) @@ -311,18 +323,17 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) } var sb = new StringBuilder(); + var isRedefinedByPropertyWithTheSameName = property.TryQueryRedefinedByProperty(generatedClass, out var redefiningProperty) && redefiningProperty.Name == property.Name; var typeName = property.QueryCSharpTypeName(); var propertyName = StringExtensions.CapitalizeFirstLetter(property.Name); - var hasSameNameAsClass = !property.IsDerived && !property.IsDerivedUnion && generatedClass.Name == propertyName; - var classHaveToImplementTwiceSameProperty = generatedClass.QueryAllProperties().Count(x => x.Name == property.Name) > 1; - - if (!hasSameNameAsClass && !classHaveToImplementTwiceSameProperty) + + if (!isRedefinedByPropertyWithTheSameName) { sb.Append(property.Visibility.ToString().ToLower(CultureInfo.InvariantCulture)); - sb.Append(' '); + sb.Append(' '); } - + if (property.Type is not IDataType) { typeName = $"I{typeName}"; @@ -334,22 +345,22 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) } else { - if (property.QueryIsNullableAndNotString() && !property.QueryIsReferenceProperty()) + if (property.QueryIsNullableAndNotString() && !property.QueryIsReferenceProperty()) { sb.Append($"{typeName}? "); } else - { + { sb.Append($"{typeName} "); } } - + if (property.IsDerived || property.IsDerivedUnion) { - propertyName = $"Query{propertyName}"; + propertyName = StringExtensions.LowerCaseFirstLetter(propertyName); } - if (hasSameNameAsClass || classHaveToImplementTwiceSameProperty) + if (isRedefinedByPropertyWithTheSameName) { var owner = (INamedElement)property.Owner; propertyName = $"I{owner.Name}.{propertyName}"; @@ -361,28 +372,60 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) propertyName = $"{ownerNamespace}.{propertyName}"; } } - + sb.Append(propertyName); if (property.IsDerived || property.IsDerivedUnion) { - sb.Append("()"); - sb.AppendLine("{"); - sb.AppendLine($"\treturn this.Compute{StringExtensions.CapitalizeFirstLetter(property.Name)}();"); - sb.Append('}'); + if (isRedefinedByPropertyWithTheSameName) + { + var owningClass = redefiningProperty.Owner as IClass; + sb.Append($"=> throw new InvalidOperationException(\"Redefined by property I{owningClass?.Name}.{StringExtensions.CapitalizeFirstLetter(redefiningProperty.Name)}\");"); + } + else + { + sb.Append($"=> this.Compute{StringExtensions.CapitalizeFirstLetter(property.Name)}();"); + } } else if (property.IsReadOnly) { - sb.Append(" { get; }"); + if (isRedefinedByPropertyWithTheSameName) + { + var owningClass = redefiningProperty.Owner as IClass; + sb.Append($"=> throw new InvalidOperationException(\"Redefined by property I{owningClass?.Name}.{StringExtensions.CapitalizeFirstLetter(redefiningProperty.Name)}\");"); + } + else + { + sb.Append(" { get; }"); + } } else { sb.Append(" { get; set; }"); + + if (property.QueryIsEnumerable()) + { + sb.Append(" = [];"); + } } - if (!property.IsReadOnly && !property.IsDerived && !property.IsDerivedUnion && property.QueryIsEnumerable()) + if (!property.IsDerived || property.IsDerivedUnion) { - sb.Append(" = [];"); + if (property.QueryIsDefaultValueDifferentThanDefault()) + { + if (property.QueryIsString()) + { + sb.Append($" = \"{property.QueryDefaultValueAsString()}\";"); + } + else + { + sb.Append($" = {property.QueryDefaultValueAsString()};"); + } + } + else if (property.QueryIsEnumPropertyWithDefaultValue()) + { + sb.Append($" = {StringExtensions.CapitalizeFirstLetter(property.Type.Name)}.{StringExtensions.CapitalizeFirstLetter(property.QueryDefaultValueAsString())};"); + } } writer.WriteSafeString(sb + Environment.NewLine); @@ -420,39 +463,33 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) writer.WriteSafeString(sb); }); - handlebars.RegisterHelper("Property.ContainsPropertyRedifinitionWithSameName", (context, arguments) => + handlebars.RegisterHelper("Property.IsPropertyRedefinedInClass", (context, arguments) => { if (context.Value is not IProperty property) { - throw new ArgumentException("The #Property.ContainsPropertyRedifinitionWithSameName context supposed to be IProperty"); + throw new ArgumentException("The #Property.IsPropertyRedefinedInClass context supposed to be IProperty"); } if (arguments.Length != 2) { - throw new ArgumentException("The #Property.ContainsPropertyRedifinitionWithSameName supposed to be have 2 arguments IProperty"); + throw new ArgumentException("The #Property.IsPropertyRedefinedInClass supposed to be have 2 arguments IProperty"); } if (arguments[1] is not IClass generatedClass) { - throw new ArgumentException("The #Property.ContainsPropertyRedifinitionWithSameName supposed to be have an IClass as second argument"); - } - - if (!property.QueryIsRedefined()) - { - return false; + throw new ArgumentException("The #Property.IsPropertyRedefinedInClass supposed to be have an IClass as second argument"); } - var allProperties = generatedClass.QueryAllProperties(); - return property.RedefinedProperty.Where(x => x.Name == property.Name).Any(x => allProperties.Contains(x)); + return property.TryQueryRedefinedByProperty(generatedClass, out _); }); - + handlebars.RegisterHelper("Property.IsRedefinedOrRedifines", (context, arguments) => { if (context.Value is not IProperty property) { throw new ArgumentException("The #Property.IsRedefinedOrRedifines context supposed to be IProperty"); } - + if (arguments.Length != 2) { throw new ArgumentException("The #Property.IsRedefinedOrRedifines supposed to be have 2 arguments IProperty"); @@ -465,9 +502,76 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) var allProperties = generatedClass.QueryAllProperties(); var propertiesWithSameName = allProperties.SkipWhile(x => x == property).Where(x => x.Name == property.Name); - + return property.RedefinedProperty.Any(x => propertiesWithSameName.Contains(x)) || propertiesWithSameName.Any(x => x.RedefinedProperty.Contains(property)); }); - } + + handlebars.RegisterHelper("Property.IsRedefinedByPropertyWithSameName", (context, arguments) => + { + if (context.Value is not IProperty property) + { + throw new ArgumentException("The #Property.IsRedefinedByPropertyWithSameName context supposed to be IProperty"); + } + + if (arguments.Length != 2) + { + throw new ArgumentException("The #Property.IsRedefinedByPropertyWithSameName supposed to be have 2 arguments"); + } + + if (arguments[1] is not IClass generatedClass) + { + throw new ArgumentException("The #Property.IsRedefinedByPropertyWithSameName supposed to be have an IClass as second argument"); + } + + if (!property.TryQueryRedefinedByProperty(generatedClass, out var redefinition)) + { + return false; + } + + return redefinition.Name == property.Name; + }); + + handlebars.RegisterHelper("Property.WritePropertyName", (writer, context, _) => + { + if (context.Value is not IProperty property) + { + throw new ArgumentException("The #Property.WritePropertyName context supposed to be IProperty"); + } + + var propertyName = property.IsDerived || property.IsDerivedUnion ? StringExtensions.LowerCaseFirstLetter(property.Name) : StringExtensions.CapitalizeFirstLetter(property.Name); + writer.WriteSafeString(propertyName); + }); + + handlebars.RegisterHelper("Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO", (writer, context, arguments) => + { + if (context.Value is not IProperty property) + { + throw new ArgumentException("The #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO context supposed to be IProperty"); + } + + if (arguments.Length != 3) + { + throw new ArgumentException("The #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO supposed to be have 3 arguments"); + } + + if (arguments[1] is not IClass generatedClass) + { + throw new ArgumentException("The #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO supposed to be have an IClass as second argument"); + } + + var variableName = arguments[2].ToString(); + var propertyName = property.IsDerived || property.IsDerivedUnion ? StringExtensions.LowerCaseFirstLetter(property.Name) : StringExtensions.CapitalizeFirstLetter(property.Name); + + if (property.TryQueryRedefinedByProperty(generatedClass, out var redefinitionProperty) && redefinitionProperty.Name == property.Name) + { + var owner = (INamedElement)property.Owner; + writer.WriteSafeString($"((SysML2.NET.Core.DTO.{owner.QueryNamespace()}.I{owner.Name}){variableName}).{propertyName}"); + } + else + { + writer.WriteSafeString($"{variableName}.{propertyName}"); + } + }); + } } } \ No newline at end of file diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-deserializer-uml-template.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-deserializer-uml-template.hbs index 6d93c5043..c45ec131f 100644 --- a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-deserializer-uml-template.hbs +++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-deserializer-uml-template.hbs @@ -69,7 +69,7 @@ namespace SysML2.NET.Serializer.Json.Core.DTO throw new InvalidOperationException($"The {{ this.Name }}DeSerializer can only be used to deserialize objects of type I{{ this.Name }}, a {@type.GetString()} was provided"); } - I{{ this.Name }} dtoInstance = new SysML2.NET.Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }}(); + var dtoInstance = new SysML2.NET.Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }}(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -87,22 +87,21 @@ namespace SysML2.NET.Serializer.Json.Core.DTO {{#with this as |class| }} {{ #each (Class.QueryAllProperties this) as | property | }} - {{#unless this.IsDerived}} {{#unless this.IsTransient}} - {{#unless (Property.ContainsPropertyRedifinitionWithSameName this class)}} + {{#unless (Property.IsRedefinedByPropertyWithSameName this class)}} if (jsonElement.TryGetProperty("{{ property.Name }}"u8, out var {{ property.Name }}Property)) { {{#if (Property.QueryIsReferenceProperty property)}} {{#if (Property.QueryIsEnumerable property)}} foreach (var arrayItem in {{ property.Name }}Property.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var {{ property.Name }}IdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var {{ property.Name }}ExternalIdProperty)) { - var propertyValue = {{ property.Name }}IdProperty.GetString(); + var propertyValue = {{ property.Name }}ExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.{{String.CapitalizeFirstLetter property.Name }}.Add(Guid.Parse(propertyValue)); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(Guid.Parse(propertyValue)); } } } @@ -110,21 +109,21 @@ namespace SysML2.NET.Serializer.Json.Core.DTO if ({{ property.Name }}Property.ValueKind == JsonValueKind.Null) { {{#if (Property.QueryIsNullable property) }} - dtoInstance.{{String.CapitalizeFirstLetter property.Name }} = null; + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = null; {{else}} - dtoInstance.{{String.CapitalizeFirstLetter property.Name }} = Guid.Empty; - logger.LogDebug($"the {{ class.Name }}.{{String.CapitalizeFirstLetter property.Name }} property was not found in the Json. The value is set to Guid.Empty"); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = Guid.Empty; + logger.LogDebug($"the {{ class.Name }}.{{Property.WritePropertyName property}} property was not found in the Json. The value is set to Guid.Empty"); {{/if}} } else { - if ({{ property.Name }}Property.TryGetProperty("@id"u8, out var {{ property.Name }}IdProperty)) + if ({{ property.Name }}Property.TryGetProperty("@id"u8, out var {{ property.Name }}ExternalIdProperty)) { - var propertyValue = {{ property.Name }}IdProperty.GetString(); + var propertyValue = {{ property.Name }}ExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.{{String.CapitalizeFirstLetter property.Name }} = Guid.Parse(propertyValue); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = Guid.Parse(propertyValue); } } } @@ -138,15 +137,15 @@ namespace SysML2.NET.Serializer.Json.Core.DTO if (propertyValue != null) { - dtoInstance.{{String.CapitalizeFirstLetter property.Name }}.Add(propertyValue); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(propertyValue); } {{else if (Property.QueryIsEnum property )}} throw new NotImplementedException("Enumerable Enum - {{class.Name}}.{{property.Name}} is not yet supported"); {{else if (Property.QueryIsNumeric property )}} {{#if (Property.QueryIsInteger property) }} - dtoInstance.{{String.CapitalizeFirstLetter property.Name }}.Add(arrayItem.GetInt32()); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(arrayItem.GetInt32()); {{else if (Property.QueryIsDouble property) }} - dtoInstance.{{String.CapitalizeFirstLetter property.Name }}.Add(arrayItem.GetDouble()); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(arrayItem.GetDouble()); {{ else }} throw new NotImplementedException("Enumerable Double - {{class.Name}}.{{property.Name}} is not yet supported"); {{/if}} @@ -155,39 +154,39 @@ namespace SysML2.NET.Serializer.Json.Core.DTO if (propertyValue != null) { - dtoInstance.{{String.CapitalizeFirstLetter property.Name }}.Add(propertyValue); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(propertyValue); } {{/if}} } {{ else if (Property.QueryIsNullable property) }} {{#if (Property.QueryIsBool property )}} - dtoInstance.{{String.CapitalizeFirstLetter property.Name }} = {{ property.Name }}Property.GetBoolean(); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetBoolean(); {{else if (Property.QueryIsEnum property )}} - dtoInstance.{{String.CapitalizeFirstLetter property.Name }} = {{ property.Type.Name }}DeSerializer.DeserializeNullable({{ property.Name }}Property.GetString()); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Type.Name }}DeSerializer.DeserializeNullable({{ property.Name }}Property.GetString()); {{else if (Property.QueryIsNumeric property )}} {{#if (Property.QueryIsInteger property) }} - dtoInstance.{{String.CapitalizeFirstLetter property.Name }} = {{ property.Name }}Property.GetInt32(); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetInt32(); {{else if (Property.QueryIsDouble property) }} - dtoInstance.{{String.CapitalizeFirstLetter property.Name }} = {{ property.Name }}Property.GetDouble(); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetDouble(); {{ else }} new NotImplementedException("nullable - {{class.Name}}.{{property.Name}} is not yet supported"); {{/if}} {{else}} - dtoInstance.{{String.CapitalizeFirstLetter property.Name }} = {{ property.Name }}Property.GetString(); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetString(); {{/if}} {{ else if (Property.QueryIsScalar property) }} {{#if (Property.QueryIsBool property )}} if ({{ property.Name }}Property.ValueKind != JsonValueKind.Null) { - dtoInstance.{{String.CapitalizeFirstLetter property.Name }} = {{ property.Name }}Property.GetBoolean(); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetBoolean(); } {{else if (Property.QueryIsEnum property )}} - dtoInstance.{{String.CapitalizeFirstLetter property.Name }} = {{ property.Type.Name }}DeSerializer.Deserialize({{ property.Name }}Property.GetString()); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Type.Name }}DeSerializer.Deserialize({{ property.Name }}Property.GetString()); {{else if (Property.QueryIsNumeric property )}} {{#if (Property.QueryIsInteger property) }} - dtoInstance.{{String.CapitalizeFirstLetter property.Name }} = {{ property.Name }}Property.GetInt32(); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetInt32(); {{else if (Property.QueryIsDouble property) }} - dtoInstance.{{String.CapitalizeFirstLetter property.Name }} = {{ property.Name }}Property.GetDouble(); + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetDouble(); {{ else }} new NotImplementedException("Scalar - {{class.Name}}.{{property.Name}} is not yet supported"); {{/if}} @@ -196,7 +195,7 @@ namespace SysML2.NET.Serializer.Json.Core.DTO if (propertyValue != null) { - dtoInstance.{{String.CapitalizeFirstLetter property.Name }} = propertyValue; + {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = propertyValue; } {{/if}} {{/if}} @@ -207,7 +206,6 @@ namespace SysML2.NET.Serializer.Json.Core.DTO logger.LogDebug("the {{ property.Name }} Json property was not found in the {{ class.Name }}: { Id }", dtoInstance.Id); } - {{/unless}} {{/unless}} {{/unless}} {{/each}} diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serialization-provider-uml-template.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serialization-provider-uml-template.hbs index 598eb890a..15ab862bd 100644 --- a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serialization-provider-uml-template.hbs +++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serialization-provider-uml-template.hbs @@ -36,30 +36,30 @@ namespace SysML2.NET.Serializer.Json.Core.DTO internal static class SerializationProvider { /// - /// Caches the delegate for the + /// Caches the delegate for the /// that is to be serialized /// - private static readonly Dictionary> SerializerActionMap = new Dictionary> + private static readonly Dictionary> SerializerActionMap = new Dictionary> { - {{#each this as | eClass |}} - { typeof(SysML2.NET.Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ eClass.Name }}), {{ eClass.Name }}Serializer.Serialize }, + {{#each this as | class |}} + { typeof(SysML2.NET.Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ class.Name }}), {{ class.Name }}Serializer.Serialize }, {{/each}} }; /// - /// Provides the delegate for the + /// Provides the delegate for the /// that is to be serialized /// /// /// The subject that is to be serialized /// /// - /// A Delegate of + /// A Delegate of /// /// /// Thrown when the is not supported. /// - internal static Action Provide(System.Type type) + internal static Action Provide(System.Type type) { return !SerializerActionMap.TryGetValue(type, out var action) ? throw new NotSupportedException($"The {type.Name} is not supported by the SerializationProvider.") : action; } diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs index d49eb3212..e36e89e28 100644 --- a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs +++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs @@ -49,7 +49,10 @@ namespace SysML2.NET.Serializer.Json.Core.DTO /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not I{{ this.Name }} i{{this.Name }}) { @@ -64,21 +67,43 @@ namespace SysML2.NET.Serializer.Json.Core.DTO writer.WritePropertyName("@id"u8); writer.WriteStringValue(i{{this.Name }}.Id); + if(includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(i{{this.Name }}, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(i{{this.Name }}, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(I{{ this.Name }} i{{this.Name }}, Utf8JsonWriter writer) + { {{#with this as |class| }} - {{ #each (Class.QueryAllProperties this) as | property | }} - {{#unless this.IsDerived}} + {{ #each (Class.QueryAllProperties this) as | property | }} {{#unless this.IsTransient}} - {{#unless (Property.ContainsPropertyRedifinitionWithSameName this class)}} - {{#if (Property.QueryIsEnumerable property)}} - writer.WriteStartArray("{{String.LowerCaseFirstLetter property.Name }}"u8); - - foreach (var item in i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name}}) - { + {{#unless (Property.IsRedefinedByPropertyWithSameName this class)}} + {{#if (Property.QueryIsEnumerable property)}} + writer.WriteStartArray("{{String.LowerCaseFirstLetter property.Name }}"u8); + + foreach (var item in i{{class.Name}}.{{Property.WritePropertyName property}}) + { {{#if (Property.QueryIsReferenceProperty property)}} - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); {{else if (Property.QueryIsBool property)}} writer.WriteBooleanValue(item); {{else if (Property.QueryIsEnum property)}} @@ -88,63 +113,154 @@ namespace SysML2.NET.Serializer.Json.Core.DTO {{else}} writer.WriteStringValue(item); {{/if}} - } - - writer.WriteEndArray(); - {{else if (Property.QueryIsNullable property)}} - writer.WritePropertyName("{{ String.LowerCaseFirstLetter property.Name }}"u8); - {{#if (Property.QueryIsString property )}} - writer.WriteStringValue(i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name }}); - {{ else }} - - if (i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name }}.HasValue) - { + } + + writer.WriteEndArray(); + {{else if (Property.QueryIsNullable property)}} + writer.WritePropertyName("{{ String.LowerCaseFirstLetter property.Name }}"u8); + {{#if (Property.QueryIsString property )}} + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}); + {{ else }} + + if (i{{class.Name}}.{{Property.WritePropertyName property}}.HasValue) + { + {{#if (Property.QueryIsReferenceProperty property)}} + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value); + writer.WriteEndObject(); + {{else if (Property.QueryIsBool property )}} + writer.WriteBooleanValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value); + {{else if (property.QueryIsEnum property )}} + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value.ToString().ToLower()); + {{else if (Property.QueryIsNumeric property )}} + writer.WriteNumberValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value); + {{else}} + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value); + {{/if}} + } + else + { + writer.WriteNullValue(); + } + {{/if}} + {{ else if (Property.QueryIsScalar property)}} + writer.WritePropertyName("{{ String.LowerCaseFirstLetter property.Name }}"u8); {{#if (Property.QueryIsReferenceProperty property)}} writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name }}.Value); + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}); writer.WriteEndObject(); {{else if (Property.QueryIsBool property )}} - writer.WriteBooleanValue(i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name }}.Value); - {{else if (property.QueryIsEnum property )}} - writer.WriteStringValue(i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name }}.Value.ToString().ToLower()); + writer.WriteBooleanValue(i{{class.Name}}.{{Property.WritePropertyName property}}); + {{else if (Property.QueryIsString property )}} + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}); + {{else if (Property.QueryIsEnum property )}} + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.ToString().ToLower()); {{else if (Property.QueryIsNumeric property )}} - writer.WriteNumberValue(i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name }}.Value); + writer.WriteNumberValue(i{{class.Name}}.{{Property.WritePropertyName property}}); {{else}} - writer.WriteStringValue(i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name }}.Value); + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}); {{/if}} - } - else + {{/if}} + + {{/unless}} + {{/unless}} + {{/each}} + {{/with}} + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(I{{ this.Name }} i{{this.Name }}, Utf8JsonWriter writer) + { + {{#with this as |class| }} + {{ #each (Class.QueryAllProperties this) as | property | }} + {{#unless this.IsDerived}} + {{#unless this.IsTransient}} + {{#unless (Property.IsRedefinedByPropertyWithSameName this class)}} + {{#if (Property.QueryIsEnumerable property)}} + writer.WriteStartArray("{{String.LowerCaseFirstLetter property.Name }}"u8); + + foreach (var item in i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name}}) { - writer.WriteNullValue(); + {{#if (Property.QueryIsReferenceProperty property)}} + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + {{else if (Property.QueryIsBool property)}} + writer.WriteBooleanValue(item); + {{else if (Property.QueryIsEnum property)}} + writer.WriteStringValue(item.ToString().ToLower()); + {{else if (Property.QueryIsNumeric property)}} + writer.WriteNumberValue(item); + {{else}} + writer.WriteStringValue(item); + {{/if}} } + + writer.WriteEndArray(); + {{else if (Property.QueryIsNullable property)}} + writer.WritePropertyName("{{ String.LowerCaseFirstLetter property.Name }}"u8); + {{#if (Property.QueryIsString property )}} + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}); + {{ else }} + + if (i{{class.Name}}.{{Property.WritePropertyName property}}.HasValue) + { + {{#if (Property.QueryIsReferenceProperty property)}} + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value); + writer.WriteEndObject(); + {{else if (Property.QueryIsBool property )}} + writer.WriteBooleanValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value); + {{else if (property.QueryIsEnum property )}} + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value.ToString().ToLower()); + {{else if (Property.QueryIsNumeric property )}} + writer.WriteNumberValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value); + {{else}} + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value); + {{/if}} + } + else + { + writer.WriteNullValue(); + } + {{/if}} + {{ else if (Property.QueryIsScalar property)}} + writer.WritePropertyName("{{ String.LowerCaseFirstLetter property.Name }}"u8); + {{#if (Property.QueryIsReferenceProperty property)}} + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}); + writer.WriteEndObject(); + {{else if (Property.QueryIsBool property )}} + writer.WriteBooleanValue(i{{class.Name}}.{{Property.WritePropertyName property}}); + {{else if (Property.QueryIsString property )}} + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}); + {{else if (Property.QueryIsEnum property )}} + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.ToString().ToLower()); + {{else if (Property.QueryIsNumeric property )}} + writer.WriteNumberValue(i{{class.Name}}.{{Property.WritePropertyName property}}); + {{else}} + writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}); + {{/if}} {{/if}} - {{ else if (Property.QueryIsScalar property)}} - writer.WritePropertyName("{{ String.LowerCaseFirstLetter property.Name }}"u8); - {{#if (Property.QueryIsReferenceProperty property)}} - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name }}); - writer.WriteEndObject(); - {{else if (Property.QueryIsBool property )}} - writer.WriteBooleanValue(i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name }}); - {{else if (Property.QueryIsString property )}} - writer.WriteStringValue(i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name }}); - {{else if (Property.QueryIsEnum property )}} - writer.WriteStringValue(i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name }}.ToString().ToLower()); - {{else if (Property.QueryIsNumeric property )}} - writer.WriteNumberValue(i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name }}); - {{else}} - writer.WriteStringValue(i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name }}); - {{/if}} - {{/if}} - - {{/unless}} + {{/unless}} + {{/unless}} {{/unless}} - {{/each}} - {{/with}} - writer.WriteEndObject(); + {{/each}} + {{/with}} } } } diff --git a/SysML2.NET.Dal/Assembler.cs b/SysML2.NET.Dal/Assembler.cs index bfc2a78eb..4f109ead7 100644 --- a/SysML2.NET.Dal/Assembler.cs +++ b/SysML2.NET.Dal/Assembler.cs @@ -54,7 +54,7 @@ public Assembler(ILoggerFactory loggerFactory = null) /// Gets the Cache that contains all the s /// public ConcurrentDictionary> Cache { get; private set; } - + /// /// Synchronize the Cache based on the provided /// diff --git a/SysML2.NET.Serializer.Json.Tests/ApiSerializerTestFixture.cs b/SysML2.NET.Serializer.Json.Tests/ApiSerializerTestFixture.cs index 9384d2b9d..83b2a5e32 100644 --- a/SysML2.NET.Serializer.Json.Tests/ApiSerializerTestFixture.cs +++ b/SysML2.NET.Serializer.Json.Tests/ApiSerializerTestFixture.cs @@ -26,6 +26,7 @@ namespace SysML2.NET.Serializer.Json.Tests using System.Text; using System.Text.Json; using System.Threading; + using System.Threading.Tasks; using NUnit.Framework; @@ -90,39 +91,45 @@ private void CreateTestData() } [Test] - public void Verify_that_PIM_IDatas_can_be_serialized() + [TestCase(false)] + [TestCase(true)] + public void Verify_that_PIM_IDatas_can_be_serialized(bool includeDerivedProperties) { var dataItems = new List { this.project, this.commit, this.branch }; var stream = new MemoryStream(); var jsonWriterOptions = new JsonWriterOptions { Indented = true }; - Assert.That(() => this.serializer.Serialize(dataItems, SerializationModeKind.JSON, stream, jsonWriterOptions), Throws.Nothing); ; + Assert.That(() => this.serializer.Serialize(dataItems, SerializationModeKind.JSON, includeDerivedProperties, stream, jsonWriterOptions), Throws.Nothing); ; var json = Encoding.UTF8.GetString(stream.ToArray()); Console.WriteLine(json); } [Test] - public void Verify_that_PIM_IData_can_be_serialized() + [TestCase(false)] + [TestCase(true)] + public void Verify_that_PIM_IData_can_be_serialized(bool includeDerivedProperties) { var jsonWriterOptions = new JsonWriterOptions { Indented = true }; var stream = new MemoryStream(); - Assert.That(() => this.serializer.Serialize(this.project, SerializationModeKind.JSON, stream, jsonWriterOptions), Throws.Nothing); + Assert.That(() => this.serializer.Serialize(this.project, SerializationModeKind.JSON, includeDerivedProperties, stream, jsonWriterOptions), Throws.Nothing); var json = Encoding.UTF8.GetString(stream.ToArray()); Console.WriteLine(json); stream = new MemoryStream(); - Assert.That(() => this.serializer.Serialize(this.project, SerializationModeKind.JSON, stream, jsonWriterOptions), Throws.Nothing); + Assert.That(() => this.serializer.Serialize(this.project, SerializationModeKind.JSON, includeDerivedProperties, stream, jsonWriterOptions), Throws.Nothing); json = Encoding.UTF8.GetString(stream.ToArray()); Console.WriteLine(json); } [Test] - public void Verify_that_PIM_IDatas_can_be_serialized_async() + [TestCase(false)] + [TestCase(true)] + public async Task Verify_that_PIM_IDatas_can_be_serialized_async(bool includeDerivedProperties) { var dataItems = new List { this.project, this.commit, this.branch }; var stream = new MemoryStream(); @@ -130,21 +137,23 @@ public void Verify_that_PIM_IDatas_can_be_serialized_async() var cts = new CancellationTokenSource(); - Assert.That(async () => await this.serializer.SerializeAsync(dataItems, SerializationModeKind.JSON, stream, jsonWriterOptions, cts.Token), Throws.Nothing); ; + await Assert.ThatAsync(() => this.serializer.SerializeAsync(dataItems, SerializationModeKind.JSON, includeDerivedProperties, stream, jsonWriterOptions, cts.Token), Throws.Nothing); var json = Encoding.UTF8.GetString(stream.ToArray()); Console.WriteLine(json); } [Test] - public void Verify_that_PIM_IData_can_be_serialized_async() + [TestCase(false)] + [TestCase(true)] + public async Task Verify_that_PIM_IData_can_be_serialized_async(bool includeDerivedProperties) { var stream = new MemoryStream(); var jsonWriterOptions = new JsonWriterOptions { Indented = true }; var cts = new CancellationTokenSource(); - Assert.That(async () => await this.serializer.SerializeAsync(this.project, SerializationModeKind.JSON, stream, jsonWriterOptions, cts.Token), Throws.Nothing); ; + await Assert.ThatAsync(() => this.serializer.SerializeAsync(this.project, SerializationModeKind.JSON, includeDerivedProperties, stream, jsonWriterOptions, cts.Token), Throws.Nothing); var json = Encoding.UTF8.GetString(stream.ToArray()); Console.WriteLine(json); diff --git a/SysML2.NET.Serializer.Json.Tests/SerializerTestFixture.cs b/SysML2.NET.Serializer.Json.Tests/SerializerTestFixture.cs index 1af86769d..38e3c8503 100644 --- a/SysML2.NET.Serializer.Json.Tests/SerializerTestFixture.cs +++ b/SysML2.NET.Serializer.Json.Tests/SerializerTestFixture.cs @@ -26,6 +26,7 @@ namespace SysML2.NET.Serializer.Json.Tests using System.Text; using System.Text.Json; using System.Threading; + using System.Threading.Tasks; using NUnit.Framework; @@ -83,38 +84,44 @@ private void CreateTestData() } [Test] - public void Verify_that_Elements_can_be_serialized() + [TestCase(false)] + [TestCase(true)] + public void Verify_that_Elements_can_be_serialized(bool includeDerivedProperties) { var elements = new List { this.partDefinition, this.partDefinitionWithNullProperties }; var stream = new MemoryStream(); var jsonWriterOptions = new JsonWriterOptions { Indented = true }; - Assert.That(() => this.serializer.Serialize(elements, SerializationModeKind.JSON, stream, jsonWriterOptions), Throws.Nothing); ; + Assert.That(() => this.serializer.Serialize(elements, SerializationModeKind.JSON, includeDerivedProperties,stream, jsonWriterOptions), Throws.Nothing); var json = Encoding.UTF8.GetString(stream.ToArray()); Console.WriteLine(json); } [Test] - public void Verify_that_Element_can_be_serialized() + [TestCase(false)] + [TestCase(true)] + public void Verify_that_Element_can_be_serialized(bool includeDerivedProperties) { var jsonWriterOptions = new JsonWriterOptions { Indented = true }; var stream = new MemoryStream(); - Assert.That(() => this.serializer.Serialize(this.partDefinition, SerializationModeKind.JSON, stream, jsonWriterOptions), Throws.Nothing); + Assert.That(() => this.serializer.Serialize(this.partDefinition, SerializationModeKind.JSON, includeDerivedProperties, stream, jsonWriterOptions), Throws.Nothing); var json = Encoding.UTF8.GetString(stream.ToArray()); Console.WriteLine(json); stream = new MemoryStream(); - Assert.That(() => this.serializer.Serialize(this.partDefinition, SerializationModeKind.JSON, stream, jsonWriterOptions), Throws.Nothing); + Assert.That(() => this.serializer.Serialize(this.partDefinition, SerializationModeKind.JSON,includeDerivedProperties , stream, jsonWriterOptions), Throws.Nothing); json = Encoding.UTF8.GetString(stream.ToArray()); Console.WriteLine(json); } [Test] - public void Verify_that_Elements_can_be_serialized_async() + [TestCase(false)] + [TestCase(true)] + public async Task Verify_that_Elements_can_be_serialized_async(bool includeDerivedProperties) { var elements = new List { this.partDefinition , partDefinitionWithNullProperties }; var stream = new MemoryStream(); @@ -122,21 +129,23 @@ public void Verify_that_Elements_can_be_serialized_async() var cts = new CancellationTokenSource(); - Assert.That(async () => await this.serializer.SerializeAsync(elements, SerializationModeKind.JSON, stream, jsonWriterOptions, cts.Token), Throws.Nothing); ; + await Assert.ThatAsync(() => this.serializer.SerializeAsync(elements, SerializationModeKind.JSON, includeDerivedProperties,stream, jsonWriterOptions, cts.Token), Throws.Nothing); var json = Encoding.UTF8.GetString(stream.ToArray()); Console.WriteLine(json); } [Test] - public void Verify_that_Element_can_be_serialized_async() + [TestCase(false)] + [TestCase(true)] + public async Task Verify_that_Element_can_be_serialized_async(bool includeDerivedProperties) { var stream = new MemoryStream(); var jsonWriterOptions = new JsonWriterOptions { Indented = true }; var cts = new CancellationTokenSource(); - Assert.That(async () => await this.serializer.SerializeAsync(this.partDefinition, SerializationModeKind.JSON, stream, jsonWriterOptions, cts.Token), Throws.Nothing); ; + await Assert.ThatAsync(() => this.serializer.SerializeAsync(this.partDefinition, SerializationModeKind.JSON, includeDerivedProperties, stream, jsonWriterOptions, cts.Token), Throws.Nothing); var json = Encoding.UTF8.GetString(stream.ToArray()); Console.WriteLine(json); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AcceptActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AcceptActionUsageDeSerializer.cs index da40bb9e0..376f8e556 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AcceptActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AcceptActionUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAcceptActionUsage DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The AcceptActionUsageDeSerializer can only be used to deserialize objects of type IAcceptActionUsage, a {@type.GetString()} was provided"); } - IAcceptActionUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.AcceptActionUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.AcceptActionUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IAcceptActionUsage DeSerialize(JsonElement jsonElement, Serializ } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,70 @@ internal static IAcceptActionUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +204,2141 @@ internal static IAcceptActionUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isEnd Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the AcceptActionUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("payloadArgument"u8, out var payloadArgumentProperty)) + { + if (payloadArgumentProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.payloadArgument = null; + } + else + { + if (payloadArgumentProperty.TryGetProperty("@id"u8, out var payloadArgumentExternalIdProperty)) + { + var propertyValue = payloadArgumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.payloadArgument = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the payloadArgument Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("payloadParameter"u8, out var payloadParameterProperty)) + { + if (payloadParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.payloadParameter = Guid.Empty; + logger.LogDebug($"the AcceptActionUsage.payloadParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (payloadParameterProperty.TryGetProperty("@id"u8, out var payloadParameterExternalIdProperty)) + { + var propertyValue = payloadParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.payloadParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the payloadParameter Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("receiverArgument"u8, out var receiverArgumentProperty)) + { + if (receiverArgumentProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.receiverArgument = null; + } + else + { + if (receiverArgumentProperty.TryGetProperty("@id"u8, out var receiverArgumentExternalIdProperty)) + { + var propertyValue = receiverArgumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.receiverArgument = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the receiverArgument Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionDefinitionDeSerializer.cs index 53aa889a0..159ff1ce3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IActionDefinition DeSerialize(JsonElement jsonElement, Serializa throw new InvalidOperationException($"The ActionDefinitionDeSerializer can only be used to deserialize objects of type IActionDefinition, a {@type.GetString()} was provided"); } - IActionDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.ActionDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.ActionDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IActionDefinition DeSerialize(JsonElement jsonElement, Serializa } } + if (jsonElement.TryGetProperty("action"u8, out var actionProperty)) + { + foreach (var arrayItem in actionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionExternalIdProperty)) + { + var propertyValue = actionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.action.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the action Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -120,6 +140,86 @@ internal static IActionDefinition DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the declaredShortName Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +234,166 @@ internal static IActionDefinition DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the elementId Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +406,18 @@ internal static IActionDefinition DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isAbstract Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +442,18 @@ internal static IActionDefinition DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isIndividual Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,48 +478,1215 @@ internal static IActionDefinition DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isVariation Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionUsageDeSerializer.cs index 9a937d179..f05cf5241 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IActionUsage DeSerialize(JsonElement jsonElement, SerializationM throw new InvalidOperationException($"The ActionUsageDeSerializer can only be used to deserialize objects of type IActionUsage, a {@type.GetString()} was provided"); } - IActionUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.ActionUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.ActionUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IActionUsage DeSerialize(JsonElement jsonElement, SerializationM } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,70 @@ internal static IActionUsage DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the aliasIds Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +204,2068 @@ internal static IActionUsage DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the declaredShortName Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isEnd Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the ActionUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActorMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActorMembershipDeSerializer.cs index f453cdb08..bce9d581a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActorMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActorMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The ActorMembershipDeSerializer can only be used to deserialize objects of type IActorMembership, a {@type.GetString()} was provided"); } - IActorMembership dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.ActorMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.ActorMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isImpliedIncluded Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the memberElement Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the memberName Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the ActorMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,194 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the memberShortName Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedActorParameter"u8, out var ownedActorParameterProperty)) + { + if (ownedActorParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedActorParameter = Guid.Empty; + logger.LogDebug($"the ActorMembership.ownedActorParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedActorParameterProperty.TryGetProperty("@id"u8, out var ownedActorParameterExternalIdProperty)) + { + var propertyValue = ownedActorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedActorParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedActorParameter Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the ActorMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the ActorMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberParameter"u8, out var ownedMemberParameterProperty)) + { + if (ownedMemberParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberParameter = Guid.Empty; + logger.LogDebug($"the ActorMembership.ownedMemberParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberParameterProperty.TryGetProperty("@id"u8, out var ownedMemberParameterExternalIdProperty)) + { + var propertyValue = ownedMemberParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberParameter Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +477,9 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +493,78 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the ownedRelationship Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +573,9 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +597,9 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +613,76 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the owningRelationship Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the ActorMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +700,9 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +716,26 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the target Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationDefinitionDeSerializer.cs index f5370e4a5..55a60e84d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria throw new InvalidOperationException($"The AllocationDefinitionDeSerializer can only be used to deserialize objects of type IAllocationDefinition, a {@type.GetString()} was provided"); } - IAllocationDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Allocations.AllocationDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Allocations.AllocationDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,66 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the aliasIds Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("allocation"u8, out var allocationProperty)) + { + foreach (var arrayItem in allocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var allocationExternalIdProperty)) + { + var propertyValue = allocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.allocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the allocation Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("associationEnd"u8, out var associationEndProperty)) + { + foreach (var arrayItem in associationEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationEndExternalIdProperty)) + { + var propertyValue = associationEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.associationEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the associationEnd Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("connectionEnd"u8, out var connectionEndProperty)) + { + foreach (var arrayItem in connectionEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var connectionEndExternalIdProperty)) + { + var propertyValue = connectionEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectionEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the connectionEnd Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +180,86 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the declaredShortName Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +274,166 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the elementId Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +446,18 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isAbstract Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -182,6 +494,18 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isIndividual Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -206,105 +530,1172 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isVariation Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = membershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.membership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the membership Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (multiplicityProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.multiplicity = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.OwningRelationship = null; - } - else + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = outputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.output.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the output Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = ownedActionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + { + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelatedElement Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) + { + foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedTypeExternalIdProperty)) + { + var propertyValue = relatedTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedType Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); } } } @@ -314,13 +1705,37 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the source Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) + { + if (sourceTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceType = null; + } + else + { + if (sourceTypeProperty.TryGetProperty("@id"u8, out var sourceTypeExternalIdProperty)) + { + var propertyValue = sourceTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceType Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -334,6 +1749,126 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the target Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) + { + foreach (var arrayItem in targetTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetTypeExternalIdProperty)) + { + var propertyValue = targetTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the targetType Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationUsageDeSerializer.cs index 1002b2a61..3b5f19186 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAllocationUsage DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The AllocationUsageDeSerializer can only be used to deserialize objects of type IAllocationUsage, a {@type.GetString()} was provided"); } - IAllocationUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Allocations.AllocationUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Allocations.AllocationUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,350 +102,2434 @@ internal static IAllocationUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("allocationDefinition"u8, out var allocationDefinitionProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in allocationDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var allocationDefinitionExternalIdProperty)) + { + var propertyValue = allocationDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.allocationDefinition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the allocationDefinition Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in associationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) + { + var propertyValue = associationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.association.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the association Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("connectionDefinition"u8, out var connectionDefinitionProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in connectionDefinitionProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var connectionDefinitionExternalIdProperty)) + { + var propertyValue = connectionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectionDefinition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the connectionDefinition Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in connectorEndProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var connectorEndExternalIdProperty)) + { + var propertyValue = connectorEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectorEnd.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the connectorEnd Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isConstant Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); - } + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); } else { - logger.LogDebug("the isDerived Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredShortName Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (defaultFeaturingTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.defaultFeaturingType = null; + } + else + { + if (defaultFeaturingTypeProperty.TryGetProperty("@id"u8, out var defaultFeaturingTypeExternalIdProperty)) + { + var propertyValue = defaultFeaturingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.defaultFeaturingType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the defaultFeaturingType Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - if (isImpliedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImplied Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isSufficient Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = featureMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the AllocationUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = featureTargetExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.featureTarget = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.OwningRelatedElement = null; + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the featuringType Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.individualDefinition = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + { + if (isImpliedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImplied Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("itemDefinition"u8, out var itemDefinitionProperty)) + { + foreach (var arrayItem in itemDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var itemDefinitionExternalIdProperty)) + { + var propertyValue = itemDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.itemDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the itemDefinition Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + { + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelatedElement Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("partDefinition"u8, out var partDefinitionProperty)) + { + foreach (var arrayItem in partDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var partDefinitionExternalIdProperty)) + { + var propertyValue = partDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.partDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the partDefinition Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) + { + foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedFeatureExternalIdProperty)) + { + var propertyValue = relatedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedFeature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the source Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) + { + if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceFeature = null; + } + else + { + if (sourceFeatureProperty.TryGetProperty("@id"u8, out var sourceFeatureExternalIdProperty)) + { + var propertyValue = sourceFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceFeature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + { + foreach (var arrayItem in targetProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the target Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) + { + foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) + { + var propertyValue = targetFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the targetFeature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseDefinitionDeSerializer.cs index 225ce1689..b20a39f4a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAnalysisCaseDefinition DeSerialize(JsonElement jsonElement, Ser throw new InvalidOperationException($"The AnalysisCaseDefinitionDeSerializer can only be used to deserialize objects of type IAnalysisCaseDefinition, a {@type.GetString()} was provided"); } - IAnalysisCaseDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.AnalysisCases.AnalysisCaseDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.AnalysisCases.AnalysisCaseDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,46 @@ internal static IAnalysisCaseDefinition DeSerialize(JsonElement jsonElement, Ser } } + if (jsonElement.TryGetProperty("action"u8, out var actionProperty)) + { + foreach (var arrayItem in actionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionExternalIdProperty)) + { + var propertyValue = actionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.action.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the action Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +142,26 @@ internal static IAnalysisCaseDefinition DeSerialize(JsonElement jsonElement, Ser logger.LogDebug("the aliasIds Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("calculation"u8, out var calculationProperty)) + { + foreach (var arrayItem in calculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var calculationExternalIdProperty)) + { + var propertyValue = calculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.calculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the calculation Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +180,86 @@ internal static IAnalysisCaseDefinition DeSerialize(JsonElement jsonElement, Ser logger.LogDebug("the declaredShortName Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +274,186 @@ internal static IAnalysisCaseDefinition DeSerialize(JsonElement jsonElement, Ser logger.LogDebug("the elementId Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("expression"u8, out var expressionProperty)) + { + foreach (var arrayItem in expressionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var expressionExternalIdProperty)) + { + var propertyValue = expressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.expression.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the expression Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +466,18 @@ internal static IAnalysisCaseDefinition DeSerialize(JsonElement jsonElement, Ser logger.LogDebug("the isAbstract Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +502,30 @@ internal static IAnalysisCaseDefinition DeSerialize(JsonElement jsonElement, Ser logger.LogDebug("the isIndividual Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,37 +550,1070 @@ internal static IAnalysisCaseDefinition DeSerialize(JsonElement jsonElement, Ser logger.LogDebug("the isVariation Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; - } + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("objectiveRequirement"u8, out var objectiveRequirementProperty)) + { + if (objectiveRequirementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.objectiveRequirement = null; + } + else + { + if (objectiveRequirementProperty.TryGetProperty("@id"u8, out var objectiveRequirementExternalIdProperty)) + { + var propertyValue = objectiveRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.objectiveRequirement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the objectiveRequirement Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -238,6 +1627,238 @@ internal static IAnalysisCaseDefinition DeSerialize(JsonElement jsonElement, Ser logger.LogDebug("the owningRelationship Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the AnalysisCaseDefinition.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("resultExpression"u8, out var resultExpressionProperty)) + { + if (resultExpressionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.resultExpression = null; + } + else + { + if (resultExpressionProperty.TryGetProperty("@id"u8, out var resultExpressionExternalIdProperty)) + { + var propertyValue = resultExpressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.resultExpression = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the resultExpression Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the AnalysisCaseDefinition.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseUsageDeSerializer.cs index 54b212539..c83480266 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAnalysisCaseUsage DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The AnalysisCaseUsageDeSerializer can only be used to deserialize objects of type IAnalysisCaseUsage, a {@type.GetString()} was provided"); } - IAnalysisCaseUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.AnalysisCases.AnalysisCaseUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.AnalysisCases.AnalysisCaseUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,46 @@ internal static IAnalysisCaseUsage DeSerialize(JsonElement jsonElement, Serializ } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,254 +142,2356 @@ internal static IAnalysisCaseUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("analysisCaseDefinition"u8, out var analysisCaseDefinitionProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + if (analysisCaseDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.analysisCaseDefinition = null; + } + else + { + if (analysisCaseDefinitionProperty.TryGetProperty("@id"u8, out var analysisCaseDefinitionExternalIdProperty)) + { + var propertyValue = analysisCaseDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.analysisCaseDefinition = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the analysisCaseDefinition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("calculationDefinition"u8, out var calculationDefinitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + if (calculationDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.calculationDefinition = null; + } + else + { + if (calculationDefinitionProperty.TryGetProperty("@id"u8, out var calculationDefinitionExternalIdProperty)) + { + var propertyValue = calculationDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.calculationDefinition = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the calculationDefinition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("caseDefinition"u8, out var caseDefinitionProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + if (caseDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.caseDefinition = null; + } + else + { + if (caseDefinitionProperty.TryGetProperty("@id"u8, out var caseDefinitionExternalIdProperty)) + { + var propertyValue = caseDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.caseDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the caseDefinition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isConstant Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); - } + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); } else { - logger.LogDebug("the isDerived Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredShortName Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isSufficient Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = featureMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the AnalysisCaseUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = featureTargetExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.featureTarget = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) + { + if (functionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the function Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) + { + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the individualDefinition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("objectiveRequirement"u8, out var objectiveRequirementProperty)) + { + if (objectiveRequirementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.objectiveRequirement = null; + } + else + { + if (objectiveRequirementProperty.TryGetProperty("@id"u8, out var objectiveRequirementExternalIdProperty)) + { + var propertyValue = objectiveRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.objectiveRequirement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the objectiveRequirement Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the AnalysisCaseUsage.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("resultExpression"u8, out var resultExpressionProperty)) + { + if (resultExpressionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.resultExpression = null; + } + else + { + if (resultExpressionProperty.TryGetProperty("@id"u8, out var resultExpressionExternalIdProperty)) + { + var propertyValue = resultExpressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.resultExpression = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the resultExpression Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the AnalysisCaseUsage.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnnotatingElementDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnnotatingElementDeSerializer.cs index e6e4f9333..160f471c1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnnotatingElementDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnnotatingElementDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The AnnotatingElementDeSerializer can only be used to deserialize objects of type IAnnotatingElement, a {@type.GetString()} was provided"); } - IAnnotatingElement dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.AnnotatingElement(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.AnnotatingElement(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,46 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("annotatedElement"u8, out var annotatedElementProperty)) + { + foreach (var arrayItem in annotatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotatedElementExternalIdProperty)) + { + var propertyValue = annotatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotatedElement Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("annotation"u8, out var annotationProperty)) + { + foreach (var arrayItem in annotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotationExternalIdProperty)) + { + var propertyValue = annotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotation Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +160,26 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -146,13 +206,94 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isImpliedIncluded Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotatingRelationship"u8, out var ownedAnnotatingRelationshipProperty)) + { + foreach (var arrayItem in ownedAnnotatingRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = ownedAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotatingRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotatingRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -166,6 +307,102 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the ownedRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningAnnotatingRelationship"u8, out var owningAnnotatingRelationshipProperty)) + { + if (owningAnnotatingRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningAnnotatingRelationship = null; + } + else + { + if (owningAnnotatingRelationshipProperty.TryGetProperty("@id"u8, out var owningAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = owningAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningAnnotatingRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningAnnotatingRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) @@ -174,9 +411,9 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -190,6 +427,44 @@ internal static IAnnotatingElement DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the owningRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnnotationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnnotationDeSerializer.cs index 2eb1d4eaa..62a55c049 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnnotationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnnotationDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAnnotation DeSerialize(JsonElement jsonElement, SerializationMo throw new InvalidOperationException($"The AnnotationDeSerializer can only be used to deserialize objects of type IAnnotation, a {@type.GetString()} was provided"); } - IAnnotation dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.Annotation(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.Annotation(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -111,9 +111,9 @@ internal static IAnnotation DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (annotatedElementProperty.TryGetProperty("@id"u8, out var annotatedElementIdProperty)) + if (annotatedElementProperty.TryGetProperty("@id"u8, out var annotatedElementExternalIdProperty)) { - var propertyValue = annotatedElementIdProperty.GetString(); + var propertyValue = annotatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -127,6 +127,31 @@ internal static IAnnotation DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the annotatedElement Json property was not found in the Annotation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("annotatingElement"u8, out var annotatingElementProperty)) + { + if (annotatingElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.annotatingElement = Guid.Empty; + logger.LogDebug($"the Annotation.annotatingElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (annotatingElementProperty.TryGetProperty("@id"u8, out var annotatingElementExternalIdProperty)) + { + var propertyValue = annotatingElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotatingElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the annotatingElement Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -145,6 +170,26 @@ internal static IAnnotation DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the declaredShortName Json property was not found in the Annotation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -183,13 +228,98 @@ internal static IAnnotation DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isImpliedIncluded Json property was not found in the Annotation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotatingElement"u8, out var ownedAnnotatingElementProperty)) + { + if (ownedAnnotatingElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedAnnotatingElement = null; + } + else + { + if (ownedAnnotatingElementProperty.TryGetProperty("@id"u8, out var ownedAnnotatingElementExternalIdProperty)) + { + var propertyValue = ownedAnnotatingElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotatingElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotatingElement Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +337,9 @@ internal static IAnnotation DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +353,126 @@ internal static IAnnotation DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the ownedRelationship Json property was not found in the Annotation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningAnnotatedElement"u8, out var owningAnnotatedElementProperty)) + { + if (owningAnnotatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningAnnotatedElement = null; + } + else + { + if (owningAnnotatedElementProperty.TryGetProperty("@id"u8, out var owningAnnotatedElementExternalIdProperty)) + { + var propertyValue = owningAnnotatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningAnnotatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningAnnotatedElement Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningAnnotatingElement"u8, out var owningAnnotatingElementProperty)) + { + if (owningAnnotatingElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningAnnotatingElement = null; + } + else + { + if (owningAnnotatingElementProperty.TryGetProperty("@id"u8, out var owningAnnotatingElementExternalIdProperty)) + { + var propertyValue = owningAnnotatingElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningAnnotatingElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningAnnotatingElement Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +481,9 @@ internal static IAnnotation DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +505,9 @@ internal static IAnnotation DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,13 +521,51 @@ internal static IAnnotation DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the owningRelationship Json property was not found in the Annotation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -295,9 +583,9 @@ internal static IAnnotation DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -311,6 +599,26 @@ internal static IAnnotation DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the target Json property was not found in the Annotation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Annotation: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssertConstraintUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssertConstraintUsageDeSerializer.cs index 49cd388ab..47adf6f14 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssertConstraintUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssertConstraintUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAssertConstraintUsage DeSerialize(JsonElement jsonElement, Seri throw new InvalidOperationException($"The AssertConstraintUsageDeSerializer can only be used to deserialize objects of type IAssertConstraintUsage, a {@type.GetString()} was provided"); } - IAssertConstraintUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Constraints.AssertConstraintUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Constraints.AssertConstraintUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,266 +102,2296 @@ internal static IAssertConstraintUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the aliasIds Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("assertedConstraint"u8, out var assertedConstraintProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + if (assertedConstraintProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.assertedConstraint = Guid.Empty; + logger.LogDebug($"the AssertConstraintUsage.assertedConstraint property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (assertedConstraintProperty.TryGetProperty("@id"u8, out var assertedConstraintExternalIdProperty)) + { + var propertyValue = assertedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.assertedConstraint = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the assertedConstraint Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("constraintDefinition"u8, out var constraintDefinitionProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + if (constraintDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.constraintDefinition = null; + } + else + { + if (constraintDefinitionProperty.TryGetProperty("@id"u8, out var constraintDefinitionExternalIdProperty)) + { + var propertyValue = constraintDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.constraintDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the constraintDefinition Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + dtoInstance.DeclaredName = declaredNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredName Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) + { + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isIndividual Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isNegated"u8, out var isNegatedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isNegatedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsNegated = isNegatedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isNegated Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the AssertConstraintUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.individualDefinition = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isNegated"u8, out var isNegatedProperty)) + { + if (isNegatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsNegated = isNegatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isNegated Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) + { + if (predicateProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.predicate = null; + } + else + { + if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) + { + var propertyValue = predicateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.predicate = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the predicate Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the AssertConstraintUsage.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssignmentActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssignmentActionUsageDeSerializer.cs index 6b24cb283..b8a2848aa 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssignmentActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssignmentActionUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAssignmentActionUsage DeSerialize(JsonElement jsonElement, Seri throw new InvalidOperationException($"The AssignmentActionUsageDeSerializer can only be used to deserialize objects of type IAssignmentActionUsage, a {@type.GetString()} was provided"); } - IAssignmentActionUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.AssignmentActionUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.AssignmentActionUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IAssignmentActionUsage DeSerialize(JsonElement jsonElement, Seri } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,70 @@ internal static IAssignmentActionUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the aliasIds Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +204,2141 @@ internal static IAssignmentActionUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the declaredShortName Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isEnd Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the AssignmentActionUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("referent"u8, out var referentProperty)) + { + if (referentProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.referent = Guid.Empty; + logger.LogDebug($"the AssignmentActionUsage.referent property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (referentProperty.TryGetProperty("@id"u8, out var referentExternalIdProperty)) + { + var propertyValue = referentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.referent = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the referent Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetArgument"u8, out var targetArgumentProperty)) + { + if (targetArgumentProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.targetArgument = null; + } + else + { + if (targetArgumentProperty.TryGetProperty("@id"u8, out var targetArgumentExternalIdProperty)) + { + var propertyValue = targetArgumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetArgument = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the targetArgument Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("valueExpression"u8, out var valueExpressionProperty)) + { + if (valueExpressionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.valueExpression = null; + } + else + { + if (valueExpressionProperty.TryGetProperty("@id"u8, out var valueExpressionExternalIdProperty)) + { + var propertyValue = valueExpressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.valueExpression = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the valueExpression Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationDeSerializer.cs index b648e94fa..c58bfc558 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM throw new InvalidOperationException($"The AssociationDeSerializer can only be used to deserialize objects of type IAssociation, a {@type.GetString()} was provided"); } - IAssociation dtoInstance = new SysML2.NET.Core.DTO.Kernel.Associations.Association(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Associations.Association(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,26 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the aliasIds Json property was not found in the Association: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("associationEnd"u8, out var associationEndProperty)) + { + foreach (var arrayItem in associationEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationEndExternalIdProperty)) + { + var propertyValue = associationEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.associationEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the associationEnd Json property was not found in the Association: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +140,66 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the declaredShortName Json property was not found in the Association: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Association: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,166 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the elementId Json property was not found in the Association: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Association: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the isAbstract Json property was not found in the Association: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Association: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +422,18 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the isImpliedIncluded Json property was not found in the Association: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Association: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -182,132 +446,743 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the isSufficient Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the Association: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = membershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.membership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Association: { Id }", dtoInstance.Id); + logger.LogDebug("the membership Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (multiplicityProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.multiplicity = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the Association: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Association: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedConjugator Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the Association: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedDifferencing Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the Association: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedDisjoining Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + { + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelatedElement Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) + { + foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedTypeExternalIdProperty)) + { + var propertyValue = relatedTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedType Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the source Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) + { + if (sourceTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceType = null; + } + else + { + if (sourceTypeProperty.TryGetProperty("@id"u8, out var sourceTypeExternalIdProperty)) + { + var propertyValue = sourceTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceType Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + { + foreach (var arrayItem in targetProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the target Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) + { + foreach (var arrayItem in targetTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetTypeExternalIdProperty)) + { + var propertyValue = targetTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the targetType Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Association: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Association: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationStructureDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationStructureDeSerializer.cs index d6c2a8d6b..3cacc360a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationStructureDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationStructureDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAssociationStructure DeSerialize(JsonElement jsonElement, Seria throw new InvalidOperationException($"The AssociationStructureDeSerializer can only be used to deserialize objects of type IAssociationStructure, a {@type.GetString()} was provided"); } - IAssociationStructure dtoInstance = new SysML2.NET.Core.DTO.Kernel.Associations.AssociationStructure(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Associations.AssociationStructure(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,26 @@ internal static IAssociationStructure DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the aliasIds Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("associationEnd"u8, out var associationEndProperty)) + { + foreach (var arrayItem in associationEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationEndExternalIdProperty)) + { + var propertyValue = associationEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.associationEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the associationEnd Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +140,66 @@ internal static IAssociationStructure DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the declaredShortName Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,166 @@ internal static IAssociationStructure DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the elementId Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IAssociationStructure DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isAbstract Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +422,18 @@ internal static IAssociationStructure DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isImpliedIncluded Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -182,132 +446,743 @@ internal static IAssociationStructure DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isSufficient Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = membershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.membership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + logger.LogDebug("the membership Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (multiplicityProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.multiplicity = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedConjugator Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedDifferencing Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedDisjoining Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + { + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelatedElement Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) + { + foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedTypeExternalIdProperty)) + { + var propertyValue = relatedTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedType Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the source Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) + { + if (sourceTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceType = null; + } + else + { + if (sourceTypeProperty.TryGetProperty("@id"u8, out var sourceTypeExternalIdProperty)) + { + var propertyValue = sourceTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceType Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + { + foreach (var arrayItem in targetProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the target Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) + { + foreach (var arrayItem in targetTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetTypeExternalIdProperty)) + { + var propertyValue = targetTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the targetType Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AttributeDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AttributeDefinitionDeSerializer.cs index 93b952875..2741aa2a9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AttributeDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AttributeDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAttributeDefinition DeSerialize(JsonElement jsonElement, Serial throw new InvalidOperationException($"The AttributeDefinitionDeSerializer can only be used to deserialize objects of type IAttributeDefinition, a {@type.GetString()} was provided"); } - IAttributeDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Attributes.AttributeDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Attributes.AttributeDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,86 @@ internal static IAttributeDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the declaredShortName Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,166 @@ internal static IAttributeDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the elementId Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IAttributeDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isAbstract Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -158,6 +410,18 @@ internal static IAttributeDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isImpliedIncluded Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -182,48 +446,1175 @@ internal static IAttributeDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isVariation Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the AttributeDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AttributeUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AttributeUsageDeSerializer.cs index da3239160..50c43d6e6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AttributeUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AttributeUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IAttributeUsage DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The AttributeUsageDeSerializer can only be used to deserialize objects of type IAttributeUsage, a {@type.GetString()} was provided"); } - IAttributeUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Attributes.AttributeUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Attributes.AttributeUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static IAttributeUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("attributeDefinition"u8, out var attributeDefinitionProperty)) + { + foreach (var arrayItem in attributeDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var attributeDefinitionExternalIdProperty)) + { + var propertyValue = attributeDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.attributeDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the attributeDefinition Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,215 +184,1983 @@ internal static IAttributeUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isDerived Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the AttributeUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the input Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BehaviorDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BehaviorDeSerializer.cs index 3e2b00d59..78a353892 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BehaviorDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BehaviorDeSerializer.cs @@ -69,7 +69,7 @@ internal static IBehavior DeSerialize(JsonElement jsonElement, SerializationMode throw new InvalidOperationException($"The BehaviorDeSerializer can only be used to deserialize objects of type IBehavior, a {@type.GetString()} was provided"); } - IBehavior dtoInstance = new SysML2.NET.Core.DTO.Kernel.Behaviors.Behavior(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Behaviors.Behavior(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,66 @@ internal static IBehavior DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the declaredShortName Json property was not found in the Behavior: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +194,166 @@ internal static IBehavior DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the elementId Json property was not found in the Behavior: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +366,18 @@ internal static IBehavior DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the isAbstract Json property was not found in the Behavior: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -158,6 +390,18 @@ internal static IBehavior DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the isImpliedIncluded Json property was not found in the Behavior: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -170,48 +414,615 @@ internal static IBehavior DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the isSufficient Json property was not found in the Behavior: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Behavior: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Behavior: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Behavior: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Behavior: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Behavior: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorAsUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorAsUsageDeSerializer.cs index d72bae844..9f883a3bf 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorAsUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorAsUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IBindingConnectorAsUsage DeSerialize(JsonElement jsonElement, Se throw new InvalidOperationException($"The BindingConnectorAsUsageDeSerializer can only be used to deserialize objects of type IBindingConnectorAsUsage, a {@type.GetString()} was provided"); } - IBindingConnectorAsUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Connections.BindingConnectorAsUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Connections.BindingConnectorAsUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,329 +102,2289 @@ internal static IBindingConnectorAsUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the aliasIds Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) + { + foreach (var arrayItem in associationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) + { + var propertyValue = associationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.association.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the association Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) + { + foreach (var arrayItem in connectorEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var connectorEndExternalIdProperty)) + { + var propertyValue = connectorEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectorEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the connectorEnd Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + dtoInstance.DeclaredName = declaredNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredName Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty)) + { + if (defaultFeaturingTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.defaultFeaturingType = null; + } + else + { + if (defaultFeaturingTypeProperty.TryGetProperty("@id"u8, out var defaultFeaturingTypeExternalIdProperty)) + { + var propertyValue = defaultFeaturingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.defaultFeaturingType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the defaultFeaturingType Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) + { + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the definition Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + { + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + { + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ElementId = propertyValue; + } + } + else + { + logger.LogDebug("the elementId Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the BindingConnectorAsUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + { + if (isImpliedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImplied Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedUnioning Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owner Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningDefinition Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningFeatureMembership Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningMembership Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningNamespace Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelatedElement Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelationship Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (owningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningType Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) { - if (isImpliedProperty.ValueKind != JsonValueKind.Null) + if (owningUsageProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImplied Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningUsage Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); - } + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the qualifiedName Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedElement Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var relatedFeatureExternalIdProperty)) + { + var propertyValue = relatedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedFeature Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); - } + dtoInstance.shortName = shortNameProperty.GetString(); } else { - logger.LogDebug("the isSufficient Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the shortName Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in sourceProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the source Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.sourceFeature = null; + } + else + { + if (sourceFeatureProperty.TryGetProperty("@id"u8, out var sourceFeatureExternalIdProperty)) + { + var propertyValue = sourceFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the sourceFeature Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in targetProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the target Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = targetFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.targetFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the targetFeature Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = textualRepresentationExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the textualRepresentation Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in typeProperty.EnumerateArray()) { - dtoInstance.OwningRelatedElement = null; - } - else - { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = typeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.type.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the type Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the unioningType Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = usageExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.usage.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the usage Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in variantProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = variantExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.variant.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the variant Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = variantMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the variantMembership Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorDeSerializer.cs index ae3ba82f3..873080fc4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorDeSerializer.cs @@ -69,7 +69,7 @@ internal static IBindingConnector DeSerialize(JsonElement jsonElement, Serializa throw new InvalidOperationException($"The BindingConnectorDeSerializer can only be used to deserialize objects of type IBindingConnector, a {@type.GetString()} was provided"); } - IBindingConnector dtoInstance = new SysML2.NET.Core.DTO.Kernel.Connectors.BindingConnector(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Connectors.BindingConnector(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,317 +102,1565 @@ internal static IBindingConnector DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the aliasIds Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) + { + foreach (var arrayItem in associationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) + { + var propertyValue = associationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.association.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the association Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) + { + foreach (var arrayItem in connectorEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var connectorEndExternalIdProperty)) + { + var propertyValue = connectorEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectorEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the connectorEnd Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the declaredName Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty)) + { + if (defaultFeaturingTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.defaultFeaturingType = null; + } + else + { + if (defaultFeaturingTypeProperty.TryGetProperty("@id"u8, out var defaultFeaturingTypeExternalIdProperty)) + { + var propertyValue = defaultFeaturingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.defaultFeaturingType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the defaultFeaturingType Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + { + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + { + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ElementId = propertyValue; + } + } + else + { + logger.LogDebug("the elementId Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the BindingConnector.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + { + if (isImpliedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImplied Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedRelationship Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSpecialization Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSubsetting Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTyping Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedUnioning Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (ownerProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the owner Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the owningFeatureMembership Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) { - if (isImpliedProperty.ValueKind != JsonValueKind.Null) + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImplied Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the owningMembership Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the owningNamespace Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelatedElement Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelationship Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (owningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the owningType Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); - } + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); } else { - logger.LogDebug("the isUnique Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the qualifiedName Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedElement Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var relatedFeatureExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = relatedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.relatedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedFeature Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.Source.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the source Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.sourceFeature = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (sourceFeatureProperty.TryGetProperty("@id"u8, out var sourceFeatureExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = sourceFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.sourceFeature = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the sourceFeature Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in targetProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the target Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) + { + foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = targetFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.targetFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the targetFeature Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = textualRepresentationExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the textualRepresentation Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in typeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = typeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.type.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + logger.LogDebug("the type Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BooleanExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BooleanExpressionDeSerializer.cs index 46cf596ea..781633af2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BooleanExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BooleanExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IBooleanExpression DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The BooleanExpressionDeSerializer can only be used to deserialize objects of type IBooleanExpression, a {@type.GetString()} was provided"); } - IBooleanExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.BooleanExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.BooleanExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static IBooleanExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +184,46 @@ internal static IBooleanExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +233,26 @@ internal static IBooleanExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the direction Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +267,1281 @@ internal static IBooleanExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the elementId Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the BooleanExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (isAbstractProperty.ValueKind != JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); } - else + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) - { - var propertyValue = owningRelationshipIdProperty.GetString(); + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); - } - } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); } } else { - logger.LogDebug("the owningRelationship Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the isConjugated Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) + { + if (predicateProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.predicate = null; + } + else + { + if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) + { + var propertyValue = predicateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.predicate = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the predicate Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the BooleanExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationDefinitionDeSerializer.cs index 5bc466e4c..b0dc86282 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static ICalculationDefinition DeSerialize(JsonElement jsonElement, Seri throw new InvalidOperationException($"The CalculationDefinitionDeSerializer can only be used to deserialize objects of type ICalculationDefinition, a {@type.GetString()} was provided"); } - ICalculationDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Calculations.CalculationDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Calculations.CalculationDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static ICalculationDefinition DeSerialize(JsonElement jsonElement, Seri } } + if (jsonElement.TryGetProperty("action"u8, out var actionProperty)) + { + foreach (var arrayItem in actionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionExternalIdProperty)) + { + var propertyValue = actionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.action.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the action Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,26 @@ internal static ICalculationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the aliasIds Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("calculation"u8, out var calculationProperty)) + { + foreach (var arrayItem in calculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var calculationExternalIdProperty)) + { + var propertyValue = calculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.calculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the calculation Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +160,86 @@ internal static ICalculationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the declaredShortName Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +254,186 @@ internal static ICalculationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the elementId Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("expression"u8, out var expressionProperty)) + { + foreach (var arrayItem in expressionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var expressionExternalIdProperty)) + { + var propertyValue = expressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.expression.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the expression Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +446,18 @@ internal static ICalculationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isAbstract Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +482,30 @@ internal static ICalculationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isIndividual Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,41 +530,1050 @@ internal static ICalculationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isVariation Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); } } } @@ -238,6 +1583,189 @@ internal static ICalculationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the owningRelationship Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the CalculationDefinition.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationUsageDeSerializer.cs index 21d58c442..15f281a9c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static ICalculationUsage DeSerialize(JsonElement jsonElement, Serializa throw new InvalidOperationException($"The CalculationUsageDeSerializer can only be used to deserialize objects of type ICalculationUsage, a {@type.GetString()} was provided"); } - ICalculationUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Calculations.CalculationUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Calculations.CalculationUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static ICalculationUsage DeSerialize(JsonElement jsonElement, Serializa } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,254 +122,2235 @@ internal static ICalculationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the aliasIds Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("calculationDefinition"u8, out var calculationDefinitionProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + if (calculationDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.calculationDefinition = null; + } + else + { + if (calculationDefinitionProperty.TryGetProperty("@id"u8, out var calculationDefinitionExternalIdProperty)) + { + var propertyValue = calculationDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.calculationDefinition = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the calculationDefinition Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + dtoInstance.DeclaredName = declaredNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredName Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) + { + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the CalculationUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.individualDefinition = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the CalculationUsage.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseDefinitionDeSerializer.cs index 0b7e667e4..8982f9ec3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static ICaseDefinition DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The CaseDefinitionDeSerializer can only be used to deserialize objects of type ICaseDefinition, a {@type.GetString()} was provided"); } - ICaseDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Cases.CaseDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Cases.CaseDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,46 @@ internal static ICaseDefinition DeSerialize(JsonElement jsonElement, Serializati } } + if (jsonElement.TryGetProperty("action"u8, out var actionProperty)) + { + foreach (var arrayItem in actionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionExternalIdProperty)) + { + var propertyValue = actionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.action.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the action Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +142,26 @@ internal static ICaseDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("calculation"u8, out var calculationProperty)) + { + foreach (var arrayItem in calculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var calculationExternalIdProperty)) + { + var propertyValue = calculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.calculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the calculation Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +180,86 @@ internal static ICaseDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +274,186 @@ internal static ICaseDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("expression"u8, out var expressionProperty)) + { + foreach (var arrayItem in expressionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var expressionExternalIdProperty)) + { + var propertyValue = expressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.expression.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the expression Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +466,18 @@ internal static ICaseDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isAbstract Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +502,30 @@ internal static ICaseDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isIndividual Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,37 +550,1070 @@ internal static ICaseDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isVariation Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; - } + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("objectiveRequirement"u8, out var objectiveRequirementProperty)) + { + if (objectiveRequirementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.objectiveRequirement = null; + } + else + { + if (objectiveRequirementProperty.TryGetProperty("@id"u8, out var objectiveRequirementExternalIdProperty)) + { + var propertyValue = objectiveRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.objectiveRequirement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the objectiveRequirement Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -238,6 +1627,214 @@ internal static ICaseDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the owningRelationship Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the CaseDefinition.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the CaseDefinition.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseUsageDeSerializer.cs index 745a11898..e1b553fbe 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static ICaseUsage DeSerialize(JsonElement jsonElement, SerializationMod throw new InvalidOperationException($"The CaseUsageDeSerializer can only be used to deserialize objects of type ICaseUsage, a {@type.GetString()} was provided"); } - ICaseUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Cases.CaseUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Cases.CaseUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,46 @@ internal static ICaseUsage DeSerialize(JsonElement jsonElement, SerializationMod } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,254 +142,2308 @@ internal static ICaseUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the aliasIds Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("calculationDefinition"u8, out var calculationDefinitionProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + if (calculationDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.calculationDefinition = null; + } + else + { + if (calculationDefinitionProperty.TryGetProperty("@id"u8, out var calculationDefinitionExternalIdProperty)) + { + var propertyValue = calculationDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.calculationDefinition = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the calculationDefinition Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("caseDefinition"u8, out var caseDefinitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + if (caseDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.caseDefinition = null; + } + else + { + if (caseDefinitionProperty.TryGetProperty("@id"u8, out var caseDefinitionExternalIdProperty)) + { + var propertyValue = caseDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.caseDefinition = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the caseDefinition Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isComposite Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) + { + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isOrdered Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the CaseUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = featuringTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.function = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = functionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.function = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) + { + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the individualDefinition Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("objectiveRequirement"u8, out var objectiveRequirementProperty)) + { + if (objectiveRequirementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.objectiveRequirement = null; + } + else + { + if (objectiveRequirementProperty.TryGetProperty("@id"u8, out var objectiveRequirementExternalIdProperty)) + { + var propertyValue = objectiveRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.objectiveRequirement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the objectiveRequirement Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the CaseUsage.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the CaseUsage.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ClassDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ClassDeSerializer.cs index 27faf63a5..33eb2f5bf 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ClassDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ClassDeSerializer.cs @@ -69,7 +69,7 @@ internal static IClass DeSerialize(JsonElement jsonElement, SerializationModeKin throw new InvalidOperationException($"The ClassDeSerializer can only be used to deserialize objects of type IClass, a {@type.GetString()} was provided"); } - IClass dtoInstance = new SysML2.NET.Core.DTO.Kernel.Classes.Class(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Classes.Class(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,66 @@ internal static IClass DeSerialize(JsonElement jsonElement, SerializationModeKin logger.LogDebug("the declaredShortName Json property was not found in the Class: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Class: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +194,166 @@ internal static IClass DeSerialize(JsonElement jsonElement, SerializationModeKin logger.LogDebug("the elementId Json property was not found in the Class: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Class: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +366,18 @@ internal static IClass DeSerialize(JsonElement jsonElement, SerializationModeKin logger.LogDebug("the isAbstract Json property was not found in the Class: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Class: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -158,6 +390,18 @@ internal static IClass DeSerialize(JsonElement jsonElement, SerializationModeKin logger.LogDebug("the isImpliedIncluded Json property was not found in the Class: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Class: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -170,48 +414,575 @@ internal static IClass DeSerialize(JsonElement jsonElement, SerializationModeKin logger.LogDebug("the isSufficient Json property was not found in the Class: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Class: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Class: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Class: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Class: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Class: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ClassifierDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ClassifierDeSerializer.cs index 8266ded47..2149a0bdf 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ClassifierDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ClassifierDeSerializer.cs @@ -69,7 +69,7 @@ internal static IClassifier DeSerialize(JsonElement jsonElement, SerializationMo throw new InvalidOperationException($"The ClassifierDeSerializer can only be used to deserialize objects of type IClassifier, a {@type.GetString()} was provided"); } - IClassifier dtoInstance = new SysML2.NET.Core.DTO.Core.Classifiers.Classifier(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Classifiers.Classifier(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,66 @@ internal static IClassifier DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the declaredShortName Json property was not found in the Classifier: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +194,166 @@ internal static IClassifier DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the elementId Json property was not found in the Classifier: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +366,18 @@ internal static IClassifier DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isAbstract Json property was not found in the Classifier: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -158,6 +390,18 @@ internal static IClassifier DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isImpliedIncluded Json property was not found in the Classifier: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -170,48 +414,575 @@ internal static IClassifier DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isSufficient Json property was not found in the Classifier: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Classifier: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Classifier: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Classifier: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Classifier: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Classifier: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CollectExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CollectExpressionDeSerializer.cs index 4341d288b..14dea6421 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CollectExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CollectExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static ICollectExpression DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The CollectExpressionDeSerializer can only be used to deserialize objects of type ICollectExpression, a {@type.GetString()} was provided"); } - ICollectExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.CollectExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.CollectExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,90 @@ internal static ICollectExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("argument"u8, out var argumentProperty)) + { + foreach (var arrayItem in argumentProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var argumentExternalIdProperty)) + { + var propertyValue = argumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.argument.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the argument Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,217 +204,1379 @@ internal static ICollectExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isComposite Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the CollectExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - var propertyValue = operatorProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.Operator = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the operator Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("instantiatedType"u8, out var instantiatedTypeProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (instantiatedTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.instantiatedType = Guid.Empty; + logger.LogDebug($"the CollectExpression.instantiatedType property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (instantiatedTypeProperty.TryGetProperty("@id"u8, out var instantiatedTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = instantiatedTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.instantiatedType = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the instantiatedType Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty)) + { + var propertyValue = operatorProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Operator = propertyValue; + } + } + else + { + logger.LogDebug("the operator Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the CollectExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CommentDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CommentDeSerializer.cs index 6ac00f196..9dffd308c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CommentDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CommentDeSerializer.cs @@ -69,7 +69,7 @@ internal static IComment DeSerialize(JsonElement jsonElement, SerializationModeK throw new InvalidOperationException($"The CommentDeSerializer can only be used to deserialize objects of type IComment, a {@type.GetString()} was provided"); } - IComment dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.Comment(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.Comment(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,46 @@ internal static IComment DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the aliasIds Json property was not found in the Comment: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("annotatedElement"u8, out var annotatedElementProperty)) + { + foreach (var arrayItem in annotatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotatedElementExternalIdProperty)) + { + var propertyValue = annotatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotatedElement Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("annotation"u8, out var annotationProperty)) + { + foreach (var arrayItem in annotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotationExternalIdProperty)) + { + var propertyValue = annotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotation Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("body"u8, out var bodyProperty)) { var propertyValue = bodyProperty.GetString(); @@ -134,6 +174,26 @@ internal static IComment DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the declaredShortName Json property was not found in the Comment: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -160,6 +220,18 @@ internal static IComment DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the isImpliedIncluded Json property was not found in the Comment: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("locale"u8, out var localeProperty)) { dtoInstance.Locale = localeProperty.GetString(); @@ -169,13 +241,82 @@ internal static IComment DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the locale Json property was not found in the Comment: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotatingRelationship"u8, out var ownedAnnotatingRelationshipProperty)) + { + foreach (var arrayItem in ownedAnnotatingRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = ownedAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotatingRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotatingRelationship Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -189,6 +330,102 @@ internal static IComment DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the ownedRelationship Json property was not found in the Comment: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningAnnotatingRelationship"u8, out var owningAnnotatingRelationshipProperty)) + { + if (owningAnnotatingRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningAnnotatingRelationship = null; + } + else + { + if (owningAnnotatingRelationshipProperty.TryGetProperty("@id"u8, out var owningAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = owningAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningAnnotatingRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningAnnotatingRelationship Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) @@ -197,9 +434,9 @@ internal static IComment DeSerialize(JsonElement jsonElement, SerializationModeK } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -213,6 +450,44 @@ internal static IComment DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the owningRelationship Json property was not found in the Comment: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Comment: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernDefinitionDeSerializer.cs index 117f6dbf9..ace54bacc 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IConcernDefinition DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The ConcernDefinitionDeSerializer can only be used to deserialize objects of type IConcernDefinition, a {@type.GetString()} was provided"); } - IConcernDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.ConcernDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.ConcernDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IConcernDefinition DeSerialize(JsonElement jsonElement, Serializ } } + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,26 @@ internal static IConcernDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("assumedConstraint"u8, out var assumedConstraintProperty)) + { + foreach (var arrayItem in assumedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var assumedConstraintExternalIdProperty)) + { + var propertyValue = assumedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.assumedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the assumedConstraint Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +160,86 @@ internal static IConcernDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +254,206 @@ internal static IConcernDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the elementId Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("expression"u8, out var expressionProperty)) + { + foreach (var arrayItem in expressionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var expressionExternalIdProperty)) + { + var propertyValue = expressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.expression.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the expression Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("framedConcern"u8, out var framedConcernProperty)) + { + foreach (var arrayItem in framedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var framedConcernExternalIdProperty)) + { + var propertyValue = framedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.framedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the framedConcern Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +466,18 @@ internal static IConcernDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isAbstract Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +502,30 @@ internal static IConcernDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isIndividual Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,37 +550,1046 @@ internal static IConcernDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isVariation Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; - } + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -238,6 +1603,35 @@ internal static IConcernDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the owningRelationship Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty)) { dtoInstance.ReqId = reqIdProperty.GetString(); @@ -247,6 +1641,242 @@ internal static IConcernDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the reqId Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("requiredConstraint"u8, out var requiredConstraintProperty)) + { + foreach (var arrayItem in requiredConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var requiredConstraintExternalIdProperty)) + { + var propertyValue = requiredConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.requiredConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the requiredConstraint Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the ConcernDefinition.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("stakeholderParameter"u8, out var stakeholderParameterProperty)) + { + foreach (var arrayItem in stakeholderParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stakeholderParameterExternalIdProperty)) + { + var propertyValue = stakeholderParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.stakeholderParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the stakeholderParameter Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the ConcernDefinition.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("text"u8, out var textProperty)) + { + foreach (var arrayItem in textProperty.EnumerateArray()) + { + var propertyValue = arrayItem.GetString(); + + if (propertyValue != null) + { + dtoInstance.text.Add(propertyValue); + } + } + } + else + { + logger.LogDebug("the text Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernUsageDeSerializer.cs index 9f78c6074..fc2630a1e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IConcernUsage DeSerialize(JsonElement jsonElement, Serialization throw new InvalidOperationException($"The ConcernUsageDeSerializer can only be used to deserialize objects of type IConcernUsage, a {@type.GetString()} was provided"); } - IConcernUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.ConcernUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.ConcernUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IConcernUsage DeSerialize(JsonElement jsonElement, Serialization } } + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,263 +122,2438 @@ internal static IConcernUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the aliasIds Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("assumedConstraint"u8, out var assumedConstraintProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in assumedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var assumedConstraintExternalIdProperty)) + { + var propertyValue = assumedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.assumedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the assumedConstraint Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("concernDefinition"u8, out var concernDefinitionProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + if (concernDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.concernDefinition = null; + } + else + { + if (concernDefinitionProperty.TryGetProperty("@id"u8, out var concernDefinitionExternalIdProperty)) + { + var propertyValue = concernDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.concernDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the concernDefinition Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("constraintDefinition"u8, out var constraintDefinitionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (constraintDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.constraintDefinition = null; + } + else + { + if (constraintDefinitionProperty.TryGetProperty("@id"u8, out var constraintDefinitionExternalIdProperty)) + { + var propertyValue = constraintDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.constraintDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the constraintDefinition Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isConstant Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); - } + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); } else { - logger.LogDebug("the isDerived Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredShortName Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isSufficient Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = featureMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the ConcernUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = featureTargetExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.featureTarget = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty)) + if (jsonElement.TryGetProperty("framedConcern"u8, out var framedConcernProperty)) { - dtoInstance.ReqId = reqIdProperty.GetString(); + foreach (var arrayItem in framedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var framedConcernExternalIdProperty)) + { + var propertyValue = framedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.framedConcern.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the reqId Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the framedConcern Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) + { + if (functionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the function Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) + { + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the individualDefinition Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) + { + if (predicateProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.predicate = null; + } + else + { + if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) + { + var propertyValue = predicateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.predicate = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the predicate Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty)) + { + dtoInstance.ReqId = reqIdProperty.GetString(); + } + else + { + logger.LogDebug("the reqId Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("requiredConstraint"u8, out var requiredConstraintProperty)) + { + foreach (var arrayItem in requiredConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var requiredConstraintExternalIdProperty)) + { + var propertyValue = requiredConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.requiredConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the requiredConstraint Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("requirementDefinition"u8, out var requirementDefinitionProperty)) + { + if (requirementDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.requirementDefinition = null; + } + else + { + if (requirementDefinitionProperty.TryGetProperty("@id"u8, out var requirementDefinitionExternalIdProperty)) + { + var propertyValue = requirementDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.requirementDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the requirementDefinition Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the ConcernUsage.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("stakeholderParameter"u8, out var stakeholderParameterProperty)) + { + foreach (var arrayItem in stakeholderParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stakeholderParameterExternalIdProperty)) + { + var propertyValue = stakeholderParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.stakeholderParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the stakeholderParameter Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the ConcernUsage.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("text"u8, out var textProperty)) + { + foreach (var arrayItem in textProperty.EnumerateArray()) + { + var propertyValue = arrayItem.GetString(); + + if (propertyValue != null) + { + dtoInstance.text.Add(propertyValue); + } + } + } + else + { + logger.LogDebug("the text Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortDefinitionDeSerializer.cs index 96e455b64..fb3cacf00 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IConjugatedPortDefinition DeSerialize(JsonElement jsonElement, S throw new InvalidOperationException($"The ConjugatedPortDefinitionDeSerializer can only be used to deserialize objects of type IConjugatedPortDefinition, a {@type.GetString()} was provided"); } - IConjugatedPortDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Ports.ConjugatedPortDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Ports.ConjugatedPortDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,30 @@ internal static IConjugatedPortDefinition DeSerialize(JsonElement jsonElement, S logger.LogDebug("the aliasIds Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("conjugatedPortDefinition"u8, out var conjugatedPortDefinitionProperty)) + { + if (conjugatedPortDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.conjugatedPortDefinition = null; + } + else + { + if (conjugatedPortDefinitionProperty.TryGetProperty("@id"u8, out var conjugatedPortDefinitionExternalIdProperty)) + { + var propertyValue = conjugatedPortDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.conjugatedPortDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the conjugatedPortDefinition Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +144,86 @@ internal static IConjugatedPortDefinition DeSerialize(JsonElement jsonElement, S logger.LogDebug("the declaredShortName Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +238,166 @@ internal static IConjugatedPortDefinition DeSerialize(JsonElement jsonElement, S logger.LogDebug("the elementId Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +410,18 @@ internal static IConjugatedPortDefinition DeSerialize(JsonElement jsonElement, S logger.LogDebug("the isAbstract Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +446,18 @@ internal static IConjugatedPortDefinition DeSerialize(JsonElement jsonElement, S logger.LogDebug("the isIndividual Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,48 +482,1225 @@ internal static IConjugatedPortDefinition DeSerialize(JsonElement jsonElement, S logger.LogDebug("the isVariation Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("originalPortDefinition"u8, out var originalPortDefinitionProperty)) + { + if (originalPortDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.originalPortDefinition = Guid.Empty; + logger.LogDebug($"the ConjugatedPortDefinition.originalPortDefinition property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (originalPortDefinitionProperty.TryGetProperty("@id"u8, out var originalPortDefinitionExternalIdProperty)) + { + var propertyValue = originalPortDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.originalPortDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the originalPortDefinition Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPortConjugator"u8, out var ownedPortConjugatorProperty)) + { + if (ownedPortConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedPortConjugator = Guid.Empty; + logger.LogDebug($"the ConjugatedPortDefinition.ownedPortConjugator property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedPortConjugatorProperty.TryGetProperty("@id"u8, out var ownedPortConjugatorExternalIdProperty)) + { + var propertyValue = ownedPortConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPortConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedPortConjugator Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortTypingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortTypingDeSerializer.cs index 948a4f571..c1a42249b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortTypingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortTypingDeSerializer.cs @@ -69,7 +69,7 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria throw new InvalidOperationException($"The ConjugatedPortTypingDeSerializer can only be used to deserialize objects of type IConjugatedPortTyping, a {@type.GetString()} was provided"); } - IConjugatedPortTyping dtoInstance = new SysML2.NET.Core.DTO.Systems.Ports.ConjugatedPortTyping(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Ports.ConjugatedPortTyping(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -111,9 +111,9 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria } else { - if (conjugatedPortDefinitionProperty.TryGetProperty("@id"u8, out var conjugatedPortDefinitionIdProperty)) + if (conjugatedPortDefinitionProperty.TryGetProperty("@id"u8, out var conjugatedPortDefinitionExternalIdProperty)) { - var propertyValue = conjugatedPortDefinitionIdProperty.GetString(); + var propertyValue = conjugatedPortDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { @@ -145,6 +145,26 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the declaredShortName Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -168,9 +188,9 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria } else { - if (generalProperty.TryGetProperty("@id"u8, out var generalIdProperty)) + if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) { - var propertyValue = generalIdProperty.GetString(); + var propertyValue = generalExternalIdProperty.GetString(); if (propertyValue != null) { @@ -208,13 +228,74 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isImpliedIncluded Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -232,9 +313,9 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -248,6 +329,102 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the ownedRelationship Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeature"u8, out var owningFeatureProperty)) + { + if (owningFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeature = null; + } + else + { + if (owningFeatureProperty.TryGetProperty("@id"u8, out var owningFeatureExternalIdProperty)) + { + var propertyValue = owningFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeature Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -256,9 +433,9 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -280,9 +457,9 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -296,13 +473,100 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the owningRelationship Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portDefinition"u8, out var portDefinitionProperty)) + { + if (portDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.portDefinition = Guid.Empty; + logger.LogDebug($"the ConjugatedPortTyping.portDefinition property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (portDefinitionProperty.TryGetProperty("@id"u8, out var portDefinitionExternalIdProperty)) + { + var propertyValue = portDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.portDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the portDefinition Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -325,9 +589,9 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria } else { - if (specificProperty.TryGetProperty("@id"u8, out var specificIdProperty)) + if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) { - var propertyValue = specificIdProperty.GetString(); + var propertyValue = specificExternalIdProperty.GetString(); if (propertyValue != null) { @@ -345,9 +609,9 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -361,6 +625,26 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the target Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) { if (typeProperty.ValueKind == JsonValueKind.Null) @@ -370,9 +654,9 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria } else { - if (typeProperty.TryGetProperty("@id"u8, out var typeIdProperty)) + if (typeProperty.TryGetProperty("@id"u8, out var typeExternalIdProperty)) { - var propertyValue = typeIdProperty.GetString(); + var propertyValue = typeExternalIdProperty.GetString(); if (propertyValue != null) { @@ -395,9 +679,9 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria } else { - if (typedFeatureProperty.TryGetProperty("@id"u8, out var typedFeatureIdProperty)) + if (typedFeatureProperty.TryGetProperty("@id"u8, out var typedFeatureExternalIdProperty)) { - var propertyValue = typedFeatureIdProperty.GetString(); + var propertyValue = typedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugationDeSerializer.cs index ab032211a..6a50baaf5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugationDeSerializer.cs @@ -69,7 +69,7 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM throw new InvalidOperationException($"The ConjugationDeSerializer can only be used to deserialize objects of type IConjugation, a {@type.GetString()} was provided"); } - IConjugation dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Conjugation(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Conjugation(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -111,9 +111,9 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM } else { - if (conjugatedTypeProperty.TryGetProperty("@id"u8, out var conjugatedTypeIdProperty)) + if (conjugatedTypeProperty.TryGetProperty("@id"u8, out var conjugatedTypeExternalIdProperty)) { - var propertyValue = conjugatedTypeIdProperty.GetString(); + var propertyValue = conjugatedTypeExternalIdProperty.GetString(); if (propertyValue != null) { @@ -145,6 +145,26 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the declaredShortName Json property was not found in the Conjugation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Conjugation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -183,6 +203,27 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the isImpliedIncluded Json property was not found in the Conjugation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Conjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Conjugation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("originalType"u8, out var originalTypeProperty)) { if (originalTypeProperty.ValueKind == JsonValueKind.Null) @@ -192,9 +233,9 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM } else { - if (originalTypeProperty.TryGetProperty("@id"u8, out var originalTypeIdProperty)) + if (originalTypeProperty.TryGetProperty("@id"u8, out var originalTypeExternalIdProperty)) { - var propertyValue = originalTypeIdProperty.GetString(); + var propertyValue = originalTypeExternalIdProperty.GetString(); if (propertyValue != null) { @@ -208,13 +249,53 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the originalType Json property was not found in the Conjugation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Conjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Conjugation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -232,9 +313,9 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -248,6 +329,78 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the ownedRelationship Json property was not found in the Conjugation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Conjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Conjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Conjugation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -256,9 +409,9 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -280,9 +433,9 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -296,13 +449,75 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the owningRelationship Json property was not found in the Conjugation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Conjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Conjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Conjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Conjugation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -320,9 +535,9 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -336,6 +551,26 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the target Json property was not found in the Conjugation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Conjugation: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionDefinitionDeSerializer.cs index dc87fe4c9..987dc3356 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IConnectionDefinition DeSerialize(JsonElement jsonElement, Seria throw new InvalidOperationException($"The ConnectionDefinitionDeSerializer can only be used to deserialize objects of type IConnectionDefinition, a {@type.GetString()} was provided"); } - IConnectionDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Connections.ConnectionDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Connections.ConnectionDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,46 @@ internal static IConnectionDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the aliasIds Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("associationEnd"u8, out var associationEndProperty)) + { + foreach (var arrayItem in associationEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationEndExternalIdProperty)) + { + var propertyValue = associationEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.associationEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the associationEnd Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("connectionEnd"u8, out var connectionEndProperty)) + { + foreach (var arrayItem in connectionEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var connectionEndExternalIdProperty)) + { + var propertyValue = connectionEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectionEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the connectionEnd Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +160,86 @@ internal static IConnectionDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the declaredShortName Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +254,166 @@ internal static IConnectionDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the elementId Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +426,18 @@ internal static IConnectionDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isAbstract Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -182,6 +474,18 @@ internal static IConnectionDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isIndividual Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -206,125 +510,1216 @@ internal static IConnectionDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isVariation Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = membershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.membership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the membership Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (multiplicityProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.multiplicity = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the output Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = ownedActionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedAction Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = ownedAllocationExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedAllocation Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + { + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelatedElement Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) + { + foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedTypeExternalIdProperty)) + { + var propertyValue = relatedTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedType Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the source Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) + { + if (sourceTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceType = null; + } + else + { + if (sourceTypeProperty.TryGetProperty("@id"u8, out var sourceTypeExternalIdProperty)) + { + var propertyValue = sourceTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceType Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + { + foreach (var arrayItem in targetProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); } } } @@ -334,6 +1729,126 @@ internal static IConnectionDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the target Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) + { + foreach (var arrayItem in targetTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetTypeExternalIdProperty)) + { + var propertyValue = targetTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the targetType Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionUsageDeSerializer.cs index 80aecba1f..7f01feb14 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IConnectionUsage DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The ConnectionUsageDeSerializer can only be used to deserialize objects of type IConnectionUsage, a {@type.GetString()} was provided"); } - IConnectionUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Connections.ConnectionUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Connections.ConnectionUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,350 +102,2414 @@ internal static IConnectionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in associationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) + { + var propertyValue = associationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.association.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the association Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("connectionDefinition"u8, out var connectionDefinitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in connectionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var connectionDefinitionExternalIdProperty)) + { + var propertyValue = connectionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the connectionDefinition Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in connectorEndProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var connectorEndExternalIdProperty)) + { + var propertyValue = connectorEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectorEnd.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the connectorEnd Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isComposite Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty)) + { + if (defaultFeaturingTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + dtoInstance.defaultFeaturingType = null; + } + else + { + if (defaultFeaturingTypeProperty.TryGetProperty("@id"u8, out var defaultFeaturingTypeExternalIdProperty)) + { + var propertyValue = defaultFeaturingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.defaultFeaturingType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the defaultFeaturingType Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isImpliedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImplied Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isOrdered Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the ConnectionUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = featuringTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.individualDefinition = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.OwningRelationship = null; - } - else + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + { + if (isImpliedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImplied Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("itemDefinition"u8, out var itemDefinitionProperty)) + { + foreach (var arrayItem in itemDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var itemDefinitionExternalIdProperty)) + { + var propertyValue = itemDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.itemDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the itemDefinition Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + { + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelatedElement Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("partDefinition"u8, out var partDefinitionProperty)) + { + foreach (var arrayItem in partDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var partDefinitionExternalIdProperty)) + { + var propertyValue = partDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.partDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the partDefinition Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) + { + foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedFeatureExternalIdProperty)) + { + var propertyValue = relatedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedFeature Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the source Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) + { + if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceFeature = null; + } + else + { + if (sourceFeatureProperty.TryGetProperty("@id"u8, out var sourceFeatureExternalIdProperty)) + { + var propertyValue = sourceFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceFeature Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + { + foreach (var arrayItem in targetProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the target Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) + { + foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) + { + var propertyValue = targetFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the targetFeature Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectorDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectorDeSerializer.cs index d1cc1951f..7804189e0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectorDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectorDeSerializer.cs @@ -69,7 +69,7 @@ internal static IConnector DeSerialize(JsonElement jsonElement, SerializationMod throw new InvalidOperationException($"The ConnectorDeSerializer can only be used to deserialize objects of type IConnector, a {@type.GetString()} was provided"); } - IConnector dtoInstance = new SysML2.NET.Core.DTO.Kernel.Connectors.Connector(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Connectors.Connector(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,317 +102,1565 @@ internal static IConnector DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the aliasIds Json property was not found in the Connector: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) + { + foreach (var arrayItem in associationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) + { + var propertyValue = associationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.association.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the association Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) + { + foreach (var arrayItem in connectorEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var connectorEndExternalIdProperty)) + { + var propertyValue = connectorEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectorEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the connectorEnd Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the declaredName Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty)) + { + if (defaultFeaturingTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.defaultFeaturingType = null; + } + else + { + if (defaultFeaturingTypeProperty.TryGetProperty("@id"u8, out var defaultFeaturingTypeExternalIdProperty)) + { + var propertyValue = defaultFeaturingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.defaultFeaturingType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the defaultFeaturingType Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + { + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + { + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ElementId = propertyValue; + } + } + else + { + logger.LogDebug("the elementId Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the Connector.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + { + if (isImpliedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImplied Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedRelationship Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSpecialization Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSubsetting Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTyping Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedUnioning Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (ownerProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the owner Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the owningFeatureMembership Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) { - if (isImpliedProperty.ValueKind != JsonValueKind.Null) + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImplied Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the owningMembership Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the owningNamespace Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelatedElement Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelationship Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (owningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the owningType Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); - } + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); } else { - logger.LogDebug("the isUnique Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the qualifiedName Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedElement Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var relatedFeatureExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = relatedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.relatedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedFeature Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.Source.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the source Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.sourceFeature = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (sourceFeatureProperty.TryGetProperty("@id"u8, out var sourceFeatureExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = sourceFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.sourceFeature = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the sourceFeature Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in targetProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the target Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) + { + foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = targetFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.targetFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the targetFeature Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = textualRepresentationExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the textualRepresentation Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in typeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = typeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.type.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the Connector: { Id }", dtoInstance.Id); + logger.LogDebug("the type Json property was not found in the Connector: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Connector: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintDefinitionDeSerializer.cs index e0717a041..41e4ed892 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IConstraintDefinition DeSerialize(JsonElement jsonElement, Seria throw new InvalidOperationException($"The ConstraintDefinitionDeSerializer can only be used to deserialize objects of type IConstraintDefinition, a {@type.GetString()} was provided"); } - IConstraintDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Constraints.ConstraintDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Constraints.ConstraintDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,86 @@ internal static IConstraintDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the declaredShortName Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,186 @@ internal static IConstraintDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the elementId Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("expression"u8, out var expressionProperty)) + { + foreach (var arrayItem in expressionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var expressionExternalIdProperty)) + { + var propertyValue = expressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.expression.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the expression Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +406,18 @@ internal static IConstraintDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isAbstract Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +442,30 @@ internal static IConstraintDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isIndividual Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,48 +490,1240 @@ internal static IConstraintDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isVariation Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the ConstraintDefinition.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintUsageDeSerializer.cs index 20deebaf6..057588a2a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IConstraintUsage DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The ConstraintUsageDeSerializer can only be used to deserialize objects of type IConstraintUsage, a {@type.GetString()} was provided"); } - IConstraintUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Constraints.ConstraintUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Constraints.ConstraintUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,94 @@ internal static IConstraintUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("constraintDefinition"u8, out var constraintDefinitionProperty)) + { + if (constraintDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.constraintDefinition = null; + } + else + { + if (constraintDefinitionProperty.TryGetProperty("@id"u8, out var constraintDefinitionExternalIdProperty)) + { + var propertyValue = constraintDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.constraintDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the constraintDefinition Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +208,2153 @@ internal static IConstraintUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isEnd Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the ConstraintUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; - } - else - { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) + { + if (predicateProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.predicate = null; + } + else + { + if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) + { + var propertyValue = predicateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.predicate = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the predicate Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the ConstraintUsage.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstructorExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstructorExpressionDeSerializer.cs index e8283de93..026c328f3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstructorExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstructorExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IConstructorExpression DeSerialize(JsonElement jsonElement, Seri throw new InvalidOperationException($"The ConstructorExpressionDeSerializer can only be used to deserialize objects of type IConstructorExpression, a {@type.GetString()} was provided"); } - IConstructorExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.ConstructorExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.ConstructorExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,90 @@ internal static IConstructorExpression DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the aliasIds Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("argument"u8, out var argumentProperty)) + { + foreach (var arrayItem in argumentProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var argumentExternalIdProperty)) + { + var propertyValue = argumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.argument.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the argument Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +204,46 @@ internal static IConstructorExpression DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the declaredShortName Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +253,26 @@ internal static IConstructorExpression DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the direction Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +287,1282 @@ internal static IConstructorExpression DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the elementId Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the ConstructorExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("instantiatedType"u8, out var instantiatedTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + if (instantiatedTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.instantiatedType = Guid.Empty; + logger.LogDebug($"the ConstructorExpression.instantiatedType property was not found in the Json. The value is set to Guid.Empty"); + } + else { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (instantiatedTypeProperty.TryGetProperty("@id"u8, out var instantiatedTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = instantiatedTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.instantiatedType = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the instantiatedType Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.OwningRelationship = null; - } - else + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the ConstructorExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CrossSubsettingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CrossSubsettingDeSerializer.cs index 6fb40cfc4..34fd09f6f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CrossSubsettingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CrossSubsettingDeSerializer.cs @@ -69,7 +69,7 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The CrossSubsettingDeSerializer can only be used to deserialize objects of type ICrossSubsetting, a {@type.GetString()} was provided"); } - ICrossSubsetting dtoInstance = new SysML2.NET.Core.DTO.Core.Features.CrossSubsetting(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Features.CrossSubsetting(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -111,9 +111,9 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat } else { - if (crossedFeatureProperty.TryGetProperty("@id"u8, out var crossedFeatureIdProperty)) + if (crossedFeatureProperty.TryGetProperty("@id"u8, out var crossedFeatureExternalIdProperty)) { - var propertyValue = crossedFeatureIdProperty.GetString(); + var propertyValue = crossedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -127,6 +127,31 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the crossedFeature Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("crossingFeature"u8, out var crossingFeatureProperty)) + { + if (crossingFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossingFeature = Guid.Empty; + logger.LogDebug($"the CrossSubsetting.crossingFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (crossingFeatureProperty.TryGetProperty("@id"u8, out var crossingFeatureExternalIdProperty)) + { + var propertyValue = crossingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossingFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossingFeature Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -145,6 +170,26 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -168,9 +213,9 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat } else { - if (generalProperty.TryGetProperty("@id"u8, out var generalIdProperty)) + if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) { - var propertyValue = generalIdProperty.GetString(); + var propertyValue = generalExternalIdProperty.GetString(); if (propertyValue != null) { @@ -208,13 +253,74 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isImpliedIncluded Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -232,9 +338,9 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -248,6 +354,102 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the ownedRelationship Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeature"u8, out var owningFeatureProperty)) + { + if (owningFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeature = null; + } + else + { + if (owningFeatureProperty.TryGetProperty("@id"u8, out var owningFeatureExternalIdProperty)) + { + var propertyValue = owningFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeature Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -256,9 +458,9 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -280,9 +482,9 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -296,13 +498,75 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the owningRelationship Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -325,9 +589,9 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat } else { - if (specificProperty.TryGetProperty("@id"u8, out var specificIdProperty)) + if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) { - var propertyValue = specificIdProperty.GetString(); + var propertyValue = specificExternalIdProperty.GetString(); if (propertyValue != null) { @@ -350,9 +614,9 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat } else { - if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureIdProperty)) + if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureExternalIdProperty)) { - var propertyValue = subsettedFeatureIdProperty.GetString(); + var propertyValue = subsettedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -375,9 +639,9 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat } else { - if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureIdProperty)) + if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureExternalIdProperty)) { - var propertyValue = subsettingFeatureIdProperty.GetString(); + var propertyValue = subsettingFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -395,9 +659,9 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -411,6 +675,26 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the target Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DataTypeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DataTypeDeSerializer.cs index f13e5d669..dcd02167d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DataTypeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DataTypeDeSerializer.cs @@ -69,7 +69,7 @@ internal static IDataType DeSerialize(JsonElement jsonElement, SerializationMode throw new InvalidOperationException($"The DataTypeDeSerializer can only be used to deserialize objects of type IDataType, a {@type.GetString()} was provided"); } - IDataType dtoInstance = new SysML2.NET.Core.DTO.Kernel.DataTypes.DataType(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.DataTypes.DataType(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,66 @@ internal static IDataType DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the declaredShortName Json property was not found in the DataType: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +194,166 @@ internal static IDataType DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the elementId Json property was not found in the DataType: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +366,18 @@ internal static IDataType DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the isAbstract Json property was not found in the DataType: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -158,6 +390,18 @@ internal static IDataType DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the isImpliedIncluded Json property was not found in the DataType: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -170,48 +414,575 @@ internal static IDataType DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the isSufficient Json property was not found in the DataType: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the DataType: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the DataType: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the DataType: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the DataType: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the DataType: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DecisionNodeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DecisionNodeDeSerializer.cs index 24e13cc69..ec1839e2d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DecisionNodeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DecisionNodeDeSerializer.cs @@ -69,7 +69,7 @@ internal static IDecisionNode DeSerialize(JsonElement jsonElement, Serialization throw new InvalidOperationException($"The DecisionNodeDeSerializer can only be used to deserialize objects of type IDecisionNode, a {@type.GetString()} was provided"); } - IDecisionNode dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.DecisionNode(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.DecisionNode(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IDecisionNode DeSerialize(JsonElement jsonElement, Serialization } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,70 @@ internal static IDecisionNode DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the aliasIds Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +204,2068 @@ internal static IDecisionNode DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the declaredShortName Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isEnd Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the DecisionNode.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DefinitionDeSerializer.cs index d90861b2e..f9a785718 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IDefinition DeSerialize(JsonElement jsonElement, SerializationMo throw new InvalidOperationException($"The DefinitionDeSerializer can only be used to deserialize objects of type IDefinition, a {@type.GetString()} was provided"); } - IDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.Definition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.Definition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,86 @@ internal static IDefinition DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the declaredShortName Json property was not found in the Definition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,166 @@ internal static IDefinition DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the elementId Json property was not found in the Definition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IDefinition DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isAbstract Json property was not found in the Definition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -158,6 +410,18 @@ internal static IDefinition DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isImpliedIncluded Json property was not found in the Definition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -182,48 +446,1175 @@ internal static IDefinition DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isVariation Json property was not found in the Definition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Definition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Definition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Definition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the Definition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the Definition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DependencyDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DependencyDeSerializer.cs index bf8b341f6..2aca80a1b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DependencyDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DependencyDeSerializer.cs @@ -69,7 +69,7 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo throw new InvalidOperationException($"The DependencyDeSerializer can only be used to deserialize objects of type IDependency, a {@type.GetString()} was provided"); } - IDependency dtoInstance = new SysML2.NET.Core.DTO.Root.Dependencies.Dependency(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Dependencies.Dependency(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -106,9 +106,9 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in clientProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var clientIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var clientExternalIdProperty)) { - var propertyValue = clientIdProperty.GetString(); + var propertyValue = clientExternalIdProperty.GetString(); if (propertyValue != null) { @@ -140,6 +140,26 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the declaredShortName Json property was not found in the Dependency: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -178,13 +198,74 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isImpliedIncluded Json property was not found in the Dependency: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -202,9 +283,9 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -218,6 +299,78 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the ownedRelationship Json property was not found in the Dependency: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -226,9 +379,9 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -250,9 +403,9 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -266,13 +419,51 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the owningRelationship Json property was not found in the Dependency: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -290,9 +481,9 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in supplierProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var supplierIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var supplierExternalIdProperty)) { - var propertyValue = supplierIdProperty.GetString(); + var propertyValue = supplierExternalIdProperty.GetString(); if (propertyValue != null) { @@ -310,9 +501,9 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -326,6 +517,26 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the target Json property was not found in the Dependency: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Dependency: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DifferencingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DifferencingDeSerializer.cs index 01a9658c6..10821b979 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DifferencingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DifferencingDeSerializer.cs @@ -69,7 +69,7 @@ internal static IDifferencing DeSerialize(JsonElement jsonElement, Serialization throw new InvalidOperationException($"The DifferencingDeSerializer can only be used to deserialize objects of type IDifferencing, a {@type.GetString()} was provided"); } - IDifferencing dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Differencing(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Differencing(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -129,9 +129,9 @@ internal static IDifferencing DeSerialize(JsonElement jsonElement, Serialization } else { - if (differencingTypeProperty.TryGetProperty("@id"u8, out var differencingTypeIdProperty)) + if (differencingTypeProperty.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) { - var propertyValue = differencingTypeIdProperty.GetString(); + var propertyValue = differencingTypeExternalIdProperty.GetString(); if (propertyValue != null) { @@ -145,6 +145,26 @@ internal static IDifferencing DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the differencingType Json property was not found in the Differencing: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Differencing: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -183,13 +203,74 @@ internal static IDifferencing DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the isImpliedIncluded Json property was not found in the Differencing: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Differencing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Differencing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Differencing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Differencing: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +288,9 @@ internal static IDifferencing DeSerialize(JsonElement jsonElement, Serialization { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +304,78 @@ internal static IDifferencing DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the ownedRelationship Json property was not found in the Differencing: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Differencing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Differencing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Differencing: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +384,9 @@ internal static IDifferencing DeSerialize(JsonElement jsonElement, Serialization } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +408,9 @@ internal static IDifferencing DeSerialize(JsonElement jsonElement, Serialization } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,13 +424,51 @@ internal static IDifferencing DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the owningRelationship Json property was not found in the Differencing: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Differencing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Differencing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Differencing: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -295,9 +486,9 @@ internal static IDifferencing DeSerialize(JsonElement jsonElement, Serialization { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -311,6 +502,51 @@ internal static IDifferencing DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the target Json property was not found in the Differencing: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Differencing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("typeDifferenced"u8, out var typeDifferencedProperty)) + { + if (typeDifferencedProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.typeDifferenced = Guid.Empty; + logger.LogDebug($"the Differencing.typeDifferenced property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (typeDifferencedProperty.TryGetProperty("@id"u8, out var typeDifferencedExternalIdProperty)) + { + var propertyValue = typeDifferencedExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.typeDifferenced = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the typeDifferenced Json property was not found in the Differencing: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DisjoiningDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DisjoiningDeSerializer.cs index 268d8421c..8d81e2389 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DisjoiningDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DisjoiningDeSerializer.cs @@ -69,7 +69,7 @@ internal static IDisjoining DeSerialize(JsonElement jsonElement, SerializationMo throw new InvalidOperationException($"The DisjoiningDeSerializer can only be used to deserialize objects of type IDisjoining, a {@type.GetString()} was provided"); } - IDisjoining dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Disjoining(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Disjoining(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -129,9 +129,9 @@ internal static IDisjoining DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (disjoiningTypeProperty.TryGetProperty("@id"u8, out var disjoiningTypeIdProperty)) + if (disjoiningTypeProperty.TryGetProperty("@id"u8, out var disjoiningTypeExternalIdProperty)) { - var propertyValue = disjoiningTypeIdProperty.GetString(); + var propertyValue = disjoiningTypeExternalIdProperty.GetString(); if (propertyValue != null) { @@ -145,6 +145,26 @@ internal static IDisjoining DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the disjoiningType Json property was not found in the Disjoining: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Disjoining: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -183,13 +203,74 @@ internal static IDisjoining DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isImpliedIncluded Json property was not found in the Disjoining: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Disjoining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Disjoining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Disjoining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Disjoining: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +288,9 @@ internal static IDisjoining DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +304,78 @@ internal static IDisjoining DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the ownedRelationship Json property was not found in the Disjoining: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Disjoining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Disjoining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Disjoining: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +384,9 @@ internal static IDisjoining DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +408,9 @@ internal static IDisjoining DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,13 +424,75 @@ internal static IDisjoining DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the owningRelationship Json property was not found in the Disjoining: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Disjoining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Disjoining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Disjoining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Disjoining: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -295,9 +510,9 @@ internal static IDisjoining DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -311,6 +526,26 @@ internal static IDisjoining DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the target Json property was not found in the Disjoining: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Disjoining: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("typeDisjoined"u8, out var typeDisjoinedProperty)) { if (typeDisjoinedProperty.ValueKind == JsonValueKind.Null) @@ -320,9 +555,9 @@ internal static IDisjoining DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (typeDisjoinedProperty.TryGetProperty("@id"u8, out var typeDisjoinedIdProperty)) + if (typeDisjoinedProperty.TryGetProperty("@id"u8, out var typeDisjoinedExternalIdProperty)) { - var propertyValue = typeDisjoinedIdProperty.GetString(); + var propertyValue = typeDisjoinedExternalIdProperty.GetString(); if (propertyValue != null) { diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DocumentationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DocumentationDeSerializer.cs index bb94e14a7..7d79f6488 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DocumentationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DocumentationDeSerializer.cs @@ -69,7 +69,7 @@ internal static IDocumentation DeSerialize(JsonElement jsonElement, Serializatio throw new InvalidOperationException($"The DocumentationDeSerializer can only be used to deserialize objects of type IDocumentation, a {@type.GetString()} was provided"); } - IDocumentation dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.Documentation(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.Documentation(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,46 @@ internal static IDocumentation DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the aliasIds Json property was not found in the Documentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("annotatedElement"u8, out var annotatedElementProperty)) + { + foreach (var arrayItem in annotatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotatedElementExternalIdProperty)) + { + var propertyValue = annotatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotatedElement Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("annotation"u8, out var annotationProperty)) + { + foreach (var arrayItem in annotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotationExternalIdProperty)) + { + var propertyValue = annotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotation Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("body"u8, out var bodyProperty)) { var propertyValue = bodyProperty.GetString(); @@ -134,6 +174,51 @@ internal static IDocumentation DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the declaredShortName Json property was not found in the Documentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentedElement"u8, out var documentedElementProperty)) + { + if (documentedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.documentedElement = Guid.Empty; + logger.LogDebug($"the Documentation.documentedElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (documentedElementProperty.TryGetProperty("@id"u8, out var documentedElementExternalIdProperty)) + { + var propertyValue = documentedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the documentedElement Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -160,6 +245,18 @@ internal static IDocumentation DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the isImpliedIncluded Json property was not found in the Documentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("locale"u8, out var localeProperty)) { dtoInstance.Locale = localeProperty.GetString(); @@ -169,13 +266,82 @@ internal static IDocumentation DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the locale Json property was not found in the Documentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotatingRelationship"u8, out var ownedAnnotatingRelationshipProperty)) + { + foreach (var arrayItem in ownedAnnotatingRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = ownedAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotatingRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotatingRelationship Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -189,6 +355,102 @@ internal static IDocumentation DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the ownedRelationship Json property was not found in the Documentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningAnnotatingRelationship"u8, out var owningAnnotatingRelationshipProperty)) + { + if (owningAnnotatingRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningAnnotatingRelationship = null; + } + else + { + if (owningAnnotatingRelationshipProperty.TryGetProperty("@id"u8, out var owningAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = owningAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningAnnotatingRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningAnnotatingRelationship Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) @@ -197,9 +459,9 @@ internal static IDocumentation DeSerialize(JsonElement jsonElement, Serializatio } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -213,6 +475,44 @@ internal static IDocumentation DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the owningRelationship Json property was not found in the Documentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Documentation: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ElementFilterMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ElementFilterMembershipDeSerializer.cs index 9614ad7ff..c26a749c4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ElementFilterMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ElementFilterMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se throw new InvalidOperationException($"The ElementFilterMembershipDeSerializer can only be used to deserialize objects of type IElementFilterMembership, a {@type.GetString()} was provided"); } - IElementFilterMembership dtoInstance = new SysML2.NET.Core.DTO.Kernel.Packages.ElementFilterMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Packages.ElementFilterMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,31 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the aliasIds Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("condition"u8, out var conditionProperty)) + { + if (conditionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.condition = Guid.Empty; + logger.LogDebug($"the ElementFilterMembership.condition property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (conditionProperty.TryGetProperty("@id"u8, out var conditionExternalIdProperty)) + { + var propertyValue = conditionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.condition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the condition Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +145,26 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the declaredShortName Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +203,18 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the isImpliedIncluded Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +224,9 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +240,20 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the memberElement Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +263,31 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the memberName Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the ElementFilterMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +297,119 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the memberShortName Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the ElementFilterMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +427,9 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +443,78 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the ownedRelationship Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +523,9 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +547,9 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +563,51 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the owningRelationship Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +625,9 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +641,26 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the target Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EndFeatureMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EndFeatureMembershipDeSerializer.cs index e05fdbd0a..ce3ecb6a1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EndFeatureMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EndFeatureMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria throw new InvalidOperationException($"The EndFeatureMembershipDeSerializer can only be used to deserialize objects of type IEndFeatureMembership, a {@type.GetString()} was provided"); } - IEndFeatureMembership dtoInstance = new SysML2.NET.Core.DTO.Core.Features.EndFeatureMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Features.EndFeatureMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the declaredShortName Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isImpliedIncluded Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the memberElement Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the memberName Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the EndFeatureMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,144 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the memberShortName Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the EndFeatureMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the EndFeatureMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +427,9 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +443,78 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the ownedRelationship Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +523,9 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +547,9 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +563,76 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the owningRelationship Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the EndFeatureMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +650,9 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +666,26 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the target Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs index b00654192..b671b297a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri throw new InvalidOperationException($"The EnumerationDefinitionDeSerializer can only be used to deserialize objects of type IEnumerationDefinition, a {@type.GetString()} was provided"); } - IEnumerationDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Enumerations.EnumerationDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Enumerations.EnumerationDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,86 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the declaredShortName Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,186 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the elementId Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("enumeratedValue"u8, out var enumeratedValueProperty)) + { + foreach (var arrayItem in enumeratedValueProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var enumeratedValueExternalIdProperty)) + { + var propertyValue = enumeratedValueExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.enumeratedValue.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the enumeratedValue Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +406,18 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isAbstract Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -158,6 +430,18 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isImpliedIncluded Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -182,48 +466,1175 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isVariation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationUsageDeSerializer.cs index 4da1e74c5..2f8060b9d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IEnumerationUsage DeSerialize(JsonElement jsonElement, Serializa throw new InvalidOperationException($"The EnumerationUsageDeSerializer can only be used to deserialize objects of type IEnumerationUsage, a {@type.GetString()} was provided"); } - IEnumerationUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Enumerations.EnumerationUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Enumerations.EnumerationUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static IEnumerationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the aliasIds Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("attributeDefinition"u8, out var attributeDefinitionProperty)) + { + foreach (var arrayItem in attributeDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var attributeDefinitionExternalIdProperty)) + { + var propertyValue = attributeDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.attributeDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the attributeDefinition Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,215 +184,2008 @@ internal static IEnumerationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the declaredShortName Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); - if (propertyValue != null) + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isConstant Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("enumerationDefinition"u8, out var enumerationDefinitionProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (enumerationDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.enumerationDefinition = Guid.Empty; + logger.LogDebug($"the EnumerationUsage.enumerationDefinition property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (enumerationDefinitionProperty.TryGetProperty("@id"u8, out var enumerationDefinitionExternalIdProperty)) + { + var propertyValue = enumerationDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.enumerationDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the enumerationDefinition Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the EnumerationUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the input Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EventOccurrenceUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EventOccurrenceUsageDeSerializer.cs index 641b09d72..d7b505c8d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EventOccurrenceUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EventOccurrenceUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IEventOccurrenceUsage DeSerialize(JsonElement jsonElement, Seria throw new InvalidOperationException($"The EventOccurrenceUsageDeSerializer can only be used to deserialize objects of type IEventOccurrenceUsage, a {@type.GetString()} was provided"); } - IEventOccurrenceUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Occurrences.EventOccurrenceUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Occurrences.EventOccurrenceUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IEventOccurrenceUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the aliasIds Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +164,2073 @@ internal static IEventOccurrenceUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the declaredShortName Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); - if (propertyValue != null) + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isConstant Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("eventOccurrence"u8, out var eventOccurrenceProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (eventOccurrenceProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.eventOccurrence = Guid.Empty; + logger.LogDebug($"the EventOccurrenceUsage.eventOccurrence property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (eventOccurrenceProperty.TryGetProperty("@id"u8, out var eventOccurrenceExternalIdProperty)) + { + var propertyValue = eventOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.eventOccurrence = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the eventOccurrence Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the EventOccurrenceUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the input Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } } else { - logger.LogDebug("the portionKind Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the isAbstract Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExhibitStateUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExhibitStateUsageDeSerializer.cs index 9173285e1..f609ce229 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExhibitStateUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExhibitStateUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IExhibitStateUsage DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The ExhibitStateUsageDeSerializer can only be used to deserialize objects of type IExhibitStateUsage, a {@type.GetString()} was provided"); } - IExhibitStateUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.States.ExhibitStateUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.States.ExhibitStateUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IExhibitStateUsage DeSerialize(JsonElement jsonElement, Serializ } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,266 +122,2329 @@ internal static IExhibitStateUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - var propertyValue = elementIdProperty.GetString(); + dtoInstance.DeclaredName = declaredNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredName Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.ElementId = propertyValue; - } + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); } else { - logger.LogDebug("the elementId Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredShortName Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("doAction"u8, out var doActionProperty)) + { + if (doActionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.doAction = null; + } + else + { + if (doActionProperty.TryGetProperty("@id"u8, out var doActionExternalIdProperty)) + { + var propertyValue = doActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.doAction = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the doAction Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isIndividual Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isParallel"u8, out var isParallelProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isParallelProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsParallel = isParallelProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isParallel Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("entryAction"u8, out var entryActionProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (entryActionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.entryAction = null; + } + else + { + if (entryActionProperty.TryGetProperty("@id"u8, out var entryActionExternalIdProperty)) + { + var propertyValue = entryActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.entryAction = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the entryAction Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("eventOccurrence"u8, out var eventOccurrenceProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (eventOccurrenceProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.eventOccurrence = Guid.Empty; + logger.LogDebug($"the ExhibitStateUsage.eventOccurrence property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (eventOccurrenceProperty.TryGetProperty("@id"u8, out var eventOccurrenceExternalIdProperty)) + { + var propertyValue = eventOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.eventOccurrence = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the eventOccurrence Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("exhibitedState"u8, out var exhibitedStateProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (exhibitedStateProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.exhibitedState = Guid.Empty; + logger.LogDebug($"the ExhibitStateUsage.exhibitedState property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (exhibitedStateProperty.TryGetProperty("@id"u8, out var exhibitedStateExternalIdProperty)) + { + var propertyValue = exhibitedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.exhibitedState = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the exhibitedState Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("exitAction"u8, out var exitActionProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (exitActionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.exitAction = null; + } + else + { + if (exitActionProperty.TryGetProperty("@id"u8, out var exitActionExternalIdProperty)) + { + var propertyValue = exitActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.exitAction = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the exitAction Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = featureMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the ExhibitStateUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = featureTargetExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.featureTarget = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) + { + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the individualDefinition Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isParallel"u8, out var isParallelProperty)) + { + if (isParallelProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsParallel = isParallelProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isParallel Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("performedAction"u8, out var performedActionProperty)) + { + if (performedActionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.performedAction = Guid.Empty; + logger.LogDebug($"the ExhibitStateUsage.performedAction property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (performedActionProperty.TryGetProperty("@id"u8, out var performedActionExternalIdProperty)) + { + var propertyValue = performedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.performedAction = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the performedAction Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("stateDefinition"u8, out var stateDefinitionProperty)) + { + foreach (var arrayItem in stateDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stateDefinitionExternalIdProperty)) + { + var propertyValue = stateDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.stateDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the stateDefinition Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExpressionDeSerializer.cs index 022a80c6e..eb0ea2578 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IExpression DeSerialize(JsonElement jsonElement, SerializationMo throw new InvalidOperationException($"The ExpressionDeSerializer can only be used to deserialize objects of type IExpression, a {@type.GetString()} was provided"); } - IExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.Expression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.Expression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static IExpression DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the aliasIds Json property was not found in the Expression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +184,46 @@ internal static IExpression DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the declaredShortName Json property was not found in the Expression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +233,26 @@ internal static IExpression DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the direction Json property was not found in the Expression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +267,1257 @@ internal static IExpression DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the elementId Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the Expression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the Expression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the Expression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the Expression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the Expression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the Expression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the Expression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the Expression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the Expression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the Expression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the Expression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the Expression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Expression: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (isAbstractProperty.ValueKind != JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); } - else + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) - { - var propertyValue = owningRelationshipIdProperty.GetString(); + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the Expression: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); - } - } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Expression: { Id }", dtoInstance.Id); + logger.LogDebug("the isConjugated Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the Expression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the Expression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Expression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainExpressionDeSerializer.cs index 33b59a5fe..03f2b0b8c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFeatureChainExpression DeSerialize(JsonElement jsonElement, Ser throw new InvalidOperationException($"The FeatureChainExpressionDeSerializer can only be used to deserialize objects of type IFeatureChainExpression, a {@type.GetString()} was provided"); } - IFeatureChainExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.FeatureChainExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.FeatureChainExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,90 @@ internal static IFeatureChainExpression DeSerialize(JsonElement jsonElement, Ser logger.LogDebug("the aliasIds Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("argument"u8, out var argumentProperty)) + { + foreach (var arrayItem in argumentProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var argumentExternalIdProperty)) + { + var propertyValue = argumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.argument.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the argument Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,217 +204,1404 @@ internal static IFeatureChainExpression DeSerialize(JsonElement jsonElement, Ser logger.LogDebug("the declaredShortName Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isComposite Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the FeatureChainExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - var propertyValue = operatorProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.Operator = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the operator Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("instantiatedType"u8, out var instantiatedTypeProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (instantiatedTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.instantiatedType = Guid.Empty; + logger.LogDebug($"the FeatureChainExpression.instantiatedType property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (instantiatedTypeProperty.TryGetProperty("@id"u8, out var instantiatedTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = instantiatedTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.instantiatedType = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the instantiatedType Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty)) + { + var propertyValue = operatorProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Operator = propertyValue; + } + } + else + { + logger.LogDebug("the operator Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the FeatureChainExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) + { + if (targetFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.targetFeature = Guid.Empty; + logger.LogDebug($"the FeatureChainExpression.targetFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (targetFeatureProperty.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) + { + var propertyValue = targetFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the targetFeature Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainingDeSerializer.cs index de4093995..e42128434 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainingDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFeatureChaining DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The FeatureChainingDeSerializer can only be used to deserialize objects of type IFeatureChaining, a {@type.GetString()} was provided"); } - IFeatureChaining dtoInstance = new SysML2.NET.Core.DTO.Core.Features.FeatureChaining(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Features.FeatureChaining(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -111,9 +111,9 @@ internal static IFeatureChaining DeSerialize(JsonElement jsonElement, Serializat } else { - if (chainingFeatureProperty.TryGetProperty("@id"u8, out var chainingFeatureIdProperty)) + if (chainingFeatureProperty.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) { - var propertyValue = chainingFeatureIdProperty.GetString(); + var propertyValue = chainingFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -145,6 +145,26 @@ internal static IFeatureChaining DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -159,6 +179,31 @@ internal static IFeatureChaining DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the elementId Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("featureChained"u8, out var featureChainedProperty)) + { + if (featureChainedProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureChained = Guid.Empty; + logger.LogDebug($"the FeatureChaining.featureChained property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureChainedProperty.TryGetProperty("@id"u8, out var featureChainedExternalIdProperty)) + { + var propertyValue = featureChainedExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureChained = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureChained Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -183,13 +228,74 @@ internal static IFeatureChaining DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isImpliedIncluded Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +313,9 @@ internal static IFeatureChaining DeSerialize(JsonElement jsonElement, Serializat { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +329,78 @@ internal static IFeatureChaining DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the ownedRelationship Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +409,9 @@ internal static IFeatureChaining DeSerialize(JsonElement jsonElement, Serializat } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +433,9 @@ internal static IFeatureChaining DeSerialize(JsonElement jsonElement, Serializat } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,13 +449,51 @@ internal static IFeatureChaining DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the owningRelationship Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -295,9 +511,9 @@ internal static IFeatureChaining DeSerialize(JsonElement jsonElement, Serializat { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -311,6 +527,26 @@ internal static IFeatureChaining DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the target Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureDeSerializer.cs index 1be674aeb..1e2093bfd 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK throw new InvalidOperationException($"The FeatureDeSerializer can only be used to deserialize objects of type IFeature, a {@type.GetString()} was provided"); } - IFeature dtoInstance = new SysML2.NET.Core.DTO.Core.Features.Feature(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Features.Feature(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the aliasIds Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +164,46 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the declaredShortName Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +213,26 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the direction Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,6 +247,235 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the elementId Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the Feature.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -167,6 +500,18 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the isComposite Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) { if (isConstantProperty.ValueKind != JsonValueKind.Null) @@ -215,6 +560,18 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the isImpliedIncluded Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) { if (isOrderedProperty.ValueKind != JsonValueKind.Null) @@ -275,37 +632,678 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the isVariable Json property was not found in the Feature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Feature: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Feature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -319,6 +1317,108 @@ internal static IFeature DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the owningRelationship Json property was not found in the Feature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Feature: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureInvertingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureInvertingDeSerializer.cs index 7eb90461c..9daca1de9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureInvertingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureInvertingDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFeatureInverting DeSerialize(JsonElement jsonElement, Serializa throw new InvalidOperationException($"The FeatureInvertingDeSerializer can only be used to deserialize objects of type IFeatureInverting, a {@type.GetString()} was provided"); } - IFeatureInverting dtoInstance = new SysML2.NET.Core.DTO.Core.Features.FeatureInverting(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Features.FeatureInverting(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IFeatureInverting DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the declaredShortName Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,9 +163,9 @@ internal static IFeatureInverting DeSerialize(JsonElement jsonElement, Serializa } else { - if (featureInvertedProperty.TryGetProperty("@id"u8, out var featureInvertedIdProperty)) + if (featureInvertedProperty.TryGetProperty("@id"u8, out var featureInvertedExternalIdProperty)) { - var propertyValue = featureInvertedIdProperty.GetString(); + var propertyValue = featureInvertedExternalIdProperty.GetString(); if (propertyValue != null) { @@ -168,9 +188,9 @@ internal static IFeatureInverting DeSerialize(JsonElement jsonElement, Serializa } else { - if (invertingFeatureProperty.TryGetProperty("@id"u8, out var invertingFeatureIdProperty)) + if (invertingFeatureProperty.TryGetProperty("@id"u8, out var invertingFeatureExternalIdProperty)) { - var propertyValue = invertingFeatureIdProperty.GetString(); + var propertyValue = invertingFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -208,13 +228,74 @@ internal static IFeatureInverting DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isImpliedIncluded Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -232,9 +313,9 @@ internal static IFeatureInverting DeSerialize(JsonElement jsonElement, Serializa { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -248,6 +329,102 @@ internal static IFeatureInverting DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the ownedRelationship Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeature"u8, out var owningFeatureProperty)) + { + if (owningFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeature = null; + } + else + { + if (owningFeatureProperty.TryGetProperty("@id"u8, out var owningFeatureExternalIdProperty)) + { + var propertyValue = owningFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeature Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -256,9 +433,9 @@ internal static IFeatureInverting DeSerialize(JsonElement jsonElement, Serializa } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -280,9 +457,9 @@ internal static IFeatureInverting DeSerialize(JsonElement jsonElement, Serializa } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -296,13 +473,51 @@ internal static IFeatureInverting DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the owningRelationship Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -320,9 +535,9 @@ internal static IFeatureInverting DeSerialize(JsonElement jsonElement, Serializa { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -336,6 +551,26 @@ internal static IFeatureInverting DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the target Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureMembershipDeSerializer.cs index 19c1706cc..34fc3a904 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The FeatureMembershipDeSerializer can only be used to deserialize objects of type IFeatureMembership, a {@type.GetString()} was provided"); } - IFeatureMembership dtoInstance = new SysML2.NET.Core.DTO.Core.Types.FeatureMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Types.FeatureMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isImpliedIncluded Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the memberElement Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the memberName Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the FeatureMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,144 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the memberShortName Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the FeatureMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the FeatureMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +427,9 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +443,78 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the ownedRelationship Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +523,9 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +547,9 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +563,76 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the owningRelationship Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the FeatureMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +650,9 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +666,26 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the target Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureReferenceExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureReferenceExpressionDeSerializer.cs index 79877d5c3..2c3041842 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureReferenceExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureReferenceExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFeatureReferenceExpression DeSerialize(JsonElement jsonElement, throw new InvalidOperationException($"The FeatureReferenceExpressionDeSerializer can only be used to deserialize objects of type IFeatureReferenceExpression, a {@type.GetString()} was provided"); } - IFeatureReferenceExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.FeatureReferenceExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.FeatureReferenceExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static IFeatureReferenceExpression DeSerialize(JsonElement jsonElement, logger.LogDebug("the aliasIds Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +184,46 @@ internal static IFeatureReferenceExpression DeSerialize(JsonElement jsonElement, logger.LogDebug("the declaredShortName Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +233,26 @@ internal static IFeatureReferenceExpression DeSerialize(JsonElement jsonElement, logger.LogDebug("the direction Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +267,1282 @@ internal static IFeatureReferenceExpression DeSerialize(JsonElement jsonElement, logger.LogDebug("the elementId Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the FeatureReferenceExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (isAbstractProperty.ValueKind != JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); } - else + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) - { - var propertyValue = owningRelationshipIdProperty.GetString(); + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); - } - } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); } } else { - logger.LogDebug("the owningRelationship Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the isConjugated Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("referent"u8, out var referentProperty)) + { + if (referentProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.referent = Guid.Empty; + logger.LogDebug($"the FeatureReferenceExpression.referent property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (referentProperty.TryGetProperty("@id"u8, out var referentExternalIdProperty)) + { + var propertyValue = referentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.referent = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the referent Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the FeatureReferenceExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs index eb2ac265e..9a2071fc2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio throw new InvalidOperationException($"The FeatureTypingDeSerializer can only be used to deserialize objects of type IFeatureTyping, a {@type.GetString()} was provided"); } - IFeatureTyping dtoInstance = new SysML2.NET.Core.DTO.Core.Features.FeatureTyping(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Features.FeatureTyping(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the declaredShortName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,9 +163,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio } else { - if (generalProperty.TryGetProperty("@id"u8, out var generalIdProperty)) + if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) { - var propertyValue = generalIdProperty.GetString(); + var propertyValue = generalExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,13 +203,74 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the isImpliedIncluded Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +288,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +304,102 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the ownedRelationship Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeature"u8, out var owningFeatureProperty)) + { + if (owningFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeature = null; + } + else + { + if (owningFeatureProperty.TryGetProperty("@id"u8, out var owningFeatureExternalIdProperty)) + { + var propertyValue = owningFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeature Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +408,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +432,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,13 +448,75 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the owningRelationship Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -300,9 +539,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio } else { - if (specificProperty.TryGetProperty("@id"u8, out var specificIdProperty)) + if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) { - var propertyValue = specificIdProperty.GetString(); + var propertyValue = specificExternalIdProperty.GetString(); if (propertyValue != null) { @@ -320,9 +559,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -336,6 +575,26 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the target Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) { if (typeProperty.ValueKind == JsonValueKind.Null) @@ -345,9 +604,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio } else { - if (typeProperty.TryGetProperty("@id"u8, out var typeIdProperty)) + if (typeProperty.TryGetProperty("@id"u8, out var typeExternalIdProperty)) { - var propertyValue = typeIdProperty.GetString(); + var propertyValue = typeExternalIdProperty.GetString(); if (propertyValue != null) { @@ -370,9 +629,9 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio } else { - if (typedFeatureProperty.TryGetProperty("@id"u8, out var typedFeatureIdProperty)) + if (typedFeatureProperty.TryGetProperty("@id"u8, out var typedFeatureExternalIdProperty)) { - var propertyValue = typedFeatureIdProperty.GetString(); + var propertyValue = typedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureValueDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureValueDeSerializer.cs index 1851b4b5d..af2474949 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureValueDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureValueDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization throw new InvalidOperationException($"The FeatureValueDeSerializer can only be used to deserialize objects of type IFeatureValue, a {@type.GetString()} was provided"); } - IFeatureValue dtoInstance = new SysML2.NET.Core.DTO.Kernel.FeatureValues.FeatureValue(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.FeatureValues.FeatureValue(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the declaredShortName Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +154,31 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the elementId Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("featureWithValue"u8, out var featureWithValueProperty)) + { + if (featureWithValueProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureWithValue = Guid.Empty; + logger.LogDebug($"the FeatureValue.featureWithValue property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureWithValueProperty.TryGetProperty("@id"u8, out var featureWithValueExternalIdProperty)) + { + var propertyValue = featureWithValueExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureWithValue = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureWithValue Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isDefault"u8, out var isDefaultProperty)) { if (isDefaultProperty.ValueKind != JsonValueKind.Null) @@ -182,6 +227,18 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the isInitial Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -191,9 +248,9 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,6 +264,20 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the memberElement Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -216,6 +287,31 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the memberName Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the FeatureValue.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -225,13 +321,119 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the memberShortName Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the FeatureValue.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -249,9 +451,9 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -265,6 +467,78 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the ownedRelationship Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -273,9 +547,9 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -297,9 +571,9 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,13 +587,51 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the owningRelationship Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -337,9 +649,9 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -353,6 +665,51 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the target Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("value"u8, out var valueProperty)) + { + if (valueProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.value = Guid.Empty; + logger.LogDebug($"the FeatureValue.value property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (valueProperty.TryGetProperty("@id"u8, out var valueExternalIdProperty)) + { + var propertyValue = valueExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.value = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the value Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDeSerializer.cs index 383661add..7d28ee1dd 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind throw new InvalidOperationException($"The FlowDeSerializer can only be used to deserialize objects of type IFlow, a {@type.GetString()} was provided"); } - IFlow dtoInstance = new SysML2.NET.Core.DTO.Kernel.Interactions.Flow(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Interactions.Flow(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,317 +102,1737 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the aliasIds Json property was not found in the Flow: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) + { + foreach (var arrayItem in associationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) + { + var propertyValue = associationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.association.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the association Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) + { + foreach (var arrayItem in connectorEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var connectorEndExternalIdProperty)) + { + var propertyValue = connectorEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectorEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the connectorEnd Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the declaredName Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty)) + { + if (defaultFeaturingTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.defaultFeaturingType = null; + } + else + { + if (defaultFeaturingTypeProperty.TryGetProperty("@id"u8, out var defaultFeaturingTypeExternalIdProperty)) + { + var propertyValue = defaultFeaturingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.defaultFeaturingType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the defaultFeaturingType Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + { + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + { + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ElementId = propertyValue; + } + } + else + { + logger.LogDebug("the elementId Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the Flow.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("flowEnd"u8, out var flowEndProperty)) + { + foreach (var arrayItem in flowEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var flowEndExternalIdProperty)) + { + var propertyValue = flowEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.flowEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the flowEnd Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("interaction"u8, out var interactionProperty)) + { + foreach (var arrayItem in interactionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var interactionExternalIdProperty)) + { + var propertyValue = interactionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.interaction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the interaction Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + { + if (isImpliedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImplied Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedUnioning Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the owner Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) { - var propertyValue = elementIdProperty.GetString(); + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); - if (propertyValue != null) + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningMembership Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningNamespace Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelationship Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (owningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningType Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in parameterProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the parameter Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + if (jsonElement.TryGetProperty("payloadFeature"u8, out var payloadFeatureProperty)) { - if (isImpliedProperty.ValueKind != JsonValueKind.Null) + if (payloadFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + dtoInstance.payloadFeature = null; + } + else + { + if (payloadFeatureProperty.TryGetProperty("@id"u8, out var payloadFeatureExternalIdProperty)) + { + var propertyValue = payloadFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.payloadFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImplied Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the payloadFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("payloadType"u8, out var payloadTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in payloadTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var payloadTypeExternalIdProperty)) + { + var propertyValue = payloadTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.payloadType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the payloadType Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var relatedFeatureExternalIdProperty)) + { + var propertyValue = relatedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Flow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the source Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.sourceFeature = null; + } + else + { + if (sourceFeatureProperty.TryGetProperty("@id"u8, out var sourceFeatureExternalIdProperty)) + { + var propertyValue = sourceFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the sourceFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("sourceOutputFeature"u8, out var sourceOutputFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (sourceOutputFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.sourceOutputFeature = null; + } + else + { + if (sourceOutputFeatureProperty.TryGetProperty("@id"u8, out var sourceOutputFeatureExternalIdProperty)) + { + var propertyValue = sourceOutputFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceOutputFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the sourceOutputFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.Target.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the target Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = targetFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.targetFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the targetFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("targetInputFeature"u8, out var targetInputFeatureProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (targetInputFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.targetInputFeature = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (targetInputFeatureProperty.TryGetProperty("@id"u8, out var targetInputFeatureExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = targetInputFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.targetInputFeature = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the targetInputFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.OwningRelationship = null; - } - else + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = textualRepresentationExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the textualRepresentation Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in typeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = typeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.type.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the type Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = unioningTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the Flow: { Id }", dtoInstance.Id); + logger.LogDebug("the unioningType Json property was not found in the Flow: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDefinitionDeSerializer.cs index 45cebd1dc..5bc71ebb5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The FlowDefinitionDeSerializer can only be used to deserialize objects of type IFlowDefinition, a {@type.GetString()} was provided"); } - IFlowDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Flows.FlowDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Flows.FlowDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati } } + if (jsonElement.TryGetProperty("action"u8, out var actionProperty)) + { + foreach (var arrayItem in actionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionExternalIdProperty)) + { + var propertyValue = actionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.action.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the action Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,26 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("associationEnd"u8, out var associationEndProperty)) + { + foreach (var arrayItem in associationEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationEndExternalIdProperty)) + { + var propertyValue = associationEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.associationEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the associationEnd Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +160,86 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +254,186 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("flowEnd"u8, out var flowEndProperty)) + { + foreach (var arrayItem in flowEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var flowEndExternalIdProperty)) + { + var propertyValue = flowEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.flowEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the flowEnd Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +446,18 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isAbstract Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -182,6 +494,18 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isIndividual Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -206,105 +530,1192 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isVariation Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = membershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.membership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the membership Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (multiplicityProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.multiplicity = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.OwningRelationship = null; - } - else + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = outputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.output.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the output Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = ownedActionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + { + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelatedElement Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) + { + foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedTypeExternalIdProperty)) + { + var propertyValue = relatedTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedType Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); } } } @@ -314,13 +1725,57 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the source Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) + { + if (sourceTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceType = null; + } + else + { + if (sourceTypeProperty.TryGetProperty("@id"u8, out var sourceTypeExternalIdProperty)) + { + var propertyValue = sourceTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceType Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -334,6 +1789,126 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the target Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) + { + foreach (var arrayItem in targetTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetTypeExternalIdProperty)) + { + var propertyValue = targetTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the targetType Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowEndDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowEndDeSerializer.cs index 8ceb12aad..f3ba77d46 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowEndDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowEndDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFlowEnd DeSerialize(JsonElement jsonElement, SerializationModeK throw new InvalidOperationException($"The FlowEndDeSerializer can only be used to deserialize objects of type IFlowEnd, a {@type.GetString()} was provided"); } - IFlowEnd dtoInstance = new SysML2.NET.Core.DTO.Kernel.Interactions.FlowEnd(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Interactions.FlowEnd(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IFlowEnd DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the aliasIds Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +164,46 @@ internal static IFlowEnd DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the declaredShortName Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +213,26 @@ internal static IFlowEnd DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the direction Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,6 +247,235 @@ internal static IFlowEnd DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the elementId Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the FlowEnd.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -167,6 +500,18 @@ internal static IFlowEnd DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the isComposite Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) { if (isConstantProperty.ValueKind != JsonValueKind.Null) @@ -215,6 +560,18 @@ internal static IFlowEnd DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the isImpliedIncluded Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) { if (isOrderedProperty.ValueKind != JsonValueKind.Null) @@ -275,37 +632,678 @@ internal static IFlowEnd DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the isVariable Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -319,6 +1317,108 @@ internal static IFlowEnd DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the owningRelationship Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the FlowEnd: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowUsageDeSerializer.cs index 839a67712..78be2d4a1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod throw new InvalidOperationException($"The FlowUsageDeSerializer can only be used to deserialize objects of type IFlowUsage, a {@type.GetString()} was provided"); } - IFlowUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Flows.FlowUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Flows.FlowUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,350 +122,2546 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the aliasIds Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) - { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); - } - else + if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) { - logger.LogDebug("the declaredName Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } + foreach (var arrayItem in associationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) + { + var propertyValue = associationExternalIdProperty.GetString(); - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) - { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + if (propertyValue != null) + { + dtoInstance.association.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the association Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in connectorEndProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var connectorEndExternalIdProperty)) + { + var propertyValue = connectorEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectorEnd.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the connectorEnd Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isConstant Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); - } + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); } else { - logger.LogDebug("the isDerived Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredShortName Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (defaultFeaturingTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.defaultFeaturingType = null; + } + else + { + if (defaultFeaturingTypeProperty.TryGetProperty("@id"u8, out var defaultFeaturingTypeExternalIdProperty)) + { + var propertyValue = defaultFeaturingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.defaultFeaturingType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the defaultFeaturingType Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - if (isImpliedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImplied Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isPortion Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isUnique Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = featureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.feature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = featureMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the FlowUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = featureTargetExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.featureTarget = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the featuringType Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("flowDefinition"u8, out var flowDefinitionProperty)) + { + foreach (var arrayItem in flowDefinitionProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var flowDefinitionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = flowDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.flowDefinition.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the flowDefinition Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("flowEnd"u8, out var flowEndProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in flowEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var flowEndExternalIdProperty)) + { + var propertyValue = flowEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.flowEnd.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the flowEnd Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the target Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("interaction"u8, out var interactionProperty)) + { + foreach (var arrayItem in interactionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var interactionExternalIdProperty)) + { + var propertyValue = interactionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.interaction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the interaction Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + { + if (isImpliedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImplied Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + { + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelatedElement Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("payloadFeature"u8, out var payloadFeatureProperty)) + { + if (payloadFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.payloadFeature = null; + } + else + { + if (payloadFeatureProperty.TryGetProperty("@id"u8, out var payloadFeatureExternalIdProperty)) + { + var propertyValue = payloadFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.payloadFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the payloadFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("payloadType"u8, out var payloadTypeProperty)) + { + foreach (var arrayItem in payloadTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var payloadTypeExternalIdProperty)) + { + var propertyValue = payloadTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.payloadType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the payloadType Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) + { + foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedFeatureExternalIdProperty)) + { + var propertyValue = relatedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the source Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) + { + if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceFeature = null; + } + else + { + if (sourceFeatureProperty.TryGetProperty("@id"u8, out var sourceFeatureExternalIdProperty)) + { + var propertyValue = sourceFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("sourceOutputFeature"u8, out var sourceOutputFeatureProperty)) + { + if (sourceOutputFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceOutputFeature = null; + } + else + { + if (sourceOutputFeatureProperty.TryGetProperty("@id"u8, out var sourceOutputFeatureExternalIdProperty)) + { + var propertyValue = sourceOutputFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceOutputFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceOutputFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + { + foreach (var arrayItem in targetProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the target Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) + { + foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) + { + var propertyValue = targetFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the targetFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetInputFeature"u8, out var targetInputFeatureProperty)) + { + if (targetInputFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.targetInputFeature = null; + } + else + { + if (targetInputFeatureProperty.TryGetProperty("@id"u8, out var targetInputFeatureExternalIdProperty)) + { + var propertyValue = targetInputFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetInputFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the targetInputFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForLoopActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForLoopActionUsageDeSerializer.cs index 459145501..51a8995f1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForLoopActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForLoopActionUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IForLoopActionUsage DeSerialize(JsonElement jsonElement, Seriali throw new InvalidOperationException($"The ForLoopActionUsageDeSerializer can only be used to deserialize objects of type IForLoopActionUsage, a {@type.GetString()} was provided"); } - IForLoopActionUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.ForLoopActionUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.ForLoopActionUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IForLoopActionUsage DeSerialize(JsonElement jsonElement, Seriali } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,254 +122,2225 @@ internal static IForLoopActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the aliasIds Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("bodyAction"u8, out var bodyActionProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + if (bodyActionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.bodyAction = Guid.Empty; + logger.LogDebug($"the ForLoopActionUsage.bodyAction property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (bodyActionProperty.TryGetProperty("@id"u8, out var bodyActionExternalIdProperty)) + { + var propertyValue = bodyActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.bodyAction = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the bodyAction Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isAbstract Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) + { + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isIndividual Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the ForLoopActionUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.individualDefinition = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("loopVariable"u8, out var loopVariableProperty)) + { + if (loopVariableProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.loopVariable = Guid.Empty; + logger.LogDebug($"the ForLoopActionUsage.loopVariable property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (loopVariableProperty.TryGetProperty("@id"u8, out var loopVariableExternalIdProperty)) + { + var propertyValue = loopVariableExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.loopVariable = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the loopVariable Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("seqArgument"u8, out var seqArgumentProperty)) + { + if (seqArgumentProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.seqArgument = Guid.Empty; + logger.LogDebug($"the ForLoopActionUsage.seqArgument property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (seqArgumentProperty.TryGetProperty("@id"u8, out var seqArgumentExternalIdProperty)) + { + var propertyValue = seqArgumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.seqArgument = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the seqArgument Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForkNodeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForkNodeDeSerializer.cs index 9502b4e25..f602ffd16 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForkNodeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForkNodeDeSerializer.cs @@ -69,7 +69,7 @@ internal static IForkNode DeSerialize(JsonElement jsonElement, SerializationMode throw new InvalidOperationException($"The ForkNodeDeSerializer can only be used to deserialize objects of type IForkNode, a {@type.GetString()} was provided"); } - IForkNode dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.ForkNode(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.ForkNode(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IForkNode DeSerialize(JsonElement jsonElement, SerializationMode } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,70 @@ internal static IForkNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the aliasIds Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +204,2068 @@ internal static IForkNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the declaredShortName Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isEnd Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the ForkNode.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ForkNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs index d69cb1385..87b926421 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se throw new InvalidOperationException($"The FramedConcernMembershipDeSerializer can only be used to deserialize objects of type IFramedConcernMembership, a {@type.GetString()} was provided"); } - IFramedConcernMembership dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.FramedConcernMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.FramedConcernMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the declaredShortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the isImpliedIncluded Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("kind"u8, out var kindProperty)) { dtoInstance.Kind = RequirementConstraintKindDeSerializer.Deserialize(kindProperty.GetString()); @@ -176,9 +208,9 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -192,6 +224,20 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the memberElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -201,6 +247,31 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the memberName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -210,13 +281,194 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the memberShortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + if (ownedConcernProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConcern = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.ownedConcern property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedConcernProperty.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + if (ownedConstraintProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConstraint = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.ownedConstraint property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedConstraintProperty.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -234,9 +486,9 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -250,6 +502,78 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the ownedRelationship Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -258,9 +582,9 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -282,9 +606,9 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -298,13 +622,126 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the owningRelationship Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("referencedConcern"u8, out var referencedConcernProperty)) + { + if (referencedConcernProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.referencedConcern = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.referencedConcern property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (referencedConcernProperty.TryGetProperty("@id"u8, out var referencedConcernExternalIdProperty)) + { + var propertyValue = referencedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.referencedConcern = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the referencedConcern Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("referencedConstraint"u8, out var referencedConstraintProperty)) + { + if (referencedConstraintProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.referencedConstraint = Guid.Empty; + logger.LogDebug($"the FramedConcernMembership.referencedConstraint property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (referencedConstraintProperty.TryGetProperty("@id"u8, out var referencedConstraintExternalIdProperty)) + { + var propertyValue = referencedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.referencedConstraint = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the referencedConstraint Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -322,9 +759,9 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -338,6 +775,26 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the target Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FunctionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FunctionDeSerializer.cs index 9249700c3..2a015b152 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FunctionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FunctionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IFunction DeSerialize(JsonElement jsonElement, SerializationMode throw new InvalidOperationException($"The FunctionDeSerializer can only be used to deserialize objects of type IFunction, a {@type.GetString()} was provided"); } - IFunction dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.Function(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.Function(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,66 @@ internal static IFunction DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the declaredShortName Json property was not found in the Function: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Function: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +194,186 @@ internal static IFunction DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the elementId Json property was not found in the Function: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("expression"u8, out var expressionProperty)) + { + foreach (var arrayItem in expressionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var expressionExternalIdProperty)) + { + var propertyValue = expressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.expression.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the expression Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Function: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IFunction DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the isAbstract Json property was not found in the Function: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Function: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -158,6 +410,30 @@ internal static IFunction DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the isImpliedIncluded Json property was not found in the Function: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the Function: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -170,48 +446,640 @@ internal static IFunction DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the isSufficient Json property was not found in the Function: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Function: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Function: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Function: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the Function.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Function: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Function: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IfActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IfActionUsageDeSerializer.cs index d64601b2e..52ba8569c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IfActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IfActionUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IIfActionUsage DeSerialize(JsonElement jsonElement, Serializatio throw new InvalidOperationException($"The IfActionUsageDeSerializer can only be used to deserialize objects of type IIfActionUsage, a {@type.GetString()} was provided"); } - IIfActionUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.IfActionUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.IfActionUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IIfActionUsage DeSerialize(JsonElement jsonElement, Serializatio } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,70 @@ internal static IIfActionUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the aliasIds Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +204,2142 @@ internal static IIfActionUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the declaredShortName Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isEnd Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("elseAction"u8, out var elseActionProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (elseActionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.elseAction = null; + } + else + { + if (elseActionProperty.TryGetProperty("@id"u8, out var elseActionExternalIdProperty)) + { + var propertyValue = elseActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.elseAction = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elseAction Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the IfActionUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("ifArgument"u8, out var ifArgumentProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (ifArgumentProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.ifArgument = Guid.Empty; + logger.LogDebug($"the IfActionUsage.ifArgument property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ifArgumentProperty.TryGetProperty("@id"u8, out var ifArgumentExternalIdProperty)) + { + var propertyValue = ifArgumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ifArgument = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the ifArgument Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.individualDefinition = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("thenAction"u8, out var thenActionProperty)) + { + if (thenActionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.thenAction = Guid.Empty; + logger.LogDebug($"the IfActionUsage.thenAction property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (thenActionProperty.TryGetProperty("@id"u8, out var thenActionExternalIdProperty)) + { + var propertyValue = thenActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.thenAction = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the thenAction Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IncludeUseCaseUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IncludeUseCaseUsageDeSerializer.cs index 3db8b1062..bf8379009 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IncludeUseCaseUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IncludeUseCaseUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IIncludeUseCaseUsage DeSerialize(JsonElement jsonElement, Serial throw new InvalidOperationException($"The IncludeUseCaseUsageDeSerializer can only be used to deserialize objects of type IIncludeUseCaseUsage, a {@type.GetString()} was provided"); } - IIncludeUseCaseUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.UseCases.IncludeUseCaseUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.UseCases.IncludeUseCaseUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,46 @@ internal static IIncludeUseCaseUsage DeSerialize(JsonElement jsonElement, Serial } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,254 +142,2427 @@ internal static IIncludeUseCaseUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the aliasIds Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("calculationDefinition"u8, out var calculationDefinitionProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + if (calculationDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.calculationDefinition = null; + } + else + { + if (calculationDefinitionProperty.TryGetProperty("@id"u8, out var calculationDefinitionExternalIdProperty)) + { + var propertyValue = calculationDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.calculationDefinition = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the calculationDefinition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("caseDefinition"u8, out var caseDefinitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + if (caseDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.caseDefinition = null; + } + else + { + if (caseDefinitionProperty.TryGetProperty("@id"u8, out var caseDefinitionExternalIdProperty)) + { + var propertyValue = caseDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.caseDefinition = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the caseDefinition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isComposite Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); } else { - logger.LogDebug("the isConstant Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredShortName Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isPortion Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("eventOccurrence"u8, out var eventOccurrenceProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (eventOccurrenceProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.eventOccurrence = Guid.Empty; + logger.LogDebug($"the IncludeUseCaseUsage.eventOccurrence property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (eventOccurrenceProperty.TryGetProperty("@id"u8, out var eventOccurrenceExternalIdProperty)) + { + var propertyValue = eventOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.eventOccurrence = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the eventOccurrence Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = featureMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the IncludeUseCaseUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = featureTargetExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.featureTarget = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) + { + if (functionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the function Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("includedUseCase"u8, out var includedUseCaseProperty)) + { + foreach (var arrayItem in includedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var includedUseCaseExternalIdProperty)) + { + var propertyValue = includedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.includedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the includedUseCase Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) + { + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the individualDefinition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("objectiveRequirement"u8, out var objectiveRequirementProperty)) + { + if (objectiveRequirementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.objectiveRequirement = null; + } + else + { + if (objectiveRequirementProperty.TryGetProperty("@id"u8, out var objectiveRequirementExternalIdProperty)) + { + var propertyValue = objectiveRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.objectiveRequirement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the objectiveRequirement Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("performedAction"u8, out var performedActionProperty)) + { + if (performedActionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.performedAction = Guid.Empty; + logger.LogDebug($"the IncludeUseCaseUsage.performedAction property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (performedActionProperty.TryGetProperty("@id"u8, out var performedActionExternalIdProperty)) + { + var propertyValue = performedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.performedAction = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the performedAction Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the IncludeUseCaseUsage.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the IncludeUseCaseUsage.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("useCaseDefinition"u8, out var useCaseDefinitionProperty)) + { + if (useCaseDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.useCaseDefinition = null; + } + else + { + if (useCaseDefinitionProperty.TryGetProperty("@id"u8, out var useCaseDefinitionExternalIdProperty)) + { + var propertyValue = useCaseDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.useCaseDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the useCaseDefinition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("useCaseIncluded"u8, out var useCaseIncludedProperty)) + { + if (useCaseIncludedProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.useCaseIncluded = Guid.Empty; + logger.LogDebug($"the IncludeUseCaseUsage.useCaseIncluded property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (useCaseIncludedProperty.TryGetProperty("@id"u8, out var useCaseIncludedExternalIdProperty)) + { + var propertyValue = useCaseIncludedExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.useCaseIncluded = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the useCaseIncluded Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IndexExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IndexExpressionDeSerializer.cs index f095414b2..4c0786ff5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IndexExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IndexExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IIndexExpression DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The IndexExpressionDeSerializer can only be used to deserialize objects of type IIndexExpression, a {@type.GetString()} was provided"); } - IIndexExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.IndexExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.IndexExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,90 @@ internal static IIndexExpression DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("argument"u8, out var argumentProperty)) + { + foreach (var arrayItem in argumentProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var argumentExternalIdProperty)) + { + var propertyValue = argumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.argument.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the argument Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,217 +204,1379 @@ internal static IIndexExpression DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isComposite Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the IndexExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - var propertyValue = operatorProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.Operator = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the operator Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("instantiatedType"u8, out var instantiatedTypeProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (instantiatedTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.instantiatedType = Guid.Empty; + logger.LogDebug($"the IndexExpression.instantiatedType property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (instantiatedTypeProperty.TryGetProperty("@id"u8, out var instantiatedTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = instantiatedTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.instantiatedType = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the instantiatedType Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty)) + { + var propertyValue = operatorProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Operator = propertyValue; + } + } + else + { + logger.LogDebug("the operator Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the IndexExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InteractionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InteractionDeSerializer.cs index b9d09e043..f108ff284 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InteractionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InteractionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IInteraction DeSerialize(JsonElement jsonElement, SerializationM throw new InvalidOperationException($"The InteractionDeSerializer can only be used to deserialize objects of type IInteraction, a {@type.GetString()} was provided"); } - IInteraction dtoInstance = new SysML2.NET.Core.DTO.Kernel.Interactions.Interaction(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Interactions.Interaction(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,26 @@ internal static IInteraction DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the aliasIds Json property was not found in the Interaction: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("associationEnd"u8, out var associationEndProperty)) + { + foreach (var arrayItem in associationEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationEndExternalIdProperty)) + { + var propertyValue = associationEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.associationEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the associationEnd Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +140,66 @@ internal static IInteraction DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the declaredShortName Json property was not found in the Interaction: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,166 @@ internal static IInteraction DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the elementId Json property was not found in the Interaction: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IInteraction DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the isAbstract Json property was not found in the Interaction: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +422,18 @@ internal static IInteraction DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the isImpliedIncluded Json property was not found in the Interaction: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -182,132 +446,783 @@ internal static IInteraction DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the isSufficient Json property was not found in the Interaction: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the Interaction: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Interaction: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = membershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.membership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Interaction: { Id }", dtoInstance.Id); + logger.LogDebug("the membership Json property was not found in the Interaction: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (multiplicityProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.multiplicity = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the Interaction: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the Interaction: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Interaction: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedConjugator Json property was not found in the Interaction: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the Interaction: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedDifferencing Json property was not found in the Interaction: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the Interaction: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedDisjoining Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + { + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelatedElement Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) + { + foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedTypeExternalIdProperty)) + { + var propertyValue = relatedTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedType Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the source Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) + { + if (sourceTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceType = null; + } + else + { + if (sourceTypeProperty.TryGetProperty("@id"u8, out var sourceTypeExternalIdProperty)) + { + var propertyValue = sourceTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceType Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + { + foreach (var arrayItem in targetProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the target Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) + { + foreach (var arrayItem in targetTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetTypeExternalIdProperty)) + { + var propertyValue = targetTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the targetType Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Interaction: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Interaction: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceDefinitionDeSerializer.cs index e5c2626c6..cf8f045d1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial throw new InvalidOperationException($"The InterfaceDefinitionDeSerializer can only be used to deserialize objects of type IInterfaceDefinition, a {@type.GetString()} was provided"); } - IInterfaceDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Interfaces.InterfaceDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Interfaces.InterfaceDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,46 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the aliasIds Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("associationEnd"u8, out var associationEndProperty)) + { + foreach (var arrayItem in associationEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationEndExternalIdProperty)) + { + var propertyValue = associationEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.associationEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the associationEnd Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("connectionEnd"u8, out var connectionEndProperty)) + { + foreach (var arrayItem in connectionEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var connectionEndExternalIdProperty)) + { + var propertyValue = connectionEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectionEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the connectionEnd Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +160,86 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the declaredShortName Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +254,186 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the elementId Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("interfaceEnd"u8, out var interfaceEndProperty)) + { + foreach (var arrayItem in interfaceEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var interfaceEndExternalIdProperty)) + { + var propertyValue = interfaceEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.interfaceEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the interfaceEnd Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +446,18 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isAbstract Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -182,6 +494,18 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isIndividual Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -206,105 +530,1172 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isVariation Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = membershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.membership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the membership Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (multiplicityProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.multiplicity = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.OwningRelationship = null; - } - else + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = outputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.output.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the output Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = ownedActionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + { + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelatedElement Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) + { + foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedTypeExternalIdProperty)) + { + var propertyValue = relatedTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedType Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); } } } @@ -314,13 +1705,37 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the source Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) + { + if (sourceTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceType = null; + } + else + { + if (sourceTypeProperty.TryGetProperty("@id"u8, out var sourceTypeExternalIdProperty)) + { + var propertyValue = sourceTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceType Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -334,6 +1749,126 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the target Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) + { + foreach (var arrayItem in targetTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetTypeExternalIdProperty)) + { + var propertyValue = targetTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the targetType Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceUsageDeSerializer.cs index 370b58439..569c14b88 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IInterfaceUsage DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The InterfaceUsageDeSerializer can only be used to deserialize objects of type IInterfaceUsage, a {@type.GetString()} was provided"); } - IInterfaceUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Interfaces.InterfaceUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Interfaces.InterfaceUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,350 +102,2434 @@ internal static IInterfaceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in associationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) + { + var propertyValue = associationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.association.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the association Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("connectionDefinition"u8, out var connectionDefinitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in connectionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var connectionDefinitionExternalIdProperty)) + { + var propertyValue = connectionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the connectionDefinition Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in connectorEndProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var connectorEndExternalIdProperty)) + { + var propertyValue = connectorEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectorEnd.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the connectorEnd Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isComposite Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty)) + { + if (defaultFeaturingTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + dtoInstance.defaultFeaturingType = null; + } + else + { + if (defaultFeaturingTypeProperty.TryGetProperty("@id"u8, out var defaultFeaturingTypeExternalIdProperty)) + { + var propertyValue = defaultFeaturingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.defaultFeaturingType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the defaultFeaturingType Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isImpliedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImplied Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isOrdered Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the InterfaceUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = featuringTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.individualDefinition = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.OwningRelationship = null; - } - else + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("interfaceDefinition"u8, out var interfaceDefinitionProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in interfaceDefinitionProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var interfaceDefinitionExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = interfaceDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.interfaceDefinition.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the interfaceDefinition Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + { + if (isImpliedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImplied Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("itemDefinition"u8, out var itemDefinitionProperty)) + { + foreach (var arrayItem in itemDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var itemDefinitionExternalIdProperty)) + { + var propertyValue = itemDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.itemDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the itemDefinition Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + { + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelatedElement Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("partDefinition"u8, out var partDefinitionProperty)) + { + foreach (var arrayItem in partDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var partDefinitionExternalIdProperty)) + { + var propertyValue = partDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.partDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the partDefinition Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) + { + foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedFeatureExternalIdProperty)) + { + var propertyValue = relatedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedFeature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the source Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) + { + if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceFeature = null; + } + else + { + if (sourceFeatureProperty.TryGetProperty("@id"u8, out var sourceFeatureExternalIdProperty)) + { + var propertyValue = sourceFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceFeature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + { + foreach (var arrayItem in targetProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the target Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) + { + foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) + { + var propertyValue = targetFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the targetFeature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IntersectingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IntersectingDeSerializer.cs index b4980ef39..ba4802347 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IntersectingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IntersectingDeSerializer.cs @@ -69,7 +69,7 @@ internal static IIntersecting DeSerialize(JsonElement jsonElement, Serialization throw new InvalidOperationException($"The IntersectingDeSerializer can only be used to deserialize objects of type IIntersecting, a {@type.GetString()} was provided"); } - IIntersecting dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Intersecting(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Intersecting(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IIntersecting DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the declaredShortName Json property was not found in the Intersecting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Intersecting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,9 +163,9 @@ internal static IIntersecting DeSerialize(JsonElement jsonElement, Serialization } else { - if (intersectingTypeProperty.TryGetProperty("@id"u8, out var intersectingTypeIdProperty)) + if (intersectingTypeProperty.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = intersectingTypeIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,13 +203,74 @@ internal static IIntersecting DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the isImpliedIncluded Json property was not found in the Intersecting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Intersecting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Intersecting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Intersecting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Intersecting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +288,9 @@ internal static IIntersecting DeSerialize(JsonElement jsonElement, Serialization { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +304,78 @@ internal static IIntersecting DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the ownedRelationship Json property was not found in the Intersecting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Intersecting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Intersecting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Intersecting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +384,9 @@ internal static IIntersecting DeSerialize(JsonElement jsonElement, Serialization } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +408,9 @@ internal static IIntersecting DeSerialize(JsonElement jsonElement, Serialization } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,13 +424,51 @@ internal static IIntersecting DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the owningRelationship Json property was not found in the Intersecting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Intersecting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Intersecting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Intersecting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -295,9 +486,9 @@ internal static IIntersecting DeSerialize(JsonElement jsonElement, Serialization { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -311,6 +502,51 @@ internal static IIntersecting DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the target Json property was not found in the Intersecting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Intersecting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("typeIntersected"u8, out var typeIntersectedProperty)) + { + if (typeIntersectedProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.typeIntersected = Guid.Empty; + logger.LogDebug($"the Intersecting.typeIntersected property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (typeIntersectedProperty.TryGetProperty("@id"u8, out var typeIntersectedExternalIdProperty)) + { + var propertyValue = typeIntersectedExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.typeIntersected = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the typeIntersected Json property was not found in the Intersecting: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvariantDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvariantDeSerializer.cs index 777c1cc96..260495f87 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvariantDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvariantDeSerializer.cs @@ -69,7 +69,7 @@ internal static IInvariant DeSerialize(JsonElement jsonElement, SerializationMod throw new InvalidOperationException($"The InvariantDeSerializer can only be used to deserialize objects of type IInvariant, a {@type.GetString()} was provided"); } - IInvariant dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.Invariant(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.Invariant(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static IInvariant DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the aliasIds Json property was not found in the Invariant: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,215 +184,1376 @@ internal static IInvariant DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isAbstract Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isConstant Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isNegated"u8, out var isNegatedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isNegatedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsNegated = isNegatedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isNegated Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the Invariant.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the input Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Invariant: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isNegated"u8, out var isNegatedProperty)) + { + if (isNegatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsNegated = isNegatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isNegated Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) + { + if (predicateProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.predicate = null; + } + else + { + if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) + { + var propertyValue = predicateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.predicate = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the predicate Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the Invariant.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the Invariant: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Invariant: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvocationExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvocationExpressionDeSerializer.cs index afb8b4de0..de39b65e8 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvocationExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvocationExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IInvocationExpression DeSerialize(JsonElement jsonElement, Seria throw new InvalidOperationException($"The InvocationExpressionDeSerializer can only be used to deserialize objects of type IInvocationExpression, a {@type.GetString()} was provided"); } - IInvocationExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.InvocationExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.InvocationExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,90 @@ internal static IInvocationExpression DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the aliasIds Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("argument"u8, out var argumentProperty)) + { + foreach (var arrayItem in argumentProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var argumentExternalIdProperty)) + { + var propertyValue = argumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.argument.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the argument Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +204,46 @@ internal static IInvocationExpression DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the declaredShortName Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +253,26 @@ internal static IInvocationExpression DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the direction Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +287,1282 @@ internal static IInvocationExpression DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the elementId Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the InvocationExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("instantiatedType"u8, out var instantiatedTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + if (instantiatedTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.instantiatedType = Guid.Empty; + logger.LogDebug($"the InvocationExpression.instantiatedType property was not found in the Json. The value is set to Guid.Empty"); + } + else { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (instantiatedTypeProperty.TryGetProperty("@id"u8, out var instantiatedTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = instantiatedTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.instantiatedType = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the instantiatedType Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.OwningRelationship = null; - } - else + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the InvocationExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ItemDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ItemDefinitionDeSerializer.cs index 73f87b25d..40224252e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ItemDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ItemDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IItemDefinition DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The ItemDefinitionDeSerializer can only be used to deserialize objects of type IItemDefinition, a {@type.GetString()} was provided"); } - IItemDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Items.ItemDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Items.ItemDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,86 @@ internal static IItemDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,166 @@ internal static IItemDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IItemDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isAbstract Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +422,18 @@ internal static IItemDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isIndividual Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,48 +458,1175 @@ internal static IItemDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isVariation Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ItemDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ItemUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ItemUsageDeSerializer.cs index 8a4becedd..e32c2120f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ItemUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ItemUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IItemUsage DeSerialize(JsonElement jsonElement, SerializationMod throw new InvalidOperationException($"The ItemUsageDeSerializer can only be used to deserialize objects of type IItemUsage, a {@type.GetString()} was provided"); } - IItemUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Items.ItemUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Items.ItemUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IItemUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the aliasIds Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +164,2068 @@ internal static IItemUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isDerived Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the ItemUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the input Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } } else { - logger.LogDebug("the portionKind Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the isAbstract Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("itemDefinition"u8, out var itemDefinitionProperty)) + { + foreach (var arrayItem in itemDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var itemDefinitionExternalIdProperty)) + { + var propertyValue = itemDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.itemDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the itemDefinition Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/JoinNodeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/JoinNodeDeSerializer.cs index dcd259014..210c3af58 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/JoinNodeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/JoinNodeDeSerializer.cs @@ -69,7 +69,7 @@ internal static IJoinNode DeSerialize(JsonElement jsonElement, SerializationMode throw new InvalidOperationException($"The JoinNodeDeSerializer can only be used to deserialize objects of type IJoinNode, a {@type.GetString()} was provided"); } - IJoinNode dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.JoinNode(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.JoinNode(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IJoinNode DeSerialize(JsonElement jsonElement, SerializationMode } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,70 @@ internal static IJoinNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the aliasIds Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +204,2068 @@ internal static IJoinNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the declaredShortName Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isEnd Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the JoinNode.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the JoinNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LibraryPackageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LibraryPackageDeSerializer.cs index bea3b94aa..93912ad07 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LibraryPackageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LibraryPackageDeSerializer.cs @@ -69,7 +69,7 @@ internal static ILibraryPackage DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The LibraryPackageDeSerializer can only be used to deserialize objects of type ILibraryPackage, a {@type.GetString()} was provided"); } - ILibraryPackage dtoInstance = new SysML2.NET.Core.DTO.Kernel.Packages.LibraryPackage(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Packages.LibraryPackage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static ILibraryPackage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +154,46 @@ internal static ILibraryPackage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("filterCondition"u8, out var filterConditionProperty)) + { + foreach (var arrayItem in filterConditionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var filterConditionExternalIdProperty)) + { + var propertyValue = filterConditionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.filterCondition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the filterCondition Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +206,18 @@ internal static ILibraryPackage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isImpliedIncluded Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isStandard"u8, out var isStandardProperty)) { if (isStandardProperty.ValueKind != JsonValueKind.Null) @@ -158,13 +230,162 @@ internal static ILibraryPackage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isStandard Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -178,6 +399,78 @@ internal static ILibraryPackage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the ownedRelationship Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) @@ -186,9 +479,9 @@ internal static ILibraryPackage DeSerialize(JsonElement jsonElement, Serializati } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -202,6 +495,44 @@ internal static ILibraryPackage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the owningRelationship Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the LibraryPackage: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralBooleanDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralBooleanDeSerializer.cs index 9b7db4541..ac06d9cc1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralBooleanDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralBooleanDeSerializer.cs @@ -69,7 +69,7 @@ internal static ILiteralBoolean DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The LiteralBooleanDeSerializer can only be used to deserialize objects of type ILiteralBoolean, a {@type.GetString()} was provided"); } - ILiteralBoolean dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralBoolean(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralBoolean(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static ILiteralBoolean DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +184,46 @@ internal static ILiteralBoolean DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +233,26 @@ internal static ILiteralBoolean DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the direction Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +267,1257 @@ internal static ILiteralBoolean DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the LiteralBoolean.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (isAbstractProperty.ValueKind != JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); } - else + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) - { - var propertyValue = owningRelationshipIdProperty.GetString(); + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); - } - } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); } } else { - logger.LogDebug("the owningRelationship Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + logger.LogDebug("the isConjugated Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the LiteralBoolean.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } if (jsonElement.TryGetProperty("value"u8, out var valueProperty)) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralExpressionDeSerializer.cs index dfe9bbfa1..4bf1cd28a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static ILiteralExpression DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The LiteralExpressionDeSerializer can only be used to deserialize objects of type ILiteralExpression, a {@type.GetString()} was provided"); } - ILiteralExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static ILiteralExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +184,46 @@ internal static ILiteralExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +233,26 @@ internal static ILiteralExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the direction Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +267,1257 @@ internal static ILiteralExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the elementId Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the LiteralExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (isAbstractProperty.ValueKind != JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); } - else + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) - { - var propertyValue = owningRelationshipIdProperty.GetString(); + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); - } - } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); } } else { - logger.LogDebug("the owningRelationship Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the isConjugated Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the LiteralExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralInfinityDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralInfinityDeSerializer.cs index bc07b28cb..eaa8e2b6f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralInfinityDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralInfinityDeSerializer.cs @@ -69,7 +69,7 @@ internal static ILiteralInfinity DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The LiteralInfinityDeSerializer can only be used to deserialize objects of type ILiteralInfinity, a {@type.GetString()} was provided"); } - ILiteralInfinity dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralInfinity(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralInfinity(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static ILiteralInfinity DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +184,46 @@ internal static ILiteralInfinity DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +233,26 @@ internal static ILiteralInfinity DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the direction Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +267,1257 @@ internal static ILiteralInfinity DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the elementId Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the LiteralInfinity.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (isAbstractProperty.ValueKind != JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); } - else + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) - { - var propertyValue = owningRelationshipIdProperty.GetString(); + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); - } - } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); } } else { - logger.LogDebug("the owningRelationship Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + logger.LogDebug("the isConjugated Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the LiteralInfinity.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs index ec0117122..4dd76ec80 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs @@ -69,7 +69,7 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The LiteralIntegerDeSerializer can only be used to deserialize objects of type ILiteralInteger, a {@type.GetString()} was provided"); } - ILiteralInteger dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralInteger(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralInteger(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +184,46 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +233,26 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the direction Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +267,1257 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the LiteralInteger.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (isAbstractProperty.ValueKind != JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); } - else + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) - { - var propertyValue = owningRelationshipIdProperty.GetString(); + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); - } - } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); } } else { - logger.LogDebug("the owningRelationship Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + logger.LogDebug("the isConjugated Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the LiteralInteger.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } if (jsonElement.TryGetProperty("value"u8, out var valueProperty)) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs index 19cbe9d3a..ce5eeea58 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs @@ -69,7 +69,7 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The LiteralRationalDeSerializer can only be used to deserialize objects of type ILiteralRational, a {@type.GetString()} was provided"); } - ILiteralRational dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralRational(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralRational(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +184,46 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +233,26 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the direction Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +267,1257 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the elementId Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the LiteralRational.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (isAbstractProperty.ValueKind != JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); } - else + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) - { - var propertyValue = owningRelationshipIdProperty.GetString(); + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); - } - } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); } } else { - logger.LogDebug("the owningRelationship Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + logger.LogDebug("the isConjugated Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the LiteralRational.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } if (jsonElement.TryGetProperty("value"u8, out var valueProperty)) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralStringDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralStringDeSerializer.cs index a41905705..eee40a435 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralStringDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralStringDeSerializer.cs @@ -69,7 +69,7 @@ internal static ILiteralString DeSerialize(JsonElement jsonElement, Serializatio throw new InvalidOperationException($"The LiteralStringDeSerializer can only be used to deserialize objects of type ILiteralString, a {@type.GetString()} was provided"); } - ILiteralString dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralString(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.LiteralString(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static ILiteralString DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the aliasIds Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +184,46 @@ internal static ILiteralString DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the declaredShortName Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +233,26 @@ internal static ILiteralString DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the direction Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +267,1257 @@ internal static ILiteralString DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the elementId Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the LiteralString.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (isAbstractProperty.ValueKind != JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); } - else + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) - { - var propertyValue = owningRelationshipIdProperty.GetString(); + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); - } - } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); } } else { - logger.LogDebug("the owningRelationship Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + logger.LogDebug("the isConjugated Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the LiteralString.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the LiteralString: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } if (jsonElement.TryGetProperty("value"u8, out var valueProperty)) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipDeSerializer.cs index 5ca1793ba..003829e81 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo throw new InvalidOperationException($"The MembershipDeSerializer can only be used to deserialize objects of type IMembership, a {@type.GetString()} was provided"); } - IMembership dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.Membership(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.Membership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the declaredShortName Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isImpliedIncluded Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the memberElement Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the memberName Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the Membership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,62 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the memberShortName Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +345,9 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +361,78 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the ownedRelationship Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +441,9 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +465,9 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +481,51 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the owningRelationship Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +543,9 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +559,26 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the target Json property was not found in the Membership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Membership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipExposeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipExposeDeSerializer.cs index 24d1ecb00..eb8a7d14b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipExposeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipExposeDeSerializer.cs @@ -69,7 +69,7 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa throw new InvalidOperationException($"The MembershipExposeDeSerializer can only be used to deserialize objects of type IMembershipExpose, a {@type.GetString()} was provided"); } - IMembershipExpose dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.MembershipExpose(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.MembershipExpose(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the declaredShortName Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +154,31 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the elementId Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("importedElement"u8, out var importedElementProperty)) + { + if (importedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.importedElement = Guid.Empty; + logger.LogDebug($"the MembershipExpose.importedElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (importedElementProperty.TryGetProperty("@id"u8, out var importedElementExternalIdProperty)) + { + var propertyValue = importedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the importedElement Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { if (importedMembershipProperty.ValueKind == JsonValueKind.Null) @@ -143,9 +188,9 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa } else { - if (importedMembershipProperty.TryGetProperty("@id"u8, out var importedMembershipIdProperty)) + if (importedMembershipProperty.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = importedMembershipIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -159,6 +204,31 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the importedMembership Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("importOwningNamespace"u8, out var importOwningNamespaceProperty)) + { + if (importOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.importOwningNamespace = Guid.Empty; + logger.LogDebug($"the MembershipExpose.importOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (importOwningNamespaceProperty.TryGetProperty("@id"u8, out var importOwningNamespaceExternalIdProperty)) + { + var propertyValue = importOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the importOwningNamespace Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -195,6 +265,18 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isImportAll Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isRecursive"u8, out var isRecursiveProperty)) { if (isRecursiveProperty.ValueKind != JsonValueKind.Null) @@ -207,13 +289,62 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isRecursive Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -231,9 +362,9 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -247,6 +378,78 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the ownedRelationship Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -255,9 +458,9 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -279,9 +482,9 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -295,13 +498,51 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the owningRelationship Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -319,9 +560,9 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -335,6 +576,26 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the target Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipImportDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipImportDeSerializer.cs index 8412029e0..2881c8255 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipImportDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipImportDeSerializer.cs @@ -69,7 +69,7 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa throw new InvalidOperationException($"The MembershipImportDeSerializer can only be used to deserialize objects of type IMembershipImport, a {@type.GetString()} was provided"); } - IMembershipImport dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.MembershipImport(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.MembershipImport(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the declaredShortName Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +154,31 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the elementId Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("importedElement"u8, out var importedElementProperty)) + { + if (importedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.importedElement = Guid.Empty; + logger.LogDebug($"the MembershipImport.importedElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (importedElementProperty.TryGetProperty("@id"u8, out var importedElementExternalIdProperty)) + { + var propertyValue = importedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the importedElement Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { if (importedMembershipProperty.ValueKind == JsonValueKind.Null) @@ -143,9 +188,9 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa } else { - if (importedMembershipProperty.TryGetProperty("@id"u8, out var importedMembershipIdProperty)) + if (importedMembershipProperty.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = importedMembershipIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -159,6 +204,31 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the importedMembership Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("importOwningNamespace"u8, out var importOwningNamespaceProperty)) + { + if (importOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.importOwningNamespace = Guid.Empty; + logger.LogDebug($"the MembershipImport.importOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (importOwningNamespaceProperty.TryGetProperty("@id"u8, out var importOwningNamespaceExternalIdProperty)) + { + var propertyValue = importOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the importOwningNamespace Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -195,6 +265,18 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isImportAll Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isRecursive"u8, out var isRecursiveProperty)) { if (isRecursiveProperty.ValueKind != JsonValueKind.Null) @@ -207,13 +289,62 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isRecursive Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -231,9 +362,9 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -247,6 +378,78 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the ownedRelationship Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -255,9 +458,9 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -279,9 +482,9 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -295,13 +498,51 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the owningRelationship Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -319,9 +560,9 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -335,6 +576,26 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the target Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MergeNodeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MergeNodeDeSerializer.cs index 58c70cf32..1df549445 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MergeNodeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MergeNodeDeSerializer.cs @@ -69,7 +69,7 @@ internal static IMergeNode DeSerialize(JsonElement jsonElement, SerializationMod throw new InvalidOperationException($"The MergeNodeDeSerializer can only be used to deserialize objects of type IMergeNode, a {@type.GetString()} was provided"); } - IMergeNode dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.MergeNode(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.MergeNode(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IMergeNode DeSerialize(JsonElement jsonElement, SerializationMod } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,70 @@ internal static IMergeNode DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the aliasIds Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +204,2068 @@ internal static IMergeNode DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isEnd Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the MergeNode.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the MergeNode: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetaclassDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetaclassDeSerializer.cs index 13a9efcd3..ef68af3ef 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetaclassDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetaclassDeSerializer.cs @@ -69,7 +69,7 @@ internal static IMetaclass DeSerialize(JsonElement jsonElement, SerializationMod throw new InvalidOperationException($"The MetaclassDeSerializer can only be used to deserialize objects of type IMetaclass, a {@type.GetString()} was provided"); } - IMetaclass dtoInstance = new SysML2.NET.Core.DTO.Kernel.Metadata.Metaclass(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Metadata.Metaclass(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,66 @@ internal static IMetaclass DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the Metaclass: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +194,166 @@ internal static IMetaclass DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the elementId Json property was not found in the Metaclass: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +366,18 @@ internal static IMetaclass DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isAbstract Json property was not found in the Metaclass: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -158,6 +390,18 @@ internal static IMetaclass DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isImpliedIncluded Json property was not found in the Metaclass: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -170,48 +414,575 @@ internal static IMetaclass DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isSufficient Json property was not found in the Metaclass: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Metaclass: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Metaclass: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Metaclass: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataAccessExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataAccessExpressionDeSerializer.cs index fb3c6830d..ca2b4d312 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataAccessExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataAccessExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IMetadataAccessExpression DeSerialize(JsonElement jsonElement, S throw new InvalidOperationException($"The MetadataAccessExpressionDeSerializer can only be used to deserialize objects of type IMetadataAccessExpression, a {@type.GetString()} was provided"); } - IMetadataAccessExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.MetadataAccessExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.MetadataAccessExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static IMetadataAccessExpression DeSerialize(JsonElement jsonElement, S logger.LogDebug("the aliasIds Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +184,46 @@ internal static IMetadataAccessExpression DeSerialize(JsonElement jsonElement, S logger.LogDebug("the declaredShortName Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +233,26 @@ internal static IMetadataAccessExpression DeSerialize(JsonElement jsonElement, S logger.LogDebug("the direction Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +267,1282 @@ internal static IMetadataAccessExpression DeSerialize(JsonElement jsonElement, S logger.LogDebug("the elementId Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the MetadataAccessExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (isAbstractProperty.ValueKind != JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); } - else + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) - { - var propertyValue = owningRelationshipIdProperty.GetString(); + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); - } - } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); } } else { - logger.LogDebug("the owningRelationship Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the isConjugated Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("referencedElement"u8, out var referencedElementProperty)) + { + if (referencedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.referencedElement = Guid.Empty; + logger.LogDebug($"the MetadataAccessExpression.referencedElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (referencedElementProperty.TryGetProperty("@id"u8, out var referencedElementExternalIdProperty)) + { + var propertyValue = referencedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.referencedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the referencedElement Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the MetadataAccessExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataDefinitionDeSerializer.cs index ea6ba494b..3a6f69484 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IMetadataDefinition DeSerialize(JsonElement jsonElement, Seriali throw new InvalidOperationException($"The MetadataDefinitionDeSerializer can only be used to deserialize objects of type IMetadataDefinition, a {@type.GetString()} was provided"); } - IMetadataDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Metadata.MetadataDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Metadata.MetadataDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,86 @@ internal static IMetadataDefinition DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the declaredShortName Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,166 @@ internal static IMetadataDefinition DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the elementId Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IMetadataDefinition DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the isAbstract Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +422,18 @@ internal static IMetadataDefinition DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the isIndividual Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,48 +458,1175 @@ internal static IMetadataDefinition DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the isVariation Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the MetadataDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataFeatureDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataFeatureDeSerializer.cs index 47189ebaa..0c3fb90b8 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataFeatureDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataFeatureDeSerializer.cs @@ -69,7 +69,7 @@ internal static IMetadataFeature DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The MetadataFeatureDeSerializer can only be used to deserialize objects of type IMetadataFeature, a {@type.GetString()} was provided"); } - IMetadataFeature dtoInstance = new SysML2.NET.Core.DTO.Kernel.Metadata.MetadataFeature(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Metadata.MetadataFeature(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,197 +102,1303 @@ internal static IMetadataFeature DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("annotatedElement"u8, out var annotatedElementProperty)) + { + foreach (var arrayItem in annotatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotatedElementExternalIdProperty)) + { + var propertyValue = annotatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotatedElement Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("annotation"u8, out var annotationProperty)) + { + foreach (var arrayItem in annotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotationExternalIdProperty)) + { + var propertyValue = annotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotation Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the declaredName Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + { + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + { + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ElementId = propertyValue; + } + } + else + { + logger.LogDebug("the elementId Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the MetadataFeature.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("metaclass"u8, out var metaclassProperty)) + { + if (metaclassProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.metaclass = null; + } + else + { + if (metaclassProperty.TryGetProperty("@id"u8, out var metaclassExternalIdProperty)) + { + var propertyValue = metaclassExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.metaclass = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the metaclass Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotatingRelationship"u8, out var ownedAnnotatingRelationshipProperty)) + { + foreach (var arrayItem in ownedAnnotatingRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = ownedAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotatingRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotatingRelationship Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedIntersecting Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedMember Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) { - var propertyValue = elementIdProperty.GetString(); + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); - if (propertyValue != null) + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedRedefinition Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedRelationship Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSpecialization Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSubsetting Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTyping Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedUnioning Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (ownerProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the owner Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("owningAnnotatingRelationship"u8, out var owningAnnotatingRelationshipProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (owningAnnotatingRelationshipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.owningAnnotatingRelationship = null; + } + else + { + if (owningAnnotatingRelationshipProperty.TryGetProperty("@id"u8, out var owningAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = owningAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningAnnotatingRelationship = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the owningAnnotatingRelationship Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the owningFeatureMembership Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the owningMembership Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = owningNamespaceExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.owningNamespace = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the owningNamespace Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) @@ -303,9 +1409,9 @@ internal static IMetadataFeature DeSerialize(JsonElement jsonElement, Serializat } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -319,6 +1425,108 @@ internal static IMetadataFeature DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the owningRelationship Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the MetadataFeature: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataUsageDeSerializer.cs index 0b75f2ec9..93811eed0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IMetadataUsage DeSerialize(JsonElement jsonElement, Serializatio throw new InvalidOperationException($"The MetadataUsageDeSerializer can only be used to deserialize objects of type IMetadataUsage, a {@type.GetString()} was provided"); } - IMetadataUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Metadata.MetadataUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Metadata.MetadataUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,90 @@ internal static IMetadataUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the aliasIds Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("annotatedElement"u8, out var annotatedElementProperty)) + { + foreach (var arrayItem in annotatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotatedElementExternalIdProperty)) + { + var propertyValue = annotatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotatedElement Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("annotation"u8, out var annotationProperty)) + { + foreach (var arrayItem in annotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotationExternalIdProperty)) + { + var propertyValue = annotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotation Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +204,2160 @@ internal static IMetadataUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the declaredShortName Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isEnd Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the MetadataUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("itemDefinition"u8, out var itemDefinitionProperty)) + { + foreach (var arrayItem in itemDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var itemDefinitionExternalIdProperty)) + { + var propertyValue = itemDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.itemDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the itemDefinition Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("metaclass"u8, out var metaclassProperty)) + { + if (metaclassProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.metaclass = null; + } + else + { + if (metaclassProperty.TryGetProperty("@id"u8, out var metaclassExternalIdProperty)) + { + var propertyValue = metaclassExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.metaclass = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the metaclass Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("metadataDefinition"u8, out var metadataDefinitionProperty)) + { + if (metadataDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.metadataDefinition = null; + } + else + { + if (metadataDefinitionProperty.TryGetProperty("@id"u8, out var metadataDefinitionExternalIdProperty)) + { + var propertyValue = metadataDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.metadataDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the metadataDefinition Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotatingRelationship"u8, out var ownedAnnotatingRelationshipProperty)) + { + foreach (var arrayItem in ownedAnnotatingRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = ownedAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotatingRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotatingRelationship Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningAnnotatingRelationship"u8, out var owningAnnotatingRelationshipProperty)) + { + if (owningAnnotatingRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningAnnotatingRelationship = null; + } + else + { + if (owningAnnotatingRelationshipProperty.TryGetProperty("@id"u8, out var owningAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = owningAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningAnnotatingRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningAnnotatingRelationship Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MultiplicityDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MultiplicityDeSerializer.cs index 29e858389..e94e30672 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MultiplicityDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MultiplicityDeSerializer.cs @@ -69,7 +69,7 @@ internal static IMultiplicity DeSerialize(JsonElement jsonElement, Serialization throw new InvalidOperationException($"The MultiplicityDeSerializer can only be used to deserialize objects of type IMultiplicity, a {@type.GetString()} was provided"); } - IMultiplicity dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Multiplicity(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Multiplicity(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IMultiplicity DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the aliasIds Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +164,46 @@ internal static IMultiplicity DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the declaredShortName Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +213,26 @@ internal static IMultiplicity DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the direction Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,6 +247,235 @@ internal static IMultiplicity DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the elementId Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the Multiplicity.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -167,6 +500,18 @@ internal static IMultiplicity DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the isComposite Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) { if (isConstantProperty.ValueKind != JsonValueKind.Null) @@ -215,6 +560,18 @@ internal static IMultiplicity DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the isImpliedIncluded Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) { if (isOrderedProperty.ValueKind != JsonValueKind.Null) @@ -275,37 +632,678 @@ internal static IMultiplicity DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the isVariable Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -319,6 +1317,108 @@ internal static IMultiplicity DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the owningRelationship Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Multiplicity: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MultiplicityRangeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MultiplicityRangeDeSerializer.cs index a710a314c..0dadc054c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MultiplicityRangeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MultiplicityRangeDeSerializer.cs @@ -69,7 +69,7 @@ internal static IMultiplicityRange DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The MultiplicityRangeDeSerializer can only be used to deserialize objects of type IMultiplicityRange, a {@type.GetString()} was provided"); } - IMultiplicityRange dtoInstance = new SysML2.NET.Core.DTO.Kernel.Multiplicities.MultiplicityRange(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Multiplicities.MultiplicityRange(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,197 +102,1239 @@ internal static IMultiplicityRange DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("bound"u8, out var boundProperty)) + { + foreach (var arrayItem in boundProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var boundExternalIdProperty)) + { + var propertyValue = boundExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.bound.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the bound Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the declaredName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + { + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + { + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ElementId = propertyValue; + } + } + else + { + logger.LogDebug("the elementId Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the MultiplicityRange.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("lowerBound"u8, out var lowerBoundProperty)) + { + if (lowerBoundProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.lowerBound = null; + } + else + { + if (lowerBoundProperty.TryGetProperty("@id"u8, out var lowerBoundExternalIdProperty)) + { + var propertyValue = lowerBoundExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.lowerBound = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the lowerBound Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedIntersecting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedMember Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedRedefinition Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedRelationship Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSpecialization Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSubsetting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTyping Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedUnioning Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (ownerProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the owner Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the owningFeatureMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the owningMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = owningNamespaceExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.owningNamespace = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + logger.LogDebug("the owningNamespace Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) @@ -303,9 +1345,9 @@ internal static IMultiplicityRange DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -319,6 +1361,133 @@ internal static IMultiplicityRange DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the owningRelationship Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("upperBound"u8, out var upperBoundProperty)) + { + if (upperBoundProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.upperBound = Guid.Empty; + logger.LogDebug($"the MultiplicityRange.upperBound property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (upperBoundProperty.TryGetProperty("@id"u8, out var upperBoundExternalIdProperty)) + { + var propertyValue = upperBoundExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.upperBound = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the upperBound Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceDeSerializer.cs index 4e2a1ad76..cbf032fd6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceDeSerializer.cs @@ -69,7 +69,7 @@ internal static INamespace DeSerialize(JsonElement jsonElement, SerializationMod throw new InvalidOperationException($"The NamespaceDeSerializer can only be used to deserialize objects of type INamespace, a {@type.GetString()} was provided"); } - INamespace dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.Namespace(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.Namespace(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static INamespace DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the Namespace: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +154,26 @@ internal static INamespace DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the elementId Json property was not found in the Namespace: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -146,13 +186,174 @@ internal static INamespace DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isImpliedIncluded Json property was not found in the Namespace: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -166,6 +367,78 @@ internal static INamespace DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the ownedRelationship Json property was not found in the Namespace: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) @@ -174,9 +447,9 @@ internal static INamespace DeSerialize(JsonElement jsonElement, SerializationMod } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -190,6 +463,44 @@ internal static INamespace DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the owningRelationship Json property was not found in the Namespace: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Namespace: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceExposeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceExposeDeSerializer.cs index 258e2174a..d2a342e5f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceExposeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceExposeDeSerializer.cs @@ -69,7 +69,7 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The NamespaceExposeDeSerializer can only be used to deserialize objects of type INamespaceExpose, a {@type.GetString()} was provided"); } - INamespaceExpose dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.NamespaceExpose(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.NamespaceExpose(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +154,31 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the elementId Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("importedElement"u8, out var importedElementProperty)) + { + if (importedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.importedElement = Guid.Empty; + logger.LogDebug($"the NamespaceExpose.importedElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (importedElementProperty.TryGetProperty("@id"u8, out var importedElementExternalIdProperty)) + { + var propertyValue = importedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the importedElement Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("importedNamespace"u8, out var importedNamespaceProperty)) { if (importedNamespaceProperty.ValueKind == JsonValueKind.Null) @@ -143,9 +188,9 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat } else { - if (importedNamespaceProperty.TryGetProperty("@id"u8, out var importedNamespaceIdProperty)) + if (importedNamespaceProperty.TryGetProperty("@id"u8, out var importedNamespaceExternalIdProperty)) { - var propertyValue = importedNamespaceIdProperty.GetString(); + var propertyValue = importedNamespaceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -159,6 +204,31 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the importedNamespace Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("importOwningNamespace"u8, out var importOwningNamespaceProperty)) + { + if (importOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.importOwningNamespace = Guid.Empty; + logger.LogDebug($"the NamespaceExpose.importOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (importOwningNamespaceProperty.TryGetProperty("@id"u8, out var importOwningNamespaceExternalIdProperty)) + { + var propertyValue = importOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the importOwningNamespace Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -195,6 +265,18 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isImportAll Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isRecursive"u8, out var isRecursiveProperty)) { if (isRecursiveProperty.ValueKind != JsonValueKind.Null) @@ -207,13 +289,62 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isRecursive Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -231,9 +362,9 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -247,6 +378,78 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the ownedRelationship Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -255,9 +458,9 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -279,9 +482,9 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -295,13 +498,51 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the owningRelationship Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -319,9 +560,9 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -335,6 +576,26 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the target Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceImportDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceImportDeSerializer.cs index 4d4fc952d..03c358ebf 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceImportDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceImportDeSerializer.cs @@ -69,7 +69,7 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The NamespaceImportDeSerializer can only be used to deserialize objects of type INamespaceImport, a {@type.GetString()} was provided"); } - INamespaceImport dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.NamespaceImport(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.NamespaceImport(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +154,31 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the elementId Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("importedElement"u8, out var importedElementProperty)) + { + if (importedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.importedElement = Guid.Empty; + logger.LogDebug($"the NamespaceImport.importedElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (importedElementProperty.TryGetProperty("@id"u8, out var importedElementExternalIdProperty)) + { + var propertyValue = importedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the importedElement Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("importedNamespace"u8, out var importedNamespaceProperty)) { if (importedNamespaceProperty.ValueKind == JsonValueKind.Null) @@ -143,9 +188,9 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat } else { - if (importedNamespaceProperty.TryGetProperty("@id"u8, out var importedNamespaceIdProperty)) + if (importedNamespaceProperty.TryGetProperty("@id"u8, out var importedNamespaceExternalIdProperty)) { - var propertyValue = importedNamespaceIdProperty.GetString(); + var propertyValue = importedNamespaceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -159,6 +204,31 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the importedNamespace Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("importOwningNamespace"u8, out var importOwningNamespaceProperty)) + { + if (importOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.importOwningNamespace = Guid.Empty; + logger.LogDebug($"the NamespaceImport.importOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (importOwningNamespaceProperty.TryGetProperty("@id"u8, out var importOwningNamespaceExternalIdProperty)) + { + var propertyValue = importOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the importOwningNamespace Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -195,6 +265,18 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isImportAll Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isRecursive"u8, out var isRecursiveProperty)) { if (isRecursiveProperty.ValueKind != JsonValueKind.Null) @@ -207,13 +289,62 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isRecursive Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -231,9 +362,9 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -247,6 +378,78 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the ownedRelationship Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -255,9 +458,9 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -279,9 +482,9 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -295,13 +498,51 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the owningRelationship Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -319,9 +560,9 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -335,6 +576,26 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the target Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NullExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NullExpressionDeSerializer.cs index 5ab050092..f4363f9e5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NullExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NullExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static INullExpression DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The NullExpressionDeSerializer can only be used to deserialize objects of type INullExpression, a {@type.GetString()} was provided"); } - INullExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.NullExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.NullExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,70 @@ internal static INullExpression DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +184,46 @@ internal static INullExpression DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +233,26 @@ internal static INullExpression DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the direction Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,180 +267,1257 @@ internal static INullExpression DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the NullExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (isAbstractProperty.ValueKind != JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); } - else + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) - { - var propertyValue = owningRelationshipIdProperty.GetString(); + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } - if (propertyValue != null) - { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); - } - } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); } } else { - logger.LogDebug("the owningRelationship Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the isConjugated Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the NullExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the NullExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ObjectiveMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ObjectiveMembershipDeSerializer.cs index c06db0d4d..021d4bcd1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ObjectiveMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ObjectiveMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial throw new InvalidOperationException($"The ObjectiveMembershipDeSerializer can only be used to deserialize objects of type IObjectiveMembership, a {@type.GetString()} was provided"); } - IObjectiveMembership dtoInstance = new SysML2.NET.Core.DTO.Systems.Cases.ObjectiveMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Cases.ObjectiveMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the declaredShortName Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isImpliedIncluded Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the memberElement Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the memberName Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the ObjectiveMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,169 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the memberShortName Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the ObjectiveMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the ObjectiveMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedObjectiveRequirement"u8, out var ownedObjectiveRequirementProperty)) + { + if (ownedObjectiveRequirementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedObjectiveRequirement = Guid.Empty; + logger.LogDebug($"the ObjectiveMembership.ownedObjectiveRequirement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedObjectiveRequirementProperty.TryGetProperty("@id"u8, out var ownedObjectiveRequirementExternalIdProperty)) + { + var propertyValue = ownedObjectiveRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedObjectiveRequirement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedObjectiveRequirement Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +452,9 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +468,78 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the ownedRelationship Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +548,9 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +572,9 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +588,76 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the owningRelationship Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the ObjectiveMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +675,9 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +691,26 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the target Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OccurrenceDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OccurrenceDefinitionDeSerializer.cs index 7fa515017..1ba2aea19 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OccurrenceDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OccurrenceDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IOccurrenceDefinition DeSerialize(JsonElement jsonElement, Seria throw new InvalidOperationException($"The OccurrenceDefinitionDeSerializer can only be used to deserialize objects of type IOccurrenceDefinition, a {@type.GetString()} was provided"); } - IOccurrenceDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Occurrences.OccurrenceDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Occurrences.OccurrenceDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,86 @@ internal static IOccurrenceDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the declaredShortName Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,166 @@ internal static IOccurrenceDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the elementId Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IOccurrenceDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isAbstract Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +422,18 @@ internal static IOccurrenceDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isIndividual Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,48 +458,1175 @@ internal static IOccurrenceDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isVariation Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the OccurrenceDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OccurrenceUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OccurrenceUsageDeSerializer.cs index 823f39fc5..d17de40df 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OccurrenceUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OccurrenceUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IOccurrenceUsage DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The OccurrenceUsageDeSerializer can only be used to deserialize objects of type IOccurrenceUsage, a {@type.GetString()} was provided"); } - IOccurrenceUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Occurrences.OccurrenceUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Occurrences.OccurrenceUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IOccurrenceUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +164,2048 @@ internal static IOccurrenceUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isDerived Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the OccurrenceUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the input Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } } else { - logger.LogDebug("the portionKind Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the isAbstract Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OperatorExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OperatorExpressionDeSerializer.cs index 470476d03..407e8a165 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OperatorExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OperatorExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IOperatorExpression DeSerialize(JsonElement jsonElement, Seriali throw new InvalidOperationException($"The OperatorExpressionDeSerializer can only be used to deserialize objects of type IOperatorExpression, a {@type.GetString()} was provided"); } - IOperatorExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.OperatorExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.OperatorExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,90 @@ internal static IOperatorExpression DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the aliasIds Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("argument"u8, out var argumentProperty)) + { + foreach (var arrayItem in argumentProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var argumentExternalIdProperty)) + { + var propertyValue = argumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.argument.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the argument Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,217 +204,1379 @@ internal static IOperatorExpression DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the declaredShortName Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isComposite Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the OperatorExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - var propertyValue = operatorProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.Operator = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the operator Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("instantiatedType"u8, out var instantiatedTypeProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (instantiatedTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.instantiatedType = Guid.Empty; + logger.LogDebug($"the OperatorExpression.instantiatedType property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (instantiatedTypeProperty.TryGetProperty("@id"u8, out var instantiatedTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = instantiatedTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.instantiatedType = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the instantiatedType Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty)) + { + var propertyValue = operatorProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Operator = propertyValue; + } + } + else + { + logger.LogDebug("the operator Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the OperatorExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs index 987d8e7c1..c56d9d3e2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa throw new InvalidOperationException($"The OwningMembershipDeSerializer can only be used to deserialize objects of type IOwningMembership, a {@type.GetString()} was provided"); } - IOwningMembership dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.OwningMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Namespaces.OwningMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the declaredShortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isImpliedIncluded Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the memberElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the memberName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the OwningMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,119 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the memberShortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the OwningMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +402,9 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +418,78 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the ownedRelationship Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +498,9 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +522,9 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +538,51 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the owningRelationship Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +600,9 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +616,26 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the target Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PackageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PackageDeSerializer.cs index 924cadf1c..baf674d18 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PackageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PackageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IPackage DeSerialize(JsonElement jsonElement, SerializationModeK throw new InvalidOperationException($"The PackageDeSerializer can only be used to deserialize objects of type IPackage, a {@type.GetString()} was provided"); } - IPackage dtoInstance = new SysML2.NET.Core.DTO.Kernel.Packages.Package(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Packages.Package(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IPackage DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the declaredShortName Json property was not found in the Package: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Package: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +154,46 @@ internal static IPackage DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the elementId Json property was not found in the Package: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("filterCondition"u8, out var filterConditionProperty)) + { + foreach (var arrayItem in filterConditionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var filterConditionExternalIdProperty)) + { + var propertyValue = filterConditionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.filterCondition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the filterCondition Json property was not found in the Package: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Package: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -146,13 +206,174 @@ internal static IPackage DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the isImpliedIncluded Json property was not found in the Package: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Package: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the Package: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Package: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Package: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Package: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Package: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Package: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Package: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Package: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -166,6 +387,78 @@ internal static IPackage DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the ownedRelationship Json property was not found in the Package: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Package: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Package: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Package: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) @@ -174,9 +467,9 @@ internal static IPackage DeSerialize(JsonElement jsonElement, SerializationModeK } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -190,6 +483,44 @@ internal static IPackage DeSerialize(JsonElement jsonElement, SerializationModeK logger.LogDebug("the owningRelationship Json property was not found in the Package: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Package: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Package: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Package: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ParameterMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ParameterMembershipDeSerializer.cs index 7facf4b2d..ca25990b3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ParameterMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ParameterMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial throw new InvalidOperationException($"The ParameterMembershipDeSerializer can only be used to deserialize objects of type IParameterMembership, a {@type.GetString()} was provided"); } - IParameterMembership dtoInstance = new SysML2.NET.Core.DTO.Kernel.Behaviors.ParameterMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Behaviors.ParameterMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the declaredShortName Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isImpliedIncluded Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the memberElement Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the memberName Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the ParameterMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,169 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the memberShortName Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the ParameterMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the ParameterMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberParameter"u8, out var ownedMemberParameterProperty)) + { + if (ownedMemberParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberParameter = Guid.Empty; + logger.LogDebug($"the ParameterMembership.ownedMemberParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberParameterProperty.TryGetProperty("@id"u8, out var ownedMemberParameterExternalIdProperty)) + { + var propertyValue = ownedMemberParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberParameter Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +452,9 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +468,78 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the ownedRelationship Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +548,9 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +572,9 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +588,76 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the owningRelationship Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the ParameterMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +675,9 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +691,26 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the target Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PartDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PartDefinitionDeSerializer.cs index fecf34179..7f2ce3d04 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PartDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PartDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IPartDefinition DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The PartDefinitionDeSerializer can only be used to deserialize objects of type IPartDefinition, a {@type.GetString()} was provided"); } - IPartDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Parts.PartDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Parts.PartDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,86 @@ internal static IPartDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,166 @@ internal static IPartDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IPartDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isAbstract Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +422,18 @@ internal static IPartDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isIndividual Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,48 +458,1175 @@ internal static IPartDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isVariation Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the PartDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PartUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PartUsageDeSerializer.cs index 3be0c4837..b3700babd 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PartUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PartUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IPartUsage DeSerialize(JsonElement jsonElement, SerializationMod throw new InvalidOperationException($"The PartUsageDeSerializer can only be used to deserialize objects of type IPartUsage, a {@type.GetString()} was provided"); } - IPartUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Parts.PartUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Parts.PartUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IPartUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the aliasIds Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +164,2088 @@ internal static IPartUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isDerived Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the PartUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the input Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } } else { - logger.LogDebug("the portionKind Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the isAbstract Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("itemDefinition"u8, out var itemDefinitionProperty)) + { + foreach (var arrayItem in itemDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var itemDefinitionExternalIdProperty)) + { + var propertyValue = itemDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.itemDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the itemDefinition Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("partDefinition"u8, out var partDefinitionProperty)) + { + foreach (var arrayItem in partDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var partDefinitionExternalIdProperty)) + { + var propertyValue = partDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.partDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the partDefinition Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the PartUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PayloadFeatureDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PayloadFeatureDeSerializer.cs index dc7578168..e9b6ac6c1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PayloadFeatureDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PayloadFeatureDeSerializer.cs @@ -69,7 +69,7 @@ internal static IPayloadFeature DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The PayloadFeatureDeSerializer can only be used to deserialize objects of type IPayloadFeature, a {@type.GetString()} was provided"); } - IPayloadFeature dtoInstance = new SysML2.NET.Core.DTO.Kernel.Interactions.PayloadFeature(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Interactions.PayloadFeature(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IPayloadFeature DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +164,46 @@ internal static IPayloadFeature DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -129,6 +213,26 @@ internal static IPayloadFeature DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the direction Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,6 +247,235 @@ internal static IPayloadFeature DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the PayloadFeature.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -167,6 +500,18 @@ internal static IPayloadFeature DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isComposite Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) { if (isConstantProperty.ValueKind != JsonValueKind.Null) @@ -215,6 +560,18 @@ internal static IPayloadFeature DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isImpliedIncluded Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) { if (isOrderedProperty.ValueKind != JsonValueKind.Null) @@ -275,37 +632,678 @@ internal static IPayloadFeature DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isVariable Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -319,6 +1317,108 @@ internal static IPayloadFeature DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the owningRelationship Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the PayloadFeature: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PerformActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PerformActionUsageDeSerializer.cs index bc6d0fb40..2b976b721 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PerformActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PerformActionUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IPerformActionUsage DeSerialize(JsonElement jsonElement, Seriali throw new InvalidOperationException($"The PerformActionUsageDeSerializer can only be used to deserialize objects of type IPerformActionUsage, a {@type.GetString()} was provided"); } - IPerformActionUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.PerformActionUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.PerformActionUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IPerformActionUsage DeSerialize(JsonElement jsonElement, Seriali } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,70 @@ internal static IPerformActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the aliasIds Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +204,2118 @@ internal static IPerformActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the declaredShortName Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isEnd Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("eventOccurrence"u8, out var eventOccurrenceProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (eventOccurrenceProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.eventOccurrence = Guid.Empty; + logger.LogDebug($"the PerformActionUsage.eventOccurrence property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (eventOccurrenceProperty.TryGetProperty("@id"u8, out var eventOccurrenceExternalIdProperty)) + { + var propertyValue = eventOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.eventOccurrence = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the eventOccurrence Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the PerformActionUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("performedAction"u8, out var performedActionProperty)) + { + if (performedActionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.performedAction = Guid.Empty; + logger.LogDebug($"the PerformActionUsage.performedAction property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (performedActionProperty.TryGetProperty("@id"u8, out var performedActionExternalIdProperty)) + { + var propertyValue = performedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.performedAction = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the performedAction Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortConjugationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortConjugationDeSerializer.cs index e8c7edcd0..48b53fc75 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortConjugationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortConjugationDeSerializer.cs @@ -69,7 +69,7 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The PortConjugationDeSerializer can only be used to deserialize objects of type IPortConjugation, a {@type.GetString()} was provided"); } - IPortConjugation dtoInstance = new SysML2.NET.Core.DTO.Systems.Ports.PortConjugation(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Ports.PortConjugation(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,31 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("conjugatedPortDefinition"u8, out var conjugatedPortDefinitionProperty)) + { + if (conjugatedPortDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.conjugatedPortDefinition = Guid.Empty; + logger.LogDebug($"the PortConjugation.conjugatedPortDefinition property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (conjugatedPortDefinitionProperty.TryGetProperty("@id"u8, out var conjugatedPortDefinitionExternalIdProperty)) + { + var propertyValue = conjugatedPortDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.conjugatedPortDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the conjugatedPortDefinition Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("conjugatedType"u8, out var conjugatedTypeProperty)) { if (conjugatedTypeProperty.ValueKind == JsonValueKind.Null) @@ -111,9 +136,9 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat } else { - if (conjugatedTypeProperty.TryGetProperty("@id"u8, out var conjugatedTypeIdProperty)) + if (conjugatedTypeProperty.TryGetProperty("@id"u8, out var conjugatedTypeExternalIdProperty)) { - var propertyValue = conjugatedTypeIdProperty.GetString(); + var propertyValue = conjugatedTypeExternalIdProperty.GetString(); if (propertyValue != null) { @@ -145,6 +170,26 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -183,6 +228,27 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isImpliedIncluded Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("originalPortDefinition"u8, out var originalPortDefinitionProperty)) { if (originalPortDefinitionProperty.ValueKind == JsonValueKind.Null) @@ -192,9 +258,9 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat } else { - if (originalPortDefinitionProperty.TryGetProperty("@id"u8, out var originalPortDefinitionIdProperty)) + if (originalPortDefinitionProperty.TryGetProperty("@id"u8, out var originalPortDefinitionExternalIdProperty)) { - var propertyValue = originalPortDefinitionIdProperty.GetString(); + var propertyValue = originalPortDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { @@ -217,9 +283,9 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat } else { - if (originalTypeProperty.TryGetProperty("@id"u8, out var originalTypeIdProperty)) + if (originalTypeProperty.TryGetProperty("@id"u8, out var originalTypeExternalIdProperty)) { - var propertyValue = originalTypeIdProperty.GetString(); + var propertyValue = originalTypeExternalIdProperty.GetString(); if (propertyValue != null) { @@ -233,13 +299,53 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the originalType Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -257,9 +363,9 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,6 +379,78 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the ownedRelationship Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -281,9 +459,9 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -305,9 +483,9 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -321,13 +499,75 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the owningRelationship Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -345,9 +585,9 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -361,6 +601,26 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the target Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortDefinitionDeSerializer.cs index b009bc75e..5014577f3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IPortDefinition DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The PortDefinitionDeSerializer can only be used to deserialize objects of type IPortDefinition, a {@type.GetString()} was provided"); } - IPortDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Ports.PortDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Ports.PortDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,30 @@ internal static IPortDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("conjugatedPortDefinition"u8, out var conjugatedPortDefinitionProperty)) + { + if (conjugatedPortDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.conjugatedPortDefinition = null; + } + else + { + if (conjugatedPortDefinitionProperty.TryGetProperty("@id"u8, out var conjugatedPortDefinitionExternalIdProperty)) + { + var propertyValue = conjugatedPortDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.conjugatedPortDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the conjugatedPortDefinition Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +144,86 @@ internal static IPortDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +238,166 @@ internal static IPortDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +410,18 @@ internal static IPortDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isAbstract Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +446,18 @@ internal static IPortDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isIndividual Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,48 +482,1175 @@ internal static IPortDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isVariation Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the PortDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortUsageDeSerializer.cs index feef78d66..1ce2d8221 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IPortUsage DeSerialize(JsonElement jsonElement, SerializationMod throw new InvalidOperationException($"The PortUsageDeSerializer can only be used to deserialize objects of type IPortUsage, a {@type.GetString()} was provided"); } - IPortUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Ports.PortUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Ports.PortUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IPortUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the aliasIds Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +164,2068 @@ internal static IPortUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isDerived Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the PortUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the input Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } } else { - logger.LogDebug("the portionKind Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the isAbstract Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portDefinition"u8, out var portDefinitionProperty)) + { + foreach (var arrayItem in portDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var portDefinitionExternalIdProperty)) + { + var propertyValue = portDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.portDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the portDefinition Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the PortUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PredicateDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PredicateDeSerializer.cs index b83422679..03773a2b2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PredicateDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PredicateDeSerializer.cs @@ -69,7 +69,7 @@ internal static IPredicate DeSerialize(JsonElement jsonElement, SerializationMod throw new InvalidOperationException($"The PredicateDeSerializer can only be used to deserialize objects of type IPredicate, a {@type.GetString()} was provided"); } - IPredicate dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.Predicate(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.Predicate(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,66 @@ internal static IPredicate DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the Predicate: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +194,186 @@ internal static IPredicate DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the elementId Json property was not found in the Predicate: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("expression"u8, out var expressionProperty)) + { + foreach (var arrayItem in expressionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var expressionExternalIdProperty)) + { + var propertyValue = expressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.expression.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the expression Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IPredicate DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isAbstract Json property was not found in the Predicate: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -158,6 +410,30 @@ internal static IPredicate DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isImpliedIncluded Json property was not found in the Predicate: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -170,48 +446,640 @@ internal static IPredicate DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isSufficient Json property was not found in the Predicate: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Predicate: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Predicate: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Predicate: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the Predicate.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Predicate: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Predicate: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RedefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RedefinitionDeSerializer.cs index 7f3a8c481..e46ab1e62 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RedefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RedefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization throw new InvalidOperationException($"The RedefinitionDeSerializer can only be used to deserialize objects of type IRedefinition, a {@type.GetString()} was provided"); } - IRedefinition dtoInstance = new SysML2.NET.Core.DTO.Core.Features.Redefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Features.Redefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the declaredShortName Json property was not found in the Redefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,9 +163,9 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization } else { - if (generalProperty.TryGetProperty("@id"u8, out var generalIdProperty)) + if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) { - var propertyValue = generalIdProperty.GetString(); + var propertyValue = generalExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,13 +203,74 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the isImpliedIncluded Json property was not found in the Redefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +288,9 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +304,102 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the ownedRelationship Json property was not found in the Redefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeature"u8, out var owningFeatureProperty)) + { + if (owningFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeature = null; + } + else + { + if (owningFeatureProperty.TryGetProperty("@id"u8, out var owningFeatureExternalIdProperty)) + { + var propertyValue = owningFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeature Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +408,9 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +432,9 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,6 +448,39 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the owningRelationship Json property was not found in the Redefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("redefinedFeature"u8, out var redefinedFeatureProperty)) { if (redefinedFeatureProperty.ValueKind == JsonValueKind.Null) @@ -280,9 +490,9 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization } else { - if (redefinedFeatureProperty.TryGetProperty("@id"u8, out var redefinedFeatureIdProperty)) + if (redefinedFeatureProperty.TryGetProperty("@id"u8, out var redefinedFeatureExternalIdProperty)) { - var propertyValue = redefinedFeatureIdProperty.GetString(); + var propertyValue = redefinedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -305,9 +515,9 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization } else { - if (redefiningFeatureProperty.TryGetProperty("@id"u8, out var redefiningFeatureIdProperty)) + if (redefiningFeatureProperty.TryGetProperty("@id"u8, out var redefiningFeatureExternalIdProperty)) { - var propertyValue = redefiningFeatureIdProperty.GetString(); + var propertyValue = redefiningFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -321,13 +531,42 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the redefiningFeature Json property was not found in the Redefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -350,9 +589,9 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization } else { - if (specificProperty.TryGetProperty("@id"u8, out var specificIdProperty)) + if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) { - var propertyValue = specificIdProperty.GetString(); + var propertyValue = specificExternalIdProperty.GetString(); if (propertyValue != null) { @@ -375,9 +614,9 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization } else { - if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureIdProperty)) + if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureExternalIdProperty)) { - var propertyValue = subsettedFeatureIdProperty.GetString(); + var propertyValue = subsettedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -400,9 +639,9 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization } else { - if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureIdProperty)) + if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureExternalIdProperty)) { - var propertyValue = subsettingFeatureIdProperty.GetString(); + var propertyValue = subsettingFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -420,9 +659,9 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -436,6 +675,26 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the target Json property was not found in the Redefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Redefinition: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs index 87e8827a8..1c1770955 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs @@ -69,7 +69,7 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial throw new InvalidOperationException($"The ReferenceSubsettingDeSerializer can only be used to deserialize objects of type IReferenceSubsetting, a {@type.GetString()} was provided"); } - IReferenceSubsetting dtoInstance = new SysML2.NET.Core.DTO.Core.Features.ReferenceSubsetting(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Features.ReferenceSubsetting(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the declaredShortName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,9 +163,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (generalProperty.TryGetProperty("@id"u8, out var generalIdProperty)) + if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) { - var propertyValue = generalIdProperty.GetString(); + var propertyValue = generalExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,13 +203,74 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isImpliedIncluded Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +288,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +304,102 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the ownedRelationship Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeature"u8, out var owningFeatureProperty)) + { + if (owningFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeature = null; + } + else + { + if (owningFeatureProperty.TryGetProperty("@id"u8, out var owningFeatureExternalIdProperty)) + { + var propertyValue = owningFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +408,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +432,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,6 +448,39 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the owningRelationship Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("referencedFeature"u8, out var referencedFeatureProperty)) { if (referencedFeatureProperty.ValueKind == JsonValueKind.Null) @@ -280,9 +490,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (referencedFeatureProperty.TryGetProperty("@id"u8, out var referencedFeatureIdProperty)) + if (referencedFeatureProperty.TryGetProperty("@id"u8, out var referencedFeatureExternalIdProperty)) { - var propertyValue = referencedFeatureIdProperty.GetString(); + var propertyValue = referencedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -296,13 +506,67 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the referencedFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("referencingFeature"u8, out var referencingFeatureProperty)) + { + if (referencingFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.referencingFeature = Guid.Empty; + logger.LogDebug($"the ReferenceSubsetting.referencingFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (referencingFeatureProperty.TryGetProperty("@id"u8, out var referencingFeatureExternalIdProperty)) + { + var propertyValue = referencingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.referencingFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the referencingFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -325,9 +589,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (specificProperty.TryGetProperty("@id"u8, out var specificIdProperty)) + if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) { - var propertyValue = specificIdProperty.GetString(); + var propertyValue = specificExternalIdProperty.GetString(); if (propertyValue != null) { @@ -350,9 +614,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureIdProperty)) + if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureExternalIdProperty)) { - var propertyValue = subsettedFeatureIdProperty.GetString(); + var propertyValue = subsettedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -375,9 +639,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial } else { - if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureIdProperty)) + if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureExternalIdProperty)) { - var propertyValue = subsettingFeatureIdProperty.GetString(); + var propertyValue = subsettingFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -395,9 +659,9 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -411,6 +675,26 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the target Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceUsageDeSerializer.cs index 0e215e822..38d1ca304 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IReferenceUsage DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The ReferenceUsageDeSerializer can only be used to deserialize objects of type IReferenceUsage, a {@type.GetString()} was provided"); } - IReferenceUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.ReferenceUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.ReferenceUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IReferenceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,215 +164,1983 @@ internal static IReferenceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isDerived Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the ReferenceUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the input Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RenderingDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RenderingDefinitionDeSerializer.cs index d5131762d..4a03cd4ff 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RenderingDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RenderingDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IRenderingDefinition DeSerialize(JsonElement jsonElement, Serial throw new InvalidOperationException($"The RenderingDefinitionDeSerializer can only be used to deserialize objects of type IRenderingDefinition, a {@type.GetString()} was provided"); } - IRenderingDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.RenderingDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.RenderingDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,86 @@ internal static IRenderingDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the declaredShortName Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,166 @@ internal static IRenderingDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the elementId Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IRenderingDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isAbstract Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +422,18 @@ internal static IRenderingDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isIndividual Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,48 +458,1195 @@ internal static IRenderingDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isVariation Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("rendering"u8, out var renderingProperty)) + { + foreach (var arrayItem in renderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var renderingExternalIdProperty)) + { + var propertyValue = renderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.rendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the rendering Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the RenderingDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RenderingUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RenderingUsageDeSerializer.cs index 9f289c80a..ab78a79b6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RenderingUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RenderingUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IRenderingUsage DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The RenderingUsageDeSerializer can only be used to deserialize objects of type IRenderingUsage, a {@type.GetString()} was provided"); } - IRenderingUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.RenderingUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.RenderingUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IRenderingUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +164,2112 @@ internal static IRenderingUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isDerived Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the RenderingUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the input Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } } else { - logger.LogDebug("the portionKind Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the isAbstract Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("itemDefinition"u8, out var itemDefinitionProperty)) + { + foreach (var arrayItem in itemDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var itemDefinitionExternalIdProperty)) + { + var propertyValue = itemDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.itemDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the itemDefinition Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("partDefinition"u8, out var partDefinitionProperty)) + { + foreach (var arrayItem in partDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var partDefinitionExternalIdProperty)) + { + var propertyValue = partDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.partDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the partDefinition Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("renderingDefinition"u8, out var renderingDefinitionProperty)) + { + if (renderingDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.renderingDefinition = null; + } + else + { + if (renderingDefinitionProperty.TryGetProperty("@id"u8, out var renderingDefinitionExternalIdProperty)) + { + var propertyValue = renderingDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.renderingDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the renderingDefinition Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementConstraintMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementConstraintMembershipDeSerializer.cs index 5cfc6e904..b65ae7f36 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementConstraintMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementConstraintMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle throw new InvalidOperationException($"The RequirementConstraintMembershipDeSerializer can only be used to deserialize objects of type IRequirementConstraintMembership, a {@type.GetString()} was provided"); } - IRequirementConstraintMembership dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.RequirementConstraintMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.RequirementConstraintMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle logger.LogDebug("the declaredShortName Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle logger.LogDebug("the isImpliedIncluded Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("kind"u8, out var kindProperty)) { dtoInstance.Kind = RequirementConstraintKindDeSerializer.Deserialize(kindProperty.GetString()); @@ -176,9 +208,9 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -192,6 +224,20 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle logger.LogDebug("the memberElement Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -201,6 +247,31 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle logger.LogDebug("the memberName Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the RequirementConstraintMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -210,13 +281,169 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle logger.LogDebug("the memberShortName Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + if (ownedConstraintProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConstraint = Guid.Empty; + logger.LogDebug($"the RequirementConstraintMembership.ownedConstraint property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedConstraintProperty.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the RequirementConstraintMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the RequirementConstraintMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -234,9 +461,9 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -250,6 +477,78 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle logger.LogDebug("the ownedRelationship Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -258,9 +557,9 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -282,9 +581,9 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -298,13 +597,101 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle logger.LogDebug("the owningRelationship Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the RequirementConstraintMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("referencedConstraint"u8, out var referencedConstraintProperty)) + { + if (referencedConstraintProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.referencedConstraint = Guid.Empty; + logger.LogDebug($"the RequirementConstraintMembership.referencedConstraint property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (referencedConstraintProperty.TryGetProperty("@id"u8, out var referencedConstraintExternalIdProperty)) + { + var propertyValue = referencedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.referencedConstraint = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the referencedConstraint Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -322,9 +709,9 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -338,6 +725,26 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle logger.LogDebug("the target Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementDefinitionDeSerializer.cs index 398b8b825..63bc63656 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IRequirementDefinition DeSerialize(JsonElement jsonElement, Seri throw new InvalidOperationException($"The RequirementDefinitionDeSerializer can only be used to deserialize objects of type IRequirementDefinition, a {@type.GetString()} was provided"); } - IRequirementDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.RequirementDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.RequirementDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IRequirementDefinition DeSerialize(JsonElement jsonElement, Seri } } + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,26 @@ internal static IRequirementDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the aliasIds Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("assumedConstraint"u8, out var assumedConstraintProperty)) + { + foreach (var arrayItem in assumedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var assumedConstraintExternalIdProperty)) + { + var propertyValue = assumedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.assumedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the assumedConstraint Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +160,86 @@ internal static IRequirementDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the declaredShortName Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +254,206 @@ internal static IRequirementDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the elementId Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("expression"u8, out var expressionProperty)) + { + foreach (var arrayItem in expressionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var expressionExternalIdProperty)) + { + var propertyValue = expressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.expression.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the expression Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("framedConcern"u8, out var framedConcernProperty)) + { + foreach (var arrayItem in framedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var framedConcernExternalIdProperty)) + { + var propertyValue = framedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.framedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the framedConcern Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +466,18 @@ internal static IRequirementDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isAbstract Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +502,30 @@ internal static IRequirementDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isIndividual Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,37 +550,1046 @@ internal static IRequirementDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isVariation Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; - } + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -238,6 +1603,35 @@ internal static IRequirementDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the owningRelationship Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty)) { dtoInstance.ReqId = reqIdProperty.GetString(); @@ -247,6 +1641,242 @@ internal static IRequirementDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the reqId Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("requiredConstraint"u8, out var requiredConstraintProperty)) + { + foreach (var arrayItem in requiredConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var requiredConstraintExternalIdProperty)) + { + var propertyValue = requiredConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.requiredConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the requiredConstraint Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the RequirementDefinition.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("stakeholderParameter"u8, out var stakeholderParameterProperty)) + { + foreach (var arrayItem in stakeholderParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stakeholderParameterExternalIdProperty)) + { + var propertyValue = stakeholderParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.stakeholderParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the stakeholderParameter Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the RequirementDefinition.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("text"u8, out var textProperty)) + { + foreach (var arrayItem in textProperty.EnumerateArray()) + { + var propertyValue = arrayItem.GetString(); + + if (propertyValue != null) + { + dtoInstance.text.Add(propertyValue); + } + } + } + else + { + logger.LogDebug("the text Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs index f83fba630..c14e6a734 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa throw new InvalidOperationException($"The RequirementUsageDeSerializer can only be used to deserialize objects of type IRequirementUsage, a {@type.GetString()} was provided"); } - IRequirementUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.RequirementUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.RequirementUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa } } + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,263 +122,2414 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the aliasIds Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("assumedConstraint"u8, out var assumedConstraintProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in assumedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var assumedConstraintExternalIdProperty)) + { + var propertyValue = assumedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.assumedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the assumedConstraint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("constraintDefinition"u8, out var constraintDefinitionProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + if (constraintDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.constraintDefinition = null; + } + else + { + if (constraintDefinitionProperty.TryGetProperty("@id"u8, out var constraintDefinitionExternalIdProperty)) + { + var propertyValue = constraintDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.constraintDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the constraintDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + dtoInstance.DeclaredName = declaredNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) + { + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isIndividual Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the RequirementUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("framedConcern"u8, out var framedConcernProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in framedConcernProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var framedConcernExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = framedConcernExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.framedConcern.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the framedConcern Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.function = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = functionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.function = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty)) - { - dtoInstance.ReqId = reqIdProperty.GetString(); - } - else + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - logger.LogDebug("the reqId Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the individualDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) + { + if (predicateProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.predicate = null; + } + else + { + if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) + { + var propertyValue = predicateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.predicate = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the predicate Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty)) + { + dtoInstance.ReqId = reqIdProperty.GetString(); + } + else + { + logger.LogDebug("the reqId Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("requiredConstraint"u8, out var requiredConstraintProperty)) + { + foreach (var arrayItem in requiredConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var requiredConstraintExternalIdProperty)) + { + var propertyValue = requiredConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.requiredConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the requiredConstraint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("requirementDefinition"u8, out var requirementDefinitionProperty)) + { + if (requirementDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.requirementDefinition = null; + } + else + { + if (requirementDefinitionProperty.TryGetProperty("@id"u8, out var requirementDefinitionExternalIdProperty)) + { + var propertyValue = requirementDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.requirementDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the requirementDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the RequirementUsage.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("stakeholderParameter"u8, out var stakeholderParameterProperty)) + { + foreach (var arrayItem in stakeholderParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stakeholderParameterExternalIdProperty)) + { + var propertyValue = stakeholderParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.stakeholderParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the stakeholderParameter Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the RequirementUsage.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("text"u8, out var textProperty)) + { + foreach (var arrayItem in textProperty.EnumerateArray()) + { + var propertyValue = arrayItem.GetString(); + + if (propertyValue != null) + { + dtoInstance.text.Add(propertyValue); + } + } + } + else + { + logger.LogDebug("the text Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementVerificationMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementVerificationMembershipDeSerializer.cs index 8a715d761..359dbd85f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementVerificationMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementVerificationMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE throw new InvalidOperationException($"The RequirementVerificationMembershipDeSerializer can only be used to deserialize objects of type IRequirementVerificationMembership, a {@type.GetString()} was provided"); } - IRequirementVerificationMembership dtoInstance = new SysML2.NET.Core.DTO.Systems.VerificationCases.RequirementVerificationMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.VerificationCases.RequirementVerificationMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the declaredShortName Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the isImpliedIncluded Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("kind"u8, out var kindProperty)) { dtoInstance.Kind = RequirementConstraintKindDeSerializer.Deserialize(kindProperty.GetString()); @@ -176,9 +208,9 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -192,6 +224,20 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the memberElement Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -201,6 +247,31 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the memberName Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the RequirementVerificationMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -210,13 +281,169 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the memberShortName Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + if (ownedConstraintProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConstraint = Guid.Empty; + logger.LogDebug($"the RequirementVerificationMembership.ownedConstraint property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedConstraintProperty.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the RequirementVerificationMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the RequirementVerificationMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -234,9 +461,9 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -250,6 +477,103 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the ownedRelationship Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + if (ownedRequirementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedRequirement = Guid.Empty; + logger.LogDebug($"the RequirementVerificationMembership.ownedRequirement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedRequirementProperty.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -258,9 +582,9 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -282,9 +606,9 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -298,13 +622,101 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the owningRelationship Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the RequirementVerificationMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("referencedConstraint"u8, out var referencedConstraintProperty)) + { + if (referencedConstraintProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.referencedConstraint = Guid.Empty; + logger.LogDebug($"the RequirementVerificationMembership.referencedConstraint property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (referencedConstraintProperty.TryGetProperty("@id"u8, out var referencedConstraintExternalIdProperty)) + { + var propertyValue = referencedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.referencedConstraint = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the referencedConstraint Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -322,9 +734,9 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -338,6 +750,51 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the target Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("verifiedRequirement"u8, out var verifiedRequirementProperty)) + { + if (verifiedRequirementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.verifiedRequirement = Guid.Empty; + logger.LogDebug($"the RequirementVerificationMembership.verifiedRequirement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (verifiedRequirementProperty.TryGetProperty("@id"u8, out var verifiedRequirementExternalIdProperty)) + { + var propertyValue = verifiedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.verifiedRequirement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the verifiedRequirement Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ResultExpressionMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ResultExpressionMembershipDeSerializer.cs index c6373f35f..89706c57b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ResultExpressionMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ResultExpressionMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, throw new InvalidOperationException($"The ResultExpressionMembershipDeSerializer can only be used to deserialize objects of type IResultExpressionMembership, a {@type.GetString()} was provided"); } - IResultExpressionMembership dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.ResultExpressionMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.ResultExpressionMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the declaredShortName Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the isImpliedIncluded Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the memberElement Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the memberName Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the ResultExpressionMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,144 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the memberShortName Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the ResultExpressionMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the ResultExpressionMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +427,9 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +443,103 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the ownedRelationship Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("ownedResultExpression"u8, out var ownedResultExpressionProperty)) + { + if (ownedResultExpressionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedResultExpression = Guid.Empty; + logger.LogDebug($"the ResultExpressionMembership.ownedResultExpression property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedResultExpressionProperty.TryGetProperty("@id"u8, out var ownedResultExpressionExternalIdProperty)) + { + var propertyValue = ownedResultExpressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedResultExpression = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedResultExpression Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +548,9 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +572,9 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +588,76 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the owningRelationship Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the ResultExpressionMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +675,9 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +691,26 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the target Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReturnParameterMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReturnParameterMembershipDeSerializer.cs index 83f01a465..fa8b3468b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReturnParameterMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReturnParameterMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, throw new InvalidOperationException($"The ReturnParameterMembershipDeSerializer can only be used to deserialize objects of type IReturnParameterMembership, a {@type.GetString()} was provided"); } - IReturnParameterMembership dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.ReturnParameterMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Functions.ReturnParameterMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the declaredShortName Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the isImpliedIncluded Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the memberElement Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the memberName Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the ReturnParameterMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,169 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the memberShortName Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the ReturnParameterMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the ReturnParameterMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberParameter"u8, out var ownedMemberParameterProperty)) + { + if (ownedMemberParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberParameter = Guid.Empty; + logger.LogDebug($"the ReturnParameterMembership.ownedMemberParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberParameterProperty.TryGetProperty("@id"u8, out var ownedMemberParameterExternalIdProperty)) + { + var propertyValue = ownedMemberParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberParameter Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +452,9 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +468,78 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the ownedRelationship Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +548,9 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +572,9 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +588,76 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the owningRelationship Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the ReturnParameterMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +675,9 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +691,26 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the target Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SatisfyRequirementUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SatisfyRequirementUsageDeSerializer.cs index 9ae82cc2c..eeac4bca6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SatisfyRequirementUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SatisfyRequirementUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static ISatisfyRequirementUsage DeSerialize(JsonElement jsonElement, Se throw new InvalidOperationException($"The SatisfyRequirementUsageDeSerializer can only be used to deserialize objects of type ISatisfyRequirementUsage, a {@type.GetString()} was provided"); } - ISatisfyRequirementUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.SatisfyRequirementUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.SatisfyRequirementUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static ISatisfyRequirementUsage DeSerialize(JsonElement jsonElement, Se } } + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,275 +122,2501 @@ internal static ISatisfyRequirementUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the aliasIds Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("assertedConstraint"u8, out var assertedConstraintProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + if (assertedConstraintProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.assertedConstraint = Guid.Empty; + logger.LogDebug($"the SatisfyRequirementUsage.assertedConstraint property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (assertedConstraintProperty.TryGetProperty("@id"u8, out var assertedConstraintExternalIdProperty)) + { + var propertyValue = assertedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.assertedConstraint = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the assertedConstraint Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("assumedConstraint"u8, out var assumedConstraintProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in assumedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var assumedConstraintExternalIdProperty)) + { + var propertyValue = assumedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.assumedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the assumedConstraint Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("constraintDefinition"u8, out var constraintDefinitionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (constraintDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.constraintDefinition = null; + } + else + { + if (constraintDefinitionProperty.TryGetProperty("@id"u8, out var constraintDefinitionExternalIdProperty)) + { + var propertyValue = constraintDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.constraintDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the constraintDefinition Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isConstant Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); - } + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); } else { - logger.LogDebug("the isDerived Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredShortName Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isNegated"u8, out var isNegatedProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isNegatedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsNegated = isNegatedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isNegated Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isOrdered Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isSufficient Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = featureMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the SatisfyRequirementUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = featureTargetExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.featureTarget = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty)) + if (jsonElement.TryGetProperty("framedConcern"u8, out var framedConcernProperty)) { - dtoInstance.ReqId = reqIdProperty.GetString(); + foreach (var arrayItem in framedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var framedConcernExternalIdProperty)) + { + var propertyValue = framedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.framedConcern.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the reqId Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the framedConcern Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) + { + if (functionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the function Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) + { + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the individualDefinition Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isNegated"u8, out var isNegatedProperty)) + { + if (isNegatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsNegated = isNegatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isNegated Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) + { + if (predicateProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.predicate = null; + } + else + { + if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) + { + var propertyValue = predicateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.predicate = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the predicate Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty)) + { + dtoInstance.ReqId = reqIdProperty.GetString(); + } + else + { + logger.LogDebug("the reqId Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("requiredConstraint"u8, out var requiredConstraintProperty)) + { + foreach (var arrayItem in requiredConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var requiredConstraintExternalIdProperty)) + { + var propertyValue = requiredConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.requiredConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the requiredConstraint Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("requirementDefinition"u8, out var requirementDefinitionProperty)) + { + if (requirementDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.requirementDefinition = null; + } + else + { + if (requirementDefinitionProperty.TryGetProperty("@id"u8, out var requirementDefinitionExternalIdProperty)) + { + var propertyValue = requirementDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.requirementDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the requirementDefinition Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the SatisfyRequirementUsage.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("satisfiedRequirement"u8, out var satisfiedRequirementProperty)) + { + if (satisfiedRequirementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.satisfiedRequirement = Guid.Empty; + logger.LogDebug($"the SatisfyRequirementUsage.satisfiedRequirement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (satisfiedRequirementProperty.TryGetProperty("@id"u8, out var satisfiedRequirementExternalIdProperty)) + { + var propertyValue = satisfiedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.satisfiedRequirement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the satisfiedRequirement Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("satisfyingFeature"u8, out var satisfyingFeatureProperty)) + { + if (satisfyingFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.satisfyingFeature = Guid.Empty; + logger.LogDebug($"the SatisfyRequirementUsage.satisfyingFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (satisfyingFeatureProperty.TryGetProperty("@id"u8, out var satisfyingFeatureExternalIdProperty)) + { + var propertyValue = satisfyingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.satisfyingFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the satisfyingFeature Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("stakeholderParameter"u8, out var stakeholderParameterProperty)) + { + foreach (var arrayItem in stakeholderParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stakeholderParameterExternalIdProperty)) + { + var propertyValue = stakeholderParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.stakeholderParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the stakeholderParameter Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the SatisfyRequirementUsage.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("text"u8, out var textProperty)) + { + foreach (var arrayItem in textProperty.EnumerateArray()) + { + var propertyValue = arrayItem.GetString(); + + if (propertyValue != null) + { + dtoInstance.text.Add(propertyValue); + } + } + } + else + { + logger.LogDebug("the text Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs index 383d41104..8aa221790 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static ISelectExpression DeSerialize(JsonElement jsonElement, Serializa throw new InvalidOperationException($"The SelectExpressionDeSerializer can only be used to deserialize objects of type ISelectExpression, a {@type.GetString()} was provided"); } - ISelectExpression dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.SelectExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Expressions.SelectExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,90 @@ internal static ISelectExpression DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the aliasIds Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("argument"u8, out var argumentProperty)) + { + foreach (var arrayItem in argumentProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var argumentExternalIdProperty)) + { + var propertyValue = argumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.argument.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the argument Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,217 +204,1379 @@ internal static ISelectExpression DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the declaredShortName Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isComposite Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the SelectExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - var propertyValue = operatorProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.Operator = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the operator Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("instantiatedType"u8, out var instantiatedTypeProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (instantiatedTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.instantiatedType = Guid.Empty; + logger.LogDebug($"the SelectExpression.instantiatedType property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (instantiatedTypeProperty.TryGetProperty("@id"u8, out var instantiatedTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = instantiatedTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.instantiatedType = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the instantiatedType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty)) + { + var propertyValue = operatorProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Operator = propertyValue; + } + } + else + { + logger.LogDebug("the operator Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the SelectExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SendActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SendActionUsageDeSerializer.cs index 4b1b39681..e03647c31 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SendActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SendActionUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static ISendActionUsage DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The SendActionUsageDeSerializer can only be used to deserialize objects of type ISendActionUsage, a {@type.GetString()} was provided"); } - ISendActionUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.SendActionUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.SendActionUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static ISendActionUsage DeSerialize(JsonElement jsonElement, Serializat } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,70 @@ internal static ISendActionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +204,2141 @@ internal static ISendActionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isEnd Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the SendActionUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("payloadArgument"u8, out var payloadArgumentProperty)) + { + if (payloadArgumentProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.payloadArgument = Guid.Empty; + logger.LogDebug($"the SendActionUsage.payloadArgument property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (payloadArgumentProperty.TryGetProperty("@id"u8, out var payloadArgumentExternalIdProperty)) + { + var propertyValue = payloadArgumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.payloadArgument = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the payloadArgument Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("receiverArgument"u8, out var receiverArgumentProperty)) + { + if (receiverArgumentProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.receiverArgument = null; + } + else + { + if (receiverArgumentProperty.TryGetProperty("@id"u8, out var receiverArgumentExternalIdProperty)) + { + var propertyValue = receiverArgumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.receiverArgument = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the receiverArgument Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("senderArgument"u8, out var senderArgumentProperty)) + { + if (senderArgumentProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.senderArgument = null; + } + else + { + if (senderArgumentProperty.TryGetProperty("@id"u8, out var senderArgumentExternalIdProperty)) + { + var propertyValue = senderArgumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.senderArgument = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the senderArgument Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SpecializationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SpecializationDeSerializer.cs index 3fdff0267..67a6ce0a3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SpecializationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SpecializationDeSerializer.cs @@ -69,7 +69,7 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The SpecializationDeSerializer can only be used to deserialize objects of type ISpecialization, a {@type.GetString()} was provided"); } - ISpecialization dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Specialization(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Specialization(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the Specialization: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Specialization: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,9 +163,9 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati } else { - if (generalProperty.TryGetProperty("@id"u8, out var generalIdProperty)) + if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) { - var propertyValue = generalIdProperty.GetString(); + var propertyValue = generalExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,13 +203,74 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isImpliedIncluded Json property was not found in the Specialization: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Specialization: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Specialization: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Specialization: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Specialization: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +288,9 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +304,78 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the ownedRelationship Json property was not found in the Specialization: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Specialization: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Specialization: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Specialization: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +384,9 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +408,9 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,13 +424,75 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the owningRelationship Json property was not found in the Specialization: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Specialization: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Specialization: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Specialization: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Specialization: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -300,9 +515,9 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati } else { - if (specificProperty.TryGetProperty("@id"u8, out var specificIdProperty)) + if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) { - var propertyValue = specificIdProperty.GetString(); + var propertyValue = specificExternalIdProperty.GetString(); if (propertyValue != null) { @@ -320,9 +535,9 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -336,6 +551,26 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the target Json property was not found in the Specialization: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Specialization: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StakeholderMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StakeholderMembershipDeSerializer.cs index 3e1efbb46..9e152946f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StakeholderMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StakeholderMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri throw new InvalidOperationException($"The StakeholderMembershipDeSerializer can only be used to deserialize objects of type IStakeholderMembership, a {@type.GetString()} was provided"); } - IStakeholderMembership dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.StakeholderMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.StakeholderMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the declaredShortName Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isImpliedIncluded Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the memberElement Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the memberName Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the StakeholderMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,169 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the memberShortName Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the StakeholderMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the StakeholderMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberParameter"u8, out var ownedMemberParameterProperty)) + { + if (ownedMemberParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberParameter = Guid.Empty; + logger.LogDebug($"the StakeholderMembership.ownedMemberParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberParameterProperty.TryGetProperty("@id"u8, out var ownedMemberParameterExternalIdProperty)) + { + var propertyValue = ownedMemberParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberParameter Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +452,9 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +468,103 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the ownedRelationship Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("ownedStakeholderParameter"u8, out var ownedStakeholderParameterProperty)) + { + if (ownedStakeholderParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedStakeholderParameter = Guid.Empty; + logger.LogDebug($"the StakeholderMembership.ownedStakeholderParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedStakeholderParameterProperty.TryGetProperty("@id"u8, out var ownedStakeholderParameterExternalIdProperty)) + { + var propertyValue = ownedStakeholderParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedStakeholderParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedStakeholderParameter Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +573,9 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +597,9 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +613,76 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the owningRelationship Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the StakeholderMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +700,9 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +716,26 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the target Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateDefinitionDeSerializer.cs index ae5253d04..b579ed0f8 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IStateDefinition DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The StateDefinitionDeSerializer can only be used to deserialize objects of type IStateDefinition, a {@type.GetString()} was provided"); } - IStateDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.States.StateDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.States.StateDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IStateDefinition DeSerialize(JsonElement jsonElement, Serializat } } + if (jsonElement.TryGetProperty("action"u8, out var actionProperty)) + { + foreach (var arrayItem in actionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionExternalIdProperty)) + { + var propertyValue = actionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.action.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the action Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -120,6 +140,110 @@ internal static IStateDefinition DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("doAction"u8, out var doActionProperty)) + { + if (doActionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.doAction = null; + } + else + { + if (doActionProperty.TryGetProperty("@id"u8, out var doActionExternalIdProperty)) + { + var propertyValue = doActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.doAction = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the doAction Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +258,214 @@ internal static IStateDefinition DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the elementId Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("entryAction"u8, out var entryActionProperty)) + { + if (entryActionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.entryAction = null; + } + else + { + if (entryActionProperty.TryGetProperty("@id"u8, out var entryActionExternalIdProperty)) + { + var propertyValue = entryActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.entryAction = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the entryAction Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("exitAction"u8, out var exitActionProperty)) + { + if (exitActionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.exitAction = null; + } + else + { + if (exitActionProperty.TryGetProperty("@id"u8, out var exitActionExternalIdProperty)) + { + var propertyValue = exitActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.exitAction = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the exitAction Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +478,18 @@ internal static IStateDefinition DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isAbstract Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +514,18 @@ internal static IStateDefinition DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isIndividual Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isParallel"u8, out var isParallelProperty)) { if (isParallelProperty.ValueKind != JsonValueKind.Null) @@ -206,37 +562,1046 @@ internal static IStateDefinition DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isVariation Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -250,6 +1615,184 @@ internal static IStateDefinition DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the owningRelationship Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("state"u8, out var stateProperty)) + { + foreach (var arrayItem in stateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stateExternalIdProperty)) + { + var propertyValue = stateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.state.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the state Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateSubactionMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateSubactionMembershipDeSerializer.cs index d4d6e5be6..eda93d91f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateSubactionMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateSubactionMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S throw new InvalidOperationException($"The StateSubactionMembershipDeSerializer can only be used to deserialize objects of type IStateSubactionMembership, a {@type.GetString()} was provided"); } - IStateSubactionMembership dtoInstance = new SysML2.NET.Core.DTO.Systems.States.StateSubactionMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.States.StateSubactionMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,31 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S } } + if (jsonElement.TryGetProperty("action"u8, out var actionProperty)) + { + if (actionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.action = Guid.Empty; + logger.LogDebug($"the StateSubactionMembership.action property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (actionProperty.TryGetProperty("@id"u8, out var actionExternalIdProperty)) + { + var propertyValue = actionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.action = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the action Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -120,6 +145,26 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S logger.LogDebug("the declaredShortName Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +203,18 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S logger.LogDebug("the isImpliedIncluded Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("kind"u8, out var kindProperty)) { dtoInstance.Kind = StateSubactionKindDeSerializer.Deserialize(kindProperty.GetString()); @@ -176,9 +233,9 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -192,6 +249,20 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S logger.LogDebug("the memberElement Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -201,6 +272,31 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S logger.LogDebug("the memberName Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the StateSubactionMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -210,13 +306,144 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S logger.LogDebug("the memberShortName Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the StateSubactionMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the StateSubactionMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -234,9 +461,9 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -250,6 +477,78 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S logger.LogDebug("the ownedRelationship Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -258,9 +557,9 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -282,9 +581,9 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -298,13 +597,76 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S logger.LogDebug("the owningRelationship Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the StateSubactionMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -322,9 +684,9 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -338,6 +700,26 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S logger.LogDebug("the target Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateUsageDeSerializer.cs index 0db0e6519..a33757d08 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IStateUsage DeSerialize(JsonElement jsonElement, SerializationMo throw new InvalidOperationException($"The StateUsageDeSerializer can only be used to deserialize objects of type IStateUsage, a {@type.GetString()} was provided"); } - IStateUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.States.StateUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.States.StateUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IStateUsage DeSerialize(JsonElement jsonElement, SerializationMo } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,70 @@ internal static IStateUsage DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the aliasIds Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,248 +204,2172 @@ internal static IStateUsage DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the declaredShortName Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("doAction"u8, out var doActionProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (doActionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.doAction = null; + } + else + { + if (doActionProperty.TryGetProperty("@id"u8, out var doActionExternalIdProperty)) + { + var propertyValue = doActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.doAction = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the doAction Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isParallel"u8, out var isParallelProperty)) + if (jsonElement.TryGetProperty("entryAction"u8, out var entryActionProperty)) { - if (isParallelProperty.ValueKind != JsonValueKind.Null) + if (entryActionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsParallel = isParallelProperty.GetBoolean(); + dtoInstance.entryAction = null; + } + else + { + if (entryActionProperty.TryGetProperty("@id"u8, out var entryActionExternalIdProperty)) + { + var propertyValue = entryActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.entryAction = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isParallel Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the entryAction Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("exitAction"u8, out var exitActionProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (exitActionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.exitAction = null; + } + else + { + if (exitActionProperty.TryGetProperty("@id"u8, out var exitActionExternalIdProperty)) + { + var propertyValue = exitActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.exitAction = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the exitAction Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the StateUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.individualDefinition = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isParallel"u8, out var isParallelProperty)) + { + if (isParallelProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsParallel = isParallelProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isParallel Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("stateDefinition"u8, out var stateDefinitionProperty)) + { + foreach (var arrayItem in stateDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stateDefinitionExternalIdProperty)) + { + var propertyValue = stateDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.stateDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the stateDefinition Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the StateUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StepDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StepDeSerializer.cs index dbd7a22d2..787c6f8a1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StepDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StepDeSerializer.cs @@ -69,7 +69,7 @@ internal static IStep DeSerialize(JsonElement jsonElement, SerializationModeKind throw new InvalidOperationException($"The StepDeSerializer can only be used to deserialize objects of type IStep, a {@type.GetString()} was provided"); } - IStep dtoInstance = new SysML2.NET.Core.DTO.Kernel.Behaviors.Step(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Behaviors.Step(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,197 +102,1215 @@ internal static IStep DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the aliasIds Json property was not found in the Step: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the Step: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the declaredName Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + { + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + { + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ElementId = propertyValue; + } + } + else + { + logger.LogDebug("the elementId Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the Step.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedIntersecting Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedMember Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedMembership Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedRedefinition Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedRelationship Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSpecialization Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSubsetting Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTyping Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedUnioning Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (ownerProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the owner Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the owningFeatureMembership Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the owningMembership Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = owningNamespaceExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.owningNamespace = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Step: { Id }", dtoInstance.Id); + logger.LogDebug("the owningNamespace Json property was not found in the Step: { Id }", dtoInstance.Id); } if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) @@ -303,9 +1321,9 @@ internal static IStep DeSerialize(JsonElement jsonElement, SerializationModeKind } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -319,6 +1337,128 @@ internal static IStep DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the owningRelationship Json property was not found in the Step: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the Step: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Step: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StructureDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StructureDeSerializer.cs index 2d090456f..9a11a12df 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StructureDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StructureDeSerializer.cs @@ -69,7 +69,7 @@ internal static IStructure DeSerialize(JsonElement jsonElement, SerializationMod throw new InvalidOperationException($"The StructureDeSerializer can only be used to deserialize objects of type IStructure, a {@type.GetString()} was provided"); } - IStructure dtoInstance = new SysML2.NET.Core.DTO.Kernel.Structures.Structure(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Structures.Structure(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,66 @@ internal static IStructure DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the Structure: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +194,166 @@ internal static IStructure DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the elementId Json property was not found in the Structure: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +366,18 @@ internal static IStructure DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isAbstract Json property was not found in the Structure: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -158,6 +390,18 @@ internal static IStructure DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isImpliedIncluded Json property was not found in the Structure: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -170,48 +414,575 @@ internal static IStructure DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isSufficient Json property was not found in the Structure: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Structure: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Structure: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Structure: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Structure: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Structure: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs index f0ba4f1c0..d3b6c8591 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs @@ -69,7 +69,7 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The SubclassificationDeSerializer can only be used to deserialize objects of type ISubclassification, a {@type.GetString()} was provided"); } - ISubclassification dtoInstance = new SysML2.NET.Core.DTO.Core.Classifiers.Subclassification(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Classifiers.Subclassification(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,9 +163,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ } else { - if (generalProperty.TryGetProperty("@id"u8, out var generalIdProperty)) + if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) { - var propertyValue = generalIdProperty.GetString(); + var propertyValue = generalExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,13 +203,74 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isImpliedIncluded Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +288,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +304,102 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the ownedRelationship Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningClassifier"u8, out var owningClassifierProperty)) + { + if (owningClassifierProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningClassifier = null; + } + else + { + if (owningClassifierProperty.TryGetProperty("@id"u8, out var owningClassifierExternalIdProperty)) + { + var propertyValue = owningClassifierExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningClassifier = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningClassifier Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +408,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +432,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,13 +448,75 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the owningRelationship Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -300,9 +539,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ } else { - if (specificProperty.TryGetProperty("@id"u8, out var specificIdProperty)) + if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) { - var propertyValue = specificIdProperty.GetString(); + var propertyValue = specificExternalIdProperty.GetString(); if (propertyValue != null) { @@ -325,9 +564,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ } else { - if (subclassifierProperty.TryGetProperty("@id"u8, out var subclassifierIdProperty)) + if (subclassifierProperty.TryGetProperty("@id"u8, out var subclassifierExternalIdProperty)) { - var propertyValue = subclassifierIdProperty.GetString(); + var propertyValue = subclassifierExternalIdProperty.GetString(); if (propertyValue != null) { @@ -350,9 +589,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ } else { - if (superclassifierProperty.TryGetProperty("@id"u8, out var superclassifierIdProperty)) + if (superclassifierProperty.TryGetProperty("@id"u8, out var superclassifierExternalIdProperty)) { - var propertyValue = superclassifierIdProperty.GetString(); + var propertyValue = superclassifierExternalIdProperty.GetString(); if (propertyValue != null) { @@ -370,9 +609,9 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -386,6 +625,26 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the target Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Subclassification: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubjectMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubjectMembershipDeSerializer.cs index 6887aea85..28a417462 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubjectMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubjectMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The SubjectMembershipDeSerializer can only be used to deserialize objects of type ISubjectMembership, a {@type.GetString()} was provided"); } - ISubjectMembership dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.SubjectMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Requirements.SubjectMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isImpliedIncluded Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the memberElement Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the memberName Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the SubjectMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,169 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the memberShortName Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the SubjectMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the SubjectMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberParameter"u8, out var ownedMemberParameterProperty)) + { + if (ownedMemberParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberParameter = Guid.Empty; + logger.LogDebug($"the SubjectMembership.ownedMemberParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberParameterProperty.TryGetProperty("@id"u8, out var ownedMemberParameterExternalIdProperty)) + { + var propertyValue = ownedMemberParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberParameter Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +452,9 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +468,103 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the ownedRelationship Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("ownedSubjectParameter"u8, out var ownedSubjectParameterProperty)) + { + if (ownedSubjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedSubjectParameter = Guid.Empty; + logger.LogDebug($"the SubjectMembership.ownedSubjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedSubjectParameterProperty.TryGetProperty("@id"u8, out var ownedSubjectParameterExternalIdProperty)) + { + var propertyValue = ownedSubjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedSubjectParameter Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +573,9 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +597,9 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +613,76 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the owningRelationship Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the SubjectMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +700,9 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +716,26 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the target Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubsettingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubsettingDeSerializer.cs index d1a97e9fb..7fc7dda6b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubsettingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubsettingDeSerializer.cs @@ -69,7 +69,7 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo throw new InvalidOperationException($"The SubsettingDeSerializer can only be used to deserialize objects of type ISubsetting, a {@type.GetString()} was provided"); } - ISubsetting dtoInstance = new SysML2.NET.Core.DTO.Core.Features.Subsetting(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Features.Subsetting(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the declaredShortName Json property was not found in the Subsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,9 +163,9 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (generalProperty.TryGetProperty("@id"u8, out var generalIdProperty)) + if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) { - var propertyValue = generalIdProperty.GetString(); + var propertyValue = generalExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,13 +203,74 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isImpliedIncluded Json property was not found in the Subsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -207,9 +288,9 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -223,6 +304,102 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the ownedRelationship Json property was not found in the Subsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeature"u8, out var owningFeatureProperty)) + { + if (owningFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeature = null; + } + else + { + if (owningFeatureProperty.TryGetProperty("@id"u8, out var owningFeatureExternalIdProperty)) + { + var propertyValue = owningFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeature Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -231,9 +408,9 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -255,9 +432,9 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -271,13 +448,75 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the owningRelationship Json property was not found in the Subsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -300,9 +539,9 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (specificProperty.TryGetProperty("@id"u8, out var specificIdProperty)) + if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) { - var propertyValue = specificIdProperty.GetString(); + var propertyValue = specificExternalIdProperty.GetString(); if (propertyValue != null) { @@ -325,9 +564,9 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureIdProperty)) + if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureExternalIdProperty)) { - var propertyValue = subsettedFeatureIdProperty.GetString(); + var propertyValue = subsettedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -350,9 +589,9 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo } else { - if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureIdProperty)) + if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureExternalIdProperty)) { - var propertyValue = subsettingFeatureIdProperty.GetString(); + var propertyValue = subsettingFeatureExternalIdProperty.GetString(); if (propertyValue != null) { @@ -370,9 +609,9 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -386,6 +625,26 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the target Json property was not found in the Subsetting: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Subsetting: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionAsUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionAsUsageDeSerializer.cs index 197c64d8b..53ad56008 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionAsUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionAsUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static ISuccessionAsUsage DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The SuccessionAsUsageDeSerializer can only be used to deserialize objects of type ISuccessionAsUsage, a {@type.GetString()} was provided"); } - ISuccessionAsUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Connections.SuccessionAsUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Connections.SuccessionAsUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,329 +102,2289 @@ internal static ISuccessionAsUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) + { + foreach (var arrayItem in associationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) + { + var propertyValue = associationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.association.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the association Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) + { + foreach (var arrayItem in connectorEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var connectorEndExternalIdProperty)) + { + var propertyValue = connectorEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectorEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the connectorEnd Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + dtoInstance.DeclaredName = declaredNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredName Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty)) + { + if (defaultFeaturingTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.defaultFeaturingType = null; + } + else + { + if (defaultFeaturingTypeProperty.TryGetProperty("@id"u8, out var defaultFeaturingTypeExternalIdProperty)) + { + var propertyValue = defaultFeaturingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.defaultFeaturingType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the defaultFeaturingType Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) + { + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the definition Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + { + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + { + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ElementId = propertyValue; + } + } + else + { + logger.LogDebug("the elementId Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the SuccessionAsUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + { + if (isImpliedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImplied Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedUnioning Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owner Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningDefinition Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningFeatureMembership Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningMembership Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningNamespace Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelatedElement Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelationship Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (owningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningType Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) { - if (isImpliedProperty.ValueKind != JsonValueKind.Null) + if (owningUsageProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImplied Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the owningUsage Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); - } + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the qualifiedName Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedElement Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var relatedFeatureExternalIdProperty)) + { + var propertyValue = relatedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedFeature Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); - } + dtoInstance.shortName = shortNameProperty.GetString(); } else { - logger.LogDebug("the isSufficient Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the shortName Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in sourceProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the source Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.sourceFeature = null; + } + else + { + if (sourceFeatureProperty.TryGetProperty("@id"u8, out var sourceFeatureExternalIdProperty)) + { + var propertyValue = sourceFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the sourceFeature Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in targetProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the target Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = targetFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.targetFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the targetFeature Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = textualRepresentationExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the textualRepresentation Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in typeProperty.EnumerateArray()) { - dtoInstance.OwningRelatedElement = null; - } - else - { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = typeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.type.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the type Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the unioningType Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = usageExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.usage.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the usage Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in variantProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = variantExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.variant.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the variant Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = variantMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the variantMembership Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionDeSerializer.cs index 0b11c5a7e..ba0e122e7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionDeSerializer.cs @@ -69,7 +69,7 @@ internal static ISuccession DeSerialize(JsonElement jsonElement, SerializationMo throw new InvalidOperationException($"The SuccessionDeSerializer can only be used to deserialize objects of type ISuccession, a {@type.GetString()} was provided"); } - ISuccession dtoInstance = new SysML2.NET.Core.DTO.Kernel.Connectors.Succession(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Connectors.Succession(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,317 +102,1565 @@ internal static ISuccession DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the aliasIds Json property was not found in the Succession: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) + { + foreach (var arrayItem in associationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) + { + var propertyValue = associationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.association.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the association Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) + { + foreach (var arrayItem in connectorEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var connectorEndExternalIdProperty)) + { + var propertyValue = connectorEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectorEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the connectorEnd Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the declaredName Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty)) + { + if (defaultFeaturingTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.defaultFeaturingType = null; + } + else + { + if (defaultFeaturingTypeProperty.TryGetProperty("@id"u8, out var defaultFeaturingTypeExternalIdProperty)) + { + var propertyValue = defaultFeaturingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.defaultFeaturingType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the defaultFeaturingType Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + { + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + { + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ElementId = propertyValue; + } + } + else + { + logger.LogDebug("the elementId Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the Succession.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + { + if (isImpliedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImplied Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedRelationship Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSpecialization Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedSubsetting Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedTyping Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedUnioning Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (ownerProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the owner Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the owningFeatureMembership Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) { - if (isImpliedProperty.ValueKind != JsonValueKind.Null) + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImplied Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the owningMembership Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the owningNamespace Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelatedElement Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelationship Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (owningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the owningType Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); - } + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); } else { - logger.LogDebug("the isUnique Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the qualifiedName Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedElement Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var relatedFeatureExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = relatedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.relatedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedFeature Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.Source.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the source Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.sourceFeature = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (sourceFeatureProperty.TryGetProperty("@id"u8, out var sourceFeatureExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = sourceFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.sourceFeature = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the sourceFeature Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in targetProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the target Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) + { + foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = targetFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.targetFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the targetFeature Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = textualRepresentationExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the textualRepresentation Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in typeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = typeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.type.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the Succession: { Id }", dtoInstance.Id); + logger.LogDebug("the type Json property was not found in the Succession: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Succession: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowDeSerializer.cs index 83e0f1ac8..2d1576408 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowDeSerializer.cs @@ -69,7 +69,7 @@ internal static ISuccessionFlow DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The SuccessionFlowDeSerializer can only be used to deserialize objects of type ISuccessionFlow, a {@type.GetString()} was provided"); } - ISuccessionFlow dtoInstance = new SysML2.NET.Core.DTO.Kernel.Interactions.SuccessionFlow(); + var dtoInstance = new SysML2.NET.Core.DTO.Kernel.Interactions.SuccessionFlow(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,317 +102,1737 @@ internal static ISuccessionFlow DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) + { + foreach (var arrayItem in associationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) + { + var propertyValue = associationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.association.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the association Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) + { + foreach (var arrayItem in connectorEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var connectorEndExternalIdProperty)) + { + var propertyValue = connectorEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectorEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the connectorEnd Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the declaredName Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty)) + { + if (defaultFeaturingTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.defaultFeaturingType = null; + } + else + { + if (defaultFeaturingTypeProperty.TryGetProperty("@id"u8, out var defaultFeaturingTypeExternalIdProperty)) + { + var propertyValue = defaultFeaturingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.defaultFeaturingType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the defaultFeaturingType Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + { + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + { + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ElementId = propertyValue; + } + } + else + { + logger.LogDebug("the elementId Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) + { + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the endOwningType Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) + { + if (featureTargetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the SuccessionFlow.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the featureTarget Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) + { + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featuringType Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("flowEnd"u8, out var flowEndProperty)) + { + foreach (var arrayItem in flowEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var flowEndExternalIdProperty)) + { + var propertyValue = flowEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.flowEnd.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the flowEnd Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("interaction"u8, out var interactionProperty)) + { + foreach (var arrayItem in interactionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var interactionExternalIdProperty)) + { + var propertyValue = interactionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.interaction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the interaction Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + { + if (isImpliedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImplied Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the ownedUnioning Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the owner Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) { - var propertyValue = elementIdProperty.GetString(); + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); - if (propertyValue != null) + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningMembership Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningNamespace Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelatedElement Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningRelationship Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (owningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the owningType Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in parameterProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the parameter Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + if (jsonElement.TryGetProperty("payloadFeature"u8, out var payloadFeatureProperty)) { - if (isImpliedProperty.ValueKind != JsonValueKind.Null) + if (payloadFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + dtoInstance.payloadFeature = null; + } + else + { + if (payloadFeatureProperty.TryGetProperty("@id"u8, out var payloadFeatureExternalIdProperty)) + { + var propertyValue = payloadFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.payloadFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImplied Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the payloadFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("payloadType"u8, out var payloadTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in payloadTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var payloadTypeExternalIdProperty)) + { + var propertyValue = payloadTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.payloadType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the payloadType Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedElement Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var relatedFeatureExternalIdProperty)) + { + var propertyValue = relatedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the relatedFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the source Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.sourceFeature = null; + } + else + { + if (sourceFeatureProperty.TryGetProperty("@id"u8, out var sourceFeatureExternalIdProperty)) + { + var propertyValue = sourceFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the sourceFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("sourceOutputFeature"u8, out var sourceOutputFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (sourceOutputFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.sourceOutputFeature = null; + } + else + { + if (sourceOutputFeatureProperty.TryGetProperty("@id"u8, out var sourceOutputFeatureExternalIdProperty)) + { + var propertyValue = sourceOutputFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceOutputFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the sourceOutputFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.Target.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the target Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = targetFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.targetFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the targetFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("targetInputFeature"u8, out var targetInputFeatureProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (targetInputFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.targetInputFeature = null; } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (targetInputFeatureProperty.TryGetProperty("@id"u8, out var targetInputFeatureExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = targetInputFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.targetInputFeature = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the targetInputFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.OwningRelationship = null; - } - else + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = textualRepresentationExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the textualRepresentation Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in typeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = typeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.type.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the type Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = unioningTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the target Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); + logger.LogDebug("the unioningType Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowUsageDeSerializer.cs index bc347186f..151725626 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial throw new InvalidOperationException($"The SuccessionFlowUsageDeSerializer can only be used to deserialize objects of type ISuccessionFlowUsage, a {@type.GetString()} was provided"); } - ISuccessionFlowUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Flows.SuccessionFlowUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Flows.SuccessionFlowUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,350 +122,2546 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the aliasIds Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) - { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); - } - else + if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) { - logger.LogDebug("the declaredName Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } + foreach (var arrayItem in associationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) + { + var propertyValue = associationExternalIdProperty.GetString(); - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) - { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + if (propertyValue != null) + { + dtoInstance.association.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the association Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in connectorEndProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var connectorEndExternalIdProperty)) + { + var propertyValue = connectorEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.connectorEnd.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the connectorEnd Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isConstant Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); - } + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); } else { - logger.LogDebug("the isDerived Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredShortName Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (defaultFeaturingTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.defaultFeaturingType = null; + } + else + { + if (defaultFeaturingTypeProperty.TryGetProperty("@id"u8, out var defaultFeaturingTypeExternalIdProperty)) + { + var propertyValue = defaultFeaturingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.defaultFeaturingType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the defaultFeaturingType Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - if (isImpliedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImplied Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isPortion Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isUnique Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = featureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + dtoInstance.feature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelatedElement Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = featureMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelatedElement = null; + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the SuccessionFlowUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = featureTargetExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + dtoInstance.featureTarget = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelatedElement Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the featuringType Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("flowDefinition"u8, out var flowDefinitionProperty)) + { + foreach (var arrayItem in flowDefinitionProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var flowDefinitionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = flowDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.flowDefinition.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the flowDefinition Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("flowEnd"u8, out var flowEndProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in flowEndProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var flowEndExternalIdProperty)) + { + var propertyValue = flowEndExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.flowEnd.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the flowEnd Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - foreach (var arrayItem in sourceProperty.EnumerateArray()) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the source Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - foreach (var arrayItem in targetProperty.EnumerateArray()) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the target Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("interaction"u8, out var interactionProperty)) + { + foreach (var arrayItem in interactionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var interactionExternalIdProperty)) + { + var propertyValue = interactionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.interaction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the interaction Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) + { + if (isImpliedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImplied = isImpliedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImplied Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) + { + foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) + { + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelatedElement Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) + { + if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelatedElement = null; + } + else + { + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) + { + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelatedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelatedElement Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("payloadFeature"u8, out var payloadFeatureProperty)) + { + if (payloadFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.payloadFeature = null; + } + else + { + if (payloadFeatureProperty.TryGetProperty("@id"u8, out var payloadFeatureExternalIdProperty)) + { + var propertyValue = payloadFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.payloadFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the payloadFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("payloadType"u8, out var payloadTypeProperty)) + { + foreach (var arrayItem in payloadTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var payloadTypeExternalIdProperty)) + { + var propertyValue = payloadTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.payloadType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the payloadType Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) + { + foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedFeatureExternalIdProperty)) + { + var propertyValue = relatedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + foreach (var arrayItem in sourceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Source.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the source Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) + { + if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceFeature = null; + } + else + { + if (sourceFeatureProperty.TryGetProperty("@id"u8, out var sourceFeatureExternalIdProperty)) + { + var propertyValue = sourceFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("sourceOutputFeature"u8, out var sourceOutputFeatureProperty)) + { + if (sourceOutputFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.sourceOutputFeature = null; + } + else + { + if (sourceOutputFeatureProperty.TryGetProperty("@id"u8, out var sourceOutputFeatureExternalIdProperty)) + { + var propertyValue = sourceOutputFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.sourceOutputFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the sourceOutputFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + { + foreach (var arrayItem in targetProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.Target.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the target Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) + { + foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var targetFeatureExternalIdProperty)) + { + var propertyValue = targetFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the targetFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("targetInputFeature"u8, out var targetInputFeatureProperty)) + { + if (targetInputFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.targetInputFeature = null; + } + else + { + if (targetInputFeatureProperty.TryGetProperty("@id"u8, out var targetInputFeatureExternalIdProperty)) + { + var propertyValue = targetInputFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.targetInputFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the targetInputFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TerminateActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TerminateActionUsageDeSerializer.cs index b67666a84..f01fbf7f4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TerminateActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TerminateActionUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static ITerminateActionUsage DeSerialize(JsonElement jsonElement, Seria throw new InvalidOperationException($"The TerminateActionUsageDeSerializer can only be used to deserialize objects of type ITerminateActionUsage, a {@type.GetString()} was provided"); } - ITerminateActionUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.TerminateActionUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.TerminateActionUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static ITerminateActionUsage DeSerialize(JsonElement jsonElement, Seria } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,70 @@ internal static ITerminateActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the aliasIds Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +204,2092 @@ internal static ITerminateActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the declaredShortName Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isEnd Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the TerminateActionUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("terminatedOccurrenceArgument"u8, out var terminatedOccurrenceArgumentProperty)) + { + if (terminatedOccurrenceArgumentProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.terminatedOccurrenceArgument = null; + } + else + { + if (terminatedOccurrenceArgumentProperty.TryGetProperty("@id"u8, out var terminatedOccurrenceArgumentExternalIdProperty)) + { + var propertyValue = terminatedOccurrenceArgumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.terminatedOccurrenceArgument = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the terminatedOccurrenceArgument Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs index a8073c25e..c2e0f2eb9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs @@ -69,7 +69,7 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri throw new InvalidOperationException($"The TextualRepresentationDeSerializer can only be used to deserialize objects of type ITextualRepresentation, a {@type.GetString()} was provided"); } - ITextualRepresentation dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.TextualRepresentation(); + var dtoInstance = new SysML2.NET.Core.DTO.Root.Annotations.TextualRepresentation(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,46 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the aliasIds Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("annotatedElement"u8, out var annotatedElementProperty)) + { + foreach (var arrayItem in annotatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotatedElementExternalIdProperty)) + { + var propertyValue = annotatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotatedElement Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("annotation"u8, out var annotationProperty)) + { + foreach (var arrayItem in annotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var annotationExternalIdProperty)) + { + var propertyValue = annotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.annotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the annotation Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("body"u8, out var bodyProperty)) { var propertyValue = bodyProperty.GetString(); @@ -134,6 +174,26 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the declaredShortName Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -160,6 +220,18 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isImpliedIncluded Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("language"u8, out var languageProperty)) { var propertyValue = languageProperty.GetString(); @@ -174,13 +246,82 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the language Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotatingRelationship"u8, out var ownedAnnotatingRelationshipProperty)) + { + foreach (var arrayItem in ownedAnnotatingRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = ownedAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotatingRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotatingRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -194,6 +335,102 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the ownedRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningAnnotatingRelationship"u8, out var owningAnnotatingRelationshipProperty)) + { + if (owningAnnotatingRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningAnnotatingRelationship = null; + } + else + { + if (owningAnnotatingRelationshipProperty.TryGetProperty("@id"u8, out var owningAnnotatingRelationshipExternalIdProperty)) + { + var propertyValue = owningAnnotatingRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningAnnotatingRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningAnnotatingRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) @@ -202,9 +439,9 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -218,6 +455,69 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the owningRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("representedElement"u8, out var representedElementProperty)) + { + if (representedElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.representedElement = Guid.Empty; + logger.LogDebug($"the TextualRepresentation.representedElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (representedElementProperty.TryGetProperty("@id"u8, out var representedElementExternalIdProperty)) + { + var propertyValue = representedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.representedElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the representedElement Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionFeatureMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionFeatureMembershipDeSerializer.cs index 240024d1c..f497f3566 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionFeatureMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionFeatureMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement throw new InvalidOperationException($"The TransitionFeatureMembershipDeSerializer can only be used to deserialize objects of type ITransitionFeatureMembership, a {@type.GetString()} was provided"); } - ITransitionFeatureMembership dtoInstance = new SysML2.NET.Core.DTO.Systems.States.TransitionFeatureMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.States.TransitionFeatureMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement logger.LogDebug("the declaredShortName Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement logger.LogDebug("the isImpliedIncluded Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("kind"u8, out var kindProperty)) { dtoInstance.Kind = TransitionFeatureKindDeSerializer.Deserialize(kindProperty.GetString()); @@ -176,9 +208,9 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -192,6 +224,20 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement logger.LogDebug("the memberElement Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -201,6 +247,31 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement logger.LogDebug("the memberName Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the TransitionFeatureMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -210,13 +281,144 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement logger.LogDebug("the memberShortName Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the TransitionFeatureMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the TransitionFeatureMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -234,9 +436,9 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -250,6 +452,78 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement logger.LogDebug("the ownedRelationship Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -258,9 +532,9 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -282,9 +556,9 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -298,13 +572,76 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement logger.LogDebug("the owningRelationship Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the TransitionFeatureMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -322,9 +659,9 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -338,6 +675,51 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement logger.LogDebug("the target Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("transitionFeature"u8, out var transitionFeatureProperty)) + { + if (transitionFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.transitionFeature = Guid.Empty; + logger.LogDebug($"the TransitionFeatureMembership.transitionFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (transitionFeatureProperty.TryGetProperty("@id"u8, out var transitionFeatureExternalIdProperty)) + { + var propertyValue = transitionFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.transitionFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the transitionFeature Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionUsageDeSerializer.cs index 33454d3a4..b86ba4950 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static ITransitionUsage DeSerialize(JsonElement jsonElement, Serializat throw new InvalidOperationException($"The TransitionUsageDeSerializer can only be used to deserialize objects of type ITransitionUsage, a {@type.GetString()} was provided"); } - ITransitionUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.States.TransitionUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.States.TransitionUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static ITransitionUsage DeSerialize(JsonElement jsonElement, Serializat } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,70 @@ internal static ITransitionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +204,2203 @@ internal static ITransitionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); - } + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); } else { - logger.LogDebug("the isConstant Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the direction Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("effectAction"u8, out var effectActionProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in effectActionProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var effectActionExternalIdProperty)) + { + var propertyValue = effectActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.effectAction.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the effectAction Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the TransitionUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("guardExpression"u8, out var guardExpressionProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in guardExpressionProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var guardExpressionExternalIdProperty)) + { + var propertyValue = guardExpressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.guardExpression.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the guardExpression Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.individualDefinition = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) + { + if (sourceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.source = Guid.Empty; + logger.LogDebug($"the TransitionUsage.source property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (sourceProperty.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) + { + var propertyValue = sourceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.source = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the source Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("succession"u8, out var successionProperty)) + { + if (successionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.succession = Guid.Empty; + logger.LogDebug($"the TransitionUsage.succession property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (successionProperty.TryGetProperty("@id"u8, out var successionExternalIdProperty)) + { + var propertyValue = successionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.succession = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the succession Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) + { + if (targetProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.target = Guid.Empty; + logger.LogDebug($"the TransitionUsage.target property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (targetProperty.TryGetProperty("@id"u8, out var targetExternalIdProperty)) + { + var propertyValue = targetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.target = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the target Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("triggerAction"u8, out var triggerActionProperty)) + { + foreach (var arrayItem in triggerActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var triggerActionExternalIdProperty)) + { + var propertyValue = triggerActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.triggerAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the triggerAction Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TriggerInvocationExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TriggerInvocationExpressionDeSerializer.cs index bae3148c2..fef85e248 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TriggerInvocationExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TriggerInvocationExpressionDeSerializer.cs @@ -69,7 +69,7 @@ internal static ITriggerInvocationExpression DeSerialize(JsonElement jsonElement throw new InvalidOperationException($"The TriggerInvocationExpressionDeSerializer can only be used to deserialize objects of type ITriggerInvocationExpression, a {@type.GetString()} was provided"); } - ITriggerInvocationExpression dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.TriggerInvocationExpression(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.TriggerInvocationExpression(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,90 @@ internal static ITriggerInvocationExpression DeSerialize(JsonElement jsonElement logger.LogDebug("the aliasIds Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("argument"u8, out var argumentProperty)) + { + foreach (var arrayItem in argumentProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var argumentExternalIdProperty)) + { + var propertyValue = argumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.argument.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the argument Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) + { + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the behavior Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,212 +204,1374 @@ internal static ITriggerInvocationExpression DeSerialize(JsonElement jsonElement logger.LogDebug("the declaredShortName Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isComposite Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the TriggerInvocationExpression.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.function = null; + } + else + { + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) + { + var propertyValue = functionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.function = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("kind"u8, out var kindProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - dtoInstance.Kind = TriggerKindDeSerializer.Deserialize(kindProperty.GetString()); + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the kind Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inputExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.input.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the input Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("instantiatedType"u8, out var instantiatedTypeProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (instantiatedTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.instantiatedType = Guid.Empty; + logger.LogDebug($"the TriggerInvocationExpression.instantiatedType property was not found in the Json. The value is set to Guid.Empty"); } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (instantiatedTypeProperty.TryGetProperty("@id"u8, out var instantiatedTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = instantiatedTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.instantiatedType = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + logger.LogDebug("the instantiatedType Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("kind"u8, out var kindProperty)) + { + dtoInstance.Kind = TriggerKindDeSerializer.Deserialize(kindProperty.GetString()); + } + else + { + logger.LogDebug("the kind Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the TriggerInvocationExpression.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TypeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TypeDeSerializer.cs index d676b0278..0b2af0490 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TypeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TypeDeSerializer.cs @@ -69,7 +69,7 @@ internal static IType DeSerialize(JsonElement jsonElement, SerializationModeKind throw new InvalidOperationException($"The TypeDeSerializer can only be used to deserialize objects of type IType, a {@type.GetString()} was provided"); } - IType dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Type(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Type(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,66 @@ internal static IType DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the declaredShortName Json property was not found in the Type: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Type: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +194,166 @@ internal static IType DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the elementId Json property was not found in the Type: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the Type: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +366,18 @@ internal static IType DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the isAbstract Json property was not found in the Type: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Type: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -158,6 +390,18 @@ internal static IType DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the isImpliedIncluded Json property was not found in the Type: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Type: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -170,48 +414,555 @@ internal static IType DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the isSufficient Json property was not found in the Type: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Type: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the Type: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Type: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Type: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Type: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TypeFeaturingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TypeFeaturingDeSerializer.cs index 48d1d2151..4f244b7ec 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TypeFeaturingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TypeFeaturingDeSerializer.cs @@ -69,7 +69,7 @@ internal static ITypeFeaturing DeSerialize(JsonElement jsonElement, Serializatio throw new InvalidOperationException($"The TypeFeaturingDeSerializer can only be used to deserialize objects of type ITypeFeaturing, a {@type.GetString()} was provided"); } - ITypeFeaturing dtoInstance = new SysML2.NET.Core.DTO.Core.Features.TypeFeaturing(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Features.TypeFeaturing(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static ITypeFeaturing DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the declaredShortName Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -143,9 +163,9 @@ internal static ITypeFeaturing DeSerialize(JsonElement jsonElement, Serializatio } else { - if (featureOfTypeProperty.TryGetProperty("@id"u8, out var featureOfTypeIdProperty)) + if (featureOfTypeProperty.TryGetProperty("@id"u8, out var featureOfTypeExternalIdProperty)) { - var propertyValue = featureOfTypeIdProperty.GetString(); + var propertyValue = featureOfTypeExternalIdProperty.GetString(); if (propertyValue != null) { @@ -168,9 +188,9 @@ internal static ITypeFeaturing DeSerialize(JsonElement jsonElement, Serializatio } else { - if (featuringTypeProperty.TryGetProperty("@id"u8, out var featuringTypeIdProperty)) + if (featuringTypeProperty.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) { - var propertyValue = featuringTypeIdProperty.GetString(); + var propertyValue = featuringTypeExternalIdProperty.GetString(); if (propertyValue != null) { @@ -208,13 +228,74 @@ internal static ITypeFeaturing DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the isImpliedIncluded Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -232,9 +313,9 @@ internal static ITypeFeaturing DeSerialize(JsonElement jsonElement, Serializatio { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -248,6 +329,102 @@ internal static ITypeFeaturing DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the ownedRelationship Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureOfType"u8, out var owningFeatureOfTypeProperty)) + { + if (owningFeatureOfTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureOfType = null; + } + else + { + if (owningFeatureOfTypeProperty.TryGetProperty("@id"u8, out var owningFeatureOfTypeExternalIdProperty)) + { + var propertyValue = owningFeatureOfTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureOfType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureOfType Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -256,9 +433,9 @@ internal static ITypeFeaturing DeSerialize(JsonElement jsonElement, Serializatio } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -280,9 +457,9 @@ internal static ITypeFeaturing DeSerialize(JsonElement jsonElement, Serializatio } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -296,13 +473,51 @@ internal static ITypeFeaturing DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the owningRelationship Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -320,9 +535,9 @@ internal static ITypeFeaturing DeSerialize(JsonElement jsonElement, Serializatio { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -336,6 +551,26 @@ internal static ITypeFeaturing DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the target Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UnioningDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UnioningDeSerializer.cs index 1fbcddf6b..dbabcc148 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UnioningDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UnioningDeSerializer.cs @@ -69,7 +69,7 @@ internal static IUnioning DeSerialize(JsonElement jsonElement, SerializationMode throw new InvalidOperationException($"The UnioningDeSerializer can only be used to deserialize objects of type IUnioning, a {@type.GetString()} was provided"); } - IUnioning dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Unioning(); + var dtoInstance = new SysML2.NET.Core.DTO.Core.Types.Unioning(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IUnioning DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the declaredShortName Json property was not found in the Unioning: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the Unioning: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,13 +178,74 @@ internal static IUnioning DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the isImpliedIncluded Json property was not found in the Unioning: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Unioning: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Unioning: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Unioning: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Unioning: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -182,9 +263,9 @@ internal static IUnioning DeSerialize(JsonElement jsonElement, SerializationMode { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -198,6 +279,78 @@ internal static IUnioning DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the ownedRelationship Json property was not found in the Unioning: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Unioning: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Unioning: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Unioning: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -206,9 +359,9 @@ internal static IUnioning DeSerialize(JsonElement jsonElement, SerializationMode } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -230,9 +383,9 @@ internal static IUnioning DeSerialize(JsonElement jsonElement, SerializationMode } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -246,13 +399,51 @@ internal static IUnioning DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the owningRelationship Json property was not found in the Unioning: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Unioning: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the Unioning: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Unioning: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -270,9 +461,9 @@ internal static IUnioning DeSerialize(JsonElement jsonElement, SerializationMode { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -286,6 +477,51 @@ internal static IUnioning DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the target Json property was not found in the Unioning: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Unioning: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("typeUnioned"u8, out var typeUnionedProperty)) + { + if (typeUnionedProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.typeUnioned = Guid.Empty; + logger.LogDebug($"the Unioning.typeUnioned property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (typeUnionedProperty.TryGetProperty("@id"u8, out var typeUnionedExternalIdProperty)) + { + var propertyValue = typeUnionedExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.typeUnioned = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the typeUnioned Json property was not found in the Unioning: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { if (unioningTypeProperty.ValueKind == JsonValueKind.Null) @@ -295,9 +531,9 @@ internal static IUnioning DeSerialize(JsonElement jsonElement, SerializationMode } else { - if (unioningTypeProperty.TryGetProperty("@id"u8, out var unioningTypeIdProperty)) + if (unioningTypeProperty.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) { - var propertyValue = unioningTypeIdProperty.GetString(); + var propertyValue = unioningTypeExternalIdProperty.GetString(); if (propertyValue != null) { diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UsageDeSerializer.cs index 0ce2e538b..0704bcbc4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IUsage DeSerialize(JsonElement jsonElement, SerializationModeKin throw new InvalidOperationException($"The UsageDeSerializer can only be used to deserialize objects of type IUsage, a {@type.GetString()} was provided"); } - IUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.Usage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.Usage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IUsage DeSerialize(JsonElement jsonElement, SerializationModeKin logger.LogDebug("the aliasIds Json property was not found in the Usage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,215 +164,1983 @@ internal static IUsage DeSerialize(JsonElement jsonElement, SerializationModeKin logger.LogDebug("the declaredShortName Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isDerived Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the Usage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the input Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the Usage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the Usage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the Usage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseDefinitionDeSerializer.cs index 9321c52de..700ca6d4c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IUseCaseDefinition DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The UseCaseDefinitionDeSerializer can only be used to deserialize objects of type IUseCaseDefinition, a {@type.GetString()} was provided"); } - IUseCaseDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.UseCases.UseCaseDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.UseCases.UseCaseDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,46 @@ internal static IUseCaseDefinition DeSerialize(JsonElement jsonElement, Serializ } } + if (jsonElement.TryGetProperty("action"u8, out var actionProperty)) + { + foreach (var arrayItem in actionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionExternalIdProperty)) + { + var propertyValue = actionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.action.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the action Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +142,26 @@ internal static IUseCaseDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("calculation"u8, out var calculationProperty)) + { + foreach (var arrayItem in calculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var calculationExternalIdProperty)) + { + var propertyValue = calculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.calculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the calculation Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +180,86 @@ internal static IUseCaseDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,108 +274,1585 @@ internal static IUseCaseDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the elementId Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("expression"u8, out var expressionProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in expressionProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var expressionExternalIdProperty)) + { + var propertyValue = expressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.expression.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the expression Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("includedUseCase"u8, out var includedUseCaseProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in includedUseCaseProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var includedUseCaseExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = includedUseCaseExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.includedUseCase.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the includedUseCase Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("objectiveRequirement"u8, out var objectiveRequirementProperty)) + { + if (objectiveRequirementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.objectiveRequirement = null; + } + else + { + if (objectiveRequirementProperty.TryGetProperty("@id"u8, out var objectiveRequirementExternalIdProperty)) + { + var propertyValue = objectiveRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.objectiveRequirement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the objectiveRequirement Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the UseCaseDefinition.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the UseCaseDefinition.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseUsageDeSerializer.cs index 4618a628e..1d3665e6a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IUseCaseUsage DeSerialize(JsonElement jsonElement, Serialization throw new InvalidOperationException($"The UseCaseUsageDeSerializer can only be used to deserialize objects of type IUseCaseUsage, a {@type.GetString()} was provided"); } - IUseCaseUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.UseCases.UseCaseUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.UseCases.UseCaseUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,46 @@ internal static IUseCaseUsage DeSerialize(JsonElement jsonElement, Serialization } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,254 +142,2352 @@ internal static IUseCaseUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the aliasIds Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("calculationDefinition"u8, out var calculationDefinitionProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + if (calculationDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.calculationDefinition = null; + } + else + { + if (calculationDefinitionProperty.TryGetProperty("@id"u8, out var calculationDefinitionExternalIdProperty)) + { + var propertyValue = calculationDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.calculationDefinition = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the calculationDefinition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("caseDefinition"u8, out var caseDefinitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + if (caseDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.caseDefinition = null; + } + else + { + if (caseDefinitionProperty.TryGetProperty("@id"u8, out var caseDefinitionExternalIdProperty)) + { + var propertyValue = caseDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.caseDefinition = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the caseDefinition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isComposite Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) + { + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isOrdered Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the UseCaseUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = featuringTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.function = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = functionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.function = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("includedUseCase"u8, out var includedUseCaseProperty)) + { + foreach (var arrayItem in includedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var includedUseCaseExternalIdProperty)) + { + var propertyValue = includedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.includedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the includedUseCase Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) + { + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the individualDefinition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("objectiveRequirement"u8, out var objectiveRequirementProperty)) + { + if (objectiveRequirementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.objectiveRequirement = null; + } + else + { + if (objectiveRequirementProperty.TryGetProperty("@id"u8, out var objectiveRequirementExternalIdProperty)) + { + var propertyValue = objectiveRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.objectiveRequirement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the objectiveRequirement Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the UseCaseUsage.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the UseCaseUsage.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("useCaseDefinition"u8, out var useCaseDefinitionProperty)) + { + if (useCaseDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.useCaseDefinition = null; + } + else + { + if (useCaseDefinitionProperty.TryGetProperty("@id"u8, out var useCaseDefinitionExternalIdProperty)) + { + var propertyValue = useCaseDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.useCaseDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the useCaseDefinition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VariantMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VariantMembershipDeSerializer.cs index bfce9e405..171df3be7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VariantMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VariantMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ throw new InvalidOperationException($"The VariantMembershipDeSerializer can only be used to deserialize objects of type IVariantMembership, a {@type.GetString()} was provided"); } - IVariantMembership dtoInstance = new SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.VariantMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.VariantMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isImpliedIncluded Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the memberElement Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the memberName Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the VariantMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,119 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the memberShortName Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the VariantMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +402,9 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +418,103 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the ownedRelationship Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("ownedVariantUsage"u8, out var ownedVariantUsageProperty)) + { + if (ownedVariantUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedVariantUsage = Guid.Empty; + logger.LogDebug($"the VariantMembership.ownedVariantUsage property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedVariantUsageProperty.TryGetProperty("@id"u8, out var ownedVariantUsageExternalIdProperty)) + { + var propertyValue = ownedVariantUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVariantUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedVariantUsage Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +523,9 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +547,9 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +563,51 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the owningRelationship Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +625,9 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +641,26 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the target Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseDefinitionDeSerializer.cs index 8f9838e79..1bed35eb5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IVerificationCaseDefinition DeSerialize(JsonElement jsonElement, throw new InvalidOperationException($"The VerificationCaseDefinitionDeSerializer can only be used to deserialize objects of type IVerificationCaseDefinition, a {@type.GetString()} was provided"); } - IVerificationCaseDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.VerificationCases.VerificationCaseDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.VerificationCases.VerificationCaseDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,46 @@ internal static IVerificationCaseDefinition DeSerialize(JsonElement jsonElement, } } + if (jsonElement.TryGetProperty("action"u8, out var actionProperty)) + { + foreach (var arrayItem in actionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionExternalIdProperty)) + { + var propertyValue = actionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.action.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the action Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +142,26 @@ internal static IVerificationCaseDefinition DeSerialize(JsonElement jsonElement, logger.LogDebug("the aliasIds Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("calculation"u8, out var calculationProperty)) + { + foreach (var arrayItem in calculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var calculationExternalIdProperty)) + { + var propertyValue = calculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.calculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the calculation Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +180,86 @@ internal static IVerificationCaseDefinition DeSerialize(JsonElement jsonElement, logger.LogDebug("the declaredShortName Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +274,186 @@ internal static IVerificationCaseDefinition DeSerialize(JsonElement jsonElement, logger.LogDebug("the elementId Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("expression"u8, out var expressionProperty)) + { + foreach (var arrayItem in expressionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var expressionExternalIdProperty)) + { + var propertyValue = expressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.expression.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the expression Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +466,18 @@ internal static IVerificationCaseDefinition DeSerialize(JsonElement jsonElement, logger.LogDebug("the isAbstract Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +502,30 @@ internal static IVerificationCaseDefinition DeSerialize(JsonElement jsonElement, logger.LogDebug("the isIndividual Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,37 +550,1070 @@ internal static IVerificationCaseDefinition DeSerialize(JsonElement jsonElement, logger.LogDebug("the isVariation Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; - } + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("objectiveRequirement"u8, out var objectiveRequirementProperty)) + { + if (objectiveRequirementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.objectiveRequirement = null; + } + else + { + if (objectiveRequirementProperty.TryGetProperty("@id"u8, out var objectiveRequirementExternalIdProperty)) + { + var propertyValue = objectiveRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.objectiveRequirement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the objectiveRequirement Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -238,6 +1627,234 @@ internal static IVerificationCaseDefinition DeSerialize(JsonElement jsonElement, logger.LogDebug("the owningRelationship Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the VerificationCaseDefinition.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the VerificationCaseDefinition.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("verifiedRequirement"u8, out var verifiedRequirementProperty)) + { + foreach (var arrayItem in verifiedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var verifiedRequirementExternalIdProperty)) + { + var propertyValue = verifiedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.verifiedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the verifiedRequirement Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseUsageDeSerializer.cs index 697eb3bfd..ea87d72df 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IVerificationCaseUsage DeSerialize(JsonElement jsonElement, Seri throw new InvalidOperationException($"The VerificationCaseUsageDeSerializer can only be used to deserialize objects of type IVerificationCaseUsage, a {@type.GetString()} was provided"); } - IVerificationCaseUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.VerificationCases.VerificationCaseUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.VerificationCases.VerificationCaseUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,46 @@ internal static IVerificationCaseUsage DeSerialize(JsonElement jsonElement, Seri } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,254 +142,2352 @@ internal static IVerificationCaseUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the aliasIds Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("calculationDefinition"u8, out var calculationDefinitionProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + if (calculationDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.calculationDefinition = null; + } + else + { + if (calculationDefinitionProperty.TryGetProperty("@id"u8, out var calculationDefinitionExternalIdProperty)) + { + var propertyValue = calculationDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.calculationDefinition = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the calculationDefinition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("caseDefinition"u8, out var caseDefinitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + if (caseDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.caseDefinition = null; + } + else + { + if (caseDefinitionProperty.TryGetProperty("@id"u8, out var caseDefinitionExternalIdProperty)) + { + var propertyValue = caseDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.caseDefinition = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the caseDefinition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isComposite Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) + { + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isOrdered Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the VerificationCaseUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = featuringTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.function = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = functionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.function = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) + { + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the individualDefinition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("objectiveRequirement"u8, out var objectiveRequirementProperty)) + { + if (objectiveRequirementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.objectiveRequirement = null; + } + else + { + if (objectiveRequirementProperty.TryGetProperty("@id"u8, out var objectiveRequirementExternalIdProperty)) + { + var propertyValue = objectiveRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.objectiveRequirement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the objectiveRequirement Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the VerificationCaseUsage.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the VerificationCaseUsage.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("verificationCaseDefinition"u8, out var verificationCaseDefinitionProperty)) + { + if (verificationCaseDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.verificationCaseDefinition = null; + } + else + { + if (verificationCaseDefinitionProperty.TryGetProperty("@id"u8, out var verificationCaseDefinitionExternalIdProperty)) + { + var propertyValue = verificationCaseDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.verificationCaseDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the verificationCaseDefinition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("verifiedRequirement"u8, out var verifiedRequirementProperty)) + { + foreach (var arrayItem in verifiedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var verifiedRequirementExternalIdProperty)) + { + var propertyValue = verifiedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.verifiedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the verifiedRequirement Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewDefinitionDeSerializer.cs index 88e636253..355d1c098 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IViewDefinition DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The ViewDefinitionDeSerializer can only be used to deserialize objects of type IViewDefinition, a {@type.GetString()} was provided"); } - IViewDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.ViewDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.ViewDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,86 @@ internal static IViewDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +214,166 @@ internal static IViewDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +386,18 @@ internal static IViewDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isAbstract Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +422,18 @@ internal static IViewDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isIndividual Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,48 +458,1259 @@ internal static IViewDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isVariation Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = multiplicityExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.multiplicity = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the multiplicity Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("satisfiedViewpoint"u8, out var satisfiedViewpointProperty)) + { + foreach (var arrayItem in satisfiedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var satisfiedViewpointExternalIdProperty)) + { + var propertyValue = satisfiedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.satisfiedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the satisfiedViewpoint Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("view"u8, out var viewProperty)) + { + foreach (var arrayItem in viewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var viewExternalIdProperty)) + { + var propertyValue = viewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.view.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the view Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("viewCondition"u8, out var viewConditionProperty)) + { + foreach (var arrayItem in viewConditionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var viewConditionExternalIdProperty)) + { + var propertyValue = viewConditionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.viewCondition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the viewCondition Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("viewRendering"u8, out var viewRenderingProperty)) + { + if (viewRenderingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.viewRendering = null; + } + else + { + if (viewRenderingProperty.TryGetProperty("@id"u8, out var viewRenderingExternalIdProperty)) + { + var propertyValue = viewRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.viewRendering = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the viewRendering Json property was not found in the ViewDefinition: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewRenderingMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewRenderingMembershipDeSerializer.cs index ccbf9fd40..e943f7ed6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewRenderingMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewRenderingMembershipDeSerializer.cs @@ -69,7 +69,7 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se throw new InvalidOperationException($"The ViewRenderingMembershipDeSerializer can only be used to deserialize objects of type IViewRenderingMembership, a {@type.GetString()} was provided"); } - IViewRenderingMembership dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.ViewRenderingMembership(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.ViewRenderingMembership(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -120,6 +120,26 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the declaredShortName Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -158,6 +178,18 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the isImpliedIncluded Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) { if (memberElementProperty.ValueKind == JsonValueKind.Null) @@ -167,9 +199,9 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se } else { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementIdProperty)) + if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) { - var propertyValue = memberElementIdProperty.GetString(); + var propertyValue = memberElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -183,6 +215,20 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the memberElement Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) + { + var propertyValue = memberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.memberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the memberElementId Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) { dtoInstance.MemberName = memberNameProperty.GetString(); @@ -192,6 +238,31 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the memberName Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) + { + if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.membershipOwningNamespace = Guid.Empty; + logger.LogDebug($"the ViewRenderingMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) + { + var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the membershipOwningNamespace Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) { dtoInstance.MemberShortName = memberShortNameProperty.GetString(); @@ -201,13 +272,144 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the memberShortName Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) + { + if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberElement = Guid.Empty; + logger.LogDebug($"the ViewRenderingMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) + { + var propertyValue = ownedMemberElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberElement Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) + { + var propertyValue = ownedMemberElementIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberElementId = propertyValue; + } + } + else + { + logger.LogDebug("the ownedMemberElementId Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) + { + if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedMemberFeature = Guid.Empty; + logger.LogDebug($"the ViewRenderingMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) + { + var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedMemberFeature Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) + { + dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberName Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) + { + dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the ownedMemberShortName Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty)) { foreach (var arrayItem in ownedRelatedElementProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelatedElementExternalIdProperty)) { - var propertyValue = ownedRelatedElementIdProperty.GetString(); + var propertyValue = ownedRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -225,9 +427,9 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se { foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -241,6 +443,103 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the ownedRelationship Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + if (ownedRenderingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedRendering = Guid.Empty; + logger.LogDebug($"the ViewRenderingMembership.ownedRendering property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (ownedRenderingProperty.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty)) { if (owningRelatedElementProperty.ValueKind == JsonValueKind.Null) @@ -249,9 +548,9 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se } else { - if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementIdProperty)) + if (owningRelatedElementProperty.TryGetProperty("@id"u8, out var owningRelatedElementExternalIdProperty)) { - var propertyValue = owningRelatedElementIdProperty.GetString(); + var propertyValue = owningRelatedElementExternalIdProperty.GetString(); if (propertyValue != null) { @@ -273,9 +572,9 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -289,13 +588,101 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the owningRelationship Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = Guid.Empty; + logger.LogDebug($"the ViewRenderingMembership.owningType property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("referencedRendering"u8, out var referencedRenderingProperty)) + { + if (referencedRenderingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.referencedRendering = Guid.Empty; + logger.LogDebug($"the ViewRenderingMembership.referencedRendering property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (referencedRenderingProperty.TryGetProperty("@id"u8, out var referencedRenderingExternalIdProperty)) + { + var propertyValue = referencedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.referencedRendering = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the referencedRendering Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) + { + foreach (var arrayItem in relatedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) + { + var propertyValue = relatedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the relatedElement Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) { foreach (var arrayItem in sourceProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var sourceIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) { - var propertyValue = sourceIdProperty.GetString(); + var propertyValue = sourceExternalIdProperty.GetString(); if (propertyValue != null) { @@ -313,9 +700,9 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se { foreach (var arrayItem in targetProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var targetIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) { - var propertyValue = targetIdProperty.GetString(); + var propertyValue = targetExternalIdProperty.GetString(); if (propertyValue != null) { @@ -329,6 +716,26 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the target Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty)) { dtoInstance.Visibility = VisibilityKindDeSerializer.Deserialize(visibilityProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewUsageDeSerializer.cs index f1c4aab1c..1a2c99573 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IViewUsage DeSerialize(JsonElement jsonElement, SerializationMod throw new InvalidOperationException($"The ViewUsageDeSerializer can only be used to deserialize objects of type IViewUsage, a {@type.GetString()} was provided"); } - IViewUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.ViewUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.ViewUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -102,6 +102,50 @@ internal static IViewUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the aliasIds Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) + { + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the chainingFeature Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) + { + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the crossFeature Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,236 +164,2196 @@ internal static IViewUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in definitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - var propertyValue = elementIdProperty.GetString(); + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); - if (propertyValue != null) + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.ElementId = propertyValue; + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isConstant Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("exposedElement"u8, out var exposedElementProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in exposedElementProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var exposedElementExternalIdProperty)) + { + var propertyValue = exposedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.exposedElement.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the exposedElement Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isIndividual Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the ViewUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedMembership Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in inputProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } } - else + } + else + { + logger.LogDebug("the input Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = intersectingTypeExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the intersectingType Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } } else { - logger.LogDebug("the portionKind Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the isAbstract Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("itemDefinition"u8, out var itemDefinitionProperty)) + { + foreach (var arrayItem in itemDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var itemDefinitionExternalIdProperty)) + { + var propertyValue = itemDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.itemDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the itemDefinition Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("partDefinition"u8, out var partDefinitionProperty)) + { + foreach (var arrayItem in partDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var partDefinitionExternalIdProperty)) + { + var propertyValue = partDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.partDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the partDefinition Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("satisfiedViewpoint"u8, out var satisfiedViewpointProperty)) + { + foreach (var arrayItem in satisfiedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var satisfiedViewpointExternalIdProperty)) + { + var propertyValue = satisfiedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.satisfiedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the satisfiedViewpoint Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("viewCondition"u8, out var viewConditionProperty)) + { + foreach (var arrayItem in viewConditionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var viewConditionExternalIdProperty)) + { + var propertyValue = viewConditionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.viewCondition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the viewCondition Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("viewDefinition"u8, out var viewDefinitionProperty)) + { + if (viewDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.viewDefinition = null; + } + else + { + if (viewDefinitionProperty.TryGetProperty("@id"u8, out var viewDefinitionExternalIdProperty)) + { + var propertyValue = viewDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.viewDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the viewDefinition Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("viewRendering"u8, out var viewRenderingProperty)) + { + if (viewRenderingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.viewRendering = null; + } + else + { + if (viewRenderingProperty.TryGetProperty("@id"u8, out var viewRenderingExternalIdProperty)) + { + var propertyValue = viewRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.viewRendering = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the viewRendering Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointDefinitionDeSerializer.cs index 4fb109891..03291984b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointDefinitionDeSerializer.cs @@ -69,7 +69,7 @@ internal static IViewpointDefinition DeSerialize(JsonElement jsonElement, Serial throw new InvalidOperationException($"The ViewpointDefinitionDeSerializer can only be used to deserialize objects of type IViewpointDefinition, a {@type.GetString()} was provided"); } - IViewpointDefinition dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.ViewpointDefinition(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.ViewpointDefinition(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IViewpointDefinition DeSerialize(JsonElement jsonElement, Serial } } + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,6 +122,26 @@ internal static IViewpointDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the aliasIds Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("assumedConstraint"u8, out var assumedConstraintProperty)) + { + foreach (var arrayItem in assumedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var assumedConstraintExternalIdProperty)) + { + var propertyValue = assumedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.assumedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the assumedConstraint Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -120,6 +160,86 @@ internal static IViewpointDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the declaredShortName Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) + { + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the differencingType Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) + { + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedFeature Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) + { + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the directedUsage Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the documentation Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { var propertyValue = elementIdProperty.GetString(); @@ -134,6 +254,206 @@ internal static IViewpointDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the elementId Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) + { + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the endFeature Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("expression"u8, out var expressionProperty)) + { + foreach (var arrayItem in expressionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var expressionExternalIdProperty)) + { + var propertyValue = expressionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.expression.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the expression Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) + { + foreach (var arrayItem in featureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the feature Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) + { + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the featureMembership Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("framedConcern"u8, out var framedConcernProperty)) + { + foreach (var arrayItem in framedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var framedConcernExternalIdProperty)) + { + var propertyValue = framedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.framedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the framedConcern Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) + { + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the importedMembership Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) { if (isAbstractProperty.ValueKind != JsonValueKind.Null) @@ -146,6 +466,18 @@ internal static IViewpointDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isAbstract Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) { if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) @@ -170,6 +502,30 @@ internal static IViewpointDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isIndividual Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) { if (isSufficientProperty.ValueKind != JsonValueKind.Null) @@ -194,37 +550,1046 @@ internal static IViewpointDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isVariation Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in memberProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = memberExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.member.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + logger.LogDebug("the member Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + foreach (var arrayItem in membershipProperty.EnumerateArray()) { - dtoInstance.OwningRelationship = null; - } + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty)) + { + foreach (var arrayItem in ownedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedActionExternalIdProperty)) + { + var propertyValue = ownedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAction Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty)) + { + foreach (var arrayItem in ownedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAllocationExternalIdProperty)) + { + var propertyValue = ownedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAllocation Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty)) + { + foreach (var arrayItem in ownedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnalysisCaseExternalIdProperty)) + { + var propertyValue = ownedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnalysisCase Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty)) + { + foreach (var arrayItem in ownedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAttributeExternalIdProperty)) + { + var propertyValue = ownedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAttribute Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty)) + { + foreach (var arrayItem in ownedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCalculationExternalIdProperty)) + { + var propertyValue = ownedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCalculation Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty)) + { + foreach (var arrayItem in ownedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedCaseExternalIdProperty)) + { + var propertyValue = ownedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedCase Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty)) + { + foreach (var arrayItem in ownedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConcernExternalIdProperty)) + { + var propertyValue = ownedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConcern Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) + { + foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConnectionExternalIdProperty)) + { + var propertyValue = ownedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConnection Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) + { + foreach (var arrayItem in ownedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) + { + var propertyValue = ownedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedConstraint Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty)) + { + foreach (var arrayItem in ownedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEnumerationExternalIdProperty)) + { + var propertyValue = ownedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEnumeration Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty)) + { + foreach (var arrayItem in ownedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFlowExternalIdProperty)) + { + var propertyValue = ownedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFlow Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty)) + { + foreach (var arrayItem in ownedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedInterfaceExternalIdProperty)) + { + var propertyValue = ownedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedInterface Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty)) + { + foreach (var arrayItem in ownedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedItemExternalIdProperty)) + { + var propertyValue = ownedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedItem Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty)) + { + foreach (var arrayItem in ownedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMetadataExternalIdProperty)) + { + var propertyValue = ownedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMetadata Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty)) + { + foreach (var arrayItem in ownedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedOccurrenceExternalIdProperty)) + { + var propertyValue = ownedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedOccurrence Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty)) + { + foreach (var arrayItem in ownedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPartExternalIdProperty)) + { + var propertyValue = ownedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPart Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty)) + { + foreach (var arrayItem in ownedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedPortExternalIdProperty)) + { + var propertyValue = ownedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedPort Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty)) + { + foreach (var arrayItem in ownedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedReferenceExternalIdProperty)) + { + var propertyValue = ownedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedReference Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty)) + { + foreach (var arrayItem in ownedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRenderingExternalIdProperty)) + { + var propertyValue = ownedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRendering Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty)) + { + foreach (var arrayItem in ownedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRequirementExternalIdProperty)) + { + var propertyValue = ownedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRequirement Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty)) + { + foreach (var arrayItem in ownedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedStateExternalIdProperty)) + { + var propertyValue = ownedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedState Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty)) + { + foreach (var arrayItem in ownedSubclassificationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubclassificationExternalIdProperty)) + { + var propertyValue = ownedSubclassificationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubclassification.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubclassification Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty)) + { + foreach (var arrayItem in ownedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTransitionExternalIdProperty)) + { + var propertyValue = ownedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTransition Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty)) + { + foreach (var arrayItem in ownedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUsageExternalIdProperty)) + { + var propertyValue = ownedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUsage Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty)) + { + foreach (var arrayItem in ownedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUseCaseExternalIdProperty)) + { + var propertyValue = ownedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUseCase Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty)) + { + foreach (var arrayItem in ownedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedVerificationCaseExternalIdProperty)) + { + var propertyValue = ownedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedVerificationCase Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty)) + { + foreach (var arrayItem in ownedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewExternalIdProperty)) + { + var propertyValue = ownedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedView Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty)) + { + foreach (var arrayItem in ownedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedViewpointExternalIdProperty)) + { + var propertyValue = ownedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedViewpoint Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = owningRelationshipExternalIdProperty.GetString(); if (propertyValue != null) { @@ -238,6 +1603,35 @@ internal static IViewpointDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the owningRelationship Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty)) { dtoInstance.ReqId = reqIdProperty.GetString(); @@ -247,6 +1641,262 @@ internal static IViewpointDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the reqId Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); } + if (jsonElement.TryGetProperty("requiredConstraint"u8, out var requiredConstraintProperty)) + { + foreach (var arrayItem in requiredConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var requiredConstraintExternalIdProperty)) + { + var propertyValue = requiredConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.requiredConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the requiredConstraint Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the ViewpointDefinition.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("stakeholderParameter"u8, out var stakeholderParameterProperty)) + { + foreach (var arrayItem in stakeholderParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stakeholderParameterExternalIdProperty)) + { + var propertyValue = stakeholderParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.stakeholderParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the stakeholderParameter Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("step"u8, out var stepProperty)) + { + foreach (var arrayItem in stepProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stepExternalIdProperty)) + { + var propertyValue = stepExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.step.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the step Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the ViewpointDefinition.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("text"u8, out var textProperty)) + { + foreach (var arrayItem in textProperty.EnumerateArray()) + { + var propertyValue = arrayItem.GetString(); + + if (propertyValue != null) + { + dtoInstance.text.Add(propertyValue); + } + } + } + else + { + logger.LogDebug("the text Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("viewpointStakeholder"u8, out var viewpointStakeholderProperty)) + { + foreach (var arrayItem in viewpointStakeholderProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var viewpointStakeholderExternalIdProperty)) + { + var propertyValue = viewpointStakeholderExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.viewpointStakeholder.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the viewpointStakeholder Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); + } + return dtoInstance; } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointUsageDeSerializer.cs index 8273c9994..edbd8f2f0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IViewpointUsage DeSerialize(JsonElement jsonElement, Serializati throw new InvalidOperationException($"The ViewpointUsageDeSerializer can only be used to deserialize objects of type IViewpointUsage, a {@type.GetString()} was provided"); } - IViewpointUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.ViewpointUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Views.ViewpointUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IViewpointUsage DeSerialize(JsonElement jsonElement, Serializati } } + if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) + { + foreach (var arrayItem in actorParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actorParameterExternalIdProperty)) + { + var propertyValue = actorParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actorParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actorParameter Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,263 +122,2458 @@ internal static IViewpointUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("assumedConstraint"u8, out var assumedConstraintProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in assumedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var assumedConstraintExternalIdProperty)) + { + var propertyValue = assumedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.assumedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the assumedConstraint Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("constraintDefinition"u8, out var constraintDefinitionProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + if (constraintDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.constraintDefinition = null; + } + else + { + if (constraintDefinitionProperty.TryGetProperty("@id"u8, out var constraintDefinitionExternalIdProperty)) + { + var propertyValue = constraintDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.constraintDefinition = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the constraintDefinition Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isAbstract Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + dtoInstance.DeclaredName = declaredNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredName Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + { + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) + { + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isIndividual Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the ViewpointUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("framedConcern"u8, out var framedConcernProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in framedConcernProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var framedConcernExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = framedConcernExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.framedConcern.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the framedConcern Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (functionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.function = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = functionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.function = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the function Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) + { + var propertyValue = importedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty)) - { - dtoInstance.ReqId = reqIdProperty.GetString(); - } - else + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - logger.LogDebug("the reqId Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.individualDefinition = null; + } + else + { + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) + { + var propertyValue = individualDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.individualDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the individualDefinition Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) + { + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedFeature Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty)) + { + if (isModelLevelEvaluableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isModelLevelEvaluable = isModelLevelEvaluableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isModelLevelEvaluable Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) + { + if (predicateProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.predicate = null; + } + else + { + if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) + { + var propertyValue = predicateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.predicate = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the predicate Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty)) + { + dtoInstance.ReqId = reqIdProperty.GetString(); + } + else + { + logger.LogDebug("the reqId Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("requiredConstraint"u8, out var requiredConstraintProperty)) + { + foreach (var arrayItem in requiredConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var requiredConstraintExternalIdProperty)) + { + var propertyValue = requiredConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.requiredConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the requiredConstraint Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("requirementDefinition"u8, out var requirementDefinitionProperty)) + { + if (requirementDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.requirementDefinition = null; + } + else + { + if (requirementDefinitionProperty.TryGetProperty("@id"u8, out var requirementDefinitionExternalIdProperty)) + { + var propertyValue = requirementDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.requirementDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the requirementDefinition Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) + { + if (resultProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.result = Guid.Empty; + logger.LogDebug($"the ViewpointUsage.result property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (resultProperty.TryGetProperty("@id"u8, out var resultExternalIdProperty)) + { + var propertyValue = resultExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.result = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the result Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("stakeholderParameter"u8, out var stakeholderParameterProperty)) + { + foreach (var arrayItem in stakeholderParameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var stakeholderParameterExternalIdProperty)) + { + var propertyValue = stakeholderParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.stakeholderParameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the stakeholderParameter Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty)) + { + if (subjectParameterProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.subjectParameter = Guid.Empty; + logger.LogDebug($"the ViewpointUsage.subjectParameter property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (subjectParameterProperty.TryGetProperty("@id"u8, out var subjectParameterExternalIdProperty)) + { + var propertyValue = subjectParameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.subjectParameter = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the subjectParameter Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("text"u8, out var textProperty)) + { + foreach (var arrayItem in textProperty.EnumerateArray()) + { + var propertyValue = arrayItem.GetString(); + + if (propertyValue != null) + { + dtoInstance.text.Add(propertyValue); + } + } + } + else + { + logger.LogDebug("the text Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("viewpointDefinition"u8, out var viewpointDefinitionProperty)) + { + if (viewpointDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.viewpointDefinition = null; + } + else + { + if (viewpointDefinitionProperty.TryGetProperty("@id"u8, out var viewpointDefinitionExternalIdProperty)) + { + var propertyValue = viewpointDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.viewpointDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the viewpointDefinition Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("viewpointStakeholder"u8, out var viewpointStakeholderProperty)) + { + foreach (var arrayItem in viewpointStakeholderProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var viewpointStakeholderExternalIdProperty)) + { + var propertyValue = viewpointStakeholderExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.viewpointStakeholder.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the viewpointStakeholder Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/WhileLoopActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/WhileLoopActionUsageDeSerializer.cs index df12a923d..a0752a0f6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/WhileLoopActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/WhileLoopActionUsageDeSerializer.cs @@ -69,7 +69,7 @@ internal static IWhileLoopActionUsage DeSerialize(JsonElement jsonElement, Seria throw new InvalidOperationException($"The WhileLoopActionUsageDeSerializer can only be used to deserialize objects of type IWhileLoopActionUsage, a {@type.GetString()} was provided"); } - IWhileLoopActionUsage dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.WhileLoopActionUsage(); + var dtoInstance = new SysML2.NET.Core.DTO.Systems.Actions.WhileLoopActionUsage(); if (jsonElement.TryGetProperty("@id"u8, out var idProperty)) { @@ -85,6 +85,26 @@ internal static IWhileLoopActionUsage DeSerialize(JsonElement jsonElement, Seria } } + if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) + { + foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) + { + var propertyValue = actionDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the actionDefinition Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -102,254 +122,2224 @@ internal static IWhileLoopActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the aliasIds Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) + if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) { - dtoInstance.DeclaredName = declaredNameProperty.GetString(); + foreach (var arrayItem in behaviorProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) + { + var propertyValue = behaviorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.behavior.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the declaredName Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the behavior Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) + if (jsonElement.TryGetProperty("bodyAction"u8, out var bodyActionProperty)) { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + if (bodyActionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.bodyAction = Guid.Empty; + logger.LogDebug($"the WhileLoopActionUsage.bodyAction property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (bodyActionProperty.TryGetProperty("@id"u8, out var bodyActionExternalIdProperty)) + { + var propertyValue = bodyActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.bodyAction = Guid.Parse(propertyValue); + } + } + } } else { - logger.LogDebug("the declaredShortName Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the bodyAction Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) + if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { - dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var chainingFeatureExternalIdProperty)) + { + var propertyValue = chainingFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.chainingFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the direction Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the chainingFeature Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) + if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { - var propertyValue = elementIdProperty.GetString(); - - if (propertyValue != null) + if (crossFeatureProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.ElementId = propertyValue; + dtoInstance.crossFeature = null; + } + else + { + if (crossFeatureProperty.TryGetProperty("@id"u8, out var crossFeatureExternalIdProperty)) + { + var propertyValue = crossFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.crossFeature = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the elementId Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the crossFeature Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { - if (isAbstractProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); - } + dtoInstance.DeclaredName = declaredNameProperty.GetString(); } else { - logger.LogDebug("the isAbstract Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the declaredName Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) { - if (isCompositeProperty.ValueKind != JsonValueKind.Null) + dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); + } + else + { + logger.LogDebug("the declaredShortName Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) + { + foreach (var arrayItem in definitionProperty.EnumerateArray()) { - dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) + { + var propertyValue = definitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.definition.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isComposite Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the definition Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { - if (isConstantProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) { - dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var differencingTypeExternalIdProperty)) + { + var propertyValue = differencingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.differencingType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isConstant Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the differencingType Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) { - if (isDerivedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) { - dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) + { + var propertyValue = directedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isDerived Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedFeature Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { - if (isEndProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in directedUsageProperty.EnumerateArray()) { - dtoInstance.IsEnd = isEndProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var directedUsageExternalIdProperty)) + { + var propertyValue = directedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.directedUsage.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isEnd Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the directedUsage Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { - if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); + } + else + { + logger.LogDebug("the direction Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) + { + foreach (var arrayItem in documentationProperty.EnumerateArray()) { - dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var documentationExternalIdProperty)) + { + var propertyValue = documentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.documentation.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isImpliedIncluded Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the documentation Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty)) { - if (isIndividualProperty.ValueKind != JsonValueKind.Null) + var propertyValue = elementIdProperty.GetString(); + + if (propertyValue != null) { - dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + dtoInstance.ElementId = propertyValue; } } else { - logger.LogDebug("the isIndividual Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the elementId Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) { - if (isOrderedProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in endFeatureProperty.EnumerateArray()) { - dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) + { + var propertyValue = endFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isOrdered Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endFeature Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { - if (isPortionProperty.ValueKind != JsonValueKind.Null) + if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + dtoInstance.endOwningType = null; + } + else + { + if (endOwningTypeProperty.TryGetProperty("@id"u8, out var endOwningTypeExternalIdProperty)) + { + var propertyValue = endOwningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.endOwningType = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isPortion Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the endOwningType Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { - if (isSufficientProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureProperty.EnumerateArray()) { - dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureExternalIdProperty)) + { + var propertyValue = featureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.feature.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isSufficient Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the feature Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty)) { - if (isUniqueProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featureMembershipProperty.EnumerateArray()) { - dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featureMembershipExternalIdProperty)) + { + var propertyValue = featureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureMembership.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isUnique Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureMembership Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty)) { - if (isVariableProperty.ValueKind != JsonValueKind.Null) + if (featureTargetProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + dtoInstance.featureTarget = Guid.Empty; + logger.LogDebug($"the WhileLoopActionUsage.featureTarget property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (featureTargetProperty.TryGetProperty("@id"u8, out var featureTargetExternalIdProperty)) + { + var propertyValue = featureTargetExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featureTarget = Guid.Parse(propertyValue); + } + } } } else { - logger.LogDebug("the isVariable Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featureTarget Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty)) { - if (isVariationProperty.ValueKind != JsonValueKind.Null) + foreach (var arrayItem in featuringTypeProperty.EnumerateArray()) { - dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + if (arrayItem.TryGetProperty("@id"u8, out var featuringTypeExternalIdProperty)) + { + var propertyValue = featuringTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.featuringType.Add(Guid.Parse(propertyValue)); + } + } } } else { - logger.LogDebug("the isVariation Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the featuringType Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { - foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) { - if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipIdProperty)) + if (arrayItem.TryGetProperty("@id"u8, out var importedMembershipExternalIdProperty)) { - var propertyValue = ownedRelationshipIdProperty.GetString(); + var propertyValue = importedMembershipExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + dtoInstance.importedMembership.Add(Guid.Parse(propertyValue)); } } } } else { - logger.LogDebug("the ownedRelationship Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the importedMembership Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty)) { - if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + if (individualDefinitionProperty.ValueKind == JsonValueKind.Null) { - dtoInstance.OwningRelationship = null; + dtoInstance.individualDefinition = null; } else { - if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipIdProperty)) + if (individualDefinitionProperty.TryGetProperty("@id"u8, out var individualDefinitionExternalIdProperty)) { - var propertyValue = owningRelationshipIdProperty.GetString(); + var propertyValue = individualDefinitionExternalIdProperty.GetString(); if (propertyValue != null) { - dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + dtoInstance.individualDefinition = Guid.Parse(propertyValue); } } } } else { - logger.LogDebug("the owningRelationship Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the individualDefinition Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty)) { - dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + foreach (var arrayItem in inheritedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedFeatureExternalIdProperty)) + { + var propertyValue = inheritedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedFeature.Add(Guid.Parse(propertyValue)); + } + } + } } else { - logger.LogDebug("the portionKind Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + logger.LogDebug("the inheritedFeature Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty)) + { + foreach (var arrayItem in inheritedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inheritedMembershipExternalIdProperty)) + { + var propertyValue = inheritedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.inheritedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the inheritedMembership Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("input"u8, out var inputProperty)) + { + foreach (var arrayItem in inputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var inputExternalIdProperty)) + { + var propertyValue = inputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.input.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the input Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) + { + foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var intersectingTypeExternalIdProperty)) + { + var propertyValue = intersectingTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.intersectingType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the intersectingType Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty)) + { + if (isAbstractProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsAbstract = isAbstractProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isAbstract Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty)) + { + if (isCompositeProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsComposite = isCompositeProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isComposite Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty)) + { + if (isConjugatedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isConjugated = isConjugatedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConjugated Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty)) + { + if (isConstantProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsConstant = isConstantProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isConstant Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty)) + { + if (isDerivedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsDerived = isDerivedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isDerived Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty)) + { + if (isEndProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsEnd = isEndProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isEnd Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty)) + { + if (isImpliedIncludedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsImpliedIncluded = isImpliedIncludedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isImpliedIncluded Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty)) + { + if (isIndividualProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsIndividual = isIndividualProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isIndividual Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty)) + { + if (isLibraryElementProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isLibraryElement = isLibraryElementProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isLibraryElement Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty)) + { + if (isOrderedProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsOrdered = isOrderedProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isOrdered Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty)) + { + if (isPortionProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsPortion = isPortionProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isPortion Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty)) + { + if (isReferenceProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.isReference = isReferenceProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isReference Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty)) + { + if (isSufficientProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsSufficient = isSufficientProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isSufficient Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty)) + { + if (isUniqueProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsUnique = isUniqueProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isUnique Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) + { + if (isVariableProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariable = isVariableProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariable Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) + { + if (isVariationProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.IsVariation = isVariationProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the isVariation Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) + { + if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) + { + dtoInstance.mayTimeVary = mayTimeVaryProperty.GetBoolean(); + } + } + else + { + logger.LogDebug("the mayTimeVary Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("member"u8, out var memberProperty)) + { + foreach (var arrayItem in memberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var memberExternalIdProperty)) + { + var propertyValue = memberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.member.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the member Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty)) + { + foreach (var arrayItem in membershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var membershipExternalIdProperty)) + { + var propertyValue = membershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.membership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the membership Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty)) + { + if (multiplicityProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.multiplicity = null; + } + else + { + if (multiplicityProperty.TryGetProperty("@id"u8, out var multiplicityExternalIdProperty)) + { + var propertyValue = multiplicityExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.multiplicity = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the multiplicity Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) + { + dtoInstance.name = nameProperty.GetString(); + } + else + { + logger.LogDebug("the name Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty)) + { + foreach (var arrayItem in nestedActionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedActionExternalIdProperty)) + { + var propertyValue = nestedActionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAction.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAction Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty)) + { + foreach (var arrayItem in nestedAllocationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAllocationExternalIdProperty)) + { + var propertyValue = nestedAllocationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAllocation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAllocation Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty)) + { + foreach (var arrayItem in nestedAnalysisCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAnalysisCaseExternalIdProperty)) + { + var propertyValue = nestedAnalysisCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAnalysisCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAnalysisCase Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty)) + { + foreach (var arrayItem in nestedAttributeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedAttributeExternalIdProperty)) + { + var propertyValue = nestedAttributeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedAttribute.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedAttribute Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty)) + { + foreach (var arrayItem in nestedCalculationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCalculationExternalIdProperty)) + { + var propertyValue = nestedCalculationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCalculation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCalculation Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty)) + { + foreach (var arrayItem in nestedCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedCaseExternalIdProperty)) + { + var propertyValue = nestedCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedCase Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty)) + { + foreach (var arrayItem in nestedConcernProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConcernExternalIdProperty)) + { + var propertyValue = nestedConcernExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConcern.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConcern Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty)) + { + foreach (var arrayItem in nestedConnectionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConnectionExternalIdProperty)) + { + var propertyValue = nestedConnectionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConnection.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConnection Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty)) + { + foreach (var arrayItem in nestedConstraintProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedConstraintExternalIdProperty)) + { + var propertyValue = nestedConstraintExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedConstraint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedConstraint Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty)) + { + foreach (var arrayItem in nestedEnumerationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedEnumerationExternalIdProperty)) + { + var propertyValue = nestedEnumerationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedEnumeration.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedEnumeration Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty)) + { + foreach (var arrayItem in nestedFlowProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedFlowExternalIdProperty)) + { + var propertyValue = nestedFlowExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedFlow.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedFlow Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty)) + { + foreach (var arrayItem in nestedInterfaceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedInterfaceExternalIdProperty)) + { + var propertyValue = nestedInterfaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedInterface.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedInterface Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty)) + { + foreach (var arrayItem in nestedItemProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedItemExternalIdProperty)) + { + var propertyValue = nestedItemExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedItem.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedItem Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty)) + { + foreach (var arrayItem in nestedMetadataProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedMetadataExternalIdProperty)) + { + var propertyValue = nestedMetadataExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedMetadata.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedMetadata Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty)) + { + foreach (var arrayItem in nestedOccurrenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedOccurrenceExternalIdProperty)) + { + var propertyValue = nestedOccurrenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedOccurrence.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedOccurrence Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty)) + { + foreach (var arrayItem in nestedPartProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPartExternalIdProperty)) + { + var propertyValue = nestedPartExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPart.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPart Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty)) + { + foreach (var arrayItem in nestedPortProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedPortExternalIdProperty)) + { + var propertyValue = nestedPortExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedPort.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedPort Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty)) + { + foreach (var arrayItem in nestedReferenceProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedReferenceExternalIdProperty)) + { + var propertyValue = nestedReferenceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedReference.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedReference Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty)) + { + foreach (var arrayItem in nestedRenderingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRenderingExternalIdProperty)) + { + var propertyValue = nestedRenderingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRendering.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRendering Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty)) + { + foreach (var arrayItem in nestedRequirementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedRequirementExternalIdProperty)) + { + var propertyValue = nestedRequirementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedRequirement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedRequirement Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty)) + { + foreach (var arrayItem in nestedStateProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedStateExternalIdProperty)) + { + var propertyValue = nestedStateExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedState.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedState Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty)) + { + foreach (var arrayItem in nestedTransitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedTransitionExternalIdProperty)) + { + var propertyValue = nestedTransitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedTransition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedTransition Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty)) + { + foreach (var arrayItem in nestedUsageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUsageExternalIdProperty)) + { + var propertyValue = nestedUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUsage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUsage Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty)) + { + foreach (var arrayItem in nestedUseCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedUseCaseExternalIdProperty)) + { + var propertyValue = nestedUseCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedUseCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedUseCase Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty)) + { + foreach (var arrayItem in nestedVerificationCaseProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedVerificationCaseExternalIdProperty)) + { + var propertyValue = nestedVerificationCaseExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedVerificationCase.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedVerificationCase Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty)) + { + foreach (var arrayItem in nestedViewProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewExternalIdProperty)) + { + var propertyValue = nestedViewExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedView.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedView Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty)) + { + foreach (var arrayItem in nestedViewpointProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var nestedViewpointExternalIdProperty)) + { + var propertyValue = nestedViewpointExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.nestedViewpoint.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the nestedViewpoint Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) + { + foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) + { + var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the occurrenceDefinition Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) + { + foreach (var arrayItem in outputProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var outputExternalIdProperty)) + { + var propertyValue = outputExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.output.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the output Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) + { + foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedAnnotationExternalIdProperty)) + { + var propertyValue = ownedAnnotationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedAnnotation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedAnnotation Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) + { + if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedConjugator = null; + } + else + { + if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) + { + var propertyValue = ownedConjugatorExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedConjugator = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedConjugator Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty)) + { + if (ownedCrossSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedCrossSubsetting = null; + } + else + { + if (ownedCrossSubsettingProperty.TryGetProperty("@id"u8, out var ownedCrossSubsettingExternalIdProperty)) + { + var propertyValue = ownedCrossSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedCrossSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedCrossSubsetting Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty)) + { + foreach (var arrayItem in ownedDifferencingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDifferencingExternalIdProperty)) + { + var propertyValue = ownedDifferencingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDifferencing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDifferencing Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty)) + { + foreach (var arrayItem in ownedDisjoiningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedDisjoiningExternalIdProperty)) + { + var propertyValue = ownedDisjoiningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedDisjoining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedDisjoining Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) + { + foreach (var arrayItem in ownedElementProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedElementExternalIdProperty)) + { + var propertyValue = ownedElementExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedElement.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedElement Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty)) + { + foreach (var arrayItem in ownedEndFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedEndFeatureExternalIdProperty)) + { + var propertyValue = ownedEndFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedEndFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedEndFeature Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty)) + { + foreach (var arrayItem in ownedFeatureProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureExternalIdProperty)) + { + var propertyValue = ownedFeatureExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeature.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeature Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty)) + { + foreach (var arrayItem in ownedFeatureChainingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureChainingExternalIdProperty)) + { + var propertyValue = ownedFeatureChainingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureChaining.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureChaining Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty)) + { + foreach (var arrayItem in ownedFeatureInvertingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureInvertingExternalIdProperty)) + { + var propertyValue = ownedFeatureInvertingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureInverting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureInverting Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty)) + { + foreach (var arrayItem in ownedFeatureMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedFeatureMembershipExternalIdProperty)) + { + var propertyValue = ownedFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedFeatureMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedFeatureMembership Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty)) + { + foreach (var arrayItem in ownedImportProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedImportExternalIdProperty)) + { + var propertyValue = ownedImportExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedImport.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedImport Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty)) + { + foreach (var arrayItem in ownedIntersectingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedIntersectingExternalIdProperty)) + { + var propertyValue = ownedIntersectingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedIntersecting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedIntersecting Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty)) + { + foreach (var arrayItem in ownedMemberProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMemberExternalIdProperty)) + { + var propertyValue = ownedMemberExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMember.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMember Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty)) + { + foreach (var arrayItem in ownedMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedMembershipExternalIdProperty)) + { + var propertyValue = ownedMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedMembership Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty)) + { + foreach (var arrayItem in ownedRedefinitionProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRedefinitionExternalIdProperty)) + { + var propertyValue = ownedRedefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedRedefinition.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRedefinition Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty)) + { + if (ownedReferenceSubsettingProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.ownedReferenceSubsetting = null; + } + else + { + if (ownedReferenceSubsettingProperty.TryGetProperty("@id"u8, out var ownedReferenceSubsettingExternalIdProperty)) + { + var propertyValue = ownedReferenceSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedReferenceSubsetting = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty)) + { + foreach (var arrayItem in ownedRelationshipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedRelationshipExternalIdProperty)) + { + var propertyValue = ownedRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwnedRelationship.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedRelationship Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty)) + { + foreach (var arrayItem in ownedSpecializationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSpecializationExternalIdProperty)) + { + var propertyValue = ownedSpecializationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSpecialization.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSpecialization Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty)) + { + foreach (var arrayItem in ownedSubsettingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedSubsettingExternalIdProperty)) + { + var propertyValue = ownedSubsettingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedSubsetting.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedSubsetting Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty)) + { + foreach (var arrayItem in ownedTypeFeaturingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypeFeaturingExternalIdProperty)) + { + var propertyValue = ownedTypeFeaturingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTypeFeaturing.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTypeFeaturing Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty)) + { + foreach (var arrayItem in ownedTypingProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedTypingExternalIdProperty)) + { + var propertyValue = ownedTypingExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedTyping.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedTyping Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty)) + { + foreach (var arrayItem in ownedUnioningProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var ownedUnioningExternalIdProperty)) + { + var propertyValue = ownedUnioningExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.ownedUnioning.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the ownedUnioning Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty)) + { + if (ownerProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owner = null; + } + else + { + if (ownerProperty.TryGetProperty("@id"u8, out var ownerExternalIdProperty)) + { + var propertyValue = ownerExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owner = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owner Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty)) + { + if (owningDefinitionProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningDefinition = null; + } + else + { + if (owningDefinitionProperty.TryGetProperty("@id"u8, out var owningDefinitionExternalIdProperty)) + { + var propertyValue = owningDefinitionExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningDefinition = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningDefinition Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty)) + { + if (owningFeatureMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningFeatureMembership = null; + } + else + { + if (owningFeatureMembershipProperty.TryGetProperty("@id"u8, out var owningFeatureMembershipExternalIdProperty)) + { + var propertyValue = owningFeatureMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningFeatureMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningFeatureMembership Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) + { + if (owningMembershipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningMembership = null; + } + else + { + if (owningMembershipProperty.TryGetProperty("@id"u8, out var owningMembershipExternalIdProperty)) + { + var propertyValue = owningMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningMembership = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningMembership Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) + { + if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningNamespace = null; + } + else + { + if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) + { + var propertyValue = owningNamespaceExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningNamespace = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningNamespace Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) + { + if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.OwningRelationship = null; + } + else + { + if (owningRelationshipProperty.TryGetProperty("@id"u8, out var owningRelationshipExternalIdProperty)) + { + var propertyValue = owningRelationshipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.OwningRelationship = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningRelationship Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) + { + if (owningTypeProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningType = null; + } + else + { + if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) + { + var propertyValue = owningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningType = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningType Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty)) + { + if (owningUsageProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.owningUsage = null; + } + else + { + if (owningUsageProperty.TryGetProperty("@id"u8, out var owningUsageExternalIdProperty)) + { + var propertyValue = owningUsageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.owningUsage = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the owningUsage Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty)) + { + foreach (var arrayItem in parameterProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var parameterExternalIdProperty)) + { + var propertyValue = parameterExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.parameter.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the parameter Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) + { + dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); + } + else + { + logger.LogDebug("the portionKind Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) + { + dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); + } + else + { + logger.LogDebug("the qualifiedName Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty)) + { + dtoInstance.shortName = shortNameProperty.GetString(); + } + else + { + logger.LogDebug("the shortName Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) + { + foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var textualRepresentationExternalIdProperty)) + { + var propertyValue = textualRepresentationExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.textualRepresentation.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the textualRepresentation Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) + { + foreach (var arrayItem in typeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) + { + var propertyValue = typeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.type.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the type Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) + { + foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var unioningTypeExternalIdProperty)) + { + var propertyValue = unioningTypeExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.unioningType.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the unioningType Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("untilArgument"u8, out var untilArgumentProperty)) + { + if (untilArgumentProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.untilArgument = null; + } + else + { + if (untilArgumentProperty.TryGetProperty("@id"u8, out var untilArgumentExternalIdProperty)) + { + var propertyValue = untilArgumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.untilArgument = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the untilArgument Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("usage"u8, out var usageProperty)) + { + foreach (var arrayItem in usageProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var usageExternalIdProperty)) + { + var propertyValue = usageExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.usage.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the usage Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) + { + foreach (var arrayItem in variantProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) + { + var propertyValue = variantExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variant.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variant Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) + { + foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) + { + if (arrayItem.TryGetProperty("@id"u8, out var variantMembershipExternalIdProperty)) + { + var propertyValue = variantMembershipExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.variantMembership.Add(Guid.Parse(propertyValue)); + } + } + } + } + else + { + logger.LogDebug("the variantMembership Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); + } + + if (jsonElement.TryGetProperty("whileArgument"u8, out var whileArgumentProperty)) + { + if (whileArgumentProperty.ValueKind == JsonValueKind.Null) + { + dtoInstance.whileArgument = Guid.Empty; + logger.LogDebug($"the WhileLoopActionUsage.whileArgument property was not found in the Json. The value is set to Guid.Empty"); + } + else + { + if (whileArgumentProperty.TryGetProperty("@id"u8, out var whileArgumentExternalIdProperty)) + { + var propertyValue = whileArgumentExternalIdProperty.GetString(); + + if (propertyValue != null) + { + dtoInstance.whileArgument = Guid.Parse(propertyValue); + } + } + } + } + else + { + logger.LogDebug("the whileArgument Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AcceptActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AcceptActionUsageSerializer.cs index 09590ae92..a8749e83e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AcceptActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AcceptActionUsageSerializer.cs @@ -49,21 +49,1310 @@ internal static class AcceptActionUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAcceptActionUsage iAcceptActionUsage) { - throw new ArgumentException("The object shall be an IAcceptActionUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IAcceptActionUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("AcceptActionUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAcceptActionUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAcceptActionUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAcceptActionUsage iAcceptActionUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iAcceptActionUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAcceptActionUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iAcceptActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iAcceptActionUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iAcceptActionUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAcceptActionUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAcceptActionUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iAcceptActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iAcceptActionUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAcceptActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iAcceptActionUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iAcceptActionUsage.Direction.HasValue) + { + writer.WriteStringValue(iAcceptActionUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAcceptActionUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAcceptActionUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAcceptActionUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iAcceptActionUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iAcceptActionUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iAcceptActionUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iAcceptActionUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iAcceptActionUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iAcceptActionUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iAcceptActionUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iAcceptActionUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iAcceptActionUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iAcceptActionUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iAcceptActionUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAcceptActionUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iAcceptActionUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iAcceptActionUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iAcceptActionUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iAcceptActionUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iAcceptActionUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAcceptActionUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iAcceptActionUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iAcceptActionUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iAcceptActionUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iAcceptActionUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iAcceptActionUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iAcceptActionUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iAcceptActionUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iAcceptActionUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iAcceptActionUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iAcceptActionUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iAcceptActionUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iAcceptActionUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iAcceptActionUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iAcceptActionUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iAcceptActionUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iAcceptActionUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iAcceptActionUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iAcceptActionUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iAcceptActionUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iAcceptActionUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iAcceptActionUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iAcceptActionUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iAcceptActionUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iAcceptActionUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iAcceptActionUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iAcceptActionUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iAcceptActionUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iAcceptActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iAcceptActionUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAcceptActionUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iAcceptActionUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iAcceptActionUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iAcceptActionUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iAcceptActionUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAcceptActionUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iAcceptActionUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iAcceptActionUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iAcceptActionUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iAcceptActionUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iAcceptActionUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iAcceptActionUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iAcceptActionUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iAcceptActionUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iAcceptActionUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iAcceptActionUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iAcceptActionUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAcceptActionUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iAcceptActionUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iAcceptActionUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("AcceptActionUsage"u8); + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iAcceptActionUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iAcceptActionUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iAcceptActionUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAcceptActionUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iAcceptActionUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iAcceptActionUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAcceptActionUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAcceptActionUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAcceptActionUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iAcceptActionUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iAcceptActionUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iAcceptActionUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("payloadArgument"u8); + + if (iAcceptActionUsage.payloadArgument.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.payloadArgument.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("payloadParameter"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAcceptActionUsage.Id); + writer.WriteStringValue(iAcceptActionUsage.payloadParameter); + writer.WriteEndObject(); + + writer.WritePropertyName("portionKind"u8); + + if (iAcceptActionUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iAcceptActionUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAcceptActionUsage.qualifiedName); + + writer.WritePropertyName("receiverArgument"u8); + + if (iAcceptActionUsage.receiverArgument.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAcceptActionUsage.receiverArgument.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAcceptActionUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAcceptActionUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iAcceptActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iAcceptActionUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iAcceptActionUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iAcceptActionUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iAcceptActionUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAcceptActionUsage iAcceptActionUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAcceptActionUsage.AliasIds) @@ -169,7 +1458,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionDefinitionSerializer.cs index 40e463a05..8e56c9e40 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class ActionDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IActionDefinition iActionDefinition) { @@ -64,6 +67,41 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iActionDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iActionDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iActionDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IActionDefinition iActionDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("action"u8); + + foreach (var item in iActionDefinition.action) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("aliasIds"u8); foreach (var item in iActionDefinition.AliasIds) @@ -79,27 +117,177 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iActionDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iActionDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iActionDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iActionDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iActionDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iActionDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iActionDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iActionDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iActionDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iActionDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iActionDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iActionDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iActionDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iActionDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iActionDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iActionDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iActionDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iActionDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iActionDefinition.isLibraryElement); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iActionDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iActionDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iActionDefinition.OwnedRelationship) + foreach (var item in iActionDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +297,776 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iActionDefinition.OwningRelationship.HasValue) + foreach (var item in iActionDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iActionDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iActionDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iActionDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iActionDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iActionDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iActionDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iActionDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iActionDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iActionDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iActionDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iActionDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iActionDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iActionDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iActionDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iActionDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iActionDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iActionDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iActionDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iActionDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iActionDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iActionDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iActionDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iActionDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iActionDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iActionDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iActionDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iActionDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iActionDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iActionDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iActionDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iActionDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iActionDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iActionDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iActionDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iActionDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iActionDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iActionDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iActionDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iActionDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iActionDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iActionDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iActionDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iActionDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iActionDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iActionDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iActionDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iActionDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iActionDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iActionDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iActionDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iActionDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iActionDefinition.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iActionDefinition.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iActionDefinition.shortName); + + writer.WriteStartArray("step"u8); + + foreach (var item in iActionDefinition.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iActionDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iActionDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iActionDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iActionDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iActionDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IActionDefinition iActionDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iActionDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iActionDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iActionDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iActionDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iActionDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iActionDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iActionDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iActionDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iActionDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iActionDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iActionDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1074,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionUsageSerializer.cs index 9e4d6b6a2..0e6897c9b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionUsageSerializer.cs @@ -49,21 +49,1276 @@ internal static class ActionUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IActionUsage iActionUsage) { - throw new ArgumentException("The object shall be an IActionUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IActionUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("ActionUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iActionUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iActionUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IActionUsage iActionUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iActionUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iActionUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iActionUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iActionUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iActionUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iActionUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iActionUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iActionUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iActionUsage.Direction.HasValue) + { + writer.WriteStringValue(iActionUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iActionUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iActionUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iActionUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iActionUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iActionUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iActionUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iActionUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iActionUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iActionUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iActionUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iActionUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iActionUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iActionUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iActionUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iActionUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iActionUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iActionUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iActionUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iActionUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iActionUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iActionUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iActionUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iActionUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iActionUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iActionUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iActionUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iActionUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iActionUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iActionUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iActionUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iActionUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iActionUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iActionUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iActionUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iActionUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iActionUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iActionUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iActionUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iActionUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iActionUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iActionUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iActionUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iActionUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iActionUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iActionUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iActionUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iActionUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iActionUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iActionUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iActionUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iActionUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iActionUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iActionUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iActionUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iActionUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iActionUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iActionUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iActionUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iActionUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iActionUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iActionUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iActionUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iActionUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iActionUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iActionUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iActionUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iActionUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iActionUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iActionUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iActionUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iActionUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iActionUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iActionUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iActionUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iActionUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iActionUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iActionUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iActionUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iActionUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("ActionUsage"u8); + foreach (var item in iActionUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iActionUsage.Id); + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iActionUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iActionUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iActionUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iActionUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iActionUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iActionUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iActionUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iActionUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iActionUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iActionUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + if (iActionUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iActionUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iActionUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActionUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iActionUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iActionUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iActionUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iActionUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iActionUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iActionUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iActionUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iActionUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iActionUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iActionUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IActionUsage iActionUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iActionUsage.AliasIds) @@ -169,7 +1424,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActorMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActorMembershipSerializer.cs index 7d057ef83..f25a12ede 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActorMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActorMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class ActorMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IActorMembership iActorMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iActorMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iActorMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iActorMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IActorMembership iActorMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iActorMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iActorMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iActorMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iActorMembership.ElementId); @@ -88,18 +126,90 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iActorMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iActorMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iActorMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iActorMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iActorMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iActorMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iActorMembership.name); + + writer.WritePropertyName("ownedActorParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.ownedActorParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iActorMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iActorMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iActorMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iActorMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.ownedMemberParameter); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iActorMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iActorMembership.OwnedRelatedElement) @@ -124,6 +234,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iActorMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iActorMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iActorMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iActorMembership.OwningRelatedElement.HasValue) @@ -152,6 +304,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iActorMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iActorMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iActorMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iActorMembership.Source) @@ -176,10 +352,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iActorMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iActorMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IActorMembership iActorMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iActorMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iActorMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iActorMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iActorMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iActorMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iActorMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iActorMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iActorMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iActorMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iActorMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iActorMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iActorMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iActorMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iActorMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iActorMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationDefinitionSerializer.cs index 9c5de3c65..2d3ab961a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationDefinitionSerializer.cs @@ -49,21 +49,1075 @@ internal static class AllocationDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAllocationDefinition iAllocationDefinition) { - throw new ArgumentException("The object shall be an IAllocationDefinition", nameof(obj)); + throw new ArgumentException("The object shall be an IAllocationDefinition", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("AllocationDefinition"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationDefinition.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAllocationDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAllocationDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAllocationDefinition iAllocationDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAllocationDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("allocation"u8); + + foreach (var item in iAllocationDefinition.allocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("associationEnd"u8); + + foreach (var item in iAllocationDefinition.associationEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectionEnd"u8); + + foreach (var item in iAllocationDefinition.connectionEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAllocationDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAllocationDefinition.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iAllocationDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAllocationDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iAllocationDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAllocationDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAllocationDefinition.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAllocationDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iAllocationDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iAllocationDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iAllocationDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iAllocationDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iAllocationDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iAllocationDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iAllocationDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iAllocationDefinition.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iAllocationDefinition.isConjugated); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iAllocationDefinition.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAllocationDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iAllocationDefinition.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAllocationDefinition.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iAllocationDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iAllocationDefinition.IsVariation); + + writer.WriteStartArray("member"u8); + + foreach (var item in iAllocationDefinition.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iAllocationDefinition.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iAllocationDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAllocationDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iAllocationDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iAllocationDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iAllocationDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iAllocationDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAllocationDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iAllocationDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iAllocationDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iAllocationDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iAllocationDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iAllocationDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iAllocationDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iAllocationDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iAllocationDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iAllocationDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAllocationDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iAllocationDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iAllocationDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iAllocationDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iAllocationDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iAllocationDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iAllocationDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iAllocationDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iAllocationDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iAllocationDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iAllocationDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iAllocationDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iAllocationDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iAllocationDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iAllocationDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iAllocationDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iAllocationDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iAllocationDefinition.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAllocationDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iAllocationDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iAllocationDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iAllocationDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iAllocationDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iAllocationDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iAllocationDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iAllocationDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("AllocationDefinition"u8); + writer.WriteStartArray("ownedUsage"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAllocationDefinition.Id); + foreach (var item in iAllocationDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iAllocationDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iAllocationDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iAllocationDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iAllocationDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAllocationDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAllocationDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAllocationDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iAllocationDefinition.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationDefinition.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAllocationDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAllocationDefinition.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iAllocationDefinition.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedType"u8); + + foreach (var item in iAllocationDefinition.relatedType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAllocationDefinition.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iAllocationDefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceType"u8); + + if (iAllocationDefinition.sourceType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationDefinition.sourceType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iAllocationDefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetType"u8); + + foreach (var item in iAllocationDefinition.targetType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAllocationDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iAllocationDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iAllocationDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iAllocationDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iAllocationDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAllocationDefinition iAllocationDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAllocationDefinition.AliasIds) @@ -176,7 +1230,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationUsageSerializer.cs index 97622c41d..37021417b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationUsageSerializer.cs @@ -49,21 +49,1429 @@ internal static class AllocationUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAllocationUsage iAllocationUsage) { - throw new ArgumentException("The object shall be an IAllocationUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IAllocationUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("AllocationUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAllocationUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAllocationUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAllocationUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAllocationUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("allocationDefinition"u8); + + foreach (var item in iAllocationUsage.allocationDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("association"u8); + + foreach (var item in iAllocationUsage.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iAllocationUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectionDefinition"u8); + + foreach (var item in iAllocationUsage.connectionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectorEnd"u8); + + foreach (var item in iAllocationUsage.connectorEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iAllocationUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAllocationUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAllocationUsage.DeclaredShortName); + + writer.WritePropertyName("defaultFeaturingType"u8); + + if (iAllocationUsage.defaultFeaturingType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.defaultFeaturingType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("definition"u8); + + foreach (var item in iAllocationUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iAllocationUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAllocationUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iAllocationUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iAllocationUsage.Direction.HasValue) + { + writer.WriteStringValue(iAllocationUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAllocationUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAllocationUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAllocationUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iAllocationUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iAllocationUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iAllocationUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iAllocationUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iAllocationUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iAllocationUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iAllocationUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iAllocationUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iAllocationUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iAllocationUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iAllocationUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iAllocationUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iAllocationUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iAllocationUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iAllocationUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iAllocationUsage.IsEnd); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iAllocationUsage.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAllocationUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iAllocationUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAllocationUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iAllocationUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iAllocationUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iAllocationUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iAllocationUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iAllocationUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAllocationUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iAllocationUsage.IsVariation); + + writer.WriteStartArray("itemDefinition"u8); + + foreach (var item in iAllocationUsage.itemDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iAllocationUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iAllocationUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iAllocationUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iAllocationUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAllocationUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iAllocationUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iAllocationUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iAllocationUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iAllocationUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iAllocationUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iAllocationUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iAllocationUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iAllocationUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iAllocationUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iAllocationUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iAllocationUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iAllocationUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iAllocationUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iAllocationUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iAllocationUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iAllocationUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iAllocationUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iAllocationUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iAllocationUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iAllocationUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iAllocationUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iAllocationUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iAllocationUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iAllocationUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iAllocationUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iAllocationUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iAllocationUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iAllocationUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iAllocationUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAllocationUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iAllocationUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iAllocationUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iAllocationUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iAllocationUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAllocationUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iAllocationUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iAllocationUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iAllocationUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iAllocationUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iAllocationUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iAllocationUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iAllocationUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iAllocationUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iAllocationUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iAllocationUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iAllocationUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iAllocationUsage.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAllocationUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iAllocationUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iAllocationUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iAllocationUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iAllocationUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iAllocationUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAllocationUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iAllocationUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WritePropertyName("owningFeatureMembership"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("AllocationUsage"u8); + if (iAllocationUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAllocationUsage.Id); + writer.WritePropertyName("owningMembership"u8); + + if (iAllocationUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAllocationUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iAllocationUsage.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAllocationUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iAllocationUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iAllocationUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("partDefinition"u8); + + foreach (var item in iAllocationUsage.partDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iAllocationUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iAllocationUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAllocationUsage.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iAllocationUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedFeature"u8); + + foreach (var item in iAllocationUsage.relatedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAllocationUsage.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iAllocationUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceFeature"u8); + + if (iAllocationUsage.sourceFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAllocationUsage.sourceFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iAllocationUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetFeature"u8); + + foreach (var item in iAllocationUsage.targetFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAllocationUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iAllocationUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iAllocationUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iAllocationUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iAllocationUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iAllocationUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAllocationUsage iAllocationUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAllocationUsage.AliasIds) @@ -222,7 +1630,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseDefinitionSerializer.cs index 4fd85ec08..f742dd3f5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class AnalysisCaseDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAnalysisCaseDefinition iAnalysisCaseDefinition) { @@ -64,6 +67,53 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iAnalysisCaseDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAnalysisCaseDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAnalysisCaseDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseDefinition iAnalysisCaseDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("action"u8); + + foreach (var item in iAnalysisCaseDefinition.action) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iAnalysisCaseDefinition.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("aliasIds"u8); foreach (var item in iAnalysisCaseDefinition.AliasIds) @@ -73,33 +123,210 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("calculation"u8); + + foreach (var item in iAnalysisCaseDefinition.calculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iAnalysisCaseDefinition.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAnalysisCaseDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iAnalysisCaseDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAnalysisCaseDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iAnalysisCaseDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAnalysisCaseDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAnalysisCaseDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAnalysisCaseDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("expression"u8); + + foreach (var item in iAnalysisCaseDefinition.expression) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iAnalysisCaseDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iAnalysisCaseDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iAnalysisCaseDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iAnalysisCaseDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iAnalysisCaseDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iAnalysisCaseDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iAnalysisCaseDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iAnalysisCaseDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iAnalysisCaseDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iAnalysisCaseDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iAnalysisCaseDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAnalysisCaseDefinition.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iAnalysisCaseDefinition.isModelLevelEvaluable); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iAnalysisCaseDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAnalysisCaseDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iAnalysisCaseDefinition.OwnedRelationship) + foreach (var item in iAnalysisCaseDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +336,816 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iAnalysisCaseDefinition.OwningRelationship.HasValue) + foreach (var item in iAnalysisCaseDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAnalysisCaseDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iAnalysisCaseDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.name); + + writer.WritePropertyName("objectiveRequirement"u8); + + if (iAnalysisCaseDefinition.objectiveRequirement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.objectiveRequirement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("output"u8); + + foreach (var item in iAnalysisCaseDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iAnalysisCaseDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAnalysisCaseDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iAnalysisCaseDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAnalysisCaseDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAnalysisCaseDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAnalysisCaseDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAnalysisCaseDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iAnalysisCaseDefinition.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.result); + writer.WriteEndObject(); + + writer.WritePropertyName("resultExpression"u8); + + if (iAnalysisCaseDefinition.resultExpression.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.resultExpression.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.shortName); + + writer.WriteStartArray("step"u8); + + foreach (var item in iAnalysisCaseDefinition.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAnalysisCaseDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iAnalysisCaseDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iAnalysisCaseDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iAnalysisCaseDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iAnalysisCaseDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAnalysisCaseDefinition iAnalysisCaseDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAnalysisCaseDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iAnalysisCaseDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAnalysisCaseDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iAnalysisCaseDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iAnalysisCaseDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iAnalysisCaseDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAnalysisCaseDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iAnalysisCaseDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1153,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseUsageSerializer.cs index 719458bd9..012b27025 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseUsageSerializer.cs @@ -49,21 +49,1387 @@ internal static class AnalysisCaseUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAnalysisCaseUsage iAnalysisCaseUsage) { - throw new ArgumentException("The object shall be an IAnalysisCaseUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IAnalysisCaseUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("AnalysisCaseUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAnalysisCaseUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAnalysisCaseUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAnalysisCaseUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iAnalysisCaseUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iAnalysisCaseUsage.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAnalysisCaseUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("analysisCaseDefinition"u8); + + if (iAnalysisCaseUsage.analysisCaseDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.analysisCaseDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iAnalysisCaseUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("calculationDefinition"u8); + + if (iAnalysisCaseUsage.calculationDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.calculationDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("caseDefinition"u8); + + if (iAnalysisCaseUsage.caseDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.caseDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iAnalysisCaseUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iAnalysisCaseUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAnalysisCaseUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAnalysisCaseUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iAnalysisCaseUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iAnalysisCaseUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAnalysisCaseUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iAnalysisCaseUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iAnalysisCaseUsage.Direction.HasValue) + { + writer.WriteStringValue(iAnalysisCaseUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAnalysisCaseUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAnalysisCaseUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAnalysisCaseUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iAnalysisCaseUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iAnalysisCaseUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iAnalysisCaseUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iAnalysisCaseUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iAnalysisCaseUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iAnalysisCaseUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iAnalysisCaseUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iAnalysisCaseUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iAnalysisCaseUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iAnalysisCaseUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iAnalysisCaseUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iAnalysisCaseUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iAnalysisCaseUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iAnalysisCaseUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAnalysisCaseUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iAnalysisCaseUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iAnalysisCaseUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iAnalysisCaseUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iAnalysisCaseUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iAnalysisCaseUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iAnalysisCaseUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iAnalysisCaseUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iAnalysisCaseUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iAnalysisCaseUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iAnalysisCaseUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iAnalysisCaseUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iAnalysisCaseUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iAnalysisCaseUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iAnalysisCaseUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iAnalysisCaseUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iAnalysisCaseUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iAnalysisCaseUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iAnalysisCaseUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iAnalysisCaseUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iAnalysisCaseUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iAnalysisCaseUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iAnalysisCaseUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iAnalysisCaseUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iAnalysisCaseUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iAnalysisCaseUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iAnalysisCaseUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iAnalysisCaseUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("objectiveRequirement"u8); + + if (iAnalysisCaseUsage.objectiveRequirement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.objectiveRequirement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iAnalysisCaseUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iAnalysisCaseUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAnalysisCaseUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iAnalysisCaseUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iAnalysisCaseUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iAnalysisCaseUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iAnalysisCaseUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAnalysisCaseUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iAnalysisCaseUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iAnalysisCaseUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iAnalysisCaseUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iAnalysisCaseUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iAnalysisCaseUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iAnalysisCaseUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iAnalysisCaseUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iAnalysisCaseUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iAnalysisCaseUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iAnalysisCaseUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iAnalysisCaseUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAnalysisCaseUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iAnalysisCaseUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iAnalysisCaseUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iAnalysisCaseUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iAnalysisCaseUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iAnalysisCaseUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAnalysisCaseUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iAnalysisCaseUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iAnalysisCaseUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAnalysisCaseUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAnalysisCaseUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAnalysisCaseUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iAnalysisCaseUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iAnalysisCaseUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iAnalysisCaseUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iAnalysisCaseUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iAnalysisCaseUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAnalysisCaseUsage.qualifiedName); + + writer.WritePropertyName("result"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.result); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("AnalysisCaseUsage"u8); + writer.WritePropertyName("resultExpression"u8); + + if (iAnalysisCaseUsage.resultExpression.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.resultExpression.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAnalysisCaseUsage.shortName); + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAnalysisCaseUsage.Id); + writer.WriteStringValue(iAnalysisCaseUsage.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAnalysisCaseUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iAnalysisCaseUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iAnalysisCaseUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iAnalysisCaseUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iAnalysisCaseUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iAnalysisCaseUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAnalysisCaseUsage iAnalysisCaseUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAnalysisCaseUsage.AliasIds) @@ -169,7 +1535,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotatingElementSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotatingElementSerializer.cs index 51ae68005..cfc177a92 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotatingElementSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotatingElementSerializer.cs @@ -49,7 +49,10 @@ internal static class AnnotatingElementSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAnnotatingElement iAnnotatingElement) { @@ -64,6 +67,241 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iAnnotatingElement.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAnnotatingElement, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAnnotatingElement, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAnnotatingElement iAnnotatingElement, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAnnotatingElement.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("annotatedElement"u8); + + foreach (var item in iAnnotatingElement.annotatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("annotation"u8); + + foreach (var item in iAnnotatingElement.annotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAnnotatingElement.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAnnotatingElement.DeclaredShortName); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAnnotatingElement.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAnnotatingElement.ElementId); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAnnotatingElement.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAnnotatingElement.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAnnotatingElement.name); + + writer.WriteStartArray("ownedAnnotatingRelationship"u8); + + foreach (var item in iAnnotatingElement.ownedAnnotatingRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAnnotatingElement.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAnnotatingElement.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAnnotatingElement.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAnnotatingElement.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotatingElement.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningAnnotatingRelationship"u8); + + if (iAnnotatingElement.owningAnnotatingRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotatingElement.owningAnnotatingRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAnnotatingElement.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotatingElement.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAnnotatingElement.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotatingElement.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAnnotatingElement.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotatingElement.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAnnotatingElement.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAnnotatingElement.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAnnotatingElement.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAnnotatingElement iAnnotatingElement, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAnnotatingElement.AliasIds) @@ -111,7 +349,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotationSerializer.cs index c289a9b20..87e741a60 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotationSerializer.cs @@ -49,7 +49,10 @@ internal static class AnnotationSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAnnotation iAnnotation) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iAnnotation.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAnnotation, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAnnotation, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAnnotation iAnnotation, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAnnotation.AliasIds) @@ -79,12 +105,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iAnnotation.AnnotatedElement); writer.WriteEndObject(); + writer.WritePropertyName("annotatingElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotation.annotatingElement); + writer.WriteEndObject(); + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iAnnotation.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAnnotation.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAnnotation.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAnnotation.ElementId); @@ -94,6 +138,50 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iAnnotation.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAnnotation.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAnnotation.name); + + writer.WritePropertyName("ownedAnnotatingElement"u8); + + if (iAnnotation.ownedAnnotatingElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotation.ownedAnnotatingElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAnnotation.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAnnotation.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iAnnotation.OwnedRelatedElement) @@ -118,6 +206,76 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iAnnotation.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotation.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningAnnotatedElement"u8); + + if (iAnnotation.owningAnnotatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotation.owningAnnotatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningAnnotatingElement"u8); + + if (iAnnotation.owningAnnotatingElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotation.owningAnnotatingElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAnnotation.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotation.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAnnotation.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotation.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iAnnotation.OwningRelatedElement.HasValue) @@ -146,6 +304,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAnnotation.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iAnnotation.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAnnotation.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iAnnotation.Source) @@ -170,7 +346,137 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAnnotation.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAnnotation iAnnotation, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAnnotation.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("annotatedElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotation.AnnotatedElement); writer.WriteEndObject(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAnnotation.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAnnotation.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAnnotation.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iAnnotation.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAnnotation.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iAnnotation.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAnnotation.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iAnnotation.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotation.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAnnotation.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnnotation.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iAnnotation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iAnnotation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssertConstraintUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssertConstraintUsageSerializer.cs index 566651aba..ced1492cd 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssertConstraintUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssertConstraintUsageSerializer.cs @@ -49,21 +49,1324 @@ internal static class AssertConstraintUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAssertConstraintUsage iAssertConstraintUsage) { - throw new ArgumentException("The object shall be an IAssertConstraintUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IAssertConstraintUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("AssertConstraintUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAssertConstraintUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAssertConstraintUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage iAssertConstraintUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAssertConstraintUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("assertedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.assertedConstraint); + writer.WriteEndObject(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iAssertConstraintUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iAssertConstraintUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("constraintDefinition"u8); + + if (iAssertConstraintUsage.constraintDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.constraintDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("crossFeature"u8); + + if (iAssertConstraintUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAssertConstraintUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAssertConstraintUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iAssertConstraintUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iAssertConstraintUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAssertConstraintUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iAssertConstraintUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iAssertConstraintUsage.Direction.HasValue) + { + writer.WriteStringValue(iAssertConstraintUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAssertConstraintUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAssertConstraintUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAssertConstraintUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iAssertConstraintUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iAssertConstraintUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iAssertConstraintUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iAssertConstraintUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iAssertConstraintUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iAssertConstraintUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iAssertConstraintUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iAssertConstraintUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iAssertConstraintUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iAssertConstraintUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iAssertConstraintUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.isModelLevelEvaluable); + + writer.WritePropertyName("isNegated"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsNegated); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iAssertConstraintUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iAssertConstraintUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iAssertConstraintUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAssertConstraintUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iAssertConstraintUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iAssertConstraintUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iAssertConstraintUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iAssertConstraintUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iAssertConstraintUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iAssertConstraintUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iAssertConstraintUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iAssertConstraintUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iAssertConstraintUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iAssertConstraintUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iAssertConstraintUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iAssertConstraintUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iAssertConstraintUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iAssertConstraintUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iAssertConstraintUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iAssertConstraintUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iAssertConstraintUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iAssertConstraintUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iAssertConstraintUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iAssertConstraintUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iAssertConstraintUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iAssertConstraintUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iAssertConstraintUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iAssertConstraintUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iAssertConstraintUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iAssertConstraintUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iAssertConstraintUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iAssertConstraintUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iAssertConstraintUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAssertConstraintUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iAssertConstraintUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iAssertConstraintUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iAssertConstraintUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iAssertConstraintUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAssertConstraintUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iAssertConstraintUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iAssertConstraintUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iAssertConstraintUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iAssertConstraintUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iAssertConstraintUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iAssertConstraintUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iAssertConstraintUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iAssertConstraintUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iAssertConstraintUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iAssertConstraintUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iAssertConstraintUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAssertConstraintUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iAssertConstraintUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("AssertConstraintUsage"u8); + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iAssertConstraintUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iAssertConstraintUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iAssertConstraintUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iAssertConstraintUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAssertConstraintUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iAssertConstraintUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iAssertConstraintUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAssertConstraintUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAssertConstraintUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAssertConstraintUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iAssertConstraintUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iAssertConstraintUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iAssertConstraintUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + if (iAssertConstraintUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iAssertConstraintUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("predicate"u8); + + if (iAssertConstraintUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAssertConstraintUsage.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAssertConstraintUsage.Id); + writer.WriteStringValue(iAssertConstraintUsage.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAssertConstraintUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAssertConstraintUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iAssertConstraintUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iAssertConstraintUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iAssertConstraintUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iAssertConstraintUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iAssertConstraintUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAssertConstraintUsage iAssertConstraintUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAssertConstraintUsage.AliasIds) @@ -172,7 +1475,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssignmentActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssignmentActionUsageSerializer.cs index 9941af5c3..934f374a5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssignmentActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssignmentActionUsageSerializer.cs @@ -49,21 +49,1310 @@ internal static class AssignmentActionUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAssignmentActionUsage iAssignmentActionUsage) { - throw new ArgumentException("The object shall be an IAssignmentActionUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IAssignmentActionUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("AssignmentActionUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAssignmentActionUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAssignmentActionUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAssignmentActionUsage iAssignmentActionUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iAssignmentActionUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAssignmentActionUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iAssignmentActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iAssignmentActionUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iAssignmentActionUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAssignmentActionUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAssignmentActionUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iAssignmentActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iAssignmentActionUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAssignmentActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iAssignmentActionUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iAssignmentActionUsage.Direction.HasValue) + { + writer.WriteStringValue(iAssignmentActionUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAssignmentActionUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAssignmentActionUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAssignmentActionUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iAssignmentActionUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iAssignmentActionUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iAssignmentActionUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iAssignmentActionUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iAssignmentActionUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iAssignmentActionUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iAssignmentActionUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iAssignmentActionUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iAssignmentActionUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iAssignmentActionUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iAssignmentActionUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iAssignmentActionUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iAssignmentActionUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAssignmentActionUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iAssignmentActionUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iAssignmentActionUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iAssignmentActionUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iAssignmentActionUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iAssignmentActionUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iAssignmentActionUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iAssignmentActionUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iAssignmentActionUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iAssignmentActionUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iAssignmentActionUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iAssignmentActionUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iAssignmentActionUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iAssignmentActionUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iAssignmentActionUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iAssignmentActionUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iAssignmentActionUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iAssignmentActionUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iAssignmentActionUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iAssignmentActionUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iAssignmentActionUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iAssignmentActionUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iAssignmentActionUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iAssignmentActionUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iAssignmentActionUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iAssignmentActionUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iAssignmentActionUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iAssignmentActionUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iAssignmentActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iAssignmentActionUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAssignmentActionUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iAssignmentActionUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iAssignmentActionUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iAssignmentActionUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iAssignmentActionUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAssignmentActionUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iAssignmentActionUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iAssignmentActionUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iAssignmentActionUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iAssignmentActionUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iAssignmentActionUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iAssignmentActionUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iAssignmentActionUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iAssignmentActionUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iAssignmentActionUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iAssignmentActionUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iAssignmentActionUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAssignmentActionUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iAssignmentActionUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iAssignmentActionUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("AssignmentActionUsage"u8); + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iAssignmentActionUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iAssignmentActionUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iAssignmentActionUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAssignmentActionUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iAssignmentActionUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iAssignmentActionUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAssignmentActionUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAssignmentActionUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAssignmentActionUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iAssignmentActionUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iAssignmentActionUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iAssignmentActionUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iAssignmentActionUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iAssignmentActionUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAssignmentActionUsage.qualifiedName); + + writer.WritePropertyName("referent"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAssignmentActionUsage.Id); + writer.WriteStringValue(iAssignmentActionUsage.referent); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAssignmentActionUsage.shortName); + + writer.WritePropertyName("targetArgument"u8); + + if (iAssignmentActionUsage.targetArgument.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.targetArgument.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAssignmentActionUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iAssignmentActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iAssignmentActionUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iAssignmentActionUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("valueExpression"u8); + + if (iAssignmentActionUsage.valueExpression.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssignmentActionUsage.valueExpression.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("variant"u8); + + foreach (var item in iAssignmentActionUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iAssignmentActionUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAssignmentActionUsage iAssignmentActionUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAssignmentActionUsage.AliasIds) @@ -169,7 +1458,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationSerializer.cs index df987d6e0..e44811c10 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationSerializer.cs @@ -49,21 +49,673 @@ internal static class AssociationSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAssociation iAssociation) { - throw new ArgumentException("The object shall be an IAssociation", nameof(obj)); + throw new ArgumentException("The object shall be an IAssociation", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("Association"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAssociation, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAssociation, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociation, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAssociation.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("associationEnd"u8); + + foreach (var item in iAssociation.associationEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAssociation.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAssociation.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iAssociation.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAssociation.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAssociation.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAssociation.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAssociation.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iAssociation.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iAssociation.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iAssociation.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iAssociation.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iAssociation.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iAssociation.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iAssociation.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iAssociation.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iAssociation.isConjugated); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iAssociation.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAssociation.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAssociation.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iAssociation.IsSufficient); + + writer.WriteStartArray("member"u8); + + foreach (var item in iAssociation.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iAssociation.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iAssociation.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAssociation.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iAssociation.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAssociation.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iAssociation.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iAssociation.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iAssociation.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAssociation.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iAssociation.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iAssociation.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iAssociation.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iAssociation.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("Association"u8); + writer.WriteStartArray("ownedIntersecting"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAssociation.Id); + foreach (var item in iAssociation.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iAssociation.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iAssociation.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iAssociation.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAssociation.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iAssociation.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iAssociation.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iAssociation.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAssociation.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAssociation.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAssociation.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iAssociation.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAssociation.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAssociation.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iAssociation.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedType"u8); + + foreach (var item in iAssociation.relatedType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAssociation.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iAssociation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceType"u8); + + if (iAssociation.sourceType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociation.sourceType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iAssociation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetType"u8); + + foreach (var item in iAssociation.targetType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAssociation.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iAssociation.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAssociation iAssociation, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAssociation.AliasIds) @@ -170,7 +822,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationStructureSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationStructureSerializer.cs index e2486850a..e8567da85 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationStructureSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationStructureSerializer.cs @@ -49,21 +49,673 @@ internal static class AssociationStructureSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAssociationStructure iAssociationStructure) { - throw new ArgumentException("The object shall be an IAssociationStructure", nameof(obj)); + throw new ArgumentException("The object shall be an IAssociationStructure", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("AssociationStructure"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociationStructure.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAssociationStructure, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAssociationStructure, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAssociationStructure iAssociationStructure, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAssociationStructure.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("associationEnd"u8); + + foreach (var item in iAssociationStructure.associationEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAssociationStructure.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAssociationStructure.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iAssociationStructure.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAssociationStructure.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAssociationStructure.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAssociationStructure.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAssociationStructure.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iAssociationStructure.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iAssociationStructure.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iAssociationStructure.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iAssociationStructure.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iAssociationStructure.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iAssociationStructure.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iAssociationStructure.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iAssociationStructure.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iAssociationStructure.isConjugated); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iAssociationStructure.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAssociationStructure.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAssociationStructure.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iAssociationStructure.IsSufficient); + + writer.WriteStartArray("member"u8); + + foreach (var item in iAssociationStructure.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iAssociationStructure.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iAssociationStructure.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociationStructure.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAssociationStructure.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iAssociationStructure.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAssociationStructure.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iAssociationStructure.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociationStructure.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iAssociationStructure.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iAssociationStructure.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAssociationStructure.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iAssociationStructure.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iAssociationStructure.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iAssociationStructure.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iAssociationStructure.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("AssociationStructure"u8); + writer.WriteStartArray("ownedIntersecting"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAssociationStructure.Id); + foreach (var item in iAssociationStructure.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iAssociationStructure.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iAssociationStructure.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iAssociationStructure.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAssociationStructure.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iAssociationStructure.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iAssociationStructure.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iAssociationStructure.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAssociationStructure.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociationStructure.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAssociationStructure.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociationStructure.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAssociationStructure.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociationStructure.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iAssociationStructure.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociationStructure.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAssociationStructure.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociationStructure.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAssociationStructure.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iAssociationStructure.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedType"u8); + + foreach (var item in iAssociationStructure.relatedType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAssociationStructure.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iAssociationStructure.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceType"u8); + + if (iAssociationStructure.sourceType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssociationStructure.sourceType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iAssociationStructure.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetType"u8); + + foreach (var item in iAssociationStructure.targetType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAssociationStructure.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iAssociationStructure.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAssociationStructure iAssociationStructure, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAssociationStructure.AliasIds) @@ -170,7 +822,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeDefinitionSerializer.cs index c05f6c31d..d2c06468e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class AttributeDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAttributeDefinition iAttributeDefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iAttributeDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAttributeDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAttributeDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAttributeDefinition iAttributeDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAttributeDefinition.AliasIds) @@ -79,24 +105,174 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAttributeDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iAttributeDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAttributeDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iAttributeDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAttributeDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAttributeDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAttributeDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iAttributeDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iAttributeDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iAttributeDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iAttributeDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iAttributeDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iAttributeDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iAttributeDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iAttributeDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iAttributeDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iAttributeDefinition.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAttributeDefinition.isLibraryElement); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iAttributeDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAttributeDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iAttributeDefinition.OwnedRelationship) + foreach (var item in iAttributeDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -106,13 +282,749 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iAttributeDefinition.OwningRelationship.HasValue) + foreach (var item in iAttributeDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAttributeDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iAttributeDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAttributeDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iAttributeDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iAttributeDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iAttributeDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iAttributeDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAttributeDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iAttributeDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iAttributeDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iAttributeDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iAttributeDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iAttributeDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iAttributeDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iAttributeDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iAttributeDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iAttributeDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAttributeDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iAttributeDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iAttributeDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iAttributeDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iAttributeDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iAttributeDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iAttributeDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iAttributeDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iAttributeDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iAttributeDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iAttributeDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iAttributeDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iAttributeDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iAttributeDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iAttributeDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iAttributeDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iAttributeDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAttributeDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iAttributeDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iAttributeDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iAttributeDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iAttributeDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iAttributeDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iAttributeDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iAttributeDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iAttributeDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iAttributeDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iAttributeDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iAttributeDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iAttributeDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAttributeDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAttributeDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAttributeDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAttributeDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAttributeDefinition.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAttributeDefinition.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAttributeDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iAttributeDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iAttributeDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iAttributeDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iAttributeDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAttributeDefinition iAttributeDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAttributeDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAttributeDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAttributeDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAttributeDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iAttributeDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAttributeDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iAttributeDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iAttributeDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAttributeDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iAttributeDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -120,7 +1032,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeUsageSerializer.cs index f639d2bc4..96b582967 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeUsageSerializer.cs @@ -49,7 +49,10 @@ internal static class AttributeUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IAttributeUsage iAttributeUsage) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iAttributeUsage.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iAttributeUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iAttributeUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IAttributeUsage iAttributeUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iAttributeUsage.AliasIds) @@ -73,12 +99,98 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("attributeDefinition"u8); + + foreach (var item in iAttributeUsage.attributeDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iAttributeUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iAttributeUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iAttributeUsage.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAttributeUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iAttributeUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iAttributeUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAttributeUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iAttributeUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iAttributeUsage.Direction.HasValue) @@ -90,15 +202,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iAttributeUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAttributeUsage.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAttributeUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iAttributeUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iAttributeUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iAttributeUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iAttributeUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iAttributeUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iAttributeUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iAttributeUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iAttributeUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iAttributeUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iAttributeUsage.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iAttributeUsage.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iAttributeUsage.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iAttributeUsage.IsConstant); @@ -111,12 +366,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iAttributeUsage.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iAttributeUsage.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iAttributeUsage.IsOrdered); writer.WritePropertyName("isPortion"u8); writer.WriteBooleanValue(iAttributeUsage.IsPortion); + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iAttributeUsage.isReference); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iAttributeUsage.IsSufficient); @@ -129,9 +390,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAttributeUsage.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iAttributeUsage.mayTimeVary); - foreach (var item in iAttributeUsage.OwnedRelationship) + writer.WriteStartArray("member"u8); + + foreach (var item in iAttributeUsage.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -141,13 +405,940 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iAttributeUsage.OwningRelationship.HasValue) + foreach (var item in iAttributeUsage.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAttributeUsage.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iAttributeUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iAttributeUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iAttributeUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iAttributeUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iAttributeUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iAttributeUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iAttributeUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iAttributeUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iAttributeUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iAttributeUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iAttributeUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iAttributeUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iAttributeUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iAttributeUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iAttributeUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iAttributeUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iAttributeUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iAttributeUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iAttributeUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iAttributeUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iAttributeUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iAttributeUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iAttributeUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iAttributeUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iAttributeUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iAttributeUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iAttributeUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iAttributeUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iAttributeUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iAttributeUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iAttributeUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iAttributeUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iAttributeUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iAttributeUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iAttributeUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iAttributeUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iAttributeUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iAttributeUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iAttributeUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iAttributeUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iAttributeUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iAttributeUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iAttributeUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iAttributeUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iAttributeUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iAttributeUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iAttributeUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAttributeUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iAttributeUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iAttributeUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iAttributeUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iAttributeUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iAttributeUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iAttributeUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iAttributeUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iAttributeUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iAttributeUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iAttributeUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iAttributeUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iAttributeUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iAttributeUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iAttributeUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iAttributeUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iAttributeUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iAttributeUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iAttributeUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iAttributeUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iAttributeUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iAttributeUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IAttributeUsage iAttributeUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iAttributeUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iAttributeUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iAttributeUsage.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iAttributeUsage.Direction.HasValue) + { + writer.WriteStringValue(iAttributeUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iAttributeUsage.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iAttributeUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iAttributeUsage.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iAttributeUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iAttributeUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iAttributeUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iAttributeUsage.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iAttributeUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iAttributeUsage.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iAttributeUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iAttributeUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAttributeUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iAttributeUsage.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iAttributeUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iAttributeUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAttributeUsage.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -155,7 +1346,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BehaviorSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BehaviorSerializer.cs index 445cae99d..e58666eb6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BehaviorSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BehaviorSerializer.cs @@ -49,7 +49,10 @@ internal static class BehaviorSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IBehavior iBehavior) { @@ -64,6 +67,564 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iBehavior.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iBehavior, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iBehavior, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IBehavior iBehavior, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iBehavior.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iBehavior.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iBehavior.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iBehavior.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iBehavior.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iBehavior.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iBehavior.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iBehavior.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iBehavior.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iBehavior.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iBehavior.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iBehavior.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iBehavior.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iBehavior.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iBehavior.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iBehavior.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iBehavior.isConjugated); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iBehavior.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iBehavior.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iBehavior.IsSufficient); + + writer.WriteStartArray("member"u8); + + foreach (var item in iBehavior.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iBehavior.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iBehavior.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBehavior.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iBehavior.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iBehavior.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iBehavior.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iBehavior.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBehavior.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iBehavior.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iBehavior.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iBehavior.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iBehavior.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iBehavior.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iBehavior.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iBehavior.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iBehavior.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iBehavior.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iBehavior.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iBehavior.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iBehavior.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iBehavior.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iBehavior.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iBehavior.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBehavior.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iBehavior.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBehavior.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iBehavior.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBehavior.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iBehavior.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBehavior.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iBehavior.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iBehavior.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iBehavior.shortName); + + writer.WriteStartArray("step"u8); + + foreach (var item in iBehavior.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iBehavior.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iBehavior.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IBehavior iBehavior, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iBehavior.AliasIds) @@ -117,7 +678,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorAsUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorAsUsageSerializer.cs index 357887443..5e2537057 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorAsUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorAsUsageSerializer.cs @@ -49,21 +49,1341 @@ internal static class BindingConnectorAsUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IBindingConnectorAsUsage iBindingConnectorAsUsage) { - throw new ArgumentException("The object shall be an IBindingConnectorAsUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IBindingConnectorAsUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("BindingConnectorAsUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iBindingConnectorAsUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iBindingConnectorAsUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IBindingConnectorAsUsage iBindingConnectorAsUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iBindingConnectorAsUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("association"u8); + + foreach (var item in iBindingConnectorAsUsage.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iBindingConnectorAsUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectorEnd"u8); + + foreach (var item in iBindingConnectorAsUsage.connectorEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iBindingConnectorAsUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.DeclaredShortName); + + writer.WritePropertyName("defaultFeaturingType"u8); + + if (iBindingConnectorAsUsage.defaultFeaturingType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.defaultFeaturingType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("definition"u8); + + foreach (var item in iBindingConnectorAsUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iBindingConnectorAsUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iBindingConnectorAsUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iBindingConnectorAsUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iBindingConnectorAsUsage.Direction.HasValue) + { + writer.WriteStringValue(iBindingConnectorAsUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iBindingConnectorAsUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iBindingConnectorAsUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iBindingConnectorAsUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iBindingConnectorAsUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iBindingConnectorAsUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iBindingConnectorAsUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iBindingConnectorAsUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iBindingConnectorAsUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iBindingConnectorAsUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iBindingConnectorAsUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iBindingConnectorAsUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsEnd); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iBindingConnectorAsUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iBindingConnectorAsUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iBindingConnectorAsUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iBindingConnectorAsUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iBindingConnectorAsUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iBindingConnectorAsUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iBindingConnectorAsUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iBindingConnectorAsUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iBindingConnectorAsUsage.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iBindingConnectorAsUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iBindingConnectorAsUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("BindingConnectorAsUsage"u8); + writer.WritePropertyName("owner"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iBindingConnectorAsUsage.Id); + if (iBindingConnectorAsUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iBindingConnectorAsUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iBindingConnectorAsUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iBindingConnectorAsUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iBindingConnectorAsUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iBindingConnectorAsUsage.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iBindingConnectorAsUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iBindingConnectorAsUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iBindingConnectorAsUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iBindingConnectorAsUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedFeature"u8); + + foreach (var item in iBindingConnectorAsUsage.relatedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iBindingConnectorAsUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceFeature"u8); + + if (iBindingConnectorAsUsage.sourceFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnectorAsUsage.sourceFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iBindingConnectorAsUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetFeature"u8); + + foreach (var item in iBindingConnectorAsUsage.targetFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iBindingConnectorAsUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iBindingConnectorAsUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iBindingConnectorAsUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iBindingConnectorAsUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iBindingConnectorAsUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iBindingConnectorAsUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IBindingConnectorAsUsage iBindingConnectorAsUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iBindingConnectorAsUsage.AliasIds) @@ -208,7 +1528,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorSerializer.cs index c32c57e4c..03d73ea50 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorSerializer.cs @@ -49,21 +49,920 @@ internal static class BindingConnectorSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IBindingConnector iBindingConnector) { - throw new ArgumentException("The object shall be an IBindingConnector", nameof(obj)); + throw new ArgumentException("The object shall be an IBindingConnector", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("BindingConnector"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iBindingConnector, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iBindingConnector, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IBindingConnector iBindingConnector, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iBindingConnector.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("association"u8); + + foreach (var item in iBindingConnector.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iBindingConnector.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectorEnd"u8); + + foreach (var item in iBindingConnector.connectorEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iBindingConnector.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iBindingConnector.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iBindingConnector.DeclaredShortName); + + writer.WritePropertyName("defaultFeaturingType"u8); + + if (iBindingConnector.defaultFeaturingType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.defaultFeaturingType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iBindingConnector.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iBindingConnector.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iBindingConnector.Direction.HasValue) + { + writer.WriteStringValue(iBindingConnector.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iBindingConnector.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iBindingConnector.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iBindingConnector.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iBindingConnector.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iBindingConnector.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iBindingConnector.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iBindingConnector.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iBindingConnector.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iBindingConnector.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iBindingConnector.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iBindingConnector.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iBindingConnector.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iBindingConnector.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iBindingConnector.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iBindingConnector.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iBindingConnector.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iBindingConnector.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iBindingConnector.IsEnd); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iBindingConnector.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iBindingConnector.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iBindingConnector.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iBindingConnector.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iBindingConnector.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iBindingConnector.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iBindingConnector.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iBindingConnector.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iBindingConnector.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iBindingConnector.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iBindingConnector.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iBindingConnector.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iBindingConnector.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iBindingConnector.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iBindingConnector.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iBindingConnector.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iBindingConnector.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iBindingConnector.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iBindingConnector.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iBindingConnector.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iBindingConnector.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iBindingConnector.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iBindingConnector.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iBindingConnector.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iBindingConnector.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iBindingConnector.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iBindingConnector.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iBindingConnector.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iBindingConnector.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iBindingConnector.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iBindingConnector.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iBindingConnector.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("BindingConnector"u8); + writer.WriteStartArray("ownedSpecialization"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iBindingConnector.Id); + foreach (var item in iBindingConnector.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iBindingConnector.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iBindingConnector.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iBindingConnector.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iBindingConnector.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iBindingConnector.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iBindingConnector.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iBindingConnector.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iBindingConnector.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iBindingConnector.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iBindingConnector.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iBindingConnector.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iBindingConnector.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iBindingConnector.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedFeature"u8); + + foreach (var item in iBindingConnector.relatedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iBindingConnector.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iBindingConnector.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceFeature"u8); + + if (iBindingConnector.sourceFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBindingConnector.sourceFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iBindingConnector.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetFeature"u8); + + foreach (var item in iBindingConnector.targetFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iBindingConnector.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iBindingConnector.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iBindingConnector.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IBindingConnector iBindingConnector, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iBindingConnector.AliasIds) @@ -205,7 +1104,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BooleanExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BooleanExpressionSerializer.cs index 39bee555c..12e369a9e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BooleanExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BooleanExpressionSerializer.cs @@ -49,7 +49,10 @@ internal static class BooleanExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IBooleanExpression iBooleanExpression) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iBooleanExpression.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iBooleanExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iBooleanExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IBooleanExpression iBooleanExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iBooleanExpression.AliasIds) @@ -73,12 +99,74 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iBooleanExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iBooleanExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iBooleanExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iBooleanExpression.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iBooleanExpression.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iBooleanExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iBooleanExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iBooleanExpression.Direction.HasValue) @@ -90,15 +178,172 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iBooleanExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iBooleanExpression.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iBooleanExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iBooleanExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iBooleanExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iBooleanExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iBooleanExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iBooleanExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iBooleanExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iBooleanExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iBooleanExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iBooleanExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iBooleanExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iBooleanExpression.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iBooleanExpression.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iBooleanExpression.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iBooleanExpression.IsConstant); @@ -111,6 +356,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iBooleanExpression.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iBooleanExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iBooleanExpression.isModelLevelEvaluable); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iBooleanExpression.IsOrdered); @@ -126,9 +377,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iBooleanExpression.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iBooleanExpression.OwnedRelationship) + foreach (var item in iBooleanExpression.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +389,581 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iBooleanExpression.OwningRelationship.HasValue) + foreach (var item in iBooleanExpression.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iBooleanExpression.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iBooleanExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iBooleanExpression.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iBooleanExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iBooleanExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iBooleanExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iBooleanExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iBooleanExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iBooleanExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iBooleanExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iBooleanExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iBooleanExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iBooleanExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iBooleanExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iBooleanExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iBooleanExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iBooleanExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iBooleanExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iBooleanExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iBooleanExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iBooleanExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iBooleanExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iBooleanExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iBooleanExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iBooleanExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iBooleanExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iBooleanExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iBooleanExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iBooleanExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iBooleanExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iBooleanExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iBooleanExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iBooleanExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iBooleanExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("predicate"u8); + + if (iBooleanExpression.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iBooleanExpression.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iBooleanExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iBooleanExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iBooleanExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iBooleanExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IBooleanExpression iBooleanExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iBooleanExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iBooleanExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iBooleanExpression.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iBooleanExpression.Direction.HasValue) + { + writer.WriteStringValue(iBooleanExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iBooleanExpression.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iBooleanExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iBooleanExpression.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iBooleanExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iBooleanExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iBooleanExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iBooleanExpression.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iBooleanExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iBooleanExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iBooleanExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iBooleanExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iBooleanExpression.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iBooleanExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iBooleanExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +971,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationDefinitionSerializer.cs index a46872eda..5ca4fbc12 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class CalculationDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ICalculationDefinition iCalculationDefinition) { @@ -64,6 +67,41 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iCalculationDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iCalculationDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iCalculationDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ICalculationDefinition iCalculationDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("action"u8); + + foreach (var item in iCalculationDefinition.action) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("aliasIds"u8); foreach (var item in iCalculationDefinition.AliasIds) @@ -73,33 +111,210 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("calculation"u8); + + foreach (var item in iCalculationDefinition.calculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iCalculationDefinition.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iCalculationDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iCalculationDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iCalculationDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iCalculationDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iCalculationDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iCalculationDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iCalculationDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("expression"u8); + + foreach (var item in iCalculationDefinition.expression) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iCalculationDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iCalculationDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iCalculationDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iCalculationDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iCalculationDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iCalculationDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iCalculationDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iCalculationDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iCalculationDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iCalculationDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iCalculationDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iCalculationDefinition.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iCalculationDefinition.isModelLevelEvaluable); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iCalculationDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iCalculationDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iCalculationDefinition.OwnedRelationship) + foreach (var item in iCalculationDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +324,782 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iCalculationDefinition.OwningRelationship.HasValue) + foreach (var item in iCalculationDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCalculationDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iCalculationDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iCalculationDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iCalculationDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iCalculationDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iCalculationDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iCalculationDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iCalculationDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iCalculationDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iCalculationDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iCalculationDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iCalculationDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iCalculationDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iCalculationDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iCalculationDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iCalculationDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iCalculationDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iCalculationDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iCalculationDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iCalculationDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iCalculationDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iCalculationDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iCalculationDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iCalculationDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iCalculationDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iCalculationDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iCalculationDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iCalculationDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iCalculationDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iCalculationDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iCalculationDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iCalculationDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iCalculationDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iCalculationDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iCalculationDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iCalculationDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iCalculationDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iCalculationDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iCalculationDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iCalculationDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iCalculationDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iCalculationDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iCalculationDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iCalculationDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iCalculationDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iCalculationDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iCalculationDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iCalculationDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iCalculationDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iCalculationDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iCalculationDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iCalculationDefinition.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iCalculationDefinition.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationDefinition.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iCalculationDefinition.shortName); + + writer.WriteStartArray("step"u8); + + foreach (var item in iCalculationDefinition.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iCalculationDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iCalculationDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iCalculationDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iCalculationDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iCalculationDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ICalculationDefinition iCalculationDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iCalculationDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iCalculationDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iCalculationDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iCalculationDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iCalculationDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iCalculationDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iCalculationDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iCalculationDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iCalculationDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iCalculationDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iCalculationDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1107,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationUsageSerializer.cs index e2a56f396..d02ff2e1c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationUsageSerializer.cs @@ -49,21 +49,1313 @@ internal static class CalculationUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ICalculationUsage iCalculationUsage) { - throw new ArgumentException("The object shall be an ICalculationUsage", nameof(obj)); + throw new ArgumentException("The object shall be an ICalculationUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("CalculationUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iCalculationUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iCalculationUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalculationUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iCalculationUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iCalculationUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iCalculationUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("calculationDefinition"u8); + + if (iCalculationUsage.calculationDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.calculationDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iCalculationUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iCalculationUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iCalculationUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iCalculationUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iCalculationUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iCalculationUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iCalculationUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iCalculationUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iCalculationUsage.Direction.HasValue) + { + writer.WriteStringValue(iCalculationUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iCalculationUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iCalculationUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iCalculationUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iCalculationUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iCalculationUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iCalculationUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iCalculationUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iCalculationUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iCalculationUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iCalculationUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iCalculationUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iCalculationUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iCalculationUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iCalculationUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iCalculationUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iCalculationUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iCalculationUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iCalculationUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iCalculationUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iCalculationUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iCalculationUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iCalculationUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iCalculationUsage.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iCalculationUsage.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iCalculationUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iCalculationUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iCalculationUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iCalculationUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iCalculationUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iCalculationUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iCalculationUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iCalculationUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iCalculationUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iCalculationUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iCalculationUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iCalculationUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iCalculationUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iCalculationUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iCalculationUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iCalculationUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iCalculationUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iCalculationUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iCalculationUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iCalculationUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iCalculationUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iCalculationUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iCalculationUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iCalculationUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iCalculationUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iCalculationUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iCalculationUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iCalculationUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iCalculationUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iCalculationUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iCalculationUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iCalculationUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iCalculationUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iCalculationUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iCalculationUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iCalculationUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iCalculationUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iCalculationUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iCalculationUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iCalculationUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iCalculationUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iCalculationUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iCalculationUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iCalculationUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iCalculationUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iCalculationUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iCalculationUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iCalculationUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iCalculationUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iCalculationUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iCalculationUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iCalculationUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iCalculationUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iCalculationUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iCalculationUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iCalculationUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iCalculationUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iCalculationUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("CalculationUsage"u8); + foreach (var item in iCalculationUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iCalculationUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iCalculationUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iCalculationUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iCalculationUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iCalculationUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iCalculationUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iCalculationUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iCalculationUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iCalculationUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iCalculationUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iCalculationUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iCalculationUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iCalculationUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + foreach (var item in iCalculationUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iCalculationUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iCalculationUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iCalculationUsage.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCalculationUsage.Id); + writer.WriteStringValue(iCalculationUsage.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iCalculationUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iCalculationUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iCalculationUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iCalculationUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iCalculationUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iCalculationUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iCalculationUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ICalculationUsage iCalculationUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iCalculationUsage.AliasIds) @@ -169,7 +1461,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseDefinitionSerializer.cs index 0faaf3ddf..4990f2870 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class CaseDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ICaseDefinition iCaseDefinition) { @@ -64,6 +67,53 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iCaseDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iCaseDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iCaseDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ICaseDefinition iCaseDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("action"u8); + + foreach (var item in iCaseDefinition.action) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iCaseDefinition.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("aliasIds"u8); foreach (var item in iCaseDefinition.AliasIds) @@ -73,33 +123,210 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("calculation"u8); + + foreach (var item in iCaseDefinition.calculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iCaseDefinition.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iCaseDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iCaseDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iCaseDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iCaseDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iCaseDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iCaseDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iCaseDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("expression"u8); + + foreach (var item in iCaseDefinition.expression) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iCaseDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iCaseDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iCaseDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iCaseDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iCaseDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iCaseDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iCaseDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iCaseDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iCaseDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iCaseDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iCaseDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iCaseDefinition.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iCaseDefinition.isModelLevelEvaluable); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iCaseDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iCaseDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iCaseDefinition.OwnedRelationship) + foreach (var item in iCaseDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +336,802 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iCaseDefinition.OwningRelationship.HasValue) + foreach (var item in iCaseDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCaseDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iCaseDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iCaseDefinition.name); + + writer.WritePropertyName("objectiveRequirement"u8); + + if (iCaseDefinition.objectiveRequirement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseDefinition.objectiveRequirement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("output"u8); + + foreach (var item in iCaseDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iCaseDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iCaseDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iCaseDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iCaseDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iCaseDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iCaseDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iCaseDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iCaseDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iCaseDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iCaseDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iCaseDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iCaseDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iCaseDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iCaseDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iCaseDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iCaseDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iCaseDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iCaseDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iCaseDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iCaseDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iCaseDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iCaseDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iCaseDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iCaseDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iCaseDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iCaseDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iCaseDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iCaseDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iCaseDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iCaseDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iCaseDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iCaseDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iCaseDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iCaseDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iCaseDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iCaseDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iCaseDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iCaseDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iCaseDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iCaseDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iCaseDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iCaseDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iCaseDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iCaseDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iCaseDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iCaseDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iCaseDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iCaseDefinition.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iCaseDefinition.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseDefinition.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iCaseDefinition.shortName); + + writer.WriteStartArray("step"u8); + + foreach (var item in iCaseDefinition.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseDefinition.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iCaseDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iCaseDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iCaseDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iCaseDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iCaseDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ICaseDefinition iCaseDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iCaseDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iCaseDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iCaseDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iCaseDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iCaseDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iCaseDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iCaseDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iCaseDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iCaseDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iCaseDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iCaseDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1139,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseUsageSerializer.cs index e6ef832ef..765d122c3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseUsageSerializer.cs @@ -49,21 +49,1359 @@ internal static class CaseUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ICaseUsage iCaseUsage) { - throw new ArgumentException("The object shall be an ICaseUsage", nameof(obj)); + throw new ArgumentException("The object shall be an ICaseUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("CaseUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iCaseUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iCaseUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iCaseUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iCaseUsage.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iCaseUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iCaseUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("calculationDefinition"u8); + + if (iCaseUsage.calculationDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.calculationDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("caseDefinition"u8); + + if (iCaseUsage.caseDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.caseDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iCaseUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iCaseUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iCaseUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iCaseUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iCaseUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iCaseUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iCaseUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iCaseUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iCaseUsage.Direction.HasValue) + { + writer.WriteStringValue(iCaseUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iCaseUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iCaseUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iCaseUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iCaseUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iCaseUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iCaseUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iCaseUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iCaseUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iCaseUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iCaseUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iCaseUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iCaseUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iCaseUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iCaseUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iCaseUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iCaseUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iCaseUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iCaseUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iCaseUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iCaseUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iCaseUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iCaseUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iCaseUsage.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iCaseUsage.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iCaseUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iCaseUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iCaseUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iCaseUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iCaseUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iCaseUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iCaseUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iCaseUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iCaseUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iCaseUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iCaseUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iCaseUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iCaseUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iCaseUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iCaseUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iCaseUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iCaseUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iCaseUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iCaseUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iCaseUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iCaseUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iCaseUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iCaseUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iCaseUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iCaseUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iCaseUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iCaseUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iCaseUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iCaseUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iCaseUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iCaseUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iCaseUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iCaseUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iCaseUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iCaseUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iCaseUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iCaseUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iCaseUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iCaseUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("objectiveRequirement"u8); + + if (iCaseUsage.objectiveRequirement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.objectiveRequirement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iCaseUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iCaseUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iCaseUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iCaseUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iCaseUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iCaseUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iCaseUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iCaseUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iCaseUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iCaseUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iCaseUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iCaseUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iCaseUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iCaseUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iCaseUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iCaseUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iCaseUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iCaseUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iCaseUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iCaseUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iCaseUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iCaseUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iCaseUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iCaseUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iCaseUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iCaseUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iCaseUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iCaseUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iCaseUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iCaseUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iCaseUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iCaseUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iCaseUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iCaseUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iCaseUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iCaseUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iCaseUsage.qualifiedName); + + writer.WritePropertyName("result"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.result); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("CaseUsage"u8); + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iCaseUsage.shortName); + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCaseUsage.Id); + writer.WriteStringValue(iCaseUsage.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iCaseUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iCaseUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iCaseUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iCaseUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iCaseUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iCaseUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ICaseUsage iCaseUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iCaseUsage.AliasIds) @@ -169,7 +1507,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ClassSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ClassSerializer.cs index 24e7186e6..218241bf2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ClassSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ClassSerializer.cs @@ -49,7 +49,10 @@ internal static class ClassSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IClass iClass) { @@ -64,6 +67,540 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iClass.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iClass, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iClass, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IClass iClass, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iClass.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iClass.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iClass.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iClass.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iClass.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iClass.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iClass.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iClass.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iClass.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iClass.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iClass.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iClass.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iClass.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iClass.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iClass.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iClass.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iClass.isConjugated); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iClass.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iClass.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iClass.IsSufficient); + + writer.WriteStartArray("member"u8); + + foreach (var item in iClass.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iClass.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iClass.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iClass.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iClass.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iClass.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iClass.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iClass.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iClass.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iClass.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iClass.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iClass.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iClass.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iClass.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iClass.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iClass.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iClass.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iClass.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iClass.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iClass.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iClass.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iClass.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iClass.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iClass.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iClass.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iClass.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iClass.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iClass.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iClass.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iClass.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iClass.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iClass.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iClass.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iClass.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iClass.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IClass iClass, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iClass.AliasIds) @@ -117,7 +654,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ClassifierSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ClassifierSerializer.cs index 9d7d370a3..6bf675a1e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ClassifierSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ClassifierSerializer.cs @@ -49,7 +49,10 @@ internal static class ClassifierSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IClassifier iClassifier) { @@ -64,6 +67,540 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iClassifier.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iClassifier, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iClassifier, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IClassifier iClassifier, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iClassifier.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iClassifier.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iClassifier.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iClassifier.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iClassifier.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iClassifier.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iClassifier.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iClassifier.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iClassifier.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iClassifier.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iClassifier.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iClassifier.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iClassifier.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iClassifier.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iClassifier.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iClassifier.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iClassifier.isConjugated); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iClassifier.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iClassifier.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iClassifier.IsSufficient); + + writer.WriteStartArray("member"u8); + + foreach (var item in iClassifier.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iClassifier.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iClassifier.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iClassifier.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iClassifier.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iClassifier.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iClassifier.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iClassifier.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iClassifier.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iClassifier.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iClassifier.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iClassifier.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iClassifier.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iClassifier.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iClassifier.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iClassifier.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iClassifier.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iClassifier.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iClassifier.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iClassifier.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iClassifier.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iClassifier.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iClassifier.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iClassifier.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iClassifier.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iClassifier.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iClassifier.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iClassifier.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iClassifier.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iClassifier.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iClassifier.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iClassifier.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iClassifier.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iClassifier.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iClassifier.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IClassifier iClassifier, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iClassifier.AliasIds) @@ -117,7 +654,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CollectExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CollectExpressionSerializer.cs index 4e75624ed..9c70e0566 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CollectExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CollectExpressionSerializer.cs @@ -49,21 +49,847 @@ internal static class CollectExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ICollectExpression iCollectExpression) { - throw new ArgumentException("The object shall be an ICollectExpression", nameof(obj)); + throw new ArgumentException("The object shall be an ICollectExpression", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("CollectExpression"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iCollectExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iCollectExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ICollectExpression iCollectExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iCollectExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("argument"u8); + + foreach (var item in iCollectExpression.argument) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iCollectExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iCollectExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iCollectExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iCollectExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iCollectExpression.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iCollectExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iCollectExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iCollectExpression.Direction.HasValue) + { + writer.WriteStringValue(iCollectExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iCollectExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iCollectExpression.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iCollectExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iCollectExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iCollectExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iCollectExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iCollectExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iCollectExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iCollectExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iCollectExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iCollectExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iCollectExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("instantiatedType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.instantiatedType); + writer.WriteEndObject(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iCollectExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iCollectExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iCollectExpression.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iCollectExpression.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iCollectExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iCollectExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iCollectExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iCollectExpression.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iCollectExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iCollectExpression.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iCollectExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iCollectExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iCollectExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iCollectExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iCollectExpression.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iCollectExpression.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iCollectExpression.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iCollectExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iCollectExpression.name); + + writer.WritePropertyName("operator"u8); + writer.WriteStringValue(iCollectExpression.Operator); + + writer.WriteStartArray("output"u8); + + foreach (var item in iCollectExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iCollectExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iCollectExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iCollectExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iCollectExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iCollectExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iCollectExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iCollectExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iCollectExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iCollectExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iCollectExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iCollectExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("CollectExpression"u8); + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iCollectExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iCollectExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iCollectExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iCollectExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iCollectExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iCollectExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iCollectExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iCollectExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iCollectExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iCollectExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iCollectExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iCollectExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iCollectExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iCollectExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iCollectExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iCollectExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iCollectExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iCollectExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCollectExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iCollectExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iCollectExpression.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCollectExpression.Id); + writer.WriteStringValue(iCollectExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iCollectExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iCollectExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iCollectExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iCollectExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ICollectExpression iCollectExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iCollectExpression.AliasIds) @@ -155,7 +981,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CommentSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CommentSerializer.cs index d9107474f..8b053f9d6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CommentSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CommentSerializer.cs @@ -49,7 +49,10 @@ internal static class CommentSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IComment iComment) { @@ -64,6 +67,247 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iComment.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iComment, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iComment, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IComment iComment, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iComment.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("annotatedElement"u8); + + foreach (var item in iComment.annotatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("annotation"u8); + + foreach (var item in iComment.annotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("body"u8); + writer.WriteStringValue(iComment.Body); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iComment.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iComment.DeclaredShortName); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iComment.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iComment.ElementId); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iComment.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iComment.isLibraryElement); + + writer.WritePropertyName("locale"u8); + writer.WriteStringValue(iComment.Locale); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iComment.name); + + writer.WriteStartArray("ownedAnnotatingRelationship"u8); + + foreach (var item in iComment.ownedAnnotatingRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iComment.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iComment.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iComment.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iComment.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iComment.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningAnnotatingRelationship"u8); + + if (iComment.owningAnnotatingRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iComment.owningAnnotatingRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iComment.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iComment.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iComment.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iComment.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iComment.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iComment.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iComment.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iComment.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iComment.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IComment iComment, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iComment.AliasIds) @@ -117,7 +361,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernDefinitionSerializer.cs index 7d3834293..7d9eb8a33 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernDefinitionSerializer.cs @@ -49,21 +49,1059 @@ internal static class ConcernDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IConcernDefinition iConcernDefinition) { - throw new ArgumentException("The object shall be an IConcernDefinition", nameof(obj)); + throw new ArgumentException("The object shall be an IConcernDefinition", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("ConcernDefinition"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernDefinition.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iConcernDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iConcernDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IConcernDefinition iConcernDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iConcernDefinition.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iConcernDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("assumedConstraint"u8); + + foreach (var item in iConcernDefinition.assumedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iConcernDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConcernDefinition.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iConcernDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConcernDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iConcernDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iConcernDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iConcernDefinition.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iConcernDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("expression"u8); + + foreach (var item in iConcernDefinition.expression) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iConcernDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iConcernDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("framedConcern"u8); + + foreach (var item in iConcernDefinition.framedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iConcernDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iConcernDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iConcernDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iConcernDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iConcernDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iConcernDefinition.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iConcernDefinition.isConjugated); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iConcernDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iConcernDefinition.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iConcernDefinition.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iConcernDefinition.isModelLevelEvaluable); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iConcernDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iConcernDefinition.IsVariation); + + writer.WriteStartArray("member"u8); + + foreach (var item in iConcernDefinition.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iConcernDefinition.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iConcernDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iConcernDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iConcernDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iConcernDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iConcernDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iConcernDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iConcernDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iConcernDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iConcernDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iConcernDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iConcernDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iConcernDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iConcernDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iConcernDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iConcernDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iConcernDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iConcernDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iConcernDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iConcernDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iConcernDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iConcernDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iConcernDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iConcernDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iConcernDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iConcernDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iConcernDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iConcernDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iConcernDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iConcernDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iConcernDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iConcernDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iConcernDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iConcernDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConcernDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iConcernDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iConcernDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iConcernDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iConcernDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iConcernDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iConcernDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iConcernDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iConcernDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iConcernDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iConcernDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iConcernDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iConcernDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iConcernDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iConcernDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iConcernDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iConcernDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iConcernDefinition.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iConcernDefinition.qualifiedName); + + writer.WritePropertyName("reqId"u8); + writer.WriteStringValue(iConcernDefinition.ReqId); + + writer.WriteStartArray("requiredConstraint"u8); + + foreach (var item in iConcernDefinition.requiredConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } + writer.WriteEndArray(); + + writer.WritePropertyName("result"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernDefinition.result); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("ConcernDefinition"u8); + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iConcernDefinition.shortName); + + writer.WriteStartArray("stakeholderParameter"u8); + + foreach (var item in iConcernDefinition.stakeholderParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("step"u8); + foreach (var item in iConcernDefinition.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConcernDefinition.Id); + writer.WriteStringValue(iConcernDefinition.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("text"u8); + + foreach (var item in iConcernDefinition.text) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iConcernDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iConcernDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iConcernDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iConcernDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iConcernDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IConcernDefinition iConcernDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iConcernDefinition.AliasIds) @@ -126,7 +1164,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("reqId"u8); writer.WriteStringValue(iConcernDefinition.ReqId); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernUsageSerializer.cs index a57a1ae04..d1fbe9bea 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernUsageSerializer.cs @@ -49,21 +49,1421 @@ internal static class ConcernUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IConcernUsage iConcernUsage) { - throw new ArgumentException("The object shall be an IConcernUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IConcernUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("ConcernUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iConcernUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iConcernUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iConcernUsage.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iConcernUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("assumedConstraint"u8); + + foreach (var item in iConcernUsage.assumedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iConcernUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iConcernUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("concernDefinition"u8); + + if (iConcernUsage.concernDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.concernDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("constraintDefinition"u8); + + if (iConcernUsage.constraintDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.constraintDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("crossFeature"u8); + + if (iConcernUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iConcernUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConcernUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iConcernUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iConcernUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConcernUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iConcernUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iConcernUsage.Direction.HasValue) + { + writer.WriteStringValue(iConcernUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iConcernUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iConcernUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iConcernUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iConcernUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iConcernUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iConcernUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iConcernUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("framedConcern"u8); + + foreach (var item in iConcernUsage.framedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iConcernUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iConcernUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iConcernUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iConcernUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iConcernUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iConcernUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iConcernUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iConcernUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iConcernUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iConcernUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iConcernUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iConcernUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iConcernUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iConcernUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iConcernUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iConcernUsage.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iConcernUsage.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iConcernUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iConcernUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iConcernUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iConcernUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iConcernUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iConcernUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iConcernUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iConcernUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iConcernUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iConcernUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iConcernUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iConcernUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iConcernUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iConcernUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iConcernUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iConcernUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iConcernUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iConcernUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iConcernUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iConcernUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iConcernUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iConcernUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iConcernUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iConcernUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iConcernUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iConcernUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iConcernUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iConcernUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iConcernUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iConcernUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iConcernUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iConcernUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iConcernUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iConcernUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iConcernUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iConcernUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iConcernUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iConcernUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iConcernUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iConcernUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iConcernUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iConcernUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iConcernUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iConcernUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iConcernUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iConcernUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iConcernUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iConcernUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iConcernUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iConcernUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iConcernUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iConcernUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iConcernUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iConcernUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iConcernUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iConcernUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iConcernUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iConcernUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConcernUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iConcernUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iConcernUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iConcernUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iConcernUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iConcernUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iConcernUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iConcernUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iConcernUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iConcernUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iConcernUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iConcernUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iConcernUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iConcernUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iConcernUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iConcernUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iConcernUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("predicate"u8); + + if (iConcernUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iConcernUsage.qualifiedName); + + writer.WritePropertyName("reqId"u8); + writer.WriteStringValue(iConcernUsage.ReqId); + + writer.WriteStartArray("requiredConstraint"u8); + + foreach (var item in iConcernUsage.requiredConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("requirementDefinition"u8); + + if (iConcernUsage.requirementDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.requirementDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } + writer.WritePropertyName("result"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.result); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("ConcernUsage"u8); + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iConcernUsage.shortName); + + writer.WriteStartArray("stakeholderParameter"u8); + + foreach (var item in iConcernUsage.stakeholderParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConcernUsage.Id); + writer.WriteStringValue(iConcernUsage.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("text"u8); + + foreach (var item in iConcernUsage.text) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iConcernUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iConcernUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iConcernUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iConcernUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iConcernUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iConcernUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IConcernUsage iConcernUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iConcernUsage.AliasIds) @@ -172,7 +1572,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("reqId"u8); writer.WriteStringValue(iConcernUsage.ReqId); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortDefinitionSerializer.cs index 69b6e758f..9d0308bb4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class ConjugatedPortDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IConjugatedPortDefinition iConjugatedPortDefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iConjugatedPortDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iConjugatedPortDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iConjugatedPortDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortDefinition iConjugatedPortDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iConjugatedPortDefinition.AliasIds) @@ -73,33 +99,197 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("conjugatedPortDefinition"u8); + + if (iConjugatedPortDefinition.conjugatedPortDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortDefinition.conjugatedPortDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iConjugatedPortDefinition.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iConjugatedPortDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iConjugatedPortDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConjugatedPortDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iConjugatedPortDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iConjugatedPortDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConjugatedPortDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iConjugatedPortDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iConjugatedPortDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iConjugatedPortDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iConjugatedPortDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iConjugatedPortDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iConjugatedPortDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iConjugatedPortDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iConjugatedPortDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iConjugatedPortDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iConjugatedPortDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iConjugatedPortDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iConjugatedPortDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iConjugatedPortDefinition.isLibraryElement); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iConjugatedPortDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConjugatedPortDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iConjugatedPortDefinition.OwnedRelationship) + foreach (var item in iConjugatedPortDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +299,25 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iConjugatedPortDefinition.OwningRelationship.HasValue) + foreach (var item in iConjugatedPortDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConjugatedPortDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iConjugatedPortDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortDefinition.multiplicity.Value); writer.WriteEndObject(); } else @@ -123,7 +325,745 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iConjugatedPortDefinition.name); + + writer.WritePropertyName("originalPortDefinition"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortDefinition.originalPortDefinition); writer.WriteEndObject(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iConjugatedPortDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iConjugatedPortDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iConjugatedPortDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iConjugatedPortDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iConjugatedPortDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iConjugatedPortDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iConjugatedPortDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iConjugatedPortDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iConjugatedPortDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iConjugatedPortDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iConjugatedPortDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iConjugatedPortDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iConjugatedPortDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iConjugatedPortDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iConjugatedPortDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iConjugatedPortDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iConjugatedPortDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iConjugatedPortDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iConjugatedPortDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iConjugatedPortDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iConjugatedPortDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iConjugatedPortDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iConjugatedPortDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iConjugatedPortDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iConjugatedPortDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iConjugatedPortDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iConjugatedPortDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iConjugatedPortDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iConjugatedPortDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iConjugatedPortDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedPortConjugator"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortDefinition.ownedPortConjugator); + writer.WriteEndObject(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iConjugatedPortDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConjugatedPortDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iConjugatedPortDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iConjugatedPortDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iConjugatedPortDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iConjugatedPortDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iConjugatedPortDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iConjugatedPortDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iConjugatedPortDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iConjugatedPortDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iConjugatedPortDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iConjugatedPortDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iConjugatedPortDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iConjugatedPortDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iConjugatedPortDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iConjugatedPortDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iConjugatedPortDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iConjugatedPortDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iConjugatedPortDefinition.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iConjugatedPortDefinition.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iConjugatedPortDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iConjugatedPortDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iConjugatedPortDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iConjugatedPortDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iConjugatedPortDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IConjugatedPortDefinition iConjugatedPortDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iConjugatedPortDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iConjugatedPortDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConjugatedPortDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iConjugatedPortDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iConjugatedPortDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iConjugatedPortDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iConjugatedPortDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iConjugatedPortDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iConjugatedPortDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConjugatedPortDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iConjugatedPortDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortTypingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortTypingSerializer.cs index e2077b103..0c4c135fd 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortTypingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortTypingSerializer.cs @@ -49,7 +49,10 @@ internal static class ConjugatedPortTypingSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IConjugatedPortTyping iConjugatedPortTyping) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iConjugatedPortTyping.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iConjugatedPortTyping, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iConjugatedPortTyping, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortTyping iConjugatedPortTyping, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iConjugatedPortTyping.AliasIds) @@ -85,6 +111,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iConjugatedPortTyping.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iConjugatedPortTyping.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConjugatedPortTyping.ElementId); @@ -100,6 +138,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iConjugatedPortTyping.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iConjugatedPortTyping.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iConjugatedPortTyping.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iConjugatedPortTyping.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iConjugatedPortTyping.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iConjugatedPortTyping.OwnedRelatedElement) @@ -124,6 +192,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iConjugatedPortTyping.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeature"u8); + + if (iConjugatedPortTyping.owningFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.owningFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iConjugatedPortTyping.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iConjugatedPortTyping.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iConjugatedPortTyping.OwningRelatedElement.HasValue) @@ -152,6 +276,44 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iConjugatedPortTyping.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("portDefinition"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.portDefinition); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iConjugatedPortTyping.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iConjugatedPortTyping.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iConjugatedPortTyping.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iConjugatedPortTyping.Source) @@ -182,6 +344,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iConjugatedPortTyping.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("type"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -194,7 +368,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iConjugatedPortTyping.TypedFeature); writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IConjugatedPortTyping iConjugatedPortTyping, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iConjugatedPortTyping.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("conjugatedPortDefinition"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.ConjugatedPortDefinition); + writer.WriteEndObject(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iConjugatedPortTyping.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConjugatedPortTyping.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iConjugatedPortTyping.ElementId); + + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.General); writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iConjugatedPortTyping.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iConjugatedPortTyping.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iConjugatedPortTyping.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConjugatedPortTyping.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iConjugatedPortTyping.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iConjugatedPortTyping.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iConjugatedPortTyping.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.Specific); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iConjugatedPortTyping.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("type"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.Type); + writer.WriteEndObject(); + + writer.WritePropertyName("typedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.TypedFeature); + writer.WriteEndObject(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugationSerializer.cs index bb8082ddf..42c98f245 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugationSerializer.cs @@ -49,7 +49,10 @@ internal static class ConjugationSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IConjugation iConjugation) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iConjugation.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iConjugation, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iConjugation, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IConjugation iConjugation, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iConjugation.AliasIds) @@ -85,6 +111,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iConjugation.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iConjugation.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConjugation.ElementId); @@ -94,12 +132,42 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iConjugation.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iConjugation.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iConjugation.name); + writer.WritePropertyName("originalType"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iConjugation.OriginalType); writer.WriteEndObject(); + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iConjugation.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iConjugation.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iConjugation.OwnedRelatedElement) @@ -124,6 +192,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iConjugation.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugation.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iConjugation.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugation.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iConjugation.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugation.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iConjugation.OwningRelatedElement.HasValue) @@ -152,6 +262,38 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iConjugation.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugation.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iConjugation.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iConjugation.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iConjugation.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iConjugation.Source) @@ -176,7 +318,143 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iConjugation.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IConjugation iConjugation, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iConjugation.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("conjugatedType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugation.ConjugatedType); writer.WriteEndObject(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iConjugation.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConjugation.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iConjugation.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iConjugation.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iConjugation.IsImpliedIncluded); + + writer.WritePropertyName("originalType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugation.OriginalType); + writer.WriteEndObject(); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iConjugation.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConjugation.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iConjugation.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugation.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iConjugation.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugation.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iConjugation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iConjugation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionDefinitionSerializer.cs index fd6333bee..45b9881bd 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionDefinitionSerializer.cs @@ -49,21 +49,1063 @@ internal static class ConnectionDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IConnectionDefinition iConnectionDefinition) { - throw new ArgumentException("The object shall be an IConnectionDefinition", nameof(obj)); + throw new ArgumentException("The object shall be an IConnectionDefinition", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("ConnectionDefinition"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionDefinition.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iConnectionDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iConnectionDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IConnectionDefinition iConnectionDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iConnectionDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("associationEnd"u8); + + foreach (var item in iConnectionDefinition.associationEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectionEnd"u8); + + foreach (var item in iConnectionDefinition.connectionEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iConnectionDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConnectionDefinition.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iConnectionDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConnectionDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iConnectionDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iConnectionDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iConnectionDefinition.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iConnectionDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iConnectionDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iConnectionDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iConnectionDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iConnectionDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iConnectionDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iConnectionDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iConnectionDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iConnectionDefinition.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iConnectionDefinition.isConjugated); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iConnectionDefinition.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iConnectionDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iConnectionDefinition.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iConnectionDefinition.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iConnectionDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iConnectionDefinition.IsVariation); + + writer.WriteStartArray("member"u8); + + foreach (var item in iConnectionDefinition.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iConnectionDefinition.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iConnectionDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iConnectionDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iConnectionDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iConnectionDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iConnectionDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iConnectionDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iConnectionDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iConnectionDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iConnectionDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iConnectionDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iConnectionDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iConnectionDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iConnectionDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iConnectionDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iConnectionDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iConnectionDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iConnectionDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iConnectionDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iConnectionDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iConnectionDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iConnectionDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iConnectionDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iConnectionDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iConnectionDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iConnectionDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iConnectionDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iConnectionDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iConnectionDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iConnectionDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iConnectionDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iConnectionDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iConnectionDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iConnectionDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iConnectionDefinition.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConnectionDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iConnectionDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iConnectionDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iConnectionDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iConnectionDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iConnectionDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iConnectionDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iConnectionDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("ConnectionDefinition"u8); + writer.WriteStartArray("ownedUsage"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConnectionDefinition.Id); + foreach (var item in iConnectionDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iConnectionDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iConnectionDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iConnectionDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iConnectionDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iConnectionDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iConnectionDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iConnectionDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iConnectionDefinition.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionDefinition.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iConnectionDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iConnectionDefinition.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iConnectionDefinition.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedType"u8); + + foreach (var item in iConnectionDefinition.relatedType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iConnectionDefinition.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iConnectionDefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceType"u8); + + if (iConnectionDefinition.sourceType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionDefinition.sourceType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iConnectionDefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetType"u8); + + foreach (var item in iConnectionDefinition.targetType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iConnectionDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iConnectionDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iConnectionDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iConnectionDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iConnectionDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IConnectionDefinition iConnectionDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iConnectionDefinition.AliasIds) @@ -176,7 +1218,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionUsageSerializer.cs index 82fce5ad9..50abf1f1e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionUsageSerializer.cs @@ -49,21 +49,1417 @@ internal static class ConnectionUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IConnectionUsage iConnectionUsage) { - throw new ArgumentException("The object shall be an IConnectionUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IConnectionUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("ConnectionUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iConnectionUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iConnectionUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConnectionUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iConnectionUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("association"u8); + + foreach (var item in iConnectionUsage.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iConnectionUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectionDefinition"u8); + + foreach (var item in iConnectionUsage.connectionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectorEnd"u8); + + foreach (var item in iConnectionUsage.connectorEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iConnectionUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iConnectionUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConnectionUsage.DeclaredShortName); + + writer.WritePropertyName("defaultFeaturingType"u8); + + if (iConnectionUsage.defaultFeaturingType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.defaultFeaturingType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("definition"u8); + + foreach (var item in iConnectionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iConnectionUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConnectionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iConnectionUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iConnectionUsage.Direction.HasValue) + { + writer.WriteStringValue(iConnectionUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iConnectionUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iConnectionUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iConnectionUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iConnectionUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iConnectionUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iConnectionUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iConnectionUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iConnectionUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iConnectionUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iConnectionUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iConnectionUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iConnectionUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iConnectionUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iConnectionUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iConnectionUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iConnectionUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iConnectionUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iConnectionUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iConnectionUsage.IsEnd); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iConnectionUsage.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iConnectionUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iConnectionUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iConnectionUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iConnectionUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iConnectionUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iConnectionUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iConnectionUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iConnectionUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iConnectionUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iConnectionUsage.IsVariation); + + writer.WriteStartArray("itemDefinition"u8); + + foreach (var item in iConnectionUsage.itemDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iConnectionUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iConnectionUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iConnectionUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iConnectionUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iConnectionUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iConnectionUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iConnectionUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iConnectionUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iConnectionUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iConnectionUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iConnectionUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iConnectionUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iConnectionUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iConnectionUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iConnectionUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iConnectionUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iConnectionUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iConnectionUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iConnectionUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iConnectionUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iConnectionUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iConnectionUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iConnectionUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iConnectionUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iConnectionUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iConnectionUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iConnectionUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iConnectionUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iConnectionUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iConnectionUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iConnectionUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iConnectionUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iConnectionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iConnectionUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iConnectionUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iConnectionUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iConnectionUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iConnectionUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iConnectionUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iConnectionUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iConnectionUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iConnectionUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iConnectionUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iConnectionUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iConnectionUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iConnectionUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iConnectionUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iConnectionUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iConnectionUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iConnectionUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iConnectionUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iConnectionUsage.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConnectionUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iConnectionUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iConnectionUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iConnectionUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iConnectionUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iConnectionUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iConnectionUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iConnectionUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WritePropertyName("owningFeatureMembership"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("ConnectionUsage"u8); + if (iConnectionUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConnectionUsage.Id); + writer.WritePropertyName("owningMembership"u8); + + if (iConnectionUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iConnectionUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iConnectionUsage.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iConnectionUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iConnectionUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iConnectionUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("partDefinition"u8); + + foreach (var item in iConnectionUsage.partDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iConnectionUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iConnectionUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iConnectionUsage.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iConnectionUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedFeature"u8); + + foreach (var item in iConnectionUsage.relatedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iConnectionUsage.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iConnectionUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceFeature"u8); + + if (iConnectionUsage.sourceFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnectionUsage.sourceFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iConnectionUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetFeature"u8); + + foreach (var item in iConnectionUsage.targetFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iConnectionUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iConnectionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iConnectionUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iConnectionUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iConnectionUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iConnectionUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IConnectionUsage iConnectionUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iConnectionUsage.AliasIds) @@ -222,7 +1618,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectorSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectorSerializer.cs index 29a1adfc3..8b5bfd563 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectorSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectorSerializer.cs @@ -49,21 +49,920 @@ internal static class ConnectorSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IConnector iConnector) { - throw new ArgumentException("The object shall be an IConnector", nameof(obj)); + throw new ArgumentException("The object shall be an IConnector", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("Connector"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iConnector, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iConnector, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IConnector iConnector, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iConnector.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("association"u8); + + foreach (var item in iConnector.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iConnector.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectorEnd"u8); + + foreach (var item in iConnector.connectorEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iConnector.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iConnector.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConnector.DeclaredShortName); + + writer.WritePropertyName("defaultFeaturingType"u8); + + if (iConnector.defaultFeaturingType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.defaultFeaturingType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iConnector.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConnector.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iConnector.Direction.HasValue) + { + writer.WriteStringValue(iConnector.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iConnector.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iConnector.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iConnector.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iConnector.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iConnector.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iConnector.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iConnector.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iConnector.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iConnector.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iConnector.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iConnector.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iConnector.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iConnector.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iConnector.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iConnector.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iConnector.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iConnector.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iConnector.IsEnd); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iConnector.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iConnector.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iConnector.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iConnector.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iConnector.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iConnector.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iConnector.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iConnector.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iConnector.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iConnector.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iConnector.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iConnector.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iConnector.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iConnector.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iConnector.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iConnector.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iConnector.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iConnector.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iConnector.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iConnector.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iConnector.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iConnector.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iConnector.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iConnector.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iConnector.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iConnector.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iConnector.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iConnector.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iConnector.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iConnector.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iConnector.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConnector.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("Connector"u8); + writer.WriteStartArray("ownedSpecialization"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConnector.Id); + foreach (var item in iConnector.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iConnector.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iConnector.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iConnector.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iConnector.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iConnector.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iConnector.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iConnector.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iConnector.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iConnector.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iConnector.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iConnector.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iConnector.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iConnector.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedFeature"u8); + + foreach (var item in iConnector.relatedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iConnector.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iConnector.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceFeature"u8); + + if (iConnector.sourceFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConnector.sourceFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iConnector.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetFeature"u8); + + foreach (var item in iConnector.targetFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iConnector.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iConnector.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iConnector.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IConnector iConnector, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iConnector.AliasIds) @@ -205,7 +1104,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintDefinitionSerializer.cs index 10376846a..734cfa695 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class ConstraintDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IConstraintDefinition iConstraintDefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iConstraintDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iConstraintDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iConstraintDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IConstraintDefinition iConstraintDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iConstraintDefinition.AliasIds) @@ -79,27 +105,192 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iConstraintDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iConstraintDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConstraintDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iConstraintDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iConstraintDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConstraintDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iConstraintDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("expression"u8); + + foreach (var item in iConstraintDefinition.expression) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iConstraintDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iConstraintDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iConstraintDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iConstraintDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iConstraintDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iConstraintDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iConstraintDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iConstraintDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iConstraintDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iConstraintDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iConstraintDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iConstraintDefinition.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iConstraintDefinition.isModelLevelEvaluable); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iConstraintDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConstraintDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iConstraintDefinition.OwnedRelationship) + foreach (var item in iConstraintDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +300,782 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iConstraintDefinition.OwningRelationship.HasValue) + foreach (var item in iConstraintDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConstraintDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iConstraintDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iConstraintDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iConstraintDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iConstraintDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iConstraintDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iConstraintDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iConstraintDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iConstraintDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iConstraintDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iConstraintDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iConstraintDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iConstraintDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iConstraintDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iConstraintDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iConstraintDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iConstraintDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iConstraintDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iConstraintDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iConstraintDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iConstraintDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iConstraintDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iConstraintDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iConstraintDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iConstraintDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iConstraintDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iConstraintDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iConstraintDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iConstraintDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iConstraintDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iConstraintDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iConstraintDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iConstraintDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iConstraintDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConstraintDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iConstraintDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iConstraintDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iConstraintDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iConstraintDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iConstraintDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iConstraintDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iConstraintDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iConstraintDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iConstraintDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iConstraintDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iConstraintDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iConstraintDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iConstraintDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iConstraintDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iConstraintDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iConstraintDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iConstraintDefinition.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iConstraintDefinition.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintDefinition.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iConstraintDefinition.shortName); + + writer.WriteStartArray("step"u8); + + foreach (var item in iConstraintDefinition.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iConstraintDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iConstraintDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iConstraintDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iConstraintDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iConstraintDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IConstraintDefinition iConstraintDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iConstraintDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iConstraintDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConstraintDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iConstraintDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iConstraintDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iConstraintDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iConstraintDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iConstraintDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iConstraintDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConstraintDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iConstraintDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1083,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintUsageSerializer.cs index 8061582d3..adc7cc8d6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintUsageSerializer.cs @@ -49,21 +49,1315 @@ internal static class ConstraintUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IConstraintUsage iConstraintUsage) { - throw new ArgumentException("The object shall be an IConstraintUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IConstraintUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("ConstraintUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iConstraintUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iConstraintUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConstraintUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iConstraintUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iConstraintUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iConstraintUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("constraintDefinition"u8); + + if (iConstraintUsage.constraintDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.constraintDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("crossFeature"u8); + + if (iConstraintUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iConstraintUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConstraintUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iConstraintUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iConstraintUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConstraintUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iConstraintUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iConstraintUsage.Direction.HasValue) + { + writer.WriteStringValue(iConstraintUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iConstraintUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iConstraintUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iConstraintUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iConstraintUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iConstraintUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iConstraintUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iConstraintUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iConstraintUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iConstraintUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iConstraintUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iConstraintUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iConstraintUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iConstraintUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iConstraintUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iConstraintUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iConstraintUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iConstraintUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iConstraintUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iConstraintUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iConstraintUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iConstraintUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iConstraintUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iConstraintUsage.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iConstraintUsage.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iConstraintUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iConstraintUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iConstraintUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iConstraintUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iConstraintUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iConstraintUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iConstraintUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iConstraintUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iConstraintUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iConstraintUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iConstraintUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iConstraintUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iConstraintUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iConstraintUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iConstraintUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iConstraintUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iConstraintUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iConstraintUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iConstraintUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iConstraintUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iConstraintUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iConstraintUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iConstraintUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iConstraintUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iConstraintUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iConstraintUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iConstraintUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iConstraintUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iConstraintUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iConstraintUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iConstraintUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iConstraintUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iConstraintUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iConstraintUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iConstraintUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iConstraintUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iConstraintUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iConstraintUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iConstraintUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iConstraintUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iConstraintUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iConstraintUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iConstraintUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iConstraintUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iConstraintUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iConstraintUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iConstraintUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iConstraintUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iConstraintUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iConstraintUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iConstraintUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iConstraintUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iConstraintUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iConstraintUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iConstraintUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iConstraintUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iConstraintUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iConstraintUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConstraintUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iConstraintUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("ConstraintUsage"u8); + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iConstraintUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iConstraintUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iConstraintUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iConstraintUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iConstraintUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iConstraintUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iConstraintUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iConstraintUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iConstraintUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iConstraintUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iConstraintUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iConstraintUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iConstraintUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + if (iConstraintUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iConstraintUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("predicate"u8); + + if (iConstraintUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iConstraintUsage.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConstraintUsage.Id); + writer.WriteStringValue(iConstraintUsage.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iConstraintUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iConstraintUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iConstraintUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iConstraintUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iConstraintUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iConstraintUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iConstraintUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IConstraintUsage iConstraintUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iConstraintUsage.AliasIds) @@ -169,7 +1463,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstructorExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstructorExpressionSerializer.cs index 8fc2b076d..2eb7f9b68 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstructorExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstructorExpressionSerializer.cs @@ -49,7 +49,10 @@ internal static class ConstructorExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IConstructorExpression iConstructorExpression) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iConstructorExpression.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iConstructorExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iConstructorExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IConstructorExpression iConstructorExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iConstructorExpression.AliasIds) @@ -73,12 +99,86 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("argument"u8); + + foreach (var item in iConstructorExpression.argument) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iConstructorExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iConstructorExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iConstructorExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iConstructorExpression.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iConstructorExpression.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iConstructorExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConstructorExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iConstructorExpression.Direction.HasValue) @@ -90,15 +190,178 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iConstructorExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConstructorExpression.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iConstructorExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iConstructorExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iConstructorExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iConstructorExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iConstructorExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iConstructorExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iConstructorExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iConstructorExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iConstructorExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iConstructorExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("instantiatedType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.instantiatedType); + writer.WriteEndObject(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iConstructorExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iConstructorExpression.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iConstructorExpression.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iConstructorExpression.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iConstructorExpression.IsConstant); @@ -111,6 +374,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iConstructorExpression.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iConstructorExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iConstructorExpression.isModelLevelEvaluable); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iConstructorExpression.IsOrdered); @@ -126,9 +395,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iConstructorExpression.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iConstructorExpression.OwnedRelationship) + foreach (var item in iConstructorExpression.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +407,567 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iConstructorExpression.OwningRelationship.HasValue) + foreach (var item in iConstructorExpression.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConstructorExpression.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iConstructorExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iConstructorExpression.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iConstructorExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iConstructorExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iConstructorExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iConstructorExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iConstructorExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iConstructorExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iConstructorExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iConstructorExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iConstructorExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iConstructorExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iConstructorExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iConstructorExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iConstructorExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iConstructorExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iConstructorExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iConstructorExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iConstructorExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iConstructorExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConstructorExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iConstructorExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iConstructorExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iConstructorExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iConstructorExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iConstructorExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iConstructorExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iConstructorExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iConstructorExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iConstructorExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iConstructorExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iConstructorExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iConstructorExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iConstructorExpression.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iConstructorExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iConstructorExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iConstructorExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iConstructorExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IConstructorExpression iConstructorExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iConstructorExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iConstructorExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConstructorExpression.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iConstructorExpression.Direction.HasValue) + { + writer.WriteStringValue(iConstructorExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iConstructorExpression.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iConstructorExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iConstructorExpression.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iConstructorExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iConstructorExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iConstructorExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iConstructorExpression.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iConstructorExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iConstructorExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iConstructorExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iConstructorExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iConstructorExpression.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iConstructorExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iConstructorExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstructorExpression.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +975,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CrossSubsettingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CrossSubsettingSerializer.cs index 1f3541ba6..a1bb15fac 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CrossSubsettingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CrossSubsettingSerializer.cs @@ -49,7 +49,10 @@ internal static class CrossSubsettingSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ICrossSubsetting iCrossSubsetting) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iCrossSubsetting.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iCrossSubsetting, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iCrossSubsetting, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ICrossSubsetting iCrossSubsetting, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iCrossSubsetting.AliasIds) @@ -79,12 +105,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iCrossSubsetting.CrossedFeature); writer.WriteEndObject(); + writer.WritePropertyName("crossingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.crossingFeature); + writer.WriteEndObject(); + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iCrossSubsetting.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iCrossSubsetting.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iCrossSubsetting.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iCrossSubsetting.ElementId); @@ -100,6 +144,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iCrossSubsetting.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iCrossSubsetting.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iCrossSubsetting.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iCrossSubsetting.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iCrossSubsetting.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iCrossSubsetting.OwnedRelatedElement) @@ -124,6 +198,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iCrossSubsetting.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeature"u8); + + if (iCrossSubsetting.owningFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.owningFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iCrossSubsetting.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iCrossSubsetting.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iCrossSubsetting.OwningRelatedElement.HasValue) @@ -152,6 +282,38 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iCrossSubsetting.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iCrossSubsetting.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iCrossSubsetting.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iCrossSubsetting.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iCrossSubsetting.Source) @@ -194,7 +356,161 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iCrossSubsetting.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ICrossSubsetting iCrossSubsetting, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iCrossSubsetting.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.CrossedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iCrossSubsetting.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iCrossSubsetting.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iCrossSubsetting.ElementId); + + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.General); + writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iCrossSubsetting.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iCrossSubsetting.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iCrossSubsetting.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iCrossSubsetting.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iCrossSubsetting.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iCrossSubsetting.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iCrossSubsetting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.Specific); writer.WriteEndObject(); + + writer.WritePropertyName("subsettedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.SubsettedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.SubsettingFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iCrossSubsetting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DataTypeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DataTypeSerializer.cs index 18935c1f5..0d4fbd953 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DataTypeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DataTypeSerializer.cs @@ -49,7 +49,10 @@ internal static class DataTypeSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IDataType iDataType) { @@ -64,6 +67,540 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iDataType.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iDataType, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iDataType, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IDataType iDataType, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iDataType.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iDataType.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iDataType.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iDataType.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iDataType.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iDataType.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iDataType.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iDataType.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iDataType.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iDataType.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iDataType.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iDataType.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iDataType.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iDataType.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iDataType.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iDataType.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iDataType.isConjugated); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iDataType.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iDataType.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iDataType.IsSufficient); + + writer.WriteStartArray("member"u8); + + foreach (var item in iDataType.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iDataType.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iDataType.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDataType.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iDataType.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iDataType.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iDataType.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iDataType.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDataType.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iDataType.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iDataType.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iDataType.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iDataType.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iDataType.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iDataType.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iDataType.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iDataType.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iDataType.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iDataType.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iDataType.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iDataType.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iDataType.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iDataType.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iDataType.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDataType.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iDataType.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDataType.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iDataType.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDataType.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iDataType.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDataType.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iDataType.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iDataType.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iDataType.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iDataType.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IDataType iDataType, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iDataType.AliasIds) @@ -117,7 +654,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DecisionNodeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DecisionNodeSerializer.cs index fca4988d3..991935cc5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DecisionNodeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DecisionNodeSerializer.cs @@ -49,21 +49,1276 @@ internal static class DecisionNodeSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IDecisionNode iDecisionNode) { - throw new ArgumentException("The object shall be an IDecisionNode", nameof(obj)); + throw new ArgumentException("The object shall be an IDecisionNode", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("DecisionNode"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iDecisionNode, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iDecisionNode, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IDecisionNode iDecisionNode, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iDecisionNode.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iDecisionNode.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iDecisionNode.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iDecisionNode.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iDecisionNode.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iDecisionNode.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iDecisionNode.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iDecisionNode.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iDecisionNode.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iDecisionNode.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iDecisionNode.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iDecisionNode.Direction.HasValue) + { + writer.WriteStringValue(iDecisionNode.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iDecisionNode.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iDecisionNode.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iDecisionNode.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iDecisionNode.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iDecisionNode.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iDecisionNode.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iDecisionNode.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iDecisionNode.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iDecisionNode.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iDecisionNode.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iDecisionNode.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iDecisionNode.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iDecisionNode.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iDecisionNode.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iDecisionNode.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iDecisionNode.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iDecisionNode.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iDecisionNode.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iDecisionNode.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iDecisionNode.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iDecisionNode.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iDecisionNode.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iDecisionNode.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iDecisionNode.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iDecisionNode.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iDecisionNode.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iDecisionNode.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iDecisionNode.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iDecisionNode.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iDecisionNode.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iDecisionNode.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iDecisionNode.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iDecisionNode.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iDecisionNode.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iDecisionNode.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iDecisionNode.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iDecisionNode.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iDecisionNode.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iDecisionNode.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iDecisionNode.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iDecisionNode.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iDecisionNode.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iDecisionNode.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iDecisionNode.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iDecisionNode.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iDecisionNode.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iDecisionNode.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iDecisionNode.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iDecisionNode.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iDecisionNode.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iDecisionNode.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iDecisionNode.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iDecisionNode.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iDecisionNode.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iDecisionNode.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iDecisionNode.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iDecisionNode.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iDecisionNode.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iDecisionNode.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iDecisionNode.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iDecisionNode.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iDecisionNode.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iDecisionNode.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iDecisionNode.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iDecisionNode.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iDecisionNode.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iDecisionNode.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iDecisionNode.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iDecisionNode.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iDecisionNode.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iDecisionNode.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iDecisionNode.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iDecisionNode.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iDecisionNode.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iDecisionNode.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iDecisionNode.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iDecisionNode.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iDecisionNode.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iDecisionNode.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iDecisionNode.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("DecisionNode"u8); + foreach (var item in iDecisionNode.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iDecisionNode.Id); + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iDecisionNode.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iDecisionNode.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iDecisionNode.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iDecisionNode.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iDecisionNode.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iDecisionNode.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iDecisionNode.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iDecisionNode.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iDecisionNode.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iDecisionNode.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + if (iDecisionNode.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iDecisionNode.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iDecisionNode.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDecisionNode.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iDecisionNode.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iDecisionNode.PortionKind.HasValue) + { + writer.WriteStringValue(iDecisionNode.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iDecisionNode.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iDecisionNode.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iDecisionNode.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iDecisionNode.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iDecisionNode.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iDecisionNode.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iDecisionNode.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iDecisionNode.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IDecisionNode iDecisionNode, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iDecisionNode.AliasIds) @@ -169,7 +1424,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DefinitionSerializer.cs index 4faeca96c..30f0a8efe 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class DefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IDefinition iDefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IDefinition iDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iDefinition.AliasIds) @@ -79,24 +105,174 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iDefinition.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iDefinition.isLibraryElement); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iDefinition.OwnedRelationship) + foreach (var item in iDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -106,13 +282,749 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iDefinition.OwningRelationship.HasValue) + foreach (var item in iDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iDefinition.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iDefinition.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IDefinition iDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -120,7 +1032,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DependencySerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DependencySerializer.cs index 85ba4cd9b..1a08b3d3f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DependencySerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DependencySerializer.cs @@ -49,7 +49,10 @@ internal static class DependencySerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IDependency iDependency) { @@ -64,6 +67,280 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iDependency.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iDependency, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iDependency, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IDependency iDependency, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iDependency.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("client"u8); + + foreach (var item in iDependency.Client) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iDependency.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iDependency.DeclaredShortName); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iDependency.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iDependency.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iDependency.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iDependency.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iDependency.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iDependency.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iDependency.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iDependency.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iDependency.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iDependency.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iDependency.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDependency.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iDependency.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDependency.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iDependency.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDependency.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iDependency.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDependency.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iDependency.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDependency.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iDependency.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iDependency.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iDependency.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iDependency.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("supplier"u8); + + foreach (var item in iDependency.Supplier) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iDependency.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iDependency.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IDependency iDependency, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iDependency.AliasIds) @@ -188,7 +465,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DifferencingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DifferencingSerializer.cs index 3fe541591..7817b0671 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DifferencingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DifferencingSerializer.cs @@ -49,7 +49,10 @@ internal static class DifferencingSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IDifferencing iDifferencing) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iDifferencing.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iDifferencing, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iDifferencing, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IDifferencing iDifferencing, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iDifferencing.AliasIds) @@ -85,6 +111,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iDifferencing.DifferencingType); writer.WriteEndObject(); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iDifferencing.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iDifferencing.ElementId); @@ -94,6 +132,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iDifferencing.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iDifferencing.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iDifferencing.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iDifferencing.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iDifferencing.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iDifferencing.OwnedRelatedElement) @@ -118,6 +186,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iDifferencing.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDifferencing.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iDifferencing.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDifferencing.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iDifferencing.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDifferencing.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iDifferencing.OwningRelatedElement.HasValue) @@ -146,6 +256,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iDifferencing.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iDifferencing.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iDifferencing.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iDifferencing.Source) @@ -170,7 +298,143 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iDifferencing.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("typeDifferenced"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDifferencing.typeDifferenced); + writer.WriteEndObject(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IDifferencing iDifferencing, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iDifferencing.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iDifferencing.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iDifferencing.DeclaredShortName); + + writer.WritePropertyName("differencingType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDifferencing.DifferencingType); writer.WriteEndObject(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iDifferencing.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iDifferencing.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iDifferencing.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iDifferencing.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iDifferencing.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iDifferencing.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDifferencing.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iDifferencing.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDifferencing.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iDifferencing.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iDifferencing.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DisjoiningSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DisjoiningSerializer.cs index 625035a2d..b5430030a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DisjoiningSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DisjoiningSerializer.cs @@ -49,7 +49,10 @@ internal static class DisjoiningSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IDisjoining iDisjoining) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iDisjoining.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iDisjoining, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iDisjoining, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IDisjoining iDisjoining, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iDisjoining.AliasIds) @@ -85,6 +111,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iDisjoining.DisjoiningType); writer.WriteEndObject(); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iDisjoining.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iDisjoining.ElementId); @@ -94,6 +132,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iDisjoining.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iDisjoining.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iDisjoining.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iDisjoining.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iDisjoining.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iDisjoining.OwnedRelatedElement) @@ -118,6 +186,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iDisjoining.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDisjoining.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iDisjoining.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDisjoining.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iDisjoining.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDisjoining.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iDisjoining.OwningRelatedElement.HasValue) @@ -146,6 +256,38 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iDisjoining.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDisjoining.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iDisjoining.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iDisjoining.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iDisjoining.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iDisjoining.Source) @@ -170,13 +312,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iDisjoining.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("typeDisjoined"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iDisjoining.TypeDisjoined); writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IDisjoining iDisjoining, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iDisjoining.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iDisjoining.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iDisjoining.DeclaredShortName); + + writer.WritePropertyName("disjoiningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDisjoining.DisjoiningType); + writer.WriteEndObject(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iDisjoining.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iDisjoining.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iDisjoining.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iDisjoining.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iDisjoining.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iDisjoining.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDisjoining.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iDisjoining.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDisjoining.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iDisjoining.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iDisjoining.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("typeDisjoined"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDisjoining.TypeDisjoined); writer.WriteEndObject(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DocumentationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DocumentationSerializer.cs index 2b0b28288..7f80fd834 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DocumentationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DocumentationSerializer.cs @@ -49,7 +49,10 @@ internal static class DocumentationSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IDocumentation iDocumentation) { @@ -64,6 +67,253 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iDocumentation.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iDocumentation, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iDocumentation, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IDocumentation iDocumentation, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iDocumentation.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("annotatedElement"u8); + + foreach (var item in iDocumentation.annotatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("annotation"u8); + + foreach (var item in iDocumentation.annotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("body"u8); + writer.WriteStringValue(iDocumentation.Body); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iDocumentation.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iDocumentation.DeclaredShortName); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iDocumentation.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("documentedElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDocumentation.documentedElement); + writer.WriteEndObject(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iDocumentation.ElementId); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iDocumentation.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iDocumentation.isLibraryElement); + + writer.WritePropertyName("locale"u8); + writer.WriteStringValue(iDocumentation.Locale); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iDocumentation.name); + + writer.WriteStartArray("ownedAnnotatingRelationship"u8); + + foreach (var item in iDocumentation.ownedAnnotatingRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iDocumentation.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iDocumentation.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iDocumentation.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iDocumentation.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDocumentation.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningAnnotatingRelationship"u8); + + if (iDocumentation.owningAnnotatingRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDocumentation.owningAnnotatingRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iDocumentation.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDocumentation.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iDocumentation.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDocumentation.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iDocumentation.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iDocumentation.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iDocumentation.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iDocumentation.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iDocumentation.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IDocumentation iDocumentation, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iDocumentation.AliasIds) @@ -117,7 +367,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ElementFilterMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ElementFilterMembershipSerializer.cs index 3a32dea99..8c0f4738a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ElementFilterMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ElementFilterMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class ElementFilterMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IElementFilterMembership iElementFilterMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iElementFilterMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iElementFilterMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iElementFilterMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IElementFilterMembership iElementFilterMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iElementFilterMembership.AliasIds) @@ -73,12 +99,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("condition"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iElementFilterMembership.condition); + writer.WriteEndObject(); + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iElementFilterMembership.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iElementFilterMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iElementFilterMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iElementFilterMembership.ElementId); @@ -88,18 +132,72 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iElementFilterMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iElementFilterMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iElementFilterMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iElementFilterMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iElementFilterMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iElementFilterMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iElementFilterMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iElementFilterMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iElementFilterMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iElementFilterMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iElementFilterMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iElementFilterMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iElementFilterMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iElementFilterMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iElementFilterMembership.OwnedRelatedElement) @@ -124,6 +222,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iElementFilterMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iElementFilterMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iElementFilterMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iElementFilterMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iElementFilterMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iElementFilterMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iElementFilterMembership.OwningRelatedElement.HasValue) @@ -152,6 +292,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iElementFilterMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iElementFilterMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iElementFilterMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iElementFilterMembership.Source) @@ -176,10 +334,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iElementFilterMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iElementFilterMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IElementFilterMembership iElementFilterMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iElementFilterMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iElementFilterMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iElementFilterMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iElementFilterMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iElementFilterMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iElementFilterMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iElementFilterMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iElementFilterMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iElementFilterMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iElementFilterMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iElementFilterMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iElementFilterMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iElementFilterMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iElementFilterMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iElementFilterMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iElementFilterMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iElementFilterMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iElementFilterMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EndFeatureMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EndFeatureMembershipSerializer.cs index 44a1228d6..a202f4258 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EndFeatureMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EndFeatureMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class EndFeatureMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IEndFeatureMembership iEndFeatureMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iEndFeatureMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iEndFeatureMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iEndFeatureMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IEndFeatureMembership iEndFeatureMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iEndFeatureMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iEndFeatureMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iEndFeatureMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iEndFeatureMembership.ElementId); @@ -88,18 +126,78 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iEndFeatureMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iEndFeatureMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iEndFeatureMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iEndFeatureMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iEndFeatureMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iEndFeatureMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iEndFeatureMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iEndFeatureMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iEndFeatureMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iEndFeatureMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iEndFeatureMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iEndFeatureMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iEndFeatureMembership.OwnedRelatedElement) @@ -124,6 +222,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iEndFeatureMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iEndFeatureMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iEndFeatureMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iEndFeatureMembership.OwningRelatedElement.HasValue) @@ -152,6 +292,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iEndFeatureMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iEndFeatureMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iEndFeatureMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iEndFeatureMembership.Source) @@ -176,10 +340,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iEndFeatureMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iEndFeatureMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IEndFeatureMembership iEndFeatureMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iEndFeatureMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iEndFeatureMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iEndFeatureMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iEndFeatureMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iEndFeatureMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iEndFeatureMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iEndFeatureMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iEndFeatureMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iEndFeatureMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iEndFeatureMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iEndFeatureMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iEndFeatureMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iEndFeatureMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iEndFeatureMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iEndFeatureMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs index 079b5f18c..3aacc384f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class EnumerationDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IEnumerationDefinition iEnumerationDefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iEnumerationDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iEnumerationDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iEnumerationDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IEnumerationDefinition iEnumerationDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iEnumerationDefinition.AliasIds) @@ -79,24 +105,186 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iEnumerationDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iEnumerationDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iEnumerationDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iEnumerationDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iEnumerationDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iEnumerationDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iEnumerationDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("enumeratedValue"u8); + + foreach (var item in iEnumerationDefinition.enumeratedValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iEnumerationDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iEnumerationDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iEnumerationDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iEnumerationDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iEnumerationDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iEnumerationDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iEnumerationDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iEnumerationDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iEnumerationDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iEnumerationDefinition.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iEnumerationDefinition.isLibraryElement); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iEnumerationDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iEnumerationDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iEnumerationDefinition.OwnedRelationship) + foreach (var item in iEnumerationDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -106,13 +294,749 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iEnumerationDefinition.OwningRelationship.HasValue) + foreach (var item in iEnumerationDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iEnumerationDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iEnumerationDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iEnumerationDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iEnumerationDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iEnumerationDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iEnumerationDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iEnumerationDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iEnumerationDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iEnumerationDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iEnumerationDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iEnumerationDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iEnumerationDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iEnumerationDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iEnumerationDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iEnumerationDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iEnumerationDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iEnumerationDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iEnumerationDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iEnumerationDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iEnumerationDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iEnumerationDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iEnumerationDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iEnumerationDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iEnumerationDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iEnumerationDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iEnumerationDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iEnumerationDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iEnumerationDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iEnumerationDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iEnumerationDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iEnumerationDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iEnumerationDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iEnumerationDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iEnumerationDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iEnumerationDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iEnumerationDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iEnumerationDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iEnumerationDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iEnumerationDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iEnumerationDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iEnumerationDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iEnumerationDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iEnumerationDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iEnumerationDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iEnumerationDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iEnumerationDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iEnumerationDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iEnumerationDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iEnumerationDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iEnumerationDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iEnumerationDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iEnumerationDefinition.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iEnumerationDefinition.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iEnumerationDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iEnumerationDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iEnumerationDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iEnumerationDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iEnumerationDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IEnumerationDefinition iEnumerationDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iEnumerationDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iEnumerationDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iEnumerationDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iEnumerationDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iEnumerationDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iEnumerationDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iEnumerationDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iEnumerationDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iEnumerationDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iEnumerationDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -120,7 +1044,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationUsageSerializer.cs index c3f73c691..1092b6293 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationUsageSerializer.cs @@ -49,7 +49,10 @@ internal static class EnumerationUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IEnumerationUsage iEnumerationUsage) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iEnumerationUsage.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iEnumerationUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iEnumerationUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IEnumerationUsage iEnumerationUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iEnumerationUsage.AliasIds) @@ -73,12 +99,98 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("attributeDefinition"u8); + + foreach (var item in iEnumerationUsage.attributeDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iEnumerationUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iEnumerationUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iEnumerationUsage.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iEnumerationUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iEnumerationUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iEnumerationUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iEnumerationUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iEnumerationUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iEnumerationUsage.Direction.HasValue) @@ -90,15 +202,164 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iEnumerationUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iEnumerationUsage.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iEnumerationUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iEnumerationUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("enumerationDefinition"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.enumerationDefinition); + writer.WriteEndObject(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iEnumerationUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iEnumerationUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iEnumerationUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iEnumerationUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iEnumerationUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iEnumerationUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iEnumerationUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iEnumerationUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iEnumerationUsage.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iEnumerationUsage.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iEnumerationUsage.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iEnumerationUsage.IsConstant); @@ -111,12 +372,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iEnumerationUsage.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iEnumerationUsage.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iEnumerationUsage.IsOrdered); writer.WritePropertyName("isPortion"u8); writer.WriteBooleanValue(iEnumerationUsage.IsPortion); + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iEnumerationUsage.isReference); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iEnumerationUsage.IsSufficient); @@ -129,9 +396,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iEnumerationUsage.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iEnumerationUsage.mayTimeVary); - foreach (var item in iEnumerationUsage.OwnedRelationship) + writer.WriteStartArray("member"u8); + + foreach (var item in iEnumerationUsage.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -141,13 +411,940 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iEnumerationUsage.OwningRelationship.HasValue) + foreach (var item in iEnumerationUsage.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iEnumerationUsage.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iEnumerationUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iEnumerationUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iEnumerationUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iEnumerationUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iEnumerationUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iEnumerationUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iEnumerationUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iEnumerationUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iEnumerationUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iEnumerationUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iEnumerationUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iEnumerationUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iEnumerationUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iEnumerationUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iEnumerationUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iEnumerationUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iEnumerationUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iEnumerationUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iEnumerationUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iEnumerationUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iEnumerationUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iEnumerationUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iEnumerationUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iEnumerationUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iEnumerationUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iEnumerationUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iEnumerationUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iEnumerationUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iEnumerationUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iEnumerationUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iEnumerationUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iEnumerationUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iEnumerationUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iEnumerationUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iEnumerationUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iEnumerationUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iEnumerationUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iEnumerationUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iEnumerationUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iEnumerationUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iEnumerationUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iEnumerationUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iEnumerationUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iEnumerationUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iEnumerationUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iEnumerationUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iEnumerationUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iEnumerationUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iEnumerationUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iEnumerationUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iEnumerationUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iEnumerationUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iEnumerationUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iEnumerationUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iEnumerationUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iEnumerationUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iEnumerationUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iEnumerationUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iEnumerationUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iEnumerationUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iEnumerationUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iEnumerationUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iEnumerationUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iEnumerationUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iEnumerationUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iEnumerationUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iEnumerationUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iEnumerationUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iEnumerationUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IEnumerationUsage iEnumerationUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iEnumerationUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iEnumerationUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iEnumerationUsage.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iEnumerationUsage.Direction.HasValue) + { + writer.WriteStringValue(iEnumerationUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iEnumerationUsage.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iEnumerationUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iEnumerationUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEnumerationUsage.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -155,7 +1352,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EventOccurrenceUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EventOccurrenceUsageSerializer.cs index 415067b6d..4a4eac4b4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EventOccurrenceUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EventOccurrenceUsageSerializer.cs @@ -49,21 +49,1246 @@ internal static class EventOccurrenceUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IEventOccurrenceUsage iEventOccurrenceUsage) { - throw new ArgumentException("The object shall be an IEventOccurrenceUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IEventOccurrenceUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("EventOccurrenceUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iEventOccurrenceUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iEventOccurrenceUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IEventOccurrenceUsage iEventOccurrenceUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iEventOccurrenceUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iEventOccurrenceUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iEventOccurrenceUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iEventOccurrenceUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iEventOccurrenceUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iEventOccurrenceUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iEventOccurrenceUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iEventOccurrenceUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iEventOccurrenceUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iEventOccurrenceUsage.Direction.HasValue) + { + writer.WriteStringValue(iEventOccurrenceUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iEventOccurrenceUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iEventOccurrenceUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iEventOccurrenceUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iEventOccurrenceUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("eventOccurrence"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.eventOccurrence); + writer.WriteEndObject(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iEventOccurrenceUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iEventOccurrenceUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iEventOccurrenceUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iEventOccurrenceUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iEventOccurrenceUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iEventOccurrenceUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iEventOccurrenceUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iEventOccurrenceUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iEventOccurrenceUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iEventOccurrenceUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iEventOccurrenceUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iEventOccurrenceUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iEventOccurrenceUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iEventOccurrenceUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iEventOccurrenceUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iEventOccurrenceUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iEventOccurrenceUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iEventOccurrenceUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iEventOccurrenceUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iEventOccurrenceUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iEventOccurrenceUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iEventOccurrenceUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iEventOccurrenceUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iEventOccurrenceUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iEventOccurrenceUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iEventOccurrenceUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iEventOccurrenceUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iEventOccurrenceUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iEventOccurrenceUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iEventOccurrenceUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iEventOccurrenceUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iEventOccurrenceUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iEventOccurrenceUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iEventOccurrenceUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iEventOccurrenceUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iEventOccurrenceUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iEventOccurrenceUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iEventOccurrenceUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iEventOccurrenceUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iEventOccurrenceUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iEventOccurrenceUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iEventOccurrenceUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iEventOccurrenceUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iEventOccurrenceUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iEventOccurrenceUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iEventOccurrenceUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iEventOccurrenceUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iEventOccurrenceUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iEventOccurrenceUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iEventOccurrenceUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iEventOccurrenceUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iEventOccurrenceUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iEventOccurrenceUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iEventOccurrenceUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iEventOccurrenceUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iEventOccurrenceUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iEventOccurrenceUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iEventOccurrenceUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iEventOccurrenceUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("EventOccurrenceUsage"u8); + foreach (var item in iEventOccurrenceUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iEventOccurrenceUsage.Id); + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iEventOccurrenceUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iEventOccurrenceUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iEventOccurrenceUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iEventOccurrenceUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iEventOccurrenceUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iEventOccurrenceUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iEventOccurrenceUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iEventOccurrenceUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iEventOccurrenceUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iEventOccurrenceUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iEventOccurrenceUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iEventOccurrenceUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iEventOccurrenceUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEventOccurrenceUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("portionKind"u8); + + if (iEventOccurrenceUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iEventOccurrenceUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iEventOccurrenceUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iEventOccurrenceUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iEventOccurrenceUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iEventOccurrenceUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iEventOccurrenceUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iEventOccurrenceUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iEventOccurrenceUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iEventOccurrenceUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IEventOccurrenceUsage iEventOccurrenceUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iEventOccurrenceUsage.AliasIds) @@ -169,7 +1394,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExhibitStateUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExhibitStateUsageSerializer.cs index 5bee88cb2..a45d265f8 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExhibitStateUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExhibitStateUsageSerializer.cs @@ -49,21 +49,1351 @@ internal static class ExhibitStateUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IExhibitStateUsage iExhibitStateUsage) { - throw new ArgumentException("The object shall be an IExhibitStateUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IExhibitStateUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("ExhibitStateUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iExhibitStateUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iExhibitStateUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExhibitStateUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iExhibitStateUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iExhibitStateUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iExhibitStateUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iExhibitStateUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iExhibitStateUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iExhibitStateUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iExhibitStateUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iExhibitStateUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iExhibitStateUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iExhibitStateUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iExhibitStateUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iExhibitStateUsage.Direction.HasValue) + { + writer.WriteStringValue(iExhibitStateUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("doAction"u8); + + if (iExhibitStateUsage.doAction.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.doAction.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iExhibitStateUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iExhibitStateUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iExhibitStateUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iExhibitStateUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("entryAction"u8); + + if (iExhibitStateUsage.entryAction.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.entryAction.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("eventOccurrence"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.eventOccurrence); + writer.WriteEndObject(); + + writer.WritePropertyName("exhibitedState"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.exhibitedState); + writer.WriteEndObject(); + + writer.WritePropertyName("exitAction"u8); + + if (iExhibitStateUsage.exitAction.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.exitAction.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iExhibitStateUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iExhibitStateUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iExhibitStateUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iExhibitStateUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iExhibitStateUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iExhibitStateUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iExhibitStateUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iExhibitStateUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iExhibitStateUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iExhibitStateUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iExhibitStateUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsOrdered); + + writer.WritePropertyName("isParallel"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsParallel); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iExhibitStateUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iExhibitStateUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iExhibitStateUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iExhibitStateUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iExhibitStateUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iExhibitStateUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iExhibitStateUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iExhibitStateUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iExhibitStateUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iExhibitStateUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iExhibitStateUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iExhibitStateUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iExhibitStateUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iExhibitStateUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iExhibitStateUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iExhibitStateUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iExhibitStateUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iExhibitStateUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iExhibitStateUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iExhibitStateUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iExhibitStateUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iExhibitStateUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iExhibitStateUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iExhibitStateUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iExhibitStateUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iExhibitStateUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iExhibitStateUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iExhibitStateUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iExhibitStateUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iExhibitStateUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iExhibitStateUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iExhibitStateUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iExhibitStateUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iExhibitStateUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iExhibitStateUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iExhibitStateUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iExhibitStateUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iExhibitStateUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iExhibitStateUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iExhibitStateUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iExhibitStateUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iExhibitStateUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iExhibitStateUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iExhibitStateUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iExhibitStateUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iExhibitStateUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iExhibitStateUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iExhibitStateUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iExhibitStateUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iExhibitStateUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iExhibitStateUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iExhibitStateUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iExhibitStateUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("ExhibitStateUsage"u8); + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iExhibitStateUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iExhibitStateUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iExhibitStateUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iExhibitStateUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iExhibitStateUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iExhibitStateUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iExhibitStateUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iExhibitStateUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iExhibitStateUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iExhibitStateUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iExhibitStateUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + if (iExhibitStateUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iExhibitStateUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iExhibitStateUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("performedAction"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iExhibitStateUsage.Id); + writer.WriteStringValue(iExhibitStateUsage.performedAction); + writer.WriteEndObject(); + + writer.WritePropertyName("portionKind"u8); + + if (iExhibitStateUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iExhibitStateUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iExhibitStateUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iExhibitStateUsage.shortName); + + writer.WriteStartArray("stateDefinition"u8); + + foreach (var item in iExhibitStateUsage.stateDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iExhibitStateUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iExhibitStateUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iExhibitStateUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iExhibitStateUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iExhibitStateUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iExhibitStateUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IExhibitStateUsage iExhibitStateUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iExhibitStateUsage.AliasIds) @@ -172,7 +1502,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExpressionSerializer.cs index 4a111c8f1..e01b64ff2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExpressionSerializer.cs @@ -49,7 +49,10 @@ internal static class ExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IExpression iExpression) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iExpression.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IExpression iExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iExpression.AliasIds) @@ -73,12 +99,74 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iExpression.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iExpression.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iExpression.Direction.HasValue) @@ -90,15 +178,172 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iExpression.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iExpression.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iExpression.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iExpression.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iExpression.IsConstant); @@ -111,6 +356,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iExpression.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iExpression.isModelLevelEvaluable); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iExpression.IsOrdered); @@ -126,9 +377,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iExpression.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iExpression.OwnedRelationship) + foreach (var item in iExpression.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +389,567 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iExpression.OwningRelationship.HasValue) + foreach (var item in iExpression.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iExpression.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iExpression.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iExpression.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IExpression iExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iExpression.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iExpression.Direction.HasValue) + { + writer.WriteStringValue(iExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iExpression.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iExpression.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iExpression.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iExpression.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExpression.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +957,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainExpressionSerializer.cs index 5b9a71e2f..6969680c9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainExpressionSerializer.cs @@ -49,21 +49,853 @@ internal static class FeatureChainExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFeatureChainExpression iFeatureChainExpression) { - throw new ArgumentException("The object shall be an IFeatureChainExpression", nameof(obj)); + throw new ArgumentException("The object shall be an IFeatureChainExpression", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("FeatureChainExpression"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFeatureChainExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFeatureChainExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFeatureChainExpression iFeatureChainExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFeatureChainExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("argument"u8); + + foreach (var item in iFeatureChainExpression.argument) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iFeatureChainExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iFeatureChainExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iFeatureChainExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFeatureChainExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFeatureChainExpression.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iFeatureChainExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFeatureChainExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iFeatureChainExpression.Direction.HasValue) + { + writer.WriteStringValue(iFeatureChainExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFeatureChainExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFeatureChainExpression.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFeatureChainExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iFeatureChainExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iFeatureChainExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iFeatureChainExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iFeatureChainExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iFeatureChainExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iFeatureChainExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iFeatureChainExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iFeatureChainExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iFeatureChainExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("instantiatedType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.instantiatedType); + writer.WriteEndObject(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iFeatureChainExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iFeatureChainExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iFeatureChainExpression.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iFeatureChainExpression.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iFeatureChainExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iFeatureChainExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iFeatureChainExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFeatureChainExpression.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFeatureChainExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iFeatureChainExpression.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iFeatureChainExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iFeatureChainExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iFeatureChainExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iFeatureChainExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iFeatureChainExpression.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iFeatureChainExpression.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iFeatureChainExpression.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iFeatureChainExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFeatureChainExpression.name); + + writer.WritePropertyName("operator"u8); + writer.WriteStringValue(iFeatureChainExpression.Operator); + + writer.WriteStartArray("output"u8); + + foreach (var item in iFeatureChainExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFeatureChainExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iFeatureChainExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iFeatureChainExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iFeatureChainExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iFeatureChainExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFeatureChainExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iFeatureChainExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iFeatureChainExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iFeatureChainExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iFeatureChainExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iFeatureChainExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iFeatureChainExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iFeatureChainExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iFeatureChainExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iFeatureChainExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iFeatureChainExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iFeatureChainExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFeatureChainExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iFeatureChainExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iFeatureChainExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iFeatureChainExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iFeatureChainExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iFeatureChainExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iFeatureChainExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iFeatureChainExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFeatureChainExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFeatureChainExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFeatureChainExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iFeatureChainExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iFeatureChainExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFeatureChainExpression.qualifiedName); + + writer.WritePropertyName("result"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChainExpression.result); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("FeatureChainExpression"u8); + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFeatureChainExpression.shortName); + writer.WritePropertyName("targetFeature"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureChainExpression.Id); + writer.WriteStringValue(iFeatureChainExpression.targetFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFeatureChainExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iFeatureChainExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iFeatureChainExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFeatureChainExpression iFeatureChainExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFeatureChainExpression.AliasIds) @@ -155,7 +987,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainingSerializer.cs index 132f88d26..9f6ac232f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainingSerializer.cs @@ -49,7 +49,10 @@ internal static class FeatureChainingSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFeatureChaining iFeatureChaining) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFeatureChaining.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFeatureChaining, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFeatureChaining, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFeatureChaining iFeatureChaining, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFeatureChaining.AliasIds) @@ -85,15 +111,63 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iFeatureChaining.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFeatureChaining.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureChaining.ElementId); + writer.WritePropertyName("featureChained"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChaining.featureChained); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iFeatureChaining.IsImplied); writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFeatureChaining.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFeatureChaining.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFeatureChaining.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFeatureChaining.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFeatureChaining.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFeatureChaining.OwnedRelatedElement) @@ -118,6 +192,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iFeatureChaining.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChaining.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFeatureChaining.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChaining.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFeatureChaining.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChaining.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iFeatureChaining.OwningRelatedElement.HasValue) @@ -146,6 +262,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFeatureChaining.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFeatureChaining.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFeatureChaining.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iFeatureChaining.Source) @@ -170,7 +304,137 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFeatureChaining.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFeatureChaining iFeatureChaining, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFeatureChaining.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("chainingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChaining.ChainingFeature); writer.WriteEndObject(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFeatureChaining.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFeatureChaining.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFeatureChaining.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iFeatureChaining.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFeatureChaining.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iFeatureChaining.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFeatureChaining.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iFeatureChaining.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChaining.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFeatureChaining.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureChaining.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureChaining.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureChaining.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureInvertingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureInvertingSerializer.cs index 3a67feecc..52287485c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureInvertingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureInvertingSerializer.cs @@ -49,7 +49,10 @@ internal static class FeatureInvertingSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFeatureInverting iFeatureInverting) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFeatureInverting.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFeatureInverting, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFeatureInverting, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFeatureInverting iFeatureInverting, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFeatureInverting.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iFeatureInverting.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFeatureInverting.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureInverting.ElementId); @@ -100,6 +138,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFeatureInverting.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFeatureInverting.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFeatureInverting.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFeatureInverting.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFeatureInverting.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFeatureInverting.OwnedRelatedElement) @@ -124,6 +192,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iFeatureInverting.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureInverting.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeature"u8); + + if (iFeatureInverting.owningFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureInverting.owningFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFeatureInverting.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureInverting.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFeatureInverting.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureInverting.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iFeatureInverting.OwningRelatedElement.HasValue) @@ -152,6 +276,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFeatureInverting.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFeatureInverting.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFeatureInverting.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iFeatureInverting.Source) @@ -176,7 +318,143 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFeatureInverting.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFeatureInverting iFeatureInverting, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFeatureInverting.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFeatureInverting.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFeatureInverting.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFeatureInverting.ElementId); + + writer.WritePropertyName("featureInverted"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureInverting.FeatureInverted); writer.WriteEndObject(); + + writer.WritePropertyName("invertingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureInverting.InvertingFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iFeatureInverting.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFeatureInverting.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iFeatureInverting.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFeatureInverting.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iFeatureInverting.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureInverting.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFeatureInverting.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureInverting.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureInverting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureInverting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureMembershipSerializer.cs index ac7faedd7..220065d67 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class FeatureMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFeatureMembership iFeatureMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFeatureMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFeatureMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFeatureMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFeatureMembership iFeatureMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFeatureMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iFeatureMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFeatureMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureMembership.ElementId); @@ -88,18 +126,78 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFeatureMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFeatureMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFeatureMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iFeatureMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iFeatureMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iFeatureMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFeatureMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFeatureMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFeatureMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iFeatureMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iFeatureMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iFeatureMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFeatureMembership.OwnedRelatedElement) @@ -124,6 +222,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iFeatureMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFeatureMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFeatureMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iFeatureMembership.OwningRelatedElement.HasValue) @@ -152,6 +292,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFeatureMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFeatureMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFeatureMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iFeatureMembership.Source) @@ -176,10 +340,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFeatureMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iFeatureMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFeatureMembership iFeatureMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFeatureMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFeatureMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFeatureMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFeatureMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iFeatureMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFeatureMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iFeatureMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iFeatureMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iFeatureMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFeatureMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iFeatureMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFeatureMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iFeatureMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureReferenceExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureReferenceExpressionSerializer.cs index d29fd0cd5..983a1fd20 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureReferenceExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureReferenceExpressionSerializer.cs @@ -49,7 +49,10 @@ internal static class FeatureReferenceExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFeatureReferenceExpression iFeatureReferenceExpression) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFeatureReferenceExpression.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFeatureReferenceExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFeatureReferenceExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFeatureReferenceExpression iFeatureReferenceExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFeatureReferenceExpression.AliasIds) @@ -73,12 +99,74 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iFeatureReferenceExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iFeatureReferenceExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iFeatureReferenceExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iFeatureReferenceExpression.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iFeatureReferenceExpression.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iFeatureReferenceExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFeatureReferenceExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iFeatureReferenceExpression.Direction.HasValue) @@ -90,15 +178,172 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFeatureReferenceExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureReferenceExpression.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFeatureReferenceExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iFeatureReferenceExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iFeatureReferenceExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iFeatureReferenceExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iFeatureReferenceExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iFeatureReferenceExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iFeatureReferenceExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iFeatureReferenceExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iFeatureReferenceExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iFeatureReferenceExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iFeatureReferenceExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iFeatureReferenceExpression.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iFeatureReferenceExpression.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iFeatureReferenceExpression.IsConstant); @@ -111,6 +356,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFeatureReferenceExpression.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.isModelLevelEvaluable); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iFeatureReferenceExpression.IsOrdered); @@ -126,9 +377,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iFeatureReferenceExpression.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iFeatureReferenceExpression.OwnedRelationship) + foreach (var item in iFeatureReferenceExpression.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +389,573 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iFeatureReferenceExpression.OwningRelationship.HasValue) + foreach (var item in iFeatureReferenceExpression.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureReferenceExpression.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iFeatureReferenceExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFeatureReferenceExpression.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iFeatureReferenceExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFeatureReferenceExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iFeatureReferenceExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iFeatureReferenceExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iFeatureReferenceExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iFeatureReferenceExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFeatureReferenceExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iFeatureReferenceExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iFeatureReferenceExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iFeatureReferenceExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iFeatureReferenceExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iFeatureReferenceExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iFeatureReferenceExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iFeatureReferenceExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iFeatureReferenceExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iFeatureReferenceExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iFeatureReferenceExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iFeatureReferenceExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFeatureReferenceExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iFeatureReferenceExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iFeatureReferenceExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iFeatureReferenceExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iFeatureReferenceExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iFeatureReferenceExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iFeatureReferenceExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iFeatureReferenceExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFeatureReferenceExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFeatureReferenceExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFeatureReferenceExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iFeatureReferenceExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iFeatureReferenceExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFeatureReferenceExpression.qualifiedName); + + writer.WritePropertyName("referent"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.referent); + writer.WriteEndObject(); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFeatureReferenceExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFeatureReferenceExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iFeatureReferenceExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iFeatureReferenceExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFeatureReferenceExpression iFeatureReferenceExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFeatureReferenceExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFeatureReferenceExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFeatureReferenceExpression.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iFeatureReferenceExpression.Direction.HasValue) + { + writer.WriteStringValue(iFeatureReferenceExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFeatureReferenceExpression.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iFeatureReferenceExpression.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFeatureReferenceExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iFeatureReferenceExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureReferenceExpression.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +963,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureSerializer.cs index 7e95170d3..ab632ec82 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureSerializer.cs @@ -49,7 +49,10 @@ internal static class FeatureSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFeature iFeature) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFeature.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFeature, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFeature, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFeature iFeature, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFeature.AliasIds) @@ -73,12 +99,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iFeature.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iFeature.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iFeature.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iFeature.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iFeature.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFeature.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iFeature.Direction.HasValue) @@ -90,15 +166,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFeature.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeature.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFeature.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iFeature.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iFeature.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iFeature.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iFeature.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iFeature.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iFeature.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iFeature.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iFeature.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iFeature.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iFeature.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iFeature.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iFeature.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iFeature.IsConstant); @@ -111,6 +330,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFeature.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFeature.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iFeature.IsOrdered); @@ -126,9 +348,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iFeature.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iFeature.OwnedRelationship) + foreach (var item in iFeature.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +360,549 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iFeature.OwningRelationship.HasValue) + foreach (var item in iFeature.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeature.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iFeature.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFeature.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iFeature.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFeature.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iFeature.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iFeature.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iFeature.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iFeature.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFeature.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iFeature.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iFeature.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iFeature.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iFeature.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iFeature.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iFeature.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iFeature.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iFeature.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iFeature.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iFeature.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iFeature.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFeature.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iFeature.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iFeature.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iFeature.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iFeature.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iFeature.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iFeature.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iFeature.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFeature.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFeature.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFeature.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iFeature.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFeature.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFeature.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFeature.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iFeature.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iFeature.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFeature iFeature, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFeature.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFeature.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFeature.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iFeature.Direction.HasValue) + { + writer.WriteStringValue(iFeature.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFeature.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iFeature.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iFeature.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iFeature.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iFeature.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iFeature.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFeature.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iFeature.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iFeature.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iFeature.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iFeature.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iFeature.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFeature.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iFeature.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeature.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +910,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureTypingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureTypingSerializer.cs index 3c964b7da..873c27be2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureTypingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureTypingSerializer.cs @@ -49,7 +49,10 @@ internal static class FeatureTypingSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFeatureTyping iFeatureTyping) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFeatureTyping.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFeatureTyping, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFeatureTyping, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeatureTyping, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFeatureTyping.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iFeatureTyping.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFeatureTyping.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureTyping.ElementId); @@ -94,6 +132,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFeatureTyping.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFeatureTyping.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFeatureTyping.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFeatureTyping.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFeatureTyping.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFeatureTyping.OwnedRelatedElement) @@ -118,6 +186,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iFeatureTyping.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeature"u8); + + if (iFeatureTyping.owningFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.owningFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFeatureTyping.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFeatureTyping.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iFeatureTyping.OwningRelatedElement.HasValue) @@ -146,6 +270,38 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iFeatureTyping.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFeatureTyping.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFeatureTyping.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFeatureTyping.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iFeatureTyping.Source) @@ -176,6 +332,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFeatureTyping.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("type"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -188,7 +356,143 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iFeatureTyping.TypedFeature); writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFeatureTyping iFeatureTyping, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFeatureTyping.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFeatureTyping.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFeatureTyping.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFeatureTyping.ElementId); + + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.General); + writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iFeatureTyping.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFeatureTyping.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iFeatureTyping.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFeatureTyping.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iFeatureTyping.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFeatureTyping.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureTyping.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.Specific); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureTyping.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("type"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.Type); + writer.WriteEndObject(); + + writer.WritePropertyName("typedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.TypedFeature); writer.WriteEndObject(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureValueSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureValueSerializer.cs index 1c3d991f6..a04266da5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureValueSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureValueSerializer.cs @@ -49,7 +49,10 @@ internal static class FeatureValueSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFeatureValue iFeatureValue) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFeatureValue.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFeatureValue, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFeatureValue, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFeatureValue iFeatureValue, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFeatureValue.AliasIds) @@ -79,9 +105,27 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iFeatureValue.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFeatureValue.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureValue.ElementId); + writer.WritePropertyName("featureWithValue"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureValue.featureWithValue); + writer.WriteEndObject(); + writer.WritePropertyName("isDefault"u8); writer.WriteBooleanValue(iFeatureValue.IsDefault); @@ -94,18 +138,72 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isInitial"u8); writer.WriteBooleanValue(iFeatureValue.IsInitial); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFeatureValue.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFeatureValue.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iFeatureValue.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iFeatureValue.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureValue.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iFeatureValue.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFeatureValue.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFeatureValue.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFeatureValue.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureValue.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iFeatureValue.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iFeatureValue.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iFeatureValue.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFeatureValue.OwnedRelatedElement) @@ -130,6 +228,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iFeatureValue.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureValue.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFeatureValue.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureValue.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFeatureValue.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureValue.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iFeatureValue.OwningRelatedElement.HasValue) @@ -158,6 +298,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFeatureValue.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFeatureValue.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFeatureValue.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iFeatureValue.Source) @@ -182,10 +340,161 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFeatureValue.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("value"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureValue.value); + writer.WriteEndObject(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iFeatureValue.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFeatureValue iFeatureValue, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFeatureValue.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFeatureValue.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFeatureValue.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFeatureValue.ElementId); + + writer.WritePropertyName("isDefault"u8); + writer.WriteBooleanValue(iFeatureValue.IsDefault); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iFeatureValue.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFeatureValue.IsImpliedIncluded); + + writer.WritePropertyName("isInitial"u8); + writer.WriteBooleanValue(iFeatureValue.IsInitial); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureValue.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iFeatureValue.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iFeatureValue.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iFeatureValue.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFeatureValue.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iFeatureValue.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureValue.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFeatureValue.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureValue.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureValue.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureValue.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iFeatureValue.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowDefinitionSerializer.cs index 77c40a85c..10afd769c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowDefinitionSerializer.cs @@ -49,21 +49,1099 @@ internal static class FlowDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFlowDefinition iFlowDefinition) { - throw new ArgumentException("The object shall be an IFlowDefinition", nameof(obj)); + throw new ArgumentException("The object shall be an IFlowDefinition", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("FlowDefinition"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowDefinition.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFlowDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFlowDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFlowDefinition iFlowDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("action"u8); + + foreach (var item in iFlowDefinition.action) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFlowDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("associationEnd"u8); + + foreach (var item in iFlowDefinition.associationEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFlowDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFlowDefinition.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iFlowDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFlowDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iFlowDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFlowDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFlowDefinition.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFlowDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iFlowDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iFlowDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("flowEnd"u8); + + foreach (var item in iFlowDefinition.flowEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iFlowDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iFlowDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iFlowDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iFlowDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iFlowDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iFlowDefinition.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iFlowDefinition.isConjugated); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iFlowDefinition.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFlowDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iFlowDefinition.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFlowDefinition.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iFlowDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iFlowDefinition.IsVariation); + + writer.WriteStartArray("member"u8); + + foreach (var item in iFlowDefinition.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iFlowDefinition.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iFlowDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFlowDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iFlowDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iFlowDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iFlowDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iFlowDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFlowDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iFlowDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iFlowDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iFlowDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iFlowDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iFlowDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iFlowDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iFlowDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iFlowDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iFlowDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFlowDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iFlowDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iFlowDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iFlowDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iFlowDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iFlowDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iFlowDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iFlowDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iFlowDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iFlowDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iFlowDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iFlowDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iFlowDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iFlowDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iFlowDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iFlowDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iFlowDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iFlowDefinition.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFlowDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iFlowDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iFlowDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iFlowDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iFlowDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iFlowDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iFlowDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iFlowDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iFlowDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iFlowDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("FlowDefinition"u8); + writer.WriteStartArray("ownedVerificationCase"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFlowDefinition.Id); + foreach (var item in iFlowDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iFlowDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iFlowDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iFlowDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFlowDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFlowDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iFlowDefinition.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowDefinition.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFlowDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iFlowDefinition.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFlowDefinition.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFlowDefinition.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedType"u8); + + foreach (var item in iFlowDefinition.relatedType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFlowDefinition.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iFlowDefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceType"u8); + + if (iFlowDefinition.sourceType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowDefinition.sourceType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("step"u8); + + foreach (var item in iFlowDefinition.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFlowDefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetType"u8); + + foreach (var item in iFlowDefinition.targetType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFlowDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iFlowDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iFlowDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iFlowDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iFlowDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFlowDefinition iFlowDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFlowDefinition.AliasIds) @@ -176,7 +1254,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowEndSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowEndSerializer.cs index f94919b7a..420bc6728 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowEndSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowEndSerializer.cs @@ -49,7 +49,10 @@ internal static class FlowEndSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFlowEnd iFlowEnd) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFlowEnd.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFlowEnd, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFlowEnd, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFlowEnd iFlowEnd, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFlowEnd.AliasIds) @@ -73,12 +99,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iFlowEnd.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iFlowEnd.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iFlowEnd.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iFlowEnd.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iFlowEnd.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFlowEnd.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iFlowEnd.Direction.HasValue) @@ -90,15 +166,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFlowEnd.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFlowEnd.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFlowEnd.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iFlowEnd.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iFlowEnd.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iFlowEnd.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iFlowEnd.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iFlowEnd.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iFlowEnd.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iFlowEnd.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iFlowEnd.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iFlowEnd.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iFlowEnd.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iFlowEnd.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iFlowEnd.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iFlowEnd.IsConstant); @@ -111,6 +330,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFlowEnd.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFlowEnd.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iFlowEnd.IsOrdered); @@ -126,9 +348,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iFlowEnd.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iFlowEnd.OwnedRelationship) + foreach (var item in iFlowEnd.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +360,549 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iFlowEnd.OwningRelationship.HasValue) + foreach (var item in iFlowEnd.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFlowEnd.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iFlowEnd.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFlowEnd.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iFlowEnd.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFlowEnd.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iFlowEnd.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iFlowEnd.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iFlowEnd.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iFlowEnd.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFlowEnd.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iFlowEnd.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iFlowEnd.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iFlowEnd.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iFlowEnd.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iFlowEnd.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iFlowEnd.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iFlowEnd.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iFlowEnd.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iFlowEnd.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iFlowEnd.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iFlowEnd.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFlowEnd.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iFlowEnd.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iFlowEnd.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iFlowEnd.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iFlowEnd.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iFlowEnd.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iFlowEnd.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iFlowEnd.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFlowEnd.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFlowEnd.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFlowEnd.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iFlowEnd.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFlowEnd.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFlowEnd.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFlowEnd.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iFlowEnd.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iFlowEnd.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFlowEnd iFlowEnd, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFlowEnd.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFlowEnd.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFlowEnd.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iFlowEnd.Direction.HasValue) + { + writer.WriteStringValue(iFlowEnd.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFlowEnd.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iFlowEnd.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iFlowEnd.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iFlowEnd.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iFlowEnd.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iFlowEnd.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFlowEnd.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iFlowEnd.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iFlowEnd.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iFlowEnd.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iFlowEnd.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iFlowEnd.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFlowEnd.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iFlowEnd.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowEnd.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +910,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowSerializer.cs index ab8b7b387..348f2753c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowSerializer.cs @@ -49,21 +49,1022 @@ internal static class FlowSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFlow iFlow) { - throw new ArgumentException("The object shall be an IFlow", nameof(obj)); + throw new ArgumentException("The object shall be an IFlow", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("Flow"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFlow, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFlow, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFlow.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("association"u8); + + foreach (var item in iFlow.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iFlow.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iFlow.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectorEnd"u8); + + foreach (var item in iFlow.connectorEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iFlow.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFlow.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFlow.DeclaredShortName); + + writer.WritePropertyName("defaultFeaturingType"u8); + + if (iFlow.defaultFeaturingType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.defaultFeaturingType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iFlow.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFlow.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iFlow.Direction.HasValue) + { + writer.WriteStringValue(iFlow.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFlow.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFlow.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFlow.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iFlow.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iFlow.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iFlow.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iFlow.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("flowEnd"u8); + + foreach (var item in iFlow.flowEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iFlow.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iFlow.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iFlow.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iFlow.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("interaction"u8); + + foreach (var item in iFlow.interaction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iFlow.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iFlow.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iFlow.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iFlow.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iFlow.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iFlow.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iFlow.IsEnd); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iFlow.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFlow.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFlow.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iFlow.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iFlow.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iFlow.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iFlow.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iFlow.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iFlow.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iFlow.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iFlow.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFlow.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iFlow.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFlow.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iFlow.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iFlow.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iFlow.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iFlow.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFlow.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iFlow.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iFlow.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iFlow.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iFlow.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iFlow.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iFlow.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iFlow.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iFlow.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iFlow.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iFlow.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iFlow.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iFlow.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFlow.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iFlow.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iFlow.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iFlow.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iFlow.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iFlow.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("Flow"u8); + writer.WritePropertyName("owner"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFlow.Id); + if (iFlow.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iFlow.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFlow.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFlow.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iFlow.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFlow.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iFlow.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iFlow.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("payloadFeature"u8); + + if (iFlow.payloadFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.payloadFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("payloadType"u8); + + foreach (var item in iFlow.payloadType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFlow.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + foreach (var item in iFlow.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedFeature"u8); + + foreach (var item in iFlow.relatedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFlow.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iFlow.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceFeature"u8); + + if (iFlow.sourceFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.sourceFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("sourceOutputFeature"u8); + + if (iFlow.sourceOutputFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.sourceOutputFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iFlow.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetFeature"u8); + + foreach (var item in iFlow.targetFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("targetInputFeature"u8); + + if (iFlow.targetInputFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlow.targetInputFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFlow.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iFlow.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iFlow.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFlow iFlow, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFlow.AliasIds) @@ -205,7 +1206,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowUsageSerializer.cs index e18842451..5fc2e8b76 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowUsageSerializer.cs @@ -49,21 +49,1507 @@ internal static class FlowUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFlowUsage iFlowUsage) { - throw new ArgumentException("The object shall be an IFlowUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IFlowUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("FlowUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFlowUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFlowUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iFlowUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFlowUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("association"u8); + + foreach (var item in iFlowUsage.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iFlowUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iFlowUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectorEnd"u8); + + foreach (var item in iFlowUsage.connectorEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iFlowUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFlowUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFlowUsage.DeclaredShortName); + + writer.WritePropertyName("defaultFeaturingType"u8); + + if (iFlowUsage.defaultFeaturingType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.defaultFeaturingType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("definition"u8); + + foreach (var item in iFlowUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iFlowUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFlowUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iFlowUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iFlowUsage.Direction.HasValue) + { + writer.WriteStringValue(iFlowUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFlowUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFlowUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFlowUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iFlowUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iFlowUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iFlowUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iFlowUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("flowDefinition"u8); + + foreach (var item in iFlowUsage.flowDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("flowEnd"u8); + + foreach (var item in iFlowUsage.flowEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iFlowUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iFlowUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iFlowUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iFlowUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iFlowUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("interaction"u8); + + foreach (var item in iFlowUsage.interaction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iFlowUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iFlowUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iFlowUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iFlowUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iFlowUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iFlowUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iFlowUsage.IsEnd); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iFlowUsage.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFlowUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iFlowUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFlowUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iFlowUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iFlowUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iFlowUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iFlowUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iFlowUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iFlowUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iFlowUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iFlowUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iFlowUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iFlowUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iFlowUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFlowUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iFlowUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iFlowUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iFlowUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iFlowUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iFlowUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iFlowUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iFlowUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iFlowUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iFlowUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iFlowUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iFlowUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iFlowUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iFlowUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iFlowUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iFlowUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iFlowUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iFlowUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iFlowUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iFlowUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iFlowUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iFlowUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iFlowUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iFlowUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iFlowUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iFlowUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iFlowUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iFlowUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iFlowUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iFlowUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFlowUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iFlowUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iFlowUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iFlowUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iFlowUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFlowUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iFlowUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iFlowUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iFlowUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iFlowUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iFlowUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iFlowUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iFlowUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iFlowUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iFlowUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iFlowUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iFlowUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iFlowUsage.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFlowUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iFlowUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iFlowUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iFlowUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iFlowUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iFlowUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iFlowUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iFlowUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iFlowUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFlowUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFlowUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WritePropertyName("owningRelatedElement"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("FlowUsage"u8); + if (iFlowUsage.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFlowUsage.Id); + writer.WritePropertyName("owningRelationship"u8); + + if (iFlowUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iFlowUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iFlowUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iFlowUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("payloadFeature"u8); + + if (iFlowUsage.payloadFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.payloadFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("payloadType"u8); + + foreach (var item in iFlowUsage.payloadType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iFlowUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iFlowUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFlowUsage.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFlowUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedFeature"u8); + + foreach (var item in iFlowUsage.relatedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFlowUsage.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iFlowUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("sourceFeature"u8); + + if (iFlowUsage.sourceFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.sourceFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("sourceOutputFeature"u8); + + if (iFlowUsage.sourceOutputFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.sourceOutputFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iFlowUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetFeature"u8); + + foreach (var item in iFlowUsage.targetFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("targetInputFeature"u8); + + if (iFlowUsage.targetInputFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFlowUsage.targetInputFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFlowUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iFlowUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iFlowUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iFlowUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iFlowUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iFlowUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFlowUsage iFlowUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFlowUsage.AliasIds) @@ -222,7 +1708,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForLoopActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForLoopActionUsageSerializer.cs index a404dcc37..8f81fd3c6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForLoopActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForLoopActionUsageSerializer.cs @@ -49,21 +49,1294 @@ internal static class ForLoopActionUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IForLoopActionUsage iForLoopActionUsage) { - throw new ArgumentException("The object shall be an IForLoopActionUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IForLoopActionUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("ForLoopActionUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iForLoopActionUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iForLoopActionUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IForLoopActionUsage iForLoopActionUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iForLoopActionUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iForLoopActionUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iForLoopActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("bodyAction"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.bodyAction); + writer.WriteEndObject(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iForLoopActionUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iForLoopActionUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iForLoopActionUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iForLoopActionUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iForLoopActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iForLoopActionUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iForLoopActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iForLoopActionUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iForLoopActionUsage.Direction.HasValue) + { + writer.WriteStringValue(iForLoopActionUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iForLoopActionUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iForLoopActionUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iForLoopActionUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iForLoopActionUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iForLoopActionUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iForLoopActionUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iForLoopActionUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iForLoopActionUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iForLoopActionUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iForLoopActionUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iForLoopActionUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iForLoopActionUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iForLoopActionUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iForLoopActionUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iForLoopActionUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iForLoopActionUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsVariation); + + writer.WritePropertyName("loopVariable"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.loopVariable); + writer.WriteEndObject(); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iForLoopActionUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iForLoopActionUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iForLoopActionUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iForLoopActionUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iForLoopActionUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iForLoopActionUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iForLoopActionUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iForLoopActionUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iForLoopActionUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iForLoopActionUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iForLoopActionUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iForLoopActionUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iForLoopActionUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iForLoopActionUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iForLoopActionUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iForLoopActionUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iForLoopActionUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iForLoopActionUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iForLoopActionUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iForLoopActionUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iForLoopActionUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iForLoopActionUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iForLoopActionUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iForLoopActionUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iForLoopActionUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iForLoopActionUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iForLoopActionUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iForLoopActionUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iForLoopActionUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iForLoopActionUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iForLoopActionUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iForLoopActionUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iForLoopActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iForLoopActionUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iForLoopActionUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iForLoopActionUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iForLoopActionUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iForLoopActionUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iForLoopActionUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iForLoopActionUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iForLoopActionUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iForLoopActionUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iForLoopActionUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iForLoopActionUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iForLoopActionUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iForLoopActionUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iForLoopActionUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iForLoopActionUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iForLoopActionUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iForLoopActionUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iForLoopActionUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("ForLoopActionUsage"u8); + foreach (var item in iForLoopActionUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iForLoopActionUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iForLoopActionUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iForLoopActionUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iForLoopActionUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iForLoopActionUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iForLoopActionUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iForLoopActionUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iForLoopActionUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iForLoopActionUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iForLoopActionUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iForLoopActionUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iForLoopActionUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iForLoopActionUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForLoopActionUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + foreach (var item in iForLoopActionUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iForLoopActionUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iForLoopActionUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iForLoopActionUsage.qualifiedName); + + writer.WritePropertyName("seqArgument"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iForLoopActionUsage.Id); + writer.WriteStringValue(iForLoopActionUsage.seqArgument); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iForLoopActionUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iForLoopActionUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iForLoopActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iForLoopActionUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iForLoopActionUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iForLoopActionUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iForLoopActionUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IForLoopActionUsage iForLoopActionUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iForLoopActionUsage.AliasIds) @@ -169,7 +1442,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForkNodeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForkNodeSerializer.cs index e74150252..1edb675d1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForkNodeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForkNodeSerializer.cs @@ -49,21 +49,1276 @@ internal static class ForkNodeSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IForkNode iForkNode) { - throw new ArgumentException("The object shall be an IForkNode", nameof(obj)); + throw new ArgumentException("The object shall be an IForkNode", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("ForkNode"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iForkNode, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iForkNode, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IForkNode iForkNode, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iForkNode.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iForkNode.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iForkNode.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iForkNode.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iForkNode.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iForkNode.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iForkNode.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iForkNode.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iForkNode.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iForkNode.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iForkNode.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iForkNode.Direction.HasValue) + { + writer.WriteStringValue(iForkNode.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iForkNode.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iForkNode.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iForkNode.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iForkNode.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iForkNode.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iForkNode.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iForkNode.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iForkNode.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iForkNode.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iForkNode.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iForkNode.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iForkNode.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iForkNode.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iForkNode.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iForkNode.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iForkNode.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iForkNode.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iForkNode.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iForkNode.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iForkNode.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iForkNode.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iForkNode.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iForkNode.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iForkNode.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iForkNode.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iForkNode.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iForkNode.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iForkNode.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iForkNode.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iForkNode.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iForkNode.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iForkNode.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iForkNode.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iForkNode.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iForkNode.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iForkNode.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iForkNode.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iForkNode.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iForkNode.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iForkNode.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iForkNode.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iForkNode.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iForkNode.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iForkNode.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iForkNode.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iForkNode.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iForkNode.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iForkNode.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iForkNode.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iForkNode.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iForkNode.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iForkNode.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iForkNode.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iForkNode.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iForkNode.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iForkNode.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iForkNode.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iForkNode.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iForkNode.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iForkNode.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iForkNode.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iForkNode.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iForkNode.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iForkNode.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iForkNode.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iForkNode.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iForkNode.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iForkNode.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iForkNode.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iForkNode.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iForkNode.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iForkNode.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iForkNode.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iForkNode.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iForkNode.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iForkNode.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iForkNode.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iForkNode.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iForkNode.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iForkNode.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("ForkNode"u8); + foreach (var item in iForkNode.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iForkNode.Id); + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iForkNode.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iForkNode.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iForkNode.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iForkNode.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iForkNode.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iForkNode.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iForkNode.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iForkNode.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iForkNode.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iForkNode.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + if (iForkNode.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iForkNode.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iForkNode.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iForkNode.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iForkNode.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iForkNode.PortionKind.HasValue) + { + writer.WriteStringValue(iForkNode.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iForkNode.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iForkNode.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iForkNode.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iForkNode.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iForkNode.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iForkNode.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iForkNode.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iForkNode.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IForkNode iForkNode, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iForkNode.AliasIds) @@ -169,7 +1424,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs index 2bdfbf53b..fdf04e9fd 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class FramedConcernMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFramedConcernMembership iFramedConcernMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFramedConcernMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFramedConcernMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFramedConcernMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembership iFramedConcernMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFramedConcernMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iFramedConcernMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFramedConcernMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFramedConcernMembership.ElementId); @@ -88,6 +126,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFramedConcernMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFramedConcernMembership.isLibraryElement); + writer.WritePropertyName("kind"u8); writer.WriteStringValue(iFramedConcernMembership.Kind.ToString().ToLower()); @@ -97,12 +138,81 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iFramedConcernMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iFramedConcernMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iFramedConcernMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iFramedConcernMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFramedConcernMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFramedConcernMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConcern"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedConcern); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedConstraint); + writer.WriteEndObject(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFramedConcernMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFramedConcernMembership.OwnedRelatedElement) @@ -127,6 +237,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iFramedConcernMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFramedConcernMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFramedConcernMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iFramedConcernMembership.OwningRelatedElement.HasValue) @@ -155,6 +307,42 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFramedConcernMembership.qualifiedName); + + writer.WritePropertyName("referencedConcern"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.referencedConcern); + writer.WriteEndObject(); + + writer.WritePropertyName("referencedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.referencedConstraint); + writer.WriteEndObject(); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFramedConcernMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFramedConcernMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iFramedConcernMembership.Source) @@ -179,10 +367,152 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFramedConcernMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iFramedConcernMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFramedConcernMembership iFramedConcernMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFramedConcernMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFramedConcernMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFramedConcernMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFramedConcernMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iFramedConcernMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFramedConcernMembership.IsImpliedIncluded); + + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(iFramedConcernMembership.Kind.ToString().ToLower()); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iFramedConcernMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFramedConcernMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iFramedConcernMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iFramedConcernMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iFramedConcernMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFramedConcernMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iFramedConcernMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FunctionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FunctionSerializer.cs index 88fe86366..efcb94e02 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FunctionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FunctionSerializer.cs @@ -49,7 +49,10 @@ internal static class FunctionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IFunction iFunction) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFunction.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iFunction, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iFunction, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IFunction iFunction, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iFunction.AliasIds) @@ -79,18 +105,370 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iFunction.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iFunction.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFunction.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iFunction.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFunction.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFunction.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("expression"u8); + + foreach (var item in iFunction.expression) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iFunction.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iFunction.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iFunction.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iFunction.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iFunction.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iFunction.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iFunction.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iFunction.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iFunction.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFunction.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iFunction.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iFunction.isModelLevelEvaluable); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iFunction.IsSufficient); + writer.WriteStartArray("member"u8); + + foreach (var item in iFunction.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iFunction.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iFunction.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFunction.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iFunction.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iFunction.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iFunction.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iFunction.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFunction.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iFunction.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iFunction.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iFunction.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iFunction.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iFunction.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iFunction.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iFunction.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iFunction.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iFunction.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iFunction.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelationship"u8); foreach (var item in iFunction.OwnedRelationship) @@ -103,6 +481,84 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iFunction.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iFunction.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iFunction.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iFunction.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFunction.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iFunction.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFunction.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iFunction.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFunction.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelationship"u8); if (iFunction.OwningRelationship.HasValue) @@ -117,7 +573,132 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("parameter"u8); + + foreach (var item in iFunction.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iFunction.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFunction.result); writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iFunction.shortName); + + writer.WriteStartArray("step"u8); + + foreach (var item in iFunction.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iFunction.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iFunction.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IFunction iFunction, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iFunction.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iFunction.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iFunction.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iFunction.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iFunction.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iFunction.IsImpliedIncluded); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iFunction.IsSufficient); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iFunction.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iFunction.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFunction.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IfActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IfActionUsageSerializer.cs index ea9cecf08..16693470c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IfActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IfActionUsageSerializer.cs @@ -49,21 +49,1302 @@ internal static class IfActionUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IIfActionUsage iIfActionUsage) { - throw new ArgumentException("The object shall be an IIfActionUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IIfActionUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("IfActionUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iIfActionUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iIfActionUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IIfActionUsage iIfActionUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iIfActionUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iIfActionUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iIfActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iIfActionUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iIfActionUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iIfActionUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iIfActionUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iIfActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iIfActionUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iIfActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iIfActionUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iIfActionUsage.Direction.HasValue) + { + writer.WriteStringValue(iIfActionUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iIfActionUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iIfActionUsage.ElementId); + + writer.WritePropertyName("elseAction"u8); + + if (iIfActionUsage.elseAction.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.elseAction.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iIfActionUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iIfActionUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iIfActionUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iIfActionUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iIfActionUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ifArgument"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.ifArgument); + writer.WriteEndObject(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iIfActionUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iIfActionUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iIfActionUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iIfActionUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iIfActionUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iIfActionUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iIfActionUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iIfActionUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iIfActionUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iIfActionUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iIfActionUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iIfActionUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iIfActionUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iIfActionUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iIfActionUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iIfActionUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iIfActionUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iIfActionUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iIfActionUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iIfActionUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iIfActionUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iIfActionUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iIfActionUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iIfActionUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iIfActionUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iIfActionUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iIfActionUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iIfActionUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iIfActionUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iIfActionUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iIfActionUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iIfActionUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iIfActionUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iIfActionUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iIfActionUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iIfActionUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iIfActionUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iIfActionUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iIfActionUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iIfActionUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iIfActionUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iIfActionUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iIfActionUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iIfActionUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iIfActionUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iIfActionUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iIfActionUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iIfActionUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iIfActionUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iIfActionUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iIfActionUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iIfActionUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iIfActionUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iIfActionUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iIfActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iIfActionUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iIfActionUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iIfActionUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iIfActionUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iIfActionUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iIfActionUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iIfActionUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iIfActionUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iIfActionUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iIfActionUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iIfActionUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iIfActionUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iIfActionUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iIfActionUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iIfActionUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iIfActionUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iIfActionUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iIfActionUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("IfActionUsage"u8); + foreach (var item in iIfActionUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iIfActionUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iIfActionUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iIfActionUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iIfActionUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iIfActionUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iIfActionUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iIfActionUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iIfActionUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iIfActionUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iIfActionUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iIfActionUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iIfActionUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iIfActionUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIfActionUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iIfActionUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iIfActionUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iIfActionUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iIfActionUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iIfActionUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iIfActionUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("thenAction"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iIfActionUsage.Id); + writer.WriteStringValue(iIfActionUsage.thenAction); + writer.WriteEndObject(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iIfActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iIfActionUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iIfActionUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iIfActionUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iIfActionUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IIfActionUsage iIfActionUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iIfActionUsage.AliasIds) @@ -169,7 +1450,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IncludeUseCaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IncludeUseCaseUsageSerializer.cs index ed80eeecb..4452ea202 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IncludeUseCaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IncludeUseCaseUsageSerializer.cs @@ -49,21 +49,1403 @@ internal static class IncludeUseCaseUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IIncludeUseCaseUsage iIncludeUseCaseUsage) { - throw new ArgumentException("The object shall be an IIncludeUseCaseUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IIncludeUseCaseUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("IncludeUseCaseUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iIncludeUseCaseUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iIncludeUseCaseUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iIncludeUseCaseUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iIncludeUseCaseUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iIncludeUseCaseUsage.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iIncludeUseCaseUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iIncludeUseCaseUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("calculationDefinition"u8); + + if (iIncludeUseCaseUsage.calculationDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.calculationDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("caseDefinition"u8); + + if (iIncludeUseCaseUsage.caseDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.caseDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iIncludeUseCaseUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iIncludeUseCaseUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iIncludeUseCaseUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iIncludeUseCaseUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iIncludeUseCaseUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iIncludeUseCaseUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iIncludeUseCaseUsage.Direction.HasValue) + { + writer.WriteStringValue(iIncludeUseCaseUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iIncludeUseCaseUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iIncludeUseCaseUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iIncludeUseCaseUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("eventOccurrence"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.eventOccurrence); + writer.WriteEndObject(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iIncludeUseCaseUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iIncludeUseCaseUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iIncludeUseCaseUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iIncludeUseCaseUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iIncludeUseCaseUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("includedUseCase"u8); + + foreach (var item in iIncludeUseCaseUsage.includedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iIncludeUseCaseUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iIncludeUseCaseUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iIncludeUseCaseUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iIncludeUseCaseUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iIncludeUseCaseUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iIncludeUseCaseUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iIncludeUseCaseUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iIncludeUseCaseUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iIncludeUseCaseUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("objectiveRequirement"u8); + + if (iIncludeUseCaseUsage.objectiveRequirement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.objectiveRequirement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iIncludeUseCaseUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iIncludeUseCaseUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iIncludeUseCaseUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iIncludeUseCaseUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iIncludeUseCaseUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iIncludeUseCaseUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iIncludeUseCaseUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iIncludeUseCaseUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iIncludeUseCaseUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iIncludeUseCaseUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iIncludeUseCaseUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iIncludeUseCaseUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iIncludeUseCaseUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iIncludeUseCaseUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iIncludeUseCaseUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iIncludeUseCaseUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } + writer.WriteEndArray(); + + writer.WritePropertyName("performedAction"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.performedAction); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("IncludeUseCaseUsage"u8); + writer.WritePropertyName("portionKind"u8); + + if (iIncludeUseCaseUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iIncludeUseCaseUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.qualifiedName); + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iIncludeUseCaseUsage.Id); + writer.WriteStringValue(iIncludeUseCaseUsage.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.shortName); + + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iIncludeUseCaseUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iIncludeUseCaseUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iIncludeUseCaseUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iIncludeUseCaseUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("useCaseDefinition"u8); + + if (iIncludeUseCaseUsage.useCaseDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.useCaseDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("useCaseIncluded"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.useCaseIncluded); + writer.WriteEndObject(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iIncludeUseCaseUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iIncludeUseCaseUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IIncludeUseCaseUsage iIncludeUseCaseUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iIncludeUseCaseUsage.AliasIds) @@ -169,7 +1551,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IndexExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IndexExpressionSerializer.cs index 8821fe2dc..1826106be 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IndexExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IndexExpressionSerializer.cs @@ -49,21 +49,847 @@ internal static class IndexExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IIndexExpression iIndexExpression) { - throw new ArgumentException("The object shall be an IIndexExpression", nameof(obj)); + throw new ArgumentException("The object shall be an IIndexExpression", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("IndexExpression"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iIndexExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iIndexExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IIndexExpression iIndexExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iIndexExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("argument"u8); + + foreach (var item in iIndexExpression.argument) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iIndexExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iIndexExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iIndexExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iIndexExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iIndexExpression.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iIndexExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iIndexExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iIndexExpression.Direction.HasValue) + { + writer.WriteStringValue(iIndexExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iIndexExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iIndexExpression.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iIndexExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iIndexExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iIndexExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iIndexExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iIndexExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iIndexExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iIndexExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iIndexExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iIndexExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iIndexExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("instantiatedType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.instantiatedType); + writer.WriteEndObject(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iIndexExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iIndexExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iIndexExpression.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iIndexExpression.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iIndexExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iIndexExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iIndexExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iIndexExpression.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iIndexExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iIndexExpression.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iIndexExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iIndexExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iIndexExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iIndexExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iIndexExpression.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iIndexExpression.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iIndexExpression.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iIndexExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iIndexExpression.name); + + writer.WritePropertyName("operator"u8); + writer.WriteStringValue(iIndexExpression.Operator); + + writer.WriteStartArray("output"u8); + + foreach (var item in iIndexExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iIndexExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iIndexExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iIndexExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iIndexExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iIndexExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iIndexExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iIndexExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iIndexExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iIndexExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iIndexExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iIndexExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("IndexExpression"u8); + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iIndexExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iIndexExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iIndexExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iIndexExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iIndexExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iIndexExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iIndexExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iIndexExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iIndexExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iIndexExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iIndexExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iIndexExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iIndexExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iIndexExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iIndexExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iIndexExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iIndexExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iIndexExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIndexExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iIndexExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iIndexExpression.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iIndexExpression.Id); + writer.WriteStringValue(iIndexExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iIndexExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iIndexExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iIndexExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iIndexExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IIndexExpression iIndexExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iIndexExpression.AliasIds) @@ -155,7 +981,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InteractionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InteractionSerializer.cs index 5836bea72..9f5316bbc 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InteractionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InteractionSerializer.cs @@ -49,21 +49,697 @@ internal static class InteractionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IInteraction iInteraction) { - throw new ArgumentException("The object shall be an IInteraction", nameof(obj)); + throw new ArgumentException("The object shall be an IInteraction", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("Interaction"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInteraction.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iInteraction, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iInteraction, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IInteraction iInteraction, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iInteraction.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("associationEnd"u8); + + foreach (var item in iInteraction.associationEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iInteraction.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iInteraction.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iInteraction.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iInteraction.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iInteraction.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iInteraction.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iInteraction.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iInteraction.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iInteraction.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iInteraction.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iInteraction.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iInteraction.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iInteraction.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iInteraction.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iInteraction.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iInteraction.isConjugated); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iInteraction.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iInteraction.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iInteraction.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iInteraction.IsSufficient); + + writer.WriteStartArray("member"u8); + + foreach (var item in iInteraction.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iInteraction.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iInteraction.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInteraction.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iInteraction.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iInteraction.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iInteraction.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iInteraction.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInteraction.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iInteraction.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iInteraction.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iInteraction.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iInteraction.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iInteraction.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iInteraction.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iInteraction.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iInteraction.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iInteraction.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("Interaction"u8); + writer.WriteStartArray("ownedMembership"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iInteraction.Id); + foreach (var item in iInteraction.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iInteraction.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iInteraction.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iInteraction.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iInteraction.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iInteraction.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iInteraction.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInteraction.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iInteraction.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInteraction.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iInteraction.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInteraction.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iInteraction.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInteraction.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iInteraction.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInteraction.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iInteraction.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iInteraction.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iInteraction.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedType"u8); + + foreach (var item in iInteraction.relatedType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iInteraction.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iInteraction.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceType"u8); + + if (iInteraction.sourceType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInteraction.sourceType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("step"u8); + + foreach (var item in iInteraction.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iInteraction.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetType"u8); + + foreach (var item in iInteraction.targetType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iInteraction.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iInteraction.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IInteraction iInteraction, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iInteraction.AliasIds) @@ -170,7 +846,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceDefinitionSerializer.cs index 1793fe0ba..f7b68da90 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceDefinitionSerializer.cs @@ -49,21 +49,1075 @@ internal static class InterfaceDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IInterfaceDefinition iInterfaceDefinition) { - throw new ArgumentException("The object shall be an IInterfaceDefinition", nameof(obj)); + throw new ArgumentException("The object shall be an IInterfaceDefinition", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("InterfaceDefinition"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceDefinition.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iInterfaceDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iInterfaceDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IInterfaceDefinition iInterfaceDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iInterfaceDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("associationEnd"u8); + + foreach (var item in iInterfaceDefinition.associationEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectionEnd"u8); + + foreach (var item in iInterfaceDefinition.connectionEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iInterfaceDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iInterfaceDefinition.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iInterfaceDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iInterfaceDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iInterfaceDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iInterfaceDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iInterfaceDefinition.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iInterfaceDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iInterfaceDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iInterfaceDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iInterfaceDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iInterfaceDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iInterfaceDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iInterfaceDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("interfaceEnd"u8); + + foreach (var item in iInterfaceDefinition.interfaceEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iInterfaceDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iInterfaceDefinition.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iInterfaceDefinition.isConjugated); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iInterfaceDefinition.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iInterfaceDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iInterfaceDefinition.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iInterfaceDefinition.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iInterfaceDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iInterfaceDefinition.IsVariation); + + writer.WriteStartArray("member"u8); + + foreach (var item in iInterfaceDefinition.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iInterfaceDefinition.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iInterfaceDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iInterfaceDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iInterfaceDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iInterfaceDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iInterfaceDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iInterfaceDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iInterfaceDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iInterfaceDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iInterfaceDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iInterfaceDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iInterfaceDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iInterfaceDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iInterfaceDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iInterfaceDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iInterfaceDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iInterfaceDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iInterfaceDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iInterfaceDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iInterfaceDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iInterfaceDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iInterfaceDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iInterfaceDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iInterfaceDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iInterfaceDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iInterfaceDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iInterfaceDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iInterfaceDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iInterfaceDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iInterfaceDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iInterfaceDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iInterfaceDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iInterfaceDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iInterfaceDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iInterfaceDefinition.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iInterfaceDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iInterfaceDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iInterfaceDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iInterfaceDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iInterfaceDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iInterfaceDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iInterfaceDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iInterfaceDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("InterfaceDefinition"u8); + writer.WriteStartArray("ownedUsage"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iInterfaceDefinition.Id); + foreach (var item in iInterfaceDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iInterfaceDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iInterfaceDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iInterfaceDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iInterfaceDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iInterfaceDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iInterfaceDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iInterfaceDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iInterfaceDefinition.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceDefinition.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iInterfaceDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iInterfaceDefinition.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iInterfaceDefinition.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedType"u8); + + foreach (var item in iInterfaceDefinition.relatedType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iInterfaceDefinition.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iInterfaceDefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceType"u8); + + if (iInterfaceDefinition.sourceType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceDefinition.sourceType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iInterfaceDefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetType"u8); + + foreach (var item in iInterfaceDefinition.targetType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iInterfaceDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iInterfaceDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iInterfaceDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iInterfaceDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iInterfaceDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IInterfaceDefinition iInterfaceDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iInterfaceDefinition.AliasIds) @@ -176,7 +1230,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceUsageSerializer.cs index 6e805b91e..7f4c43b42 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceUsageSerializer.cs @@ -49,21 +49,1429 @@ internal static class InterfaceUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IInterfaceUsage iInterfaceUsage) { - throw new ArgumentException("The object shall be an IInterfaceUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IInterfaceUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("InterfaceUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iInterfaceUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iInterfaceUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterfaceUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iInterfaceUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("association"u8); + + foreach (var item in iInterfaceUsage.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iInterfaceUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectionDefinition"u8); + + foreach (var item in iInterfaceUsage.connectionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectorEnd"u8); + + foreach (var item in iInterfaceUsage.connectorEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iInterfaceUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iInterfaceUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iInterfaceUsage.DeclaredShortName); + + writer.WritePropertyName("defaultFeaturingType"u8); + + if (iInterfaceUsage.defaultFeaturingType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.defaultFeaturingType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("definition"u8); + + foreach (var item in iInterfaceUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iInterfaceUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iInterfaceUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iInterfaceUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iInterfaceUsage.Direction.HasValue) + { + writer.WriteStringValue(iInterfaceUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iInterfaceUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iInterfaceUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iInterfaceUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iInterfaceUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iInterfaceUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iInterfaceUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iInterfaceUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iInterfaceUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iInterfaceUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iInterfaceUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iInterfaceUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iInterfaceUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("interfaceDefinition"u8); + + foreach (var item in iInterfaceUsage.interfaceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iInterfaceUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iInterfaceUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsEnd); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iInterfaceUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iInterfaceUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsVariation); + + writer.WriteStartArray("itemDefinition"u8); + + foreach (var item in iInterfaceUsage.itemDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iInterfaceUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iInterfaceUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iInterfaceUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iInterfaceUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iInterfaceUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iInterfaceUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iInterfaceUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iInterfaceUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iInterfaceUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iInterfaceUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iInterfaceUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iInterfaceUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iInterfaceUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iInterfaceUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iInterfaceUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iInterfaceUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iInterfaceUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iInterfaceUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iInterfaceUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iInterfaceUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iInterfaceUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iInterfaceUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iInterfaceUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iInterfaceUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iInterfaceUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iInterfaceUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iInterfaceUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iInterfaceUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iInterfaceUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iInterfaceUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iInterfaceUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iInterfaceUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iInterfaceUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iInterfaceUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iInterfaceUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iInterfaceUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iInterfaceUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iInterfaceUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iInterfaceUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iInterfaceUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iInterfaceUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iInterfaceUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iInterfaceUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iInterfaceUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iInterfaceUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iInterfaceUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iInterfaceUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iInterfaceUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iInterfaceUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iInterfaceUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iInterfaceUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iInterfaceUsage.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iInterfaceUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iInterfaceUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iInterfaceUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iInterfaceUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iInterfaceUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iInterfaceUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iInterfaceUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iInterfaceUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WritePropertyName("owningFeatureMembership"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("InterfaceUsage"u8); + if (iInterfaceUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iInterfaceUsage.Id); + writer.WritePropertyName("owningMembership"u8); + + if (iInterfaceUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iInterfaceUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iInterfaceUsage.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iInterfaceUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iInterfaceUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iInterfaceUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("partDefinition"u8); + + foreach (var item in iInterfaceUsage.partDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iInterfaceUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iInterfaceUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iInterfaceUsage.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iInterfaceUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedFeature"u8); + + foreach (var item in iInterfaceUsage.relatedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iInterfaceUsage.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iInterfaceUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceFeature"u8); + + if (iInterfaceUsage.sourceFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInterfaceUsage.sourceFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iInterfaceUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetFeature"u8); + + foreach (var item in iInterfaceUsage.targetFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iInterfaceUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iInterfaceUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iInterfaceUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iInterfaceUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iInterfaceUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iInterfaceUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IInterfaceUsage iInterfaceUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iInterfaceUsage.AliasIds) @@ -222,7 +1630,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IntersectingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IntersectingSerializer.cs index cbe56e2f6..8b6ed17f5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IntersectingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IntersectingSerializer.cs @@ -49,7 +49,10 @@ internal static class IntersectingSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IIntersecting iIntersecting) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iIntersecting.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iIntersecting, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iIntersecting, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IIntersecting iIntersecting, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iIntersecting.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iIntersecting.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iIntersecting.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iIntersecting.ElementId); @@ -94,6 +132,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iIntersecting.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iIntersecting.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iIntersecting.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iIntersecting.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iIntersecting.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iIntersecting.OwnedRelatedElement) @@ -118,6 +186,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iIntersecting.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIntersecting.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iIntersecting.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIntersecting.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iIntersecting.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIntersecting.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iIntersecting.OwningRelatedElement.HasValue) @@ -146,6 +256,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iIntersecting.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iIntersecting.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iIntersecting.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iIntersecting.Source) @@ -170,7 +298,143 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iIntersecting.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("typeIntersected"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIntersecting.typeIntersected); + writer.WriteEndObject(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IIntersecting iIntersecting, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iIntersecting.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iIntersecting.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iIntersecting.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iIntersecting.ElementId); + + writer.WritePropertyName("intersectingType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIntersecting.IntersectingType); writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iIntersecting.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iIntersecting.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iIntersecting.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iIntersecting.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iIntersecting.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIntersecting.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iIntersecting.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIntersecting.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iIntersecting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iIntersecting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvariantSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvariantSerializer.cs index 3955f994c..4ec041e1a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvariantSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvariantSerializer.cs @@ -49,7 +49,10 @@ internal static class InvariantSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IInvariant iInvariant) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iInvariant.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iInvariant, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iInvariant, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IInvariant iInvariant, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iInvariant.AliasIds) @@ -73,12 +99,74 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iInvariant.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iInvariant.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iInvariant.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iInvariant.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iInvariant.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iInvariant.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iInvariant.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iInvariant.Direction.HasValue) @@ -90,15 +178,172 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iInvariant.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iInvariant.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iInvariant.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iInvariant.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iInvariant.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iInvariant.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iInvariant.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iInvariant.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iInvariant.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iInvariant.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iInvariant.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iInvariant.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iInvariant.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iInvariant.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iInvariant.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iInvariant.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iInvariant.IsConstant); @@ -111,6 +356,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iInvariant.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iInvariant.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iInvariant.isModelLevelEvaluable); + writer.WritePropertyName("isNegated"u8); writer.WriteBooleanValue(iInvariant.IsNegated); @@ -129,9 +380,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iInvariant.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iInvariant.OwnedRelationship) + foreach (var item in iInvariant.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -141,13 +392,584 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iInvariant.OwningRelationship.HasValue) + foreach (var item in iInvariant.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iInvariant.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iInvariant.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iInvariant.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iInvariant.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iInvariant.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iInvariant.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iInvariant.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iInvariant.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iInvariant.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iInvariant.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iInvariant.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iInvariant.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iInvariant.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iInvariant.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iInvariant.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iInvariant.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iInvariant.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iInvariant.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iInvariant.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iInvariant.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iInvariant.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iInvariant.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iInvariant.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iInvariant.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iInvariant.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iInvariant.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iInvariant.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iInvariant.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iInvariant.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iInvariant.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iInvariant.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iInvariant.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iInvariant.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iInvariant.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("predicate"u8); + + if (iInvariant.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iInvariant.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iInvariant.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iInvariant.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iInvariant.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iInvariant.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IInvariant iInvariant, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iInvariant.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iInvariant.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iInvariant.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iInvariant.Direction.HasValue) + { + writer.WriteStringValue(iInvariant.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iInvariant.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iInvariant.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iInvariant.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iInvariant.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iInvariant.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iInvariant.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iInvariant.IsImpliedIncluded); + + writer.WritePropertyName("isNegated"u8); + writer.WriteBooleanValue(iInvariant.IsNegated); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iInvariant.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iInvariant.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iInvariant.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iInvariant.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iInvariant.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iInvariant.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iInvariant.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -155,7 +977,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvocationExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvocationExpressionSerializer.cs index e8221e523..e6881d8dc 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvocationExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvocationExpressionSerializer.cs @@ -49,7 +49,10 @@ internal static class InvocationExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IInvocationExpression iInvocationExpression) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iInvocationExpression.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iInvocationExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iInvocationExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IInvocationExpression iInvocationExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iInvocationExpression.AliasIds) @@ -73,12 +99,86 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("argument"u8); + + foreach (var item in iInvocationExpression.argument) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iInvocationExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iInvocationExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iInvocationExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iInvocationExpression.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iInvocationExpression.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iInvocationExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iInvocationExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iInvocationExpression.Direction.HasValue) @@ -90,15 +190,178 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iInvocationExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iInvocationExpression.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iInvocationExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iInvocationExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iInvocationExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iInvocationExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iInvocationExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iInvocationExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iInvocationExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iInvocationExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iInvocationExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iInvocationExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("instantiatedType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.instantiatedType); + writer.WriteEndObject(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iInvocationExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iInvocationExpression.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iInvocationExpression.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iInvocationExpression.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iInvocationExpression.IsConstant); @@ -111,6 +374,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iInvocationExpression.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iInvocationExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iInvocationExpression.isModelLevelEvaluable); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iInvocationExpression.IsOrdered); @@ -126,9 +395,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iInvocationExpression.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iInvocationExpression.OwnedRelationship) + foreach (var item in iInvocationExpression.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +407,567 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iInvocationExpression.OwningRelationship.HasValue) + foreach (var item in iInvocationExpression.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iInvocationExpression.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iInvocationExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iInvocationExpression.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iInvocationExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iInvocationExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iInvocationExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iInvocationExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iInvocationExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iInvocationExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iInvocationExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iInvocationExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iInvocationExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iInvocationExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iInvocationExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iInvocationExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iInvocationExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iInvocationExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iInvocationExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iInvocationExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iInvocationExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iInvocationExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iInvocationExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iInvocationExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iInvocationExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iInvocationExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iInvocationExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iInvocationExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iInvocationExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iInvocationExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iInvocationExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iInvocationExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iInvocationExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iInvocationExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iInvocationExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iInvocationExpression.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iInvocationExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iInvocationExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iInvocationExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iInvocationExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IInvocationExpression iInvocationExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iInvocationExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iInvocationExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iInvocationExpression.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iInvocationExpression.Direction.HasValue) + { + writer.WriteStringValue(iInvocationExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iInvocationExpression.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iInvocationExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iInvocationExpression.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iInvocationExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iInvocationExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iInvocationExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iInvocationExpression.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iInvocationExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iInvocationExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iInvocationExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iInvocationExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iInvocationExpression.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iInvocationExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iInvocationExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvocationExpression.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +975,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemDefinitionSerializer.cs index 63230bd89..ada3c28df 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class ItemDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IItemDefinition iItemDefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iItemDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iItemDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iItemDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IItemDefinition iItemDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iItemDefinition.AliasIds) @@ -79,27 +105,177 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iItemDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iItemDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iItemDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iItemDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iItemDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iItemDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iItemDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iItemDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iItemDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iItemDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iItemDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iItemDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iItemDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iItemDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iItemDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iItemDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iItemDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iItemDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iItemDefinition.isLibraryElement); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iItemDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iItemDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iItemDefinition.OwnedRelationship) + foreach (var item in iItemDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +285,752 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iItemDefinition.OwningRelationship.HasValue) + foreach (var item in iItemDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iItemDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iItemDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iItemDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iItemDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iItemDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iItemDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iItemDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iItemDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iItemDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iItemDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iItemDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iItemDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iItemDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iItemDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iItemDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iItemDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iItemDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iItemDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iItemDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iItemDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iItemDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iItemDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iItemDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iItemDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iItemDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iItemDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iItemDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iItemDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iItemDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iItemDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iItemDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iItemDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iItemDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iItemDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iItemDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iItemDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iItemDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iItemDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iItemDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iItemDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iItemDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iItemDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iItemDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iItemDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iItemDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iItemDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iItemDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iItemDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iItemDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iItemDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iItemDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iItemDefinition.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iItemDefinition.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iItemDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iItemDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iItemDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iItemDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iItemDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IItemDefinition iItemDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iItemDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iItemDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iItemDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iItemDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iItemDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iItemDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iItemDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iItemDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iItemDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iItemDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iItemDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1038,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemUsageSerializer.cs index 9bc48f114..bb530128b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemUsageSerializer.cs @@ -49,21 +49,1252 @@ internal static class ItemUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IItemUsage iItemUsage) { - throw new ArgumentException("The object shall be an IItemUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IItemUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("ItemUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iItemUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iItemUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IItemUsage iItemUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iItemUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iItemUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iItemUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iItemUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iItemUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iItemUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iItemUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iItemUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iItemUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iItemUsage.Direction.HasValue) + { + writer.WriteStringValue(iItemUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iItemUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iItemUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iItemUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iItemUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iItemUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iItemUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iItemUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iItemUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iItemUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iItemUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iItemUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iItemUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iItemUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iItemUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iItemUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iItemUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iItemUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iItemUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iItemUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iItemUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iItemUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iItemUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iItemUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iItemUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iItemUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iItemUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iItemUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iItemUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iItemUsage.IsVariation); + + writer.WriteStartArray("itemDefinition"u8); + + foreach (var item in iItemUsage.itemDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iItemUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iItemUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iItemUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iItemUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iItemUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iItemUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iItemUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iItemUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iItemUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iItemUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iItemUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iItemUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iItemUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iItemUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iItemUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iItemUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iItemUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iItemUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iItemUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iItemUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iItemUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iItemUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iItemUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iItemUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iItemUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iItemUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iItemUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iItemUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iItemUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iItemUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iItemUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iItemUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iItemUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iItemUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iItemUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iItemUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iItemUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iItemUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iItemUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iItemUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iItemUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iItemUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iItemUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iItemUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iItemUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iItemUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iItemUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iItemUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iItemUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iItemUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iItemUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("ItemUsage"u8); + foreach (var item in iItemUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iItemUsage.Id); + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iItemUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iItemUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iItemUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iItemUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iItemUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iItemUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iItemUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iItemUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iItemUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iItemUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iItemUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iItemUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iItemUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iItemUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("portionKind"u8); + + if (iItemUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iItemUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iItemUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iItemUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iItemUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iItemUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iItemUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iItemUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iItemUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iItemUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IItemUsage iItemUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iItemUsage.AliasIds) @@ -169,7 +1400,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/JoinNodeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/JoinNodeSerializer.cs index bc2e068df..6cb90c1ca 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/JoinNodeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/JoinNodeSerializer.cs @@ -49,21 +49,1276 @@ internal static class JoinNodeSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IJoinNode iJoinNode) { - throw new ArgumentException("The object shall be an IJoinNode", nameof(obj)); + throw new ArgumentException("The object shall be an IJoinNode", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("JoinNode"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iJoinNode, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iJoinNode, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IJoinNode iJoinNode, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iJoinNode.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iJoinNode.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iJoinNode.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iJoinNode.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iJoinNode.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iJoinNode.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iJoinNode.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iJoinNode.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iJoinNode.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iJoinNode.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iJoinNode.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iJoinNode.Direction.HasValue) + { + writer.WriteStringValue(iJoinNode.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iJoinNode.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iJoinNode.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iJoinNode.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iJoinNode.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iJoinNode.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iJoinNode.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iJoinNode.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iJoinNode.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iJoinNode.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iJoinNode.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iJoinNode.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iJoinNode.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iJoinNode.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iJoinNode.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iJoinNode.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iJoinNode.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iJoinNode.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iJoinNode.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iJoinNode.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iJoinNode.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iJoinNode.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iJoinNode.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iJoinNode.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iJoinNode.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iJoinNode.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iJoinNode.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iJoinNode.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iJoinNode.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iJoinNode.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iJoinNode.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iJoinNode.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iJoinNode.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iJoinNode.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iJoinNode.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iJoinNode.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iJoinNode.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iJoinNode.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iJoinNode.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iJoinNode.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iJoinNode.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iJoinNode.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iJoinNode.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iJoinNode.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iJoinNode.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iJoinNode.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iJoinNode.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iJoinNode.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iJoinNode.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iJoinNode.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iJoinNode.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iJoinNode.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iJoinNode.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iJoinNode.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iJoinNode.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iJoinNode.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iJoinNode.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iJoinNode.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iJoinNode.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iJoinNode.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iJoinNode.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iJoinNode.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iJoinNode.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iJoinNode.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iJoinNode.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iJoinNode.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iJoinNode.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iJoinNode.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iJoinNode.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iJoinNode.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iJoinNode.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iJoinNode.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iJoinNode.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iJoinNode.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iJoinNode.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iJoinNode.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iJoinNode.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iJoinNode.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iJoinNode.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iJoinNode.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iJoinNode.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("JoinNode"u8); + foreach (var item in iJoinNode.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iJoinNode.Id); + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iJoinNode.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iJoinNode.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iJoinNode.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iJoinNode.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iJoinNode.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iJoinNode.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iJoinNode.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iJoinNode.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iJoinNode.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iJoinNode.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + if (iJoinNode.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iJoinNode.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iJoinNode.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iJoinNode.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iJoinNode.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iJoinNode.PortionKind.HasValue) + { + writer.WriteStringValue(iJoinNode.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iJoinNode.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iJoinNode.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iJoinNode.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iJoinNode.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iJoinNode.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iJoinNode.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iJoinNode.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iJoinNode.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IJoinNode iJoinNode, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iJoinNode.AliasIds) @@ -169,7 +1424,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LibraryPackageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LibraryPackageSerializer.cs index 9fafc66cc..94f29a937 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LibraryPackageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LibraryPackageSerializer.cs @@ -49,7 +49,10 @@ internal static class LibraryPackageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ILibraryPackage iLibraryPackage) { @@ -64,6 +67,278 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iLibraryPackage.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iLibraryPackage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iLibraryPackage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ILibraryPackage iLibraryPackage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iLibraryPackage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iLibraryPackage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iLibraryPackage.DeclaredShortName); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iLibraryPackage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iLibraryPackage.ElementId); + + writer.WriteStartArray("filterCondition"u8); + + foreach (var item in iLibraryPackage.filterCondition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iLibraryPackage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iLibraryPackage.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iLibraryPackage.isLibraryElement); + + writer.WritePropertyName("isStandard"u8); + writer.WriteBooleanValue(iLibraryPackage.IsStandard); + + writer.WriteStartArray("member"u8); + + foreach (var item in iLibraryPackage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iLibraryPackage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iLibraryPackage.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iLibraryPackage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iLibraryPackage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iLibraryPackage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iLibraryPackage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iLibraryPackage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iLibraryPackage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iLibraryPackage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLibraryPackage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iLibraryPackage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLibraryPackage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iLibraryPackage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLibraryPackage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iLibraryPackage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLibraryPackage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iLibraryPackage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iLibraryPackage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iLibraryPackage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ILibraryPackage iLibraryPackage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iLibraryPackage.AliasIds) @@ -114,7 +389,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralBooleanSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralBooleanSerializer.cs index e031a97af..9c7b6edc5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralBooleanSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralBooleanSerializer.cs @@ -49,21 +49,829 @@ internal static class LiteralBooleanSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ILiteralBoolean iLiteralBoolean) { - throw new ArgumentException("The object shall be an ILiteralBoolean", nameof(obj)); + throw new ArgumentException("The object shall be an ILiteralBoolean", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("LiteralBoolean"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iLiteralBoolean, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iLiteralBoolean, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ILiteralBoolean iLiteralBoolean, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iLiteralBoolean.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralBoolean.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iLiteralBoolean.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iLiteralBoolean.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iLiteralBoolean.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iLiteralBoolean.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iLiteralBoolean.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralBoolean.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iLiteralBoolean.Direction.HasValue) + { + writer.WriteStringValue(iLiteralBoolean.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iLiteralBoolean.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iLiteralBoolean.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iLiteralBoolean.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iLiteralBoolean.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iLiteralBoolean.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iLiteralBoolean.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iLiteralBoolean.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iLiteralBoolean.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iLiteralBoolean.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iLiteralBoolean.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iLiteralBoolean.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iLiteralBoolean.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iLiteralBoolean.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iLiteralBoolean.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iLiteralBoolean.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iLiteralBoolean.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iLiteralBoolean.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iLiteralBoolean.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iLiteralBoolean.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iLiteralBoolean.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iLiteralBoolean.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iLiteralBoolean.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iLiteralBoolean.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iLiteralBoolean.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iLiteralBoolean.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iLiteralBoolean.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iLiteralBoolean.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iLiteralBoolean.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iLiteralBoolean.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iLiteralBoolean.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iLiteralBoolean.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iLiteralBoolean.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iLiteralBoolean.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iLiteralBoolean.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iLiteralBoolean.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iLiteralBoolean.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iLiteralBoolean.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iLiteralBoolean.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iLiteralBoolean.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iLiteralBoolean.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iLiteralBoolean.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iLiteralBoolean.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iLiteralBoolean.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iLiteralBoolean.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("LiteralBoolean"u8); + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iLiteralBoolean.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iLiteralBoolean.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iLiteralBoolean.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iLiteralBoolean.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iLiteralBoolean.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iLiteralBoolean.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iLiteralBoolean.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iLiteralBoolean.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iLiteralBoolean.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iLiteralBoolean.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iLiteralBoolean.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iLiteralBoolean.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iLiteralBoolean.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iLiteralBoolean.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iLiteralBoolean.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iLiteralBoolean.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iLiteralBoolean.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralBoolean.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iLiteralBoolean.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iLiteralBoolean.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iLiteralBoolean.Id); + writer.WriteStringValue(iLiteralBoolean.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iLiteralBoolean.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iLiteralBoolean.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iLiteralBoolean.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iLiteralBoolean.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("value"u8); + writer.WriteBooleanValue(iLiteralBoolean.Value); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ILiteralBoolean iLiteralBoolean, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iLiteralBoolean.AliasIds) @@ -155,7 +963,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("value"u8); writer.WriteBooleanValue(iLiteralBoolean.Value); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralExpressionSerializer.cs index 4ac1fb5a3..29ae6e75f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralExpressionSerializer.cs @@ -49,7 +49,10 @@ internal static class LiteralExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ILiteralExpression iLiteralExpression) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iLiteralExpression.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iLiteralExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iLiteralExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ILiteralExpression iLiteralExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iLiteralExpression.AliasIds) @@ -73,12 +99,74 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iLiteralExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iLiteralExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iLiteralExpression.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iLiteralExpression.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iLiteralExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iLiteralExpression.Direction.HasValue) @@ -90,15 +178,172 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iLiteralExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iLiteralExpression.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iLiteralExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iLiteralExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iLiteralExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iLiteralExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iLiteralExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iLiteralExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iLiteralExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iLiteralExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iLiteralExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iLiteralExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iLiteralExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iLiteralExpression.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iLiteralExpression.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iLiteralExpression.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iLiteralExpression.IsConstant); @@ -111,6 +356,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iLiteralExpression.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iLiteralExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iLiteralExpression.isModelLevelEvaluable); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iLiteralExpression.IsOrdered); @@ -126,9 +377,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iLiteralExpression.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iLiteralExpression.OwnedRelationship) + foreach (var item in iLiteralExpression.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +389,567 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iLiteralExpression.OwningRelationship.HasValue) + foreach (var item in iLiteralExpression.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iLiteralExpression.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iLiteralExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iLiteralExpression.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iLiteralExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iLiteralExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iLiteralExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iLiteralExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iLiteralExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iLiteralExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iLiteralExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iLiteralExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iLiteralExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iLiteralExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iLiteralExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iLiteralExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iLiteralExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iLiteralExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iLiteralExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iLiteralExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iLiteralExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iLiteralExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iLiteralExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iLiteralExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iLiteralExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iLiteralExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iLiteralExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iLiteralExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iLiteralExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iLiteralExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iLiteralExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iLiteralExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iLiteralExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iLiteralExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iLiteralExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iLiteralExpression.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iLiteralExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iLiteralExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iLiteralExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iLiteralExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ILiteralExpression iLiteralExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iLiteralExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iLiteralExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iLiteralExpression.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iLiteralExpression.Direction.HasValue) + { + writer.WriteStringValue(iLiteralExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iLiteralExpression.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iLiteralExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iLiteralExpression.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iLiteralExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iLiteralExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iLiteralExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iLiteralExpression.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iLiteralExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iLiteralExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iLiteralExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iLiteralExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iLiteralExpression.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iLiteralExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iLiteralExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralExpression.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +957,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralInfinitySerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralInfinitySerializer.cs index 034dfad31..fef42a5f9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralInfinitySerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralInfinitySerializer.cs @@ -49,7 +49,10 @@ internal static class LiteralInfinitySerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ILiteralInfinity iLiteralInfinity) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iLiteralInfinity.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iLiteralInfinity, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iLiteralInfinity, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ILiteralInfinity iLiteralInfinity, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iLiteralInfinity.AliasIds) @@ -73,12 +99,74 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralInfinity.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iLiteralInfinity.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iLiteralInfinity.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iLiteralInfinity.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iLiteralInfinity.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iLiteralInfinity.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralInfinity.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iLiteralInfinity.Direction.HasValue) @@ -90,15 +178,172 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iLiteralInfinity.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iLiteralInfinity.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iLiteralInfinity.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iLiteralInfinity.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iLiteralInfinity.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iLiteralInfinity.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iLiteralInfinity.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iLiteralInfinity.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iLiteralInfinity.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iLiteralInfinity.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iLiteralInfinity.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iLiteralInfinity.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iLiteralInfinity.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iLiteralInfinity.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iLiteralInfinity.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iLiteralInfinity.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iLiteralInfinity.IsConstant); @@ -111,6 +356,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iLiteralInfinity.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iLiteralInfinity.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iLiteralInfinity.isModelLevelEvaluable); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iLiteralInfinity.IsOrdered); @@ -126,9 +377,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iLiteralInfinity.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iLiteralInfinity.OwnedRelationship) + foreach (var item in iLiteralInfinity.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +389,567 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iLiteralInfinity.OwningRelationship.HasValue) + foreach (var item in iLiteralInfinity.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iLiteralInfinity.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iLiteralInfinity.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iLiteralInfinity.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iLiteralInfinity.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iLiteralInfinity.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iLiteralInfinity.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iLiteralInfinity.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iLiteralInfinity.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iLiteralInfinity.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iLiteralInfinity.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iLiteralInfinity.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iLiteralInfinity.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iLiteralInfinity.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iLiteralInfinity.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iLiteralInfinity.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iLiteralInfinity.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iLiteralInfinity.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iLiteralInfinity.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iLiteralInfinity.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iLiteralInfinity.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iLiteralInfinity.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iLiteralInfinity.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iLiteralInfinity.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iLiteralInfinity.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iLiteralInfinity.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iLiteralInfinity.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iLiteralInfinity.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iLiteralInfinity.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iLiteralInfinity.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iLiteralInfinity.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iLiteralInfinity.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iLiteralInfinity.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iLiteralInfinity.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iLiteralInfinity.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iLiteralInfinity.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iLiteralInfinity.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iLiteralInfinity.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iLiteralInfinity.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iLiteralInfinity.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ILiteralInfinity iLiteralInfinity, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iLiteralInfinity.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iLiteralInfinity.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iLiteralInfinity.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iLiteralInfinity.Direction.HasValue) + { + writer.WriteStringValue(iLiteralInfinity.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iLiteralInfinity.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iLiteralInfinity.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iLiteralInfinity.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iLiteralInfinity.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iLiteralInfinity.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iLiteralInfinity.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iLiteralInfinity.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iLiteralInfinity.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iLiteralInfinity.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iLiteralInfinity.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iLiteralInfinity.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iLiteralInfinity.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iLiteralInfinity.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iLiteralInfinity.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInfinity.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +957,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralIntegerSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralIntegerSerializer.cs index 3bd41a86d..8d33deb7b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralIntegerSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralIntegerSerializer.cs @@ -49,21 +49,829 @@ internal static class LiteralIntegerSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ILiteralInteger iLiteralInteger) { - throw new ArgumentException("The object shall be an ILiteralInteger", nameof(obj)); + throw new ArgumentException("The object shall be an ILiteralInteger", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("LiteralInteger"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iLiteralInteger, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iLiteralInteger, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ILiteralInteger iLiteralInteger, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iLiteralInteger.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralInteger.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iLiteralInteger.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iLiteralInteger.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iLiteralInteger.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iLiteralInteger.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iLiteralInteger.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralInteger.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iLiteralInteger.Direction.HasValue) + { + writer.WriteStringValue(iLiteralInteger.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iLiteralInteger.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iLiteralInteger.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iLiteralInteger.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iLiteralInteger.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iLiteralInteger.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iLiteralInteger.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iLiteralInteger.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iLiteralInteger.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iLiteralInteger.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iLiteralInteger.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iLiteralInteger.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iLiteralInteger.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iLiteralInteger.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iLiteralInteger.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iLiteralInteger.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iLiteralInteger.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iLiteralInteger.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iLiteralInteger.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iLiteralInteger.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iLiteralInteger.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iLiteralInteger.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iLiteralInteger.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iLiteralInteger.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iLiteralInteger.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iLiteralInteger.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iLiteralInteger.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iLiteralInteger.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iLiteralInteger.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iLiteralInteger.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iLiteralInteger.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iLiteralInteger.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iLiteralInteger.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iLiteralInteger.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iLiteralInteger.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iLiteralInteger.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iLiteralInteger.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iLiteralInteger.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iLiteralInteger.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iLiteralInteger.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iLiteralInteger.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iLiteralInteger.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iLiteralInteger.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iLiteralInteger.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iLiteralInteger.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("LiteralInteger"u8); + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iLiteralInteger.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iLiteralInteger.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iLiteralInteger.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iLiteralInteger.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iLiteralInteger.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iLiteralInteger.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iLiteralInteger.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iLiteralInteger.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iLiteralInteger.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iLiteralInteger.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iLiteralInteger.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iLiteralInteger.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iLiteralInteger.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iLiteralInteger.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iLiteralInteger.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iLiteralInteger.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iLiteralInteger.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralInteger.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iLiteralInteger.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iLiteralInteger.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iLiteralInteger.Id); + writer.WriteStringValue(iLiteralInteger.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iLiteralInteger.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iLiteralInteger.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iLiteralInteger.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iLiteralInteger.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("value"u8); + writer.WriteNumberValue(iLiteralInteger.Value); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ILiteralInteger iLiteralInteger, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iLiteralInteger.AliasIds) @@ -155,7 +963,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("value"u8); writer.WriteNumberValue(iLiteralInteger.Value); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralRationalSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralRationalSerializer.cs index a8c9bce43..cb68b6d8f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralRationalSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralRationalSerializer.cs @@ -49,21 +49,829 @@ internal static class LiteralRationalSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ILiteralRational iLiteralRational) { - throw new ArgumentException("The object shall be an ILiteralRational", nameof(obj)); + throw new ArgumentException("The object shall be an ILiteralRational", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("LiteralRational"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iLiteralRational, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iLiteralRational, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ILiteralRational iLiteralRational, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iLiteralRational.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralRational.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iLiteralRational.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iLiteralRational.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iLiteralRational.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iLiteralRational.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iLiteralRational.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralRational.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iLiteralRational.Direction.HasValue) + { + writer.WriteStringValue(iLiteralRational.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iLiteralRational.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iLiteralRational.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iLiteralRational.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iLiteralRational.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iLiteralRational.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iLiteralRational.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iLiteralRational.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iLiteralRational.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iLiteralRational.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iLiteralRational.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iLiteralRational.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iLiteralRational.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iLiteralRational.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iLiteralRational.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iLiteralRational.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iLiteralRational.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iLiteralRational.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iLiteralRational.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iLiteralRational.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iLiteralRational.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iLiteralRational.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iLiteralRational.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iLiteralRational.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iLiteralRational.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iLiteralRational.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iLiteralRational.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iLiteralRational.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iLiteralRational.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iLiteralRational.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iLiteralRational.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iLiteralRational.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iLiteralRational.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iLiteralRational.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iLiteralRational.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iLiteralRational.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iLiteralRational.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iLiteralRational.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iLiteralRational.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iLiteralRational.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iLiteralRational.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iLiteralRational.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iLiteralRational.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iLiteralRational.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iLiteralRational.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("LiteralRational"u8); + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iLiteralRational.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iLiteralRational.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iLiteralRational.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iLiteralRational.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iLiteralRational.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iLiteralRational.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iLiteralRational.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iLiteralRational.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iLiteralRational.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iLiteralRational.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iLiteralRational.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iLiteralRational.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iLiteralRational.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iLiteralRational.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iLiteralRational.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iLiteralRational.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iLiteralRational.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralRational.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iLiteralRational.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iLiteralRational.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iLiteralRational.Id); + writer.WriteStringValue(iLiteralRational.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iLiteralRational.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iLiteralRational.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iLiteralRational.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iLiteralRational.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("value"u8); + writer.WriteNumberValue(iLiteralRational.Value); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ILiteralRational iLiteralRational, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iLiteralRational.AliasIds) @@ -155,7 +963,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("value"u8); writer.WriteNumberValue(iLiteralRational.Value); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralStringSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralStringSerializer.cs index 292758991..5bb725436 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralStringSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralStringSerializer.cs @@ -49,21 +49,829 @@ internal static class LiteralStringSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ILiteralString iLiteralString) { - throw new ArgumentException("The object shall be an ILiteralString", nameof(obj)); + throw new ArgumentException("The object shall be an ILiteralString", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("LiteralString"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iLiteralString, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iLiteralString, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ILiteralString iLiteralString, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iLiteralString.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralString.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iLiteralString.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iLiteralString.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iLiteralString.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iLiteralString.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iLiteralString.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralString.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iLiteralString.Direction.HasValue) + { + writer.WriteStringValue(iLiteralString.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iLiteralString.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iLiteralString.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iLiteralString.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iLiteralString.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iLiteralString.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iLiteralString.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iLiteralString.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iLiteralString.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iLiteralString.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iLiteralString.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iLiteralString.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iLiteralString.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iLiteralString.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iLiteralString.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iLiteralString.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iLiteralString.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iLiteralString.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iLiteralString.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iLiteralString.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iLiteralString.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iLiteralString.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iLiteralString.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iLiteralString.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iLiteralString.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iLiteralString.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iLiteralString.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iLiteralString.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iLiteralString.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iLiteralString.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iLiteralString.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iLiteralString.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iLiteralString.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iLiteralString.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iLiteralString.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iLiteralString.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iLiteralString.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iLiteralString.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iLiteralString.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iLiteralString.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iLiteralString.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iLiteralString.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iLiteralString.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iLiteralString.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iLiteralString.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("LiteralString"u8); + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iLiteralString.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iLiteralString.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iLiteralString.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iLiteralString.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iLiteralString.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iLiteralString.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iLiteralString.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iLiteralString.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iLiteralString.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iLiteralString.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iLiteralString.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iLiteralString.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iLiteralString.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iLiteralString.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iLiteralString.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iLiteralString.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iLiteralString.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iLiteralString.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iLiteralString.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iLiteralString.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iLiteralString.Id); + writer.WriteStringValue(iLiteralString.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iLiteralString.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iLiteralString.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iLiteralString.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iLiteralString.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("value"u8); + writer.WriteStringValue(iLiteralString.Value); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ILiteralString iLiteralString, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iLiteralString.AliasIds) @@ -155,7 +963,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("value"u8); writer.WriteStringValue(iLiteralString.Value); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipExposeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipExposeSerializer.cs index 047b86c7a..513455c37 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipExposeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipExposeSerializer.cs @@ -49,7 +49,10 @@ internal static class MembershipExposeSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IMembershipExpose iMembershipExpose) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMembershipExpose.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iMembershipExpose, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iMembershipExpose, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IMembershipExpose iMembershipExpose, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iMembershipExpose.AliasIds) @@ -79,15 +105,39 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMembershipExpose.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iMembershipExpose.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iMembershipExpose.ElementId); + writer.WritePropertyName("importedElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipExpose.importedElement); + writer.WriteEndObject(); + writer.WritePropertyName("importedMembership"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMembershipExpose.ImportedMembership); writer.WriteEndObject(); + writer.WritePropertyName("importOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipExpose.importOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iMembershipExpose.IsImplied); @@ -97,9 +147,39 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImportAll"u8); writer.WriteBooleanValue(iMembershipExpose.IsImportAll); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iMembershipExpose.isLibraryElement); + writer.WritePropertyName("isRecursive"u8); writer.WriteBooleanValue(iMembershipExpose.IsRecursive); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iMembershipExpose.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iMembershipExpose.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iMembershipExpose.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iMembershipExpose.OwnedRelatedElement) @@ -124,6 +204,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iMembershipExpose.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipExpose.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iMembershipExpose.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipExpose.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iMembershipExpose.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipExpose.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iMembershipExpose.OwningRelatedElement.HasValue) @@ -152,6 +274,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iMembershipExpose.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iMembershipExpose.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iMembershipExpose.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iMembershipExpose.Source) @@ -176,10 +316,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iMembershipExpose.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iMembershipExpose.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IMembershipExpose iMembershipExpose, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iMembershipExpose.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iMembershipExpose.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iMembershipExpose.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iMembershipExpose.ElementId); + + writer.WritePropertyName("importedMembership"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipExpose.ImportedMembership); writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iMembershipExpose.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iMembershipExpose.IsImpliedIncluded); + + writer.WritePropertyName("isImportAll"u8); + writer.WriteBooleanValue(iMembershipExpose.IsImportAll); + + writer.WritePropertyName("isRecursive"u8); + writer.WriteBooleanValue(iMembershipExpose.IsRecursive); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iMembershipExpose.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMembershipExpose.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iMembershipExpose.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipExpose.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iMembershipExpose.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipExpose.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iMembershipExpose.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iMembershipExpose.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iMembershipExpose.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipImportSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipImportSerializer.cs index 8e4cb0d77..f40156e2b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipImportSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipImportSerializer.cs @@ -49,7 +49,10 @@ internal static class MembershipImportSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IMembershipImport iMembershipImport) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMembershipImport.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iMembershipImport, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iMembershipImport, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IMembershipImport iMembershipImport, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iMembershipImport.AliasIds) @@ -79,15 +105,39 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMembershipImport.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iMembershipImport.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iMembershipImport.ElementId); + writer.WritePropertyName("importedElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipImport.importedElement); + writer.WriteEndObject(); + writer.WritePropertyName("importedMembership"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMembershipImport.ImportedMembership); writer.WriteEndObject(); + writer.WritePropertyName("importOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipImport.importOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iMembershipImport.IsImplied); @@ -97,9 +147,39 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImportAll"u8); writer.WriteBooleanValue(iMembershipImport.IsImportAll); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iMembershipImport.isLibraryElement); + writer.WritePropertyName("isRecursive"u8); writer.WriteBooleanValue(iMembershipImport.IsRecursive); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iMembershipImport.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iMembershipImport.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iMembershipImport.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iMembershipImport.OwnedRelatedElement) @@ -124,6 +204,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iMembershipImport.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipImport.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iMembershipImport.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipImport.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iMembershipImport.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipImport.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iMembershipImport.OwningRelatedElement.HasValue) @@ -152,6 +274,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iMembershipImport.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iMembershipImport.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iMembershipImport.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iMembershipImport.Source) @@ -176,10 +316,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iMembershipImport.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iMembershipImport.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IMembershipImport iMembershipImport, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iMembershipImport.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iMembershipImport.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iMembershipImport.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iMembershipImport.ElementId); + + writer.WritePropertyName("importedMembership"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipImport.ImportedMembership); writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iMembershipImport.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iMembershipImport.IsImpliedIncluded); + + writer.WritePropertyName("isImportAll"u8); + writer.WriteBooleanValue(iMembershipImport.IsImportAll); + + writer.WritePropertyName("isRecursive"u8); + writer.WriteBooleanValue(iMembershipImport.IsRecursive); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iMembershipImport.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMembershipImport.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iMembershipImport.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipImport.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iMembershipImport.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembershipImport.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iMembershipImport.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iMembershipImport.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iMembershipImport.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipSerializer.cs index a8b2f4eed..c5c24186b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class MembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IMembership iMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IMembership iMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iMembership.ElementId); @@ -88,18 +126,57 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iMembership.OwnedRelatedElement) @@ -124,6 +201,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iMembership.OwningRelatedElement.HasValue) @@ -152,6 +271,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iMembership.Source) @@ -176,10 +313,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IMembership iMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MergeNodeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MergeNodeSerializer.cs index d9d071a01..a29173118 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MergeNodeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MergeNodeSerializer.cs @@ -49,21 +49,1276 @@ internal static class MergeNodeSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IMergeNode iMergeNode) { - throw new ArgumentException("The object shall be an IMergeNode", nameof(obj)); + throw new ArgumentException("The object shall be an IMergeNode", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("MergeNode"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iMergeNode, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iMergeNode, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IMergeNode iMergeNode, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iMergeNode.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iMergeNode.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iMergeNode.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iMergeNode.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iMergeNode.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iMergeNode.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iMergeNode.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iMergeNode.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iMergeNode.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iMergeNode.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iMergeNode.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iMergeNode.Direction.HasValue) + { + writer.WriteStringValue(iMergeNode.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iMergeNode.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iMergeNode.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iMergeNode.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iMergeNode.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iMergeNode.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iMergeNode.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iMergeNode.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iMergeNode.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iMergeNode.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iMergeNode.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iMergeNode.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iMergeNode.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iMergeNode.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iMergeNode.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iMergeNode.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iMergeNode.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iMergeNode.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iMergeNode.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iMergeNode.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iMergeNode.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iMergeNode.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iMergeNode.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iMergeNode.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iMergeNode.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iMergeNode.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iMergeNode.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iMergeNode.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iMergeNode.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iMergeNode.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iMergeNode.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iMergeNode.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iMergeNode.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iMergeNode.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iMergeNode.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iMergeNode.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iMergeNode.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iMergeNode.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iMergeNode.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iMergeNode.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iMergeNode.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iMergeNode.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iMergeNode.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iMergeNode.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iMergeNode.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iMergeNode.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iMergeNode.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iMergeNode.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iMergeNode.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iMergeNode.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iMergeNode.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iMergeNode.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iMergeNode.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iMergeNode.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iMergeNode.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iMergeNode.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iMergeNode.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iMergeNode.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iMergeNode.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iMergeNode.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iMergeNode.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iMergeNode.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iMergeNode.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iMergeNode.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iMergeNode.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iMergeNode.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iMergeNode.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iMergeNode.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iMergeNode.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iMergeNode.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iMergeNode.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iMergeNode.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iMergeNode.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iMergeNode.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iMergeNode.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iMergeNode.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iMergeNode.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iMergeNode.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iMergeNode.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iMergeNode.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iMergeNode.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("MergeNode"u8); + foreach (var item in iMergeNode.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iMergeNode.Id); + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iMergeNode.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iMergeNode.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iMergeNode.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iMergeNode.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iMergeNode.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iMergeNode.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iMergeNode.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iMergeNode.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iMergeNode.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iMergeNode.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + if (iMergeNode.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iMergeNode.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iMergeNode.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMergeNode.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iMergeNode.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iMergeNode.PortionKind.HasValue) + { + writer.WriteStringValue(iMergeNode.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iMergeNode.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iMergeNode.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iMergeNode.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iMergeNode.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iMergeNode.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iMergeNode.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iMergeNode.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iMergeNode.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IMergeNode iMergeNode, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iMergeNode.AliasIds) @@ -169,7 +1424,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetaclassSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetaclassSerializer.cs index a2ba3dcdb..31ffd532b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetaclassSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetaclassSerializer.cs @@ -49,7 +49,10 @@ internal static class MetaclassSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IMetaclass iMetaclass) { @@ -64,6 +67,540 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMetaclass.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iMetaclass, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iMetaclass, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IMetaclass iMetaclass, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iMetaclass.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iMetaclass.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iMetaclass.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iMetaclass.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iMetaclass.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iMetaclass.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iMetaclass.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iMetaclass.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iMetaclass.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iMetaclass.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iMetaclass.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iMetaclass.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iMetaclass.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iMetaclass.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iMetaclass.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iMetaclass.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iMetaclass.isConjugated); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iMetaclass.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iMetaclass.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iMetaclass.IsSufficient); + + writer.WriteStartArray("member"u8); + + foreach (var item in iMetaclass.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iMetaclass.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iMetaclass.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetaclass.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iMetaclass.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iMetaclass.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iMetaclass.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iMetaclass.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetaclass.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iMetaclass.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iMetaclass.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iMetaclass.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iMetaclass.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iMetaclass.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iMetaclass.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iMetaclass.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iMetaclass.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iMetaclass.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iMetaclass.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMetaclass.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iMetaclass.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iMetaclass.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iMetaclass.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iMetaclass.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetaclass.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iMetaclass.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetaclass.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iMetaclass.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetaclass.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iMetaclass.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetaclass.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iMetaclass.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iMetaclass.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iMetaclass.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iMetaclass.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IMetaclass iMetaclass, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iMetaclass.AliasIds) @@ -117,7 +654,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataAccessExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataAccessExpressionSerializer.cs index ada028812..5d7952c15 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataAccessExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataAccessExpressionSerializer.cs @@ -49,7 +49,10 @@ internal static class MetadataAccessExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IMetadataAccessExpression iMetadataAccessExpression) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMetadataAccessExpression.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iMetadataAccessExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iMetadataAccessExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IMetadataAccessExpression iMetadataAccessExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iMetadataAccessExpression.AliasIds) @@ -73,12 +99,74 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iMetadataAccessExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iMetadataAccessExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iMetadataAccessExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iMetadataAccessExpression.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMetadataAccessExpression.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iMetadataAccessExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iMetadataAccessExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iMetadataAccessExpression.Direction.HasValue) @@ -90,15 +178,172 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iMetadataAccessExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iMetadataAccessExpression.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iMetadataAccessExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iMetadataAccessExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iMetadataAccessExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iMetadataAccessExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iMetadataAccessExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iMetadataAccessExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iMetadataAccessExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iMetadataAccessExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iMetadataAccessExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iMetadataAccessExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iMetadataAccessExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iMetadataAccessExpression.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iMetadataAccessExpression.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iMetadataAccessExpression.IsConstant); @@ -111,6 +356,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iMetadataAccessExpression.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.isModelLevelEvaluable); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iMetadataAccessExpression.IsOrdered); @@ -126,9 +377,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iMetadataAccessExpression.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iMetadataAccessExpression.OwnedRelationship) + foreach (var item in iMetadataAccessExpression.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +389,573 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iMetadataAccessExpression.OwningRelationship.HasValue) + foreach (var item in iMetadataAccessExpression.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iMetadataAccessExpression.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iMetadataAccessExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iMetadataAccessExpression.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iMetadataAccessExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iMetadataAccessExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iMetadataAccessExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iMetadataAccessExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iMetadataAccessExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iMetadataAccessExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iMetadataAccessExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iMetadataAccessExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iMetadataAccessExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iMetadataAccessExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iMetadataAccessExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iMetadataAccessExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iMetadataAccessExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iMetadataAccessExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iMetadataAccessExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iMetadataAccessExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iMetadataAccessExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iMetadataAccessExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMetadataAccessExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iMetadataAccessExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iMetadataAccessExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iMetadataAccessExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iMetadataAccessExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iMetadataAccessExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iMetadataAccessExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iMetadataAccessExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iMetadataAccessExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iMetadataAccessExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iMetadataAccessExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iMetadataAccessExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iMetadataAccessExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iMetadataAccessExpression.qualifiedName); + + writer.WritePropertyName("referencedElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.referencedElement); + writer.WriteEndObject(); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iMetadataAccessExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iMetadataAccessExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iMetadataAccessExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iMetadataAccessExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IMetadataAccessExpression iMetadataAccessExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iMetadataAccessExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iMetadataAccessExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iMetadataAccessExpression.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iMetadataAccessExpression.Direction.HasValue) + { + writer.WriteStringValue(iMetadataAccessExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iMetadataAccessExpression.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iMetadataAccessExpression.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMetadataAccessExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iMetadataAccessExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataAccessExpression.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +963,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataDefinitionSerializer.cs index 25548ccda..4d08d3258 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class MetadataDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IMetadataDefinition iMetadataDefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMetadataDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iMetadataDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iMetadataDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IMetadataDefinition iMetadataDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iMetadataDefinition.AliasIds) @@ -79,27 +105,177 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMetadataDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iMetadataDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iMetadataDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iMetadataDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iMetadataDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iMetadataDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iMetadataDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iMetadataDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iMetadataDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iMetadataDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iMetadataDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iMetadataDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iMetadataDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iMetadataDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iMetadataDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iMetadataDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iMetadataDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iMetadataDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iMetadataDefinition.isLibraryElement); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iMetadataDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iMetadataDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iMetadataDefinition.OwnedRelationship) + foreach (var item in iMetadataDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +285,752 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iMetadataDefinition.OwningRelationship.HasValue) + foreach (var item in iMetadataDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iMetadataDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iMetadataDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iMetadataDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iMetadataDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iMetadataDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iMetadataDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iMetadataDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iMetadataDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iMetadataDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iMetadataDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iMetadataDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iMetadataDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iMetadataDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iMetadataDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iMetadataDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iMetadataDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iMetadataDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iMetadataDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iMetadataDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iMetadataDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iMetadataDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iMetadataDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iMetadataDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iMetadataDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iMetadataDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iMetadataDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iMetadataDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iMetadataDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iMetadataDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iMetadataDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iMetadataDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iMetadataDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iMetadataDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iMetadataDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMetadataDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iMetadataDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iMetadataDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iMetadataDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iMetadataDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iMetadataDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iMetadataDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iMetadataDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iMetadataDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iMetadataDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iMetadataDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iMetadataDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iMetadataDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iMetadataDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iMetadataDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iMetadataDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iMetadataDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iMetadataDefinition.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iMetadataDefinition.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iMetadataDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iMetadataDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iMetadataDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iMetadataDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iMetadataDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IMetadataDefinition iMetadataDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iMetadataDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iMetadataDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iMetadataDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iMetadataDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iMetadataDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iMetadataDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iMetadataDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iMetadataDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iMetadataDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMetadataDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iMetadataDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1038,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataFeatureSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataFeatureSerializer.cs index 075e39c77..118036c0e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataFeatureSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataFeatureSerializer.cs @@ -49,7 +49,10 @@ internal static class MetadataFeatureSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IMetadataFeature iMetadataFeature) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMetadataFeature.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iMetadataFeature, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iMetadataFeature, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IMetadataFeature iMetadataFeature, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iMetadataFeature.AliasIds) @@ -73,12 +99,86 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("annotatedElement"u8); + + foreach (var item in iMetadataFeature.annotatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("annotation"u8); + + foreach (var item in iMetadataFeature.annotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iMetadataFeature.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iMetadataFeature.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iMetadataFeature.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMetadataFeature.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iMetadataFeature.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iMetadataFeature.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iMetadataFeature.Direction.HasValue) @@ -90,15 +190,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iMetadataFeature.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iMetadataFeature.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iMetadataFeature.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iMetadataFeature.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iMetadataFeature.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iMetadataFeature.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iMetadataFeature.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iMetadataFeature.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iMetadataFeature.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iMetadataFeature.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iMetadataFeature.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iMetadataFeature.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iMetadataFeature.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iMetadataFeature.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iMetadataFeature.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iMetadataFeature.IsConstant); @@ -111,6 +354,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iMetadataFeature.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iMetadataFeature.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iMetadataFeature.IsOrdered); @@ -126,9 +372,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iMetadataFeature.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iMetadataFeature.OwnedRelationship) + foreach (var item in iMetadataFeature.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +384,589 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iMetadataFeature.OwningRelationship.HasValue) + foreach (var item in iMetadataFeature.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iMetadataFeature.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("metaclass"u8); + + if (iMetadataFeature.metaclass.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.metaclass.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("multiplicity"u8); + + if (iMetadataFeature.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iMetadataFeature.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iMetadataFeature.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotatingRelationship"u8); + + foreach (var item in iMetadataFeature.ownedAnnotatingRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iMetadataFeature.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iMetadataFeature.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iMetadataFeature.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iMetadataFeature.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iMetadataFeature.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iMetadataFeature.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iMetadataFeature.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iMetadataFeature.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iMetadataFeature.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iMetadataFeature.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iMetadataFeature.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iMetadataFeature.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iMetadataFeature.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iMetadataFeature.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iMetadataFeature.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iMetadataFeature.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iMetadataFeature.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMetadataFeature.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iMetadataFeature.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iMetadataFeature.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iMetadataFeature.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iMetadataFeature.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iMetadataFeature.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iMetadataFeature.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningAnnotatingRelationship"u8); + + if (iMetadataFeature.owningAnnotatingRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.owningAnnotatingRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iMetadataFeature.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iMetadataFeature.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iMetadataFeature.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iMetadataFeature.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iMetadataFeature.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iMetadataFeature.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iMetadataFeature.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iMetadataFeature.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iMetadataFeature.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iMetadataFeature.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IMetadataFeature iMetadataFeature, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iMetadataFeature.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iMetadataFeature.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iMetadataFeature.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iMetadataFeature.Direction.HasValue) + { + writer.WriteStringValue(iMetadataFeature.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iMetadataFeature.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iMetadataFeature.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iMetadataFeature.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iMetadataFeature.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iMetadataFeature.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iMetadataFeature.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iMetadataFeature.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iMetadataFeature.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iMetadataFeature.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iMetadataFeature.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iMetadataFeature.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iMetadataFeature.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMetadataFeature.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iMetadataFeature.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataFeature.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +974,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataUsageSerializer.cs index dcf7a7e94..1a10098f6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataUsageSerializer.cs @@ -49,21 +49,1330 @@ internal static class MetadataUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IMetadataUsage iMetadataUsage) { - throw new ArgumentException("The object shall be an IMetadataUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IMetadataUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("MetadataUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iMetadataUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iMetadataUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IMetadataUsage iMetadataUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iMetadataUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("annotatedElement"u8); + + foreach (var item in iMetadataUsage.annotatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("annotation"u8); + + foreach (var item in iMetadataUsage.annotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iMetadataUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iMetadataUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iMetadataUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iMetadataUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iMetadataUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iMetadataUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iMetadataUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iMetadataUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iMetadataUsage.Direction.HasValue) + { + writer.WriteStringValue(iMetadataUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iMetadataUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iMetadataUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iMetadataUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iMetadataUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iMetadataUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iMetadataUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iMetadataUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iMetadataUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iMetadataUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iMetadataUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iMetadataUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iMetadataUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iMetadataUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iMetadataUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iMetadataUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iMetadataUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iMetadataUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iMetadataUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iMetadataUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iMetadataUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iMetadataUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iMetadataUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iMetadataUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iMetadataUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iMetadataUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iMetadataUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iMetadataUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iMetadataUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iMetadataUsage.IsVariation); + + writer.WriteStartArray("itemDefinition"u8); + + foreach (var item in iMetadataUsage.itemDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iMetadataUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iMetadataUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iMetadataUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("metaclass"u8); + + if (iMetadataUsage.metaclass.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.metaclass.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("metadataDefinition"u8); + + if (iMetadataUsage.metadataDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.metadataDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("multiplicity"u8); + + if (iMetadataUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iMetadataUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iMetadataUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iMetadataUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iMetadataUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iMetadataUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iMetadataUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iMetadataUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iMetadataUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iMetadataUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iMetadataUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iMetadataUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iMetadataUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iMetadataUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iMetadataUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iMetadataUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iMetadataUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iMetadataUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iMetadataUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iMetadataUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iMetadataUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iMetadataUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iMetadataUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iMetadataUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iMetadataUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iMetadataUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iMetadataUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iMetadataUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iMetadataUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iMetadataUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iMetadataUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotatingRelationship"u8); + + foreach (var item in iMetadataUsage.ownedAnnotatingRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iMetadataUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iMetadataUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iMetadataUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iMetadataUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iMetadataUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iMetadataUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iMetadataUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iMetadataUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iMetadataUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iMetadataUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iMetadataUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iMetadataUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iMetadataUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iMetadataUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iMetadataUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iMetadataUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iMetadataUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("MetadataUsage"u8); + foreach (var item in iMetadataUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iMetadataUsage.Id); + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iMetadataUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iMetadataUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iMetadataUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iMetadataUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iMetadataUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iMetadataUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningAnnotatingRelationship"u8); + + if (iMetadataUsage.owningAnnotatingRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.owningAnnotatingRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iMetadataUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iMetadataUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iMetadataUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iMetadataUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iMetadataUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iMetadataUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iMetadataUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("portionKind"u8); + + if (iMetadataUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iMetadataUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iMetadataUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iMetadataUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iMetadataUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iMetadataUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iMetadataUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iMetadataUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iMetadataUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iMetadataUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IMetadataUsage iMetadataUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iMetadataUsage.AliasIds) @@ -169,7 +1478,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MultiplicityRangeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MultiplicityRangeSerializer.cs index 361417e9e..c33c30e27 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MultiplicityRangeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MultiplicityRangeSerializer.cs @@ -49,7 +49,10 @@ internal static class MultiplicityRangeSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IMultiplicityRange iMultiplicityRange) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMultiplicityRange.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iMultiplicityRange, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iMultiplicityRange, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IMultiplicityRange iMultiplicityRange, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iMultiplicityRange.AliasIds) @@ -73,12 +99,74 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("bound"u8); + + foreach (var item in iMultiplicityRange.bound) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iMultiplicityRange.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iMultiplicityRange.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iMultiplicityRange.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMultiplicityRange.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iMultiplicityRange.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iMultiplicityRange.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iMultiplicityRange.Direction.HasValue) @@ -90,15 +178,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iMultiplicityRange.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iMultiplicityRange.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iMultiplicityRange.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iMultiplicityRange.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iMultiplicityRange.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iMultiplicityRange.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iMultiplicityRange.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iMultiplicityRange.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iMultiplicityRange.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iMultiplicityRange.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iMultiplicityRange.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iMultiplicityRange.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iMultiplicityRange.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iMultiplicityRange.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iMultiplicityRange.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iMultiplicityRange.IsConstant); @@ -111,6 +342,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iMultiplicityRange.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iMultiplicityRange.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iMultiplicityRange.IsOrdered); @@ -126,9 +360,23 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iMultiplicityRange.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WritePropertyName("lowerBound"u8); - foreach (var item in iMultiplicityRange.OwnedRelationship) + if (iMultiplicityRange.lowerBound.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.lowerBound.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("member"u8); + + foreach (var item in iMultiplicityRange.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +386,555 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iMultiplicityRange.OwningRelationship.HasValue) + foreach (var item in iMultiplicityRange.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iMultiplicityRange.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iMultiplicityRange.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iMultiplicityRange.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iMultiplicityRange.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iMultiplicityRange.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iMultiplicityRange.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iMultiplicityRange.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iMultiplicityRange.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iMultiplicityRange.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iMultiplicityRange.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iMultiplicityRange.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iMultiplicityRange.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iMultiplicityRange.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iMultiplicityRange.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iMultiplicityRange.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iMultiplicityRange.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iMultiplicityRange.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iMultiplicityRange.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iMultiplicityRange.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iMultiplicityRange.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iMultiplicityRange.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMultiplicityRange.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iMultiplicityRange.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iMultiplicityRange.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iMultiplicityRange.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iMultiplicityRange.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iMultiplicityRange.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iMultiplicityRange.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iMultiplicityRange.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iMultiplicityRange.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iMultiplicityRange.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iMultiplicityRange.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iMultiplicityRange.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iMultiplicityRange.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iMultiplicityRange.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iMultiplicityRange.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iMultiplicityRange.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iMultiplicityRange.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("upperBound"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.upperBound); + writer.WriteEndObject(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IMultiplicityRange iMultiplicityRange, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iMultiplicityRange.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iMultiplicityRange.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iMultiplicityRange.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iMultiplicityRange.Direction.HasValue) + { + writer.WriteStringValue(iMultiplicityRange.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iMultiplicityRange.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iMultiplicityRange.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMultiplicityRange.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iMultiplicityRange.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicityRange.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +942,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MultiplicitySerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MultiplicitySerializer.cs index 3b70b8c24..09b1ef809 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MultiplicitySerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MultiplicitySerializer.cs @@ -49,7 +49,10 @@ internal static class MultiplicitySerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IMultiplicity iMultiplicity) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iMultiplicity.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iMultiplicity, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iMultiplicity, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IMultiplicity iMultiplicity, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iMultiplicity.AliasIds) @@ -73,12 +99,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iMultiplicity.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iMultiplicity.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iMultiplicity.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMultiplicity.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iMultiplicity.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iMultiplicity.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iMultiplicity.Direction.HasValue) @@ -90,15 +166,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iMultiplicity.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iMultiplicity.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iMultiplicity.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iMultiplicity.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iMultiplicity.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iMultiplicity.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iMultiplicity.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iMultiplicity.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iMultiplicity.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iMultiplicity.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iMultiplicity.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iMultiplicity.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iMultiplicity.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iMultiplicity.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iMultiplicity.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iMultiplicity.IsConstant); @@ -111,6 +330,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iMultiplicity.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iMultiplicity.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iMultiplicity.IsOrdered); @@ -126,9 +348,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iMultiplicity.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iMultiplicity.OwnedRelationship) + foreach (var item in iMultiplicity.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +360,549 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iMultiplicity.OwningRelationship.HasValue) + foreach (var item in iMultiplicity.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iMultiplicity.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iMultiplicity.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iMultiplicity.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iMultiplicity.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iMultiplicity.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iMultiplicity.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iMultiplicity.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iMultiplicity.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iMultiplicity.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iMultiplicity.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iMultiplicity.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iMultiplicity.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iMultiplicity.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iMultiplicity.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iMultiplicity.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iMultiplicity.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iMultiplicity.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iMultiplicity.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iMultiplicity.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iMultiplicity.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iMultiplicity.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMultiplicity.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iMultiplicity.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iMultiplicity.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iMultiplicity.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iMultiplicity.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iMultiplicity.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iMultiplicity.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iMultiplicity.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iMultiplicity.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iMultiplicity.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iMultiplicity.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iMultiplicity.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iMultiplicity.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iMultiplicity.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iMultiplicity.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iMultiplicity.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iMultiplicity.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IMultiplicity iMultiplicity, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iMultiplicity.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iMultiplicity.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iMultiplicity.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iMultiplicity.Direction.HasValue) + { + writer.WriteStringValue(iMultiplicity.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iMultiplicity.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iMultiplicity.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iMultiplicity.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iMultiplicity.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iMultiplicity.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iMultiplicity.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iMultiplicity.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iMultiplicity.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iMultiplicity.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iMultiplicity.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iMultiplicity.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iMultiplicity.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iMultiplicity.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iMultiplicity.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMultiplicity.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +910,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceExposeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceExposeSerializer.cs index f7adf9246..81ff12cee 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceExposeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceExposeSerializer.cs @@ -49,7 +49,10 @@ internal static class NamespaceExposeSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not INamespaceExpose iNamespaceExpose) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iNamespaceExpose.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iNamespaceExpose, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iNamespaceExpose, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(INamespaceExpose iNamespaceExpose, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iNamespaceExpose.AliasIds) @@ -79,15 +105,39 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iNamespaceExpose.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iNamespaceExpose.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iNamespaceExpose.ElementId); + writer.WritePropertyName("importedElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceExpose.importedElement); + writer.WriteEndObject(); + writer.WritePropertyName("importedNamespace"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iNamespaceExpose.ImportedNamespace); writer.WriteEndObject(); + writer.WritePropertyName("importOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceExpose.importOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iNamespaceExpose.IsImplied); @@ -97,9 +147,39 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImportAll"u8); writer.WriteBooleanValue(iNamespaceExpose.IsImportAll); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iNamespaceExpose.isLibraryElement); + writer.WritePropertyName("isRecursive"u8); writer.WriteBooleanValue(iNamespaceExpose.IsRecursive); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iNamespaceExpose.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iNamespaceExpose.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iNamespaceExpose.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iNamespaceExpose.OwnedRelatedElement) @@ -124,6 +204,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iNamespaceExpose.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceExpose.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iNamespaceExpose.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceExpose.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iNamespaceExpose.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceExpose.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iNamespaceExpose.OwningRelatedElement.HasValue) @@ -152,6 +274,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iNamespaceExpose.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iNamespaceExpose.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iNamespaceExpose.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iNamespaceExpose.Source) @@ -176,10 +316,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iNamespaceExpose.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iNamespaceExpose.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(INamespaceExpose iNamespaceExpose, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iNamespaceExpose.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iNamespaceExpose.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iNamespaceExpose.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iNamespaceExpose.ElementId); + + writer.WritePropertyName("importedNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceExpose.ImportedNamespace); writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iNamespaceExpose.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iNamespaceExpose.IsImpliedIncluded); + + writer.WritePropertyName("isImportAll"u8); + writer.WriteBooleanValue(iNamespaceExpose.IsImportAll); + + writer.WritePropertyName("isRecursive"u8); + writer.WriteBooleanValue(iNamespaceExpose.IsRecursive); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iNamespaceExpose.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iNamespaceExpose.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iNamespaceExpose.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceExpose.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iNamespaceExpose.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceExpose.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iNamespaceExpose.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iNamespaceExpose.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iNamespaceExpose.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceImportSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceImportSerializer.cs index e801a02c0..416a11046 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceImportSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceImportSerializer.cs @@ -49,7 +49,10 @@ internal static class NamespaceImportSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not INamespaceImport iNamespaceImport) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iNamespaceImport.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iNamespaceImport, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iNamespaceImport, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(INamespaceImport iNamespaceImport, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iNamespaceImport.AliasIds) @@ -79,15 +105,39 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iNamespaceImport.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iNamespaceImport.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iNamespaceImport.ElementId); + writer.WritePropertyName("importedElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceImport.importedElement); + writer.WriteEndObject(); + writer.WritePropertyName("importedNamespace"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iNamespaceImport.ImportedNamespace); writer.WriteEndObject(); + writer.WritePropertyName("importOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceImport.importOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iNamespaceImport.IsImplied); @@ -97,9 +147,39 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImportAll"u8); writer.WriteBooleanValue(iNamespaceImport.IsImportAll); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iNamespaceImport.isLibraryElement); + writer.WritePropertyName("isRecursive"u8); writer.WriteBooleanValue(iNamespaceImport.IsRecursive); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iNamespaceImport.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iNamespaceImport.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iNamespaceImport.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iNamespaceImport.OwnedRelatedElement) @@ -124,6 +204,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iNamespaceImport.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceImport.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iNamespaceImport.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceImport.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iNamespaceImport.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceImport.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iNamespaceImport.OwningRelatedElement.HasValue) @@ -152,6 +274,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iNamespaceImport.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iNamespaceImport.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iNamespaceImport.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iNamespaceImport.Source) @@ -176,10 +316,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iNamespaceImport.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iNamespaceImport.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(INamespaceImport iNamespaceImport, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iNamespaceImport.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iNamespaceImport.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iNamespaceImport.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iNamespaceImport.ElementId); + + writer.WritePropertyName("importedNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceImport.ImportedNamespace); writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iNamespaceImport.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iNamespaceImport.IsImpliedIncluded); + + writer.WritePropertyName("isImportAll"u8); + writer.WriteBooleanValue(iNamespaceImport.IsImportAll); + + writer.WritePropertyName("isRecursive"u8); + writer.WriteBooleanValue(iNamespaceImport.IsRecursive); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iNamespaceImport.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iNamespaceImport.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iNamespaceImport.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceImport.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iNamespaceImport.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespaceImport.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iNamespaceImport.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iNamespaceImport.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iNamespaceImport.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceSerializer.cs index 50e325c9f..f740c6aa3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceSerializer.cs @@ -49,7 +49,10 @@ internal static class NamespaceSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not INamespace iNamespace) { @@ -64,6 +67,263 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iNamespace.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iNamespace, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iNamespace, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(INamespace iNamespace, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iNamespace.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iNamespace.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iNamespace.DeclaredShortName); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iNamespace.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iNamespace.ElementId); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iNamespace.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iNamespace.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iNamespace.isLibraryElement); + + writer.WriteStartArray("member"u8); + + foreach (var item in iNamespace.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iNamespace.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iNamespace.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iNamespace.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iNamespace.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iNamespace.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iNamespace.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iNamespace.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iNamespace.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iNamespace.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespace.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iNamespace.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespace.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iNamespace.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespace.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iNamespace.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNamespace.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iNamespace.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iNamespace.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iNamespace.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(INamespace iNamespace, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iNamespace.AliasIds) @@ -111,7 +371,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NullExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NullExpressionSerializer.cs index daf9c8924..e1506118b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NullExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NullExpressionSerializer.cs @@ -49,7 +49,10 @@ internal static class NullExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not INullExpression iNullExpression) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iNullExpression.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iNullExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iNullExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(INullExpression iNullExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iNullExpression.AliasIds) @@ -73,12 +99,74 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iNullExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iNullExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iNullExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iNullExpression.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iNullExpression.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iNullExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iNullExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iNullExpression.Direction.HasValue) @@ -90,15 +178,172 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iNullExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iNullExpression.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iNullExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iNullExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iNullExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iNullExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iNullExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iNullExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iNullExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iNullExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iNullExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iNullExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iNullExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iNullExpression.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iNullExpression.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iNullExpression.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iNullExpression.IsConstant); @@ -111,6 +356,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iNullExpression.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iNullExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iNullExpression.isModelLevelEvaluable); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iNullExpression.IsOrdered); @@ -126,9 +377,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iNullExpression.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iNullExpression.OwnedRelationship) + foreach (var item in iNullExpression.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +389,567 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iNullExpression.OwningRelationship.HasValue) + foreach (var item in iNullExpression.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iNullExpression.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iNullExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iNullExpression.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iNullExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iNullExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iNullExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iNullExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iNullExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iNullExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iNullExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iNullExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iNullExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iNullExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iNullExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iNullExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iNullExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iNullExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iNullExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iNullExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iNullExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iNullExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iNullExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iNullExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iNullExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iNullExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iNullExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iNullExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iNullExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iNullExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iNullExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iNullExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iNullExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iNullExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iNullExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iNullExpression.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iNullExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iNullExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iNullExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iNullExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(INullExpression iNullExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iNullExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iNullExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iNullExpression.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iNullExpression.Direction.HasValue) + { + writer.WriteStringValue(iNullExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iNullExpression.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iNullExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iNullExpression.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iNullExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iNullExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iNullExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iNullExpression.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iNullExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iNullExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iNullExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iNullExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iNullExpression.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iNullExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iNullExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iNullExpression.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +957,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ObjectiveMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ObjectiveMembershipSerializer.cs index 647e1b682..2286bca8e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ObjectiveMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ObjectiveMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class ObjectiveMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IObjectiveMembership iObjectiveMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iObjectiveMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iObjectiveMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iObjectiveMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IObjectiveMembership iObjectiveMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iObjectiveMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iObjectiveMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iObjectiveMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iObjectiveMembership.ElementId); @@ -88,18 +126,84 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iObjectiveMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iObjectiveMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iObjectiveMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iObjectiveMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iObjectiveMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iObjectiveMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iObjectiveMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iObjectiveMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iObjectiveMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iObjectiveMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iObjectiveMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iObjectiveMembership.ownedMemberShortName); + + writer.WritePropertyName("ownedObjectiveRequirement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.ownedObjectiveRequirement); + writer.WriteEndObject(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iObjectiveMembership.OwnedRelatedElement) @@ -124,6 +228,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iObjectiveMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iObjectiveMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iObjectiveMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iObjectiveMembership.OwningRelatedElement.HasValue) @@ -152,6 +298,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iObjectiveMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iObjectiveMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iObjectiveMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iObjectiveMembership.Source) @@ -176,10 +346,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iObjectiveMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iObjectiveMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IObjectiveMembership iObjectiveMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iObjectiveMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iObjectiveMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iObjectiveMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iObjectiveMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iObjectiveMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iObjectiveMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iObjectiveMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iObjectiveMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iObjectiveMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iObjectiveMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iObjectiveMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iObjectiveMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iObjectiveMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iObjectiveMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iObjectiveMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceDefinitionSerializer.cs index 98a33e1b6..09f190c4a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class OccurrenceDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IOccurrenceDefinition iOccurrenceDefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iOccurrenceDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iOccurrenceDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iOccurrenceDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IOccurrenceDefinition iOccurrenceDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iOccurrenceDefinition.AliasIds) @@ -79,27 +105,177 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iOccurrenceDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iOccurrenceDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iOccurrenceDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iOccurrenceDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iOccurrenceDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iOccurrenceDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iOccurrenceDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iOccurrenceDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iOccurrenceDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iOccurrenceDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iOccurrenceDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iOccurrenceDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iOccurrenceDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iOccurrenceDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iOccurrenceDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iOccurrenceDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iOccurrenceDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iOccurrenceDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iOccurrenceDefinition.isLibraryElement); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iOccurrenceDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iOccurrenceDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iOccurrenceDefinition.OwnedRelationship) + foreach (var item in iOccurrenceDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +285,752 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iOccurrenceDefinition.OwningRelationship.HasValue) + foreach (var item in iOccurrenceDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iOccurrenceDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iOccurrenceDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iOccurrenceDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iOccurrenceDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iOccurrenceDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iOccurrenceDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iOccurrenceDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iOccurrenceDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iOccurrenceDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iOccurrenceDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iOccurrenceDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iOccurrenceDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iOccurrenceDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iOccurrenceDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iOccurrenceDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iOccurrenceDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iOccurrenceDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iOccurrenceDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iOccurrenceDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iOccurrenceDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iOccurrenceDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iOccurrenceDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iOccurrenceDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iOccurrenceDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iOccurrenceDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iOccurrenceDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iOccurrenceDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iOccurrenceDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iOccurrenceDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iOccurrenceDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iOccurrenceDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iOccurrenceDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iOccurrenceDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iOccurrenceDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iOccurrenceDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iOccurrenceDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iOccurrenceDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iOccurrenceDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iOccurrenceDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iOccurrenceDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iOccurrenceDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iOccurrenceDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iOccurrenceDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iOccurrenceDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iOccurrenceDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iOccurrenceDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iOccurrenceDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iOccurrenceDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iOccurrenceDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iOccurrenceDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iOccurrenceDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iOccurrenceDefinition.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iOccurrenceDefinition.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iOccurrenceDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iOccurrenceDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iOccurrenceDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iOccurrenceDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iOccurrenceDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IOccurrenceDefinition iOccurrenceDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iOccurrenceDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iOccurrenceDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iOccurrenceDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iOccurrenceDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iOccurrenceDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iOccurrenceDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iOccurrenceDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iOccurrenceDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iOccurrenceDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iOccurrenceDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iOccurrenceDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1038,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceUsageSerializer.cs index d02cd202c..5c374b436 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceUsageSerializer.cs @@ -49,21 +49,1240 @@ internal static class OccurrenceUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IOccurrenceUsage iOccurrenceUsage) { - throw new ArgumentException("The object shall be an IOccurrenceUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IOccurrenceUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("OccurrenceUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iOccurrenceUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iOccurrenceUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IOccurrenceUsage iOccurrenceUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iOccurrenceUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iOccurrenceUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iOccurrenceUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iOccurrenceUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iOccurrenceUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iOccurrenceUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iOccurrenceUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iOccurrenceUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iOccurrenceUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iOccurrenceUsage.Direction.HasValue) + { + writer.WriteStringValue(iOccurrenceUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iOccurrenceUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iOccurrenceUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iOccurrenceUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iOccurrenceUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iOccurrenceUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iOccurrenceUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iOccurrenceUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iOccurrenceUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iOccurrenceUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iOccurrenceUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iOccurrenceUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iOccurrenceUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iOccurrenceUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iOccurrenceUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iOccurrenceUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iOccurrenceUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iOccurrenceUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iOccurrenceUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iOccurrenceUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iOccurrenceUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iOccurrenceUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iOccurrenceUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iOccurrenceUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iOccurrenceUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iOccurrenceUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iOccurrenceUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iOccurrenceUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iOccurrenceUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iOccurrenceUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iOccurrenceUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iOccurrenceUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iOccurrenceUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iOccurrenceUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iOccurrenceUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iOccurrenceUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iOccurrenceUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iOccurrenceUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iOccurrenceUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iOccurrenceUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iOccurrenceUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iOccurrenceUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iOccurrenceUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iOccurrenceUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iOccurrenceUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iOccurrenceUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iOccurrenceUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iOccurrenceUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iOccurrenceUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iOccurrenceUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iOccurrenceUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iOccurrenceUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iOccurrenceUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iOccurrenceUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iOccurrenceUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iOccurrenceUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iOccurrenceUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iOccurrenceUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iOccurrenceUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iOccurrenceUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iOccurrenceUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iOccurrenceUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iOccurrenceUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iOccurrenceUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iOccurrenceUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iOccurrenceUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iOccurrenceUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iOccurrenceUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("OccurrenceUsage"u8); + foreach (var item in iOccurrenceUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iOccurrenceUsage.Id); + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iOccurrenceUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iOccurrenceUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iOccurrenceUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iOccurrenceUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iOccurrenceUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iOccurrenceUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iOccurrenceUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iOccurrenceUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iOccurrenceUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iOccurrenceUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iOccurrenceUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iOccurrenceUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iOccurrenceUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOccurrenceUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("portionKind"u8); + + if (iOccurrenceUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iOccurrenceUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iOccurrenceUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iOccurrenceUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iOccurrenceUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iOccurrenceUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iOccurrenceUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iOccurrenceUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iOccurrenceUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iOccurrenceUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IOccurrenceUsage iOccurrenceUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iOccurrenceUsage.AliasIds) @@ -169,7 +1388,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OperatorExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OperatorExpressionSerializer.cs index e4abe5b48..ffb80ee74 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OperatorExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OperatorExpressionSerializer.cs @@ -49,21 +49,847 @@ internal static class OperatorExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IOperatorExpression iOperatorExpression) { - throw new ArgumentException("The object shall be an IOperatorExpression", nameof(obj)); + throw new ArgumentException("The object shall be an IOperatorExpression", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("OperatorExpression"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iOperatorExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iOperatorExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IOperatorExpression iOperatorExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iOperatorExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("argument"u8); + + foreach (var item in iOperatorExpression.argument) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iOperatorExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iOperatorExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iOperatorExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iOperatorExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iOperatorExpression.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iOperatorExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iOperatorExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iOperatorExpression.Direction.HasValue) + { + writer.WriteStringValue(iOperatorExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iOperatorExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iOperatorExpression.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iOperatorExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iOperatorExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iOperatorExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iOperatorExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iOperatorExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iOperatorExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iOperatorExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iOperatorExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iOperatorExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iOperatorExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("instantiatedType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.instantiatedType); + writer.WriteEndObject(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iOperatorExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iOperatorExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iOperatorExpression.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iOperatorExpression.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iOperatorExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iOperatorExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iOperatorExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iOperatorExpression.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iOperatorExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iOperatorExpression.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iOperatorExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iOperatorExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iOperatorExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iOperatorExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iOperatorExpression.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iOperatorExpression.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iOperatorExpression.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iOperatorExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iOperatorExpression.name); + + writer.WritePropertyName("operator"u8); + writer.WriteStringValue(iOperatorExpression.Operator); + + writer.WriteStartArray("output"u8); + + foreach (var item in iOperatorExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iOperatorExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iOperatorExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iOperatorExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iOperatorExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iOperatorExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iOperatorExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iOperatorExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iOperatorExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iOperatorExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iOperatorExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iOperatorExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("OperatorExpression"u8); + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iOperatorExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iOperatorExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iOperatorExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iOperatorExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iOperatorExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iOperatorExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iOperatorExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iOperatorExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iOperatorExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iOperatorExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iOperatorExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iOperatorExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iOperatorExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iOperatorExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iOperatorExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iOperatorExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iOperatorExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iOperatorExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOperatorExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iOperatorExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iOperatorExpression.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iOperatorExpression.Id); + writer.WriteStringValue(iOperatorExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iOperatorExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iOperatorExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iOperatorExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iOperatorExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IOperatorExpression iOperatorExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iOperatorExpression.AliasIds) @@ -155,7 +981,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OwningMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OwningMembershipSerializer.cs index 8ab9ac42d..826c6e206 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OwningMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OwningMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class OwningMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IOwningMembership iOwningMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iOwningMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iOwningMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iOwningMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IOwningMembership iOwningMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iOwningMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iOwningMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iOwningMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iOwningMembership.ElementId); @@ -88,18 +126,72 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iOwningMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iOwningMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iOwningMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iOwningMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iOwningMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iOwningMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iOwningMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iOwningMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iOwningMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iOwningMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iOwningMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iOwningMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iOwningMembership.OwnedRelatedElement) @@ -124,6 +216,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iOwningMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iOwningMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iOwningMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iOwningMembership.OwningRelatedElement.HasValue) @@ -152,6 +286,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iOwningMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iOwningMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iOwningMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iOwningMembership.Source) @@ -176,10 +328,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iOwningMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iOwningMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IOwningMembership iOwningMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iOwningMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iOwningMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iOwningMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iOwningMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iOwningMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iOwningMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iOwningMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iOwningMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iOwningMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iOwningMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iOwningMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iOwningMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iOwningMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iOwningMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iOwningMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PackageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PackageSerializer.cs index da5e258b7..d46c205a7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PackageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PackageSerializer.cs @@ -49,7 +49,10 @@ internal static class PackageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IPackage iPackage) { @@ -64,6 +67,275 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iPackage.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iPackage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iPackage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IPackage iPackage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iPackage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iPackage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iPackage.DeclaredShortName); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iPackage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iPackage.ElementId); + + writer.WriteStartArray("filterCondition"u8); + + foreach (var item in iPackage.filterCondition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iPackage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iPackage.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iPackage.isLibraryElement); + + writer.WriteStartArray("member"u8); + + foreach (var item in iPackage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iPackage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iPackage.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iPackage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iPackage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iPackage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iPackage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iPackage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iPackage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iPackage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPackage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iPackage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPackage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iPackage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPackage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iPackage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPackage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iPackage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iPackage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iPackage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IPackage iPackage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iPackage.AliasIds) @@ -111,7 +383,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ParameterMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ParameterMembershipSerializer.cs index 25f8328e0..efc6b0502 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ParameterMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ParameterMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class ParameterMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IParameterMembership iParameterMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iParameterMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iParameterMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iParameterMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IParameterMembership iParameterMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iParameterMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iParameterMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iParameterMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iParameterMembership.ElementId); @@ -88,18 +126,84 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iParameterMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iParameterMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iParameterMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iParameterMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iParameterMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iParameterMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iParameterMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iParameterMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iParameterMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iParameterMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iParameterMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.ownedMemberParameter); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iParameterMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iParameterMembership.OwnedRelatedElement) @@ -124,6 +228,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iParameterMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iParameterMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iParameterMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iParameterMembership.OwningRelatedElement.HasValue) @@ -152,6 +298,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iParameterMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iParameterMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iParameterMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iParameterMembership.Source) @@ -176,10 +346,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iParameterMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iParameterMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IParameterMembership iParameterMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iParameterMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iParameterMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iParameterMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iParameterMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iParameterMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iParameterMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iParameterMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iParameterMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iParameterMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iParameterMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iParameterMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iParameterMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iParameterMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iParameterMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iParameterMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartDefinitionSerializer.cs index bf7603101..10595bb8a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class PartDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IPartDefinition iPartDefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iPartDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iPartDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iPartDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IPartDefinition iPartDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iPartDefinition.AliasIds) @@ -79,27 +105,177 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iPartDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iPartDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iPartDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iPartDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iPartDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iPartDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iPartDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iPartDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iPartDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iPartDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iPartDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iPartDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iPartDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iPartDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iPartDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iPartDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iPartDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iPartDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iPartDefinition.isLibraryElement); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iPartDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPartDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iPartDefinition.OwnedRelationship) + foreach (var item in iPartDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +285,752 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iPartDefinition.OwningRelationship.HasValue) + foreach (var item in iPartDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iPartDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iPartDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iPartDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iPartDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iPartDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iPartDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iPartDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iPartDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iPartDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iPartDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iPartDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iPartDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iPartDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iPartDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iPartDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iPartDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iPartDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iPartDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iPartDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iPartDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iPartDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iPartDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iPartDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iPartDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iPartDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iPartDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iPartDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iPartDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iPartDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iPartDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iPartDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iPartDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iPartDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iPartDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iPartDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iPartDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iPartDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iPartDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iPartDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iPartDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iPartDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iPartDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iPartDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iPartDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iPartDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iPartDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iPartDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iPartDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iPartDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iPartDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iPartDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iPartDefinition.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iPartDefinition.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iPartDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iPartDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iPartDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iPartDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iPartDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IPartDefinition iPartDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iPartDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iPartDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iPartDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iPartDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iPartDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iPartDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iPartDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iPartDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iPartDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iPartDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iPartDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1038,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartUsageSerializer.cs index 404ab9956..433e6293a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartUsageSerializer.cs @@ -49,21 +49,1264 @@ internal static class PartUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IPartUsage iPartUsage) { - throw new ArgumentException("The object shall be an IPartUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IPartUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("PartUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iPartUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iPartUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IPartUsage iPartUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iPartUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iPartUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iPartUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iPartUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iPartUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iPartUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iPartUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iPartUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iPartUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iPartUsage.Direction.HasValue) + { + writer.WriteStringValue(iPartUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iPartUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iPartUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iPartUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iPartUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iPartUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iPartUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iPartUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iPartUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iPartUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iPartUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iPartUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iPartUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iPartUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iPartUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iPartUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iPartUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iPartUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iPartUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iPartUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iPartUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iPartUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iPartUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iPartUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iPartUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iPartUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iPartUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iPartUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iPartUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iPartUsage.IsVariation); + + writer.WriteStartArray("itemDefinition"u8); + + foreach (var item in iPartUsage.itemDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iPartUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iPartUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iPartUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iPartUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iPartUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iPartUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iPartUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iPartUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iPartUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iPartUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iPartUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iPartUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iPartUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iPartUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iPartUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iPartUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iPartUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iPartUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iPartUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iPartUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iPartUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iPartUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iPartUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iPartUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iPartUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iPartUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iPartUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iPartUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iPartUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iPartUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iPartUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iPartUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iPartUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iPartUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iPartUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iPartUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iPartUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iPartUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iPartUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iPartUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iPartUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iPartUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iPartUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iPartUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iPartUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iPartUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iPartUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iPartUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iPartUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iPartUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iPartUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("PartUsage"u8); + foreach (var item in iPartUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iPartUsage.Id); + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iPartUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iPartUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iPartUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iPartUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iPartUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iPartUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iPartUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iPartUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iPartUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iPartUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + if (iPartUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iPartUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iPartUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPartUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("partDefinition"u8); + + foreach (var item in iPartUsage.partDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iPartUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iPartUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iPartUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iPartUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iPartUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iPartUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iPartUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iPartUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iPartUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iPartUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IPartUsage iPartUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iPartUsage.AliasIds) @@ -169,7 +1412,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PayloadFeatureSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PayloadFeatureSerializer.cs index 560cd0434..57d992e77 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PayloadFeatureSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PayloadFeatureSerializer.cs @@ -49,7 +49,10 @@ internal static class PayloadFeatureSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IPayloadFeature iPayloadFeature) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iPayloadFeature.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iPayloadFeature, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iPayloadFeature, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IPayloadFeature iPayloadFeature, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iPayloadFeature.AliasIds) @@ -73,12 +99,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iPayloadFeature.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iPayloadFeature.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iPayloadFeature.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iPayloadFeature.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iPayloadFeature.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iPayloadFeature.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iPayloadFeature.Direction.HasValue) @@ -90,15 +166,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iPayloadFeature.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iPayloadFeature.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iPayloadFeature.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iPayloadFeature.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iPayloadFeature.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iPayloadFeature.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iPayloadFeature.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iPayloadFeature.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iPayloadFeature.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iPayloadFeature.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iPayloadFeature.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iPayloadFeature.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iPayloadFeature.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iPayloadFeature.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iPayloadFeature.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iPayloadFeature.IsConstant); @@ -111,6 +330,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iPayloadFeature.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iPayloadFeature.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iPayloadFeature.IsOrdered); @@ -126,9 +348,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iPayloadFeature.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iPayloadFeature.OwnedRelationship) + foreach (var item in iPayloadFeature.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +360,549 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iPayloadFeature.OwningRelationship.HasValue) + foreach (var item in iPayloadFeature.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iPayloadFeature.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iPayloadFeature.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iPayloadFeature.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iPayloadFeature.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iPayloadFeature.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iPayloadFeature.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iPayloadFeature.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iPayloadFeature.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iPayloadFeature.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iPayloadFeature.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iPayloadFeature.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iPayloadFeature.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iPayloadFeature.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iPayloadFeature.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iPayloadFeature.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iPayloadFeature.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iPayloadFeature.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iPayloadFeature.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iPayloadFeature.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iPayloadFeature.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iPayloadFeature.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iPayloadFeature.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iPayloadFeature.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iPayloadFeature.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iPayloadFeature.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iPayloadFeature.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iPayloadFeature.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iPayloadFeature.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iPayloadFeature.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iPayloadFeature.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iPayloadFeature.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iPayloadFeature.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iPayloadFeature.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iPayloadFeature.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iPayloadFeature.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iPayloadFeature.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iPayloadFeature.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iPayloadFeature.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IPayloadFeature iPayloadFeature, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iPayloadFeature.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iPayloadFeature.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iPayloadFeature.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iPayloadFeature.Direction.HasValue) + { + writer.WriteStringValue(iPayloadFeature.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iPayloadFeature.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iPayloadFeature.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iPayloadFeature.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iPayloadFeature.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iPayloadFeature.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iPayloadFeature.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iPayloadFeature.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iPayloadFeature.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iPayloadFeature.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iPayloadFeature.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iPayloadFeature.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iPayloadFeature.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iPayloadFeature.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iPayloadFeature.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPayloadFeature.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +910,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PerformActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PerformActionUsageSerializer.cs index aa1156de9..820b123d8 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PerformActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PerformActionUsageSerializer.cs @@ -49,21 +49,1288 @@ internal static class PerformActionUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IPerformActionUsage iPerformActionUsage) { - throw new ArgumentException("The object shall be an IPerformActionUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IPerformActionUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("PerformActionUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iPerformActionUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iPerformActionUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPerformActionUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iPerformActionUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iPerformActionUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iPerformActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iPerformActionUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iPerformActionUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iPerformActionUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iPerformActionUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iPerformActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iPerformActionUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iPerformActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iPerformActionUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iPerformActionUsage.Direction.HasValue) + { + writer.WriteStringValue(iPerformActionUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iPerformActionUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iPerformActionUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iPerformActionUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iPerformActionUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("eventOccurrence"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.eventOccurrence); + writer.WriteEndObject(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iPerformActionUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iPerformActionUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iPerformActionUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iPerformActionUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iPerformActionUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iPerformActionUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iPerformActionUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iPerformActionUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iPerformActionUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iPerformActionUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iPerformActionUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iPerformActionUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iPerformActionUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iPerformActionUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iPerformActionUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iPerformActionUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iPerformActionUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iPerformActionUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iPerformActionUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iPerformActionUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iPerformActionUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iPerformActionUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iPerformActionUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iPerformActionUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iPerformActionUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iPerformActionUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iPerformActionUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iPerformActionUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iPerformActionUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iPerformActionUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iPerformActionUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iPerformActionUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iPerformActionUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iPerformActionUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iPerformActionUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iPerformActionUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iPerformActionUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iPerformActionUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iPerformActionUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iPerformActionUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iPerformActionUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iPerformActionUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iPerformActionUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iPerformActionUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iPerformActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iPerformActionUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iPerformActionUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iPerformActionUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iPerformActionUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iPerformActionUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iPerformActionUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iPerformActionUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iPerformActionUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iPerformActionUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iPerformActionUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iPerformActionUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iPerformActionUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iPerformActionUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iPerformActionUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iPerformActionUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iPerformActionUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iPerformActionUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iPerformActionUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("PerformActionUsage"u8); + foreach (var item in iPerformActionUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iPerformActionUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iPerformActionUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iPerformActionUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iPerformActionUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iPerformActionUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iPerformActionUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iPerformActionUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iPerformActionUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iPerformActionUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iPerformActionUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iPerformActionUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iPerformActionUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iPerformActionUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + foreach (var item in iPerformActionUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("performedAction"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iPerformActionUsage.Id); + writer.WriteStringValue(iPerformActionUsage.performedAction); + writer.WriteEndObject(); + + writer.WritePropertyName("portionKind"u8); + + if (iPerformActionUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iPerformActionUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iPerformActionUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iPerformActionUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iPerformActionUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iPerformActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iPerformActionUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iPerformActionUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iPerformActionUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iPerformActionUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IPerformActionUsage iPerformActionUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iPerformActionUsage.AliasIds) @@ -169,7 +1436,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortConjugationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortConjugationSerializer.cs index 81e18386a..0c50afab7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortConjugationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortConjugationSerializer.cs @@ -49,7 +49,10 @@ internal static class PortConjugationSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IPortConjugation iPortConjugation) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iPortConjugation.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iPortConjugation, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iPortConjugation, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IPortConjugation iPortConjugation, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iPortConjugation.AliasIds) @@ -73,6 +99,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("conjugatedPortDefinition"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortConjugation.conjugatedPortDefinition); + writer.WriteEndObject(); + writer.WritePropertyName("conjugatedType"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -85,6 +117,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iPortConjugation.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iPortConjugation.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iPortConjugation.ElementId); @@ -94,6 +138,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iPortConjugation.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iPortConjugation.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iPortConjugation.name); + writer.WritePropertyName("originalPortDefinition"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -106,6 +156,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iPortConjugation.OriginalType); writer.WriteEndObject(); + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iPortConjugation.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iPortConjugation.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iPortConjugation.OwnedRelatedElement) @@ -130,6 +204,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iPortConjugation.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortConjugation.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iPortConjugation.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortConjugation.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iPortConjugation.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortConjugation.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iPortConjugation.OwningRelatedElement.HasValue) @@ -158,6 +274,38 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iPortConjugation.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortConjugation.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iPortConjugation.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iPortConjugation.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iPortConjugation.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iPortConjugation.Source) @@ -182,7 +330,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iPortConjugation.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IPortConjugation iPortConjugation, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iPortConjugation.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("conjugatedType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortConjugation.ConjugatedType); + writer.WriteEndObject(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iPortConjugation.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iPortConjugation.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iPortConjugation.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iPortConjugation.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iPortConjugation.IsImpliedIncluded); + + writer.WritePropertyName("originalPortDefinition"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortConjugation.OriginalPortDefinition); + writer.WriteEndObject(); + + writer.WritePropertyName("originalType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortConjugation.OriginalType); writer.WriteEndObject(); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iPortConjugation.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iPortConjugation.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iPortConjugation.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortConjugation.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iPortConjugation.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortConjugation.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iPortConjugation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iPortConjugation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortDefinitionSerializer.cs index efd65327e..0939b92b5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class PortDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IPortDefinition iPortDefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iPortDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iPortDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iPortDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IPortDefinition iPortDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iPortDefinition.AliasIds) @@ -73,33 +99,197 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("conjugatedPortDefinition"u8); + + if (iPortDefinition.conjugatedPortDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortDefinition.conjugatedPortDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iPortDefinition.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iPortDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iPortDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iPortDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iPortDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iPortDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iPortDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iPortDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iPortDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iPortDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iPortDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iPortDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iPortDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iPortDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iPortDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iPortDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iPortDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iPortDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iPortDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iPortDefinition.isLibraryElement); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iPortDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPortDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iPortDefinition.OwnedRelationship) + foreach (var item in iPortDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +299,752 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iPortDefinition.OwningRelationship.HasValue) + foreach (var item in iPortDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iPortDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iPortDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iPortDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iPortDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iPortDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iPortDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iPortDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iPortDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iPortDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iPortDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iPortDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iPortDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iPortDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iPortDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iPortDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iPortDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iPortDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iPortDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iPortDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iPortDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iPortDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iPortDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iPortDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iPortDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iPortDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iPortDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iPortDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iPortDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iPortDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iPortDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iPortDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iPortDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iPortDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iPortDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iPortDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iPortDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iPortDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iPortDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iPortDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iPortDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iPortDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iPortDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iPortDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iPortDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iPortDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iPortDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iPortDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iPortDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iPortDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iPortDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iPortDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iPortDefinition.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iPortDefinition.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iPortDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iPortDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iPortDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iPortDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iPortDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IPortDefinition iPortDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iPortDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iPortDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iPortDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iPortDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iPortDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iPortDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iPortDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iPortDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iPortDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iPortDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iPortDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1052,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortUsageSerializer.cs index 801063f45..76a3e3362 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortUsageSerializer.cs @@ -49,21 +49,1252 @@ internal static class PortUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IPortUsage iPortUsage) { - throw new ArgumentException("The object shall be an IPortUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IPortUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("PortUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iPortUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iPortUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IPortUsage iPortUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iPortUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iPortUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iPortUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iPortUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iPortUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iPortUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iPortUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iPortUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iPortUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iPortUsage.Direction.HasValue) + { + writer.WriteStringValue(iPortUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iPortUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iPortUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iPortUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iPortUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iPortUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iPortUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iPortUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iPortUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iPortUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iPortUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iPortUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iPortUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iPortUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iPortUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iPortUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iPortUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iPortUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iPortUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iPortUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iPortUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iPortUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iPortUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iPortUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iPortUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iPortUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iPortUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iPortUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iPortUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iPortUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iPortUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iPortUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iPortUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iPortUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iPortUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iPortUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iPortUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iPortUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iPortUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iPortUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iPortUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iPortUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iPortUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iPortUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iPortUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iPortUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iPortUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iPortUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iPortUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iPortUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iPortUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iPortUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iPortUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iPortUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iPortUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iPortUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iPortUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iPortUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iPortUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iPortUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iPortUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iPortUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iPortUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iPortUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iPortUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iPortUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iPortUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iPortUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iPortUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iPortUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iPortUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iPortUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iPortUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iPortUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iPortUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iPortUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iPortUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iPortUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iPortUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iPortUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iPortUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WriteStartArray("ownedRelationship"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("PortUsage"u8); + foreach (var item in iPortUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iPortUsage.Id); + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iPortUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iPortUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iPortUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iPortUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iPortUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iPortUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iPortUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iPortUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iPortUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iPortUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + if (iPortUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iPortUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iPortUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("portDefinition"u8); + + foreach (var item in iPortUsage.portDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iPortUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iPortUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iPortUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iPortUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iPortUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iPortUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iPortUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iPortUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iPortUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iPortUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IPortUsage iPortUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iPortUsage.AliasIds) @@ -169,7 +1400,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PredicateSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PredicateSerializer.cs index 9a9ea8022..168b210bf 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PredicateSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PredicateSerializer.cs @@ -49,7 +49,10 @@ internal static class PredicateSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IPredicate iPredicate) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iPredicate.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iPredicate, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iPredicate, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IPredicate iPredicate, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iPredicate.AliasIds) @@ -79,18 +105,370 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iPredicate.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iPredicate.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iPredicate.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iPredicate.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iPredicate.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iPredicate.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("expression"u8); + + foreach (var item in iPredicate.expression) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iPredicate.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iPredicate.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iPredicate.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iPredicate.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iPredicate.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iPredicate.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iPredicate.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iPredicate.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iPredicate.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iPredicate.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iPredicate.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iPredicate.isModelLevelEvaluable); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iPredicate.IsSufficient); + writer.WriteStartArray("member"u8); + + foreach (var item in iPredicate.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iPredicate.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iPredicate.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPredicate.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iPredicate.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iPredicate.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iPredicate.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iPredicate.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPredicate.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iPredicate.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iPredicate.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iPredicate.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iPredicate.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iPredicate.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iPredicate.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iPredicate.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iPredicate.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iPredicate.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iPredicate.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelationship"u8); foreach (var item in iPredicate.OwnedRelationship) @@ -103,6 +481,84 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iPredicate.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iPredicate.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iPredicate.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iPredicate.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPredicate.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iPredicate.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPredicate.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iPredicate.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPredicate.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelationship"u8); if (iPredicate.OwningRelationship.HasValue) @@ -117,7 +573,132 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("parameter"u8); + + foreach (var item in iPredicate.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iPredicate.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPredicate.result); writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iPredicate.shortName); + + writer.WriteStartArray("step"u8); + + foreach (var item in iPredicate.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iPredicate.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iPredicate.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IPredicate iPredicate, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iPredicate.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iPredicate.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iPredicate.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iPredicate.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iPredicate.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iPredicate.IsImpliedIncluded); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iPredicate.IsSufficient); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iPredicate.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iPredicate.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPredicate.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RedefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RedefinitionSerializer.cs index 3b359ee4c..f72a33363 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RedefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RedefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class RedefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IRedefinition iRedefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iRedefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iRedefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iRedefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IRedefinition iRedefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iRedefinition.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iRedefinition.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iRedefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iRedefinition.ElementId); @@ -94,6 +132,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iRedefinition.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iRedefinition.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iRedefinition.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iRedefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iRedefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iRedefinition.OwnedRelatedElement) @@ -118,6 +186,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iRedefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeature"u8); + + if (iRedefinition.owningFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.owningFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iRedefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iRedefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iRedefinition.OwningRelatedElement.HasValue) @@ -146,6 +270,23 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iRedefinition.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iRedefinition.qualifiedName); + writer.WritePropertyName("redefinedFeature"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -158,6 +299,21 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iRedefinition.RedefiningFeature); writer.WriteEndObject(); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iRedefinition.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iRedefinition.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iRedefinition.Source) @@ -200,7 +356,167 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iRedefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IRedefinition iRedefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iRedefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iRedefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRedefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iRedefinition.ElementId); + + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.General); + writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iRedefinition.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iRedefinition.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iRedefinition.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iRedefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iRedefinition.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iRedefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("redefinedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.RedefinedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("redefiningFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.RedefiningFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("source"u8); + + foreach (var item in iRedefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.SubsettedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.SubsettingFeature); writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iRedefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs index e2a44dd28..9472218f7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs @@ -49,7 +49,10 @@ internal static class ReferenceSubsettingSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IReferenceSubsetting iReferenceSubsetting) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iReferenceSubsetting.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iReferenceSubsetting, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iReferenceSubsetting, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iReferenceSubsetting, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iReferenceSubsetting.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iReferenceSubsetting.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iReferenceSubsetting.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iReferenceSubsetting.ElementId); @@ -94,6 +132,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iReferenceSubsetting.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iReferenceSubsetting.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iReferenceSubsetting.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iReferenceSubsetting.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iReferenceSubsetting.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iReferenceSubsetting.OwnedRelatedElement) @@ -118,6 +186,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iReferenceSubsetting.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeature"u8); + + if (iReferenceSubsetting.owningFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owningFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iReferenceSubsetting.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iReferenceSubsetting.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iReferenceSubsetting.OwningRelatedElement.HasValue) @@ -146,12 +270,50 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iReferenceSubsetting.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iReferenceSubsetting.qualifiedName); + writer.WritePropertyName("referencedFeature"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iReferenceSubsetting.ReferencedFeature); writer.WriteEndObject(); + writer.WritePropertyName("referencingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.referencingFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iReferenceSubsetting.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iReferenceSubsetting.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iReferenceSubsetting.Source) @@ -194,7 +356,161 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iReferenceSubsetting.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IReferenceSubsetting iReferenceSubsetting, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iReferenceSubsetting.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iReferenceSubsetting.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iReferenceSubsetting.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iReferenceSubsetting.ElementId); + + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.General); + writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iReferenceSubsetting.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iReferenceSubsetting.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iReferenceSubsetting.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iReferenceSubsetting.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iReferenceSubsetting.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iReferenceSubsetting.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("referencedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.ReferencedFeature); writer.WriteEndObject(); + + writer.WriteStartArray("source"u8); + + foreach (var item in iReferenceSubsetting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.SubsettedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.SubsettingFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iReferenceSubsetting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceUsageSerializer.cs index d8fead293..215b11424 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceUsageSerializer.cs @@ -49,7 +49,10 @@ internal static class ReferenceUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IReferenceUsage iReferenceUsage) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iReferenceUsage.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iReferenceUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iReferenceUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IReferenceUsage iReferenceUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iReferenceUsage.AliasIds) @@ -73,12 +99,86 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iReferenceUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iReferenceUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iReferenceUsage.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iReferenceUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iReferenceUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iReferenceUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iReferenceUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iReferenceUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iReferenceUsage.Direction.HasValue) @@ -90,15 +190,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iReferenceUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iReferenceUsage.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iReferenceUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iReferenceUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iReferenceUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iReferenceUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iReferenceUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iReferenceUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iReferenceUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iReferenceUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iReferenceUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iReferenceUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iReferenceUsage.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iReferenceUsage.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iReferenceUsage.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iReferenceUsage.IsConstant); @@ -111,12 +354,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iReferenceUsage.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iReferenceUsage.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iReferenceUsage.IsOrdered); writer.WritePropertyName("isPortion"u8); writer.WriteBooleanValue(iReferenceUsage.IsPortion); + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iReferenceUsage.isReference); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iReferenceUsage.IsSufficient); @@ -129,9 +378,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iReferenceUsage.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iReferenceUsage.mayTimeVary); - foreach (var item in iReferenceUsage.OwnedRelationship) + writer.WriteStartArray("member"u8); + + foreach (var item in iReferenceUsage.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -141,13 +393,940 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iReferenceUsage.OwningRelationship.HasValue) + foreach (var item in iReferenceUsage.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceUsage.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iReferenceUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iReferenceUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iReferenceUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iReferenceUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iReferenceUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iReferenceUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iReferenceUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iReferenceUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iReferenceUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iReferenceUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iReferenceUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iReferenceUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iReferenceUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iReferenceUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iReferenceUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iReferenceUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iReferenceUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iReferenceUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iReferenceUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iReferenceUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iReferenceUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iReferenceUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iReferenceUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iReferenceUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iReferenceUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iReferenceUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iReferenceUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iReferenceUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iReferenceUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iReferenceUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iReferenceUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iReferenceUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iReferenceUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iReferenceUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iReferenceUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iReferenceUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iReferenceUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iReferenceUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iReferenceUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iReferenceUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iReferenceUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iReferenceUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iReferenceUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iReferenceUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iReferenceUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iReferenceUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iReferenceUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iReferenceUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iReferenceUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iReferenceUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iReferenceUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iReferenceUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iReferenceUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iReferenceUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iReferenceUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iReferenceUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iReferenceUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iReferenceUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iReferenceUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iReferenceUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iReferenceUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iReferenceUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iReferenceUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iReferenceUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iReferenceUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iReferenceUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iReferenceUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iReferenceUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iReferenceUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IReferenceUsage iReferenceUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iReferenceUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iReferenceUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iReferenceUsage.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iReferenceUsage.Direction.HasValue) + { + writer.WriteStringValue(iReferenceUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iReferenceUsage.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iReferenceUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iReferenceUsage.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iReferenceUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iReferenceUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iReferenceUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iReferenceUsage.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iReferenceUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iReferenceUsage.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iReferenceUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iReferenceUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iReferenceUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iReferenceUsage.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iReferenceUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iReferenceUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceUsage.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -155,7 +1334,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingDefinitionSerializer.cs index 0f57a2633..e42003792 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class RenderingDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IRenderingDefinition iRenderingDefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iRenderingDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iRenderingDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iRenderingDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IRenderingDefinition iRenderingDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iRenderingDefinition.AliasIds) @@ -79,27 +105,177 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iRenderingDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iRenderingDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iRenderingDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iRenderingDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iRenderingDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iRenderingDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iRenderingDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iRenderingDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iRenderingDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iRenderingDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iRenderingDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iRenderingDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iRenderingDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iRenderingDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iRenderingDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iRenderingDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iRenderingDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iRenderingDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iRenderingDefinition.isLibraryElement); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iRenderingDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iRenderingDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iRenderingDefinition.OwnedRelationship) + foreach (var item in iRenderingDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +285,764 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iRenderingDefinition.OwningRelationship.HasValue) + foreach (var item in iRenderingDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRenderingDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iRenderingDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iRenderingDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iRenderingDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iRenderingDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iRenderingDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iRenderingDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iRenderingDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iRenderingDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iRenderingDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iRenderingDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iRenderingDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iRenderingDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iRenderingDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iRenderingDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iRenderingDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iRenderingDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iRenderingDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iRenderingDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iRenderingDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iRenderingDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iRenderingDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iRenderingDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iRenderingDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iRenderingDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iRenderingDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iRenderingDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iRenderingDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iRenderingDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iRenderingDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iRenderingDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iRenderingDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iRenderingDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iRenderingDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iRenderingDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iRenderingDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iRenderingDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iRenderingDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iRenderingDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iRenderingDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iRenderingDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iRenderingDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iRenderingDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iRenderingDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iRenderingDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iRenderingDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iRenderingDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iRenderingDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iRenderingDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iRenderingDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iRenderingDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iRenderingDefinition.qualifiedName); + + writer.WriteStartArray("rendering"u8); + + foreach (var item in iRenderingDefinition.rendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iRenderingDefinition.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iRenderingDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iRenderingDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iRenderingDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iRenderingDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iRenderingDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IRenderingDefinition iRenderingDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iRenderingDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iRenderingDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRenderingDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iRenderingDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iRenderingDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iRenderingDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iRenderingDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iRenderingDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iRenderingDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iRenderingDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iRenderingDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1050,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingUsageSerializer.cs index c67b4409f..058a23b35 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingUsageSerializer.cs @@ -49,21 +49,1278 @@ internal static class RenderingUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IRenderingUsage iRenderingUsage) { - throw new ArgumentException("The object shall be an IRenderingUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IRenderingUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("RenderingUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iRenderingUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iRenderingUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IRenderingUsage iRenderingUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iRenderingUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iRenderingUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iRenderingUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iRenderingUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRenderingUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iRenderingUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iRenderingUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iRenderingUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iRenderingUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iRenderingUsage.Direction.HasValue) + { + writer.WriteStringValue(iRenderingUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iRenderingUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iRenderingUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iRenderingUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iRenderingUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iRenderingUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iRenderingUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iRenderingUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iRenderingUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iRenderingUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iRenderingUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iRenderingUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iRenderingUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iRenderingUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iRenderingUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iRenderingUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iRenderingUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iRenderingUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iRenderingUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iRenderingUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iRenderingUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iRenderingUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iRenderingUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iRenderingUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iRenderingUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iRenderingUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iRenderingUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iRenderingUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iRenderingUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iRenderingUsage.IsVariation); + + writer.WriteStartArray("itemDefinition"u8); + + foreach (var item in iRenderingUsage.itemDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iRenderingUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iRenderingUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iRenderingUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iRenderingUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iRenderingUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iRenderingUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iRenderingUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iRenderingUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iRenderingUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iRenderingUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iRenderingUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iRenderingUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iRenderingUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iRenderingUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iRenderingUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iRenderingUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iRenderingUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iRenderingUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iRenderingUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iRenderingUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iRenderingUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iRenderingUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iRenderingUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iRenderingUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iRenderingUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iRenderingUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iRenderingUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iRenderingUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iRenderingUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iRenderingUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iRenderingUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iRenderingUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iRenderingUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iRenderingUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iRenderingUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iRenderingUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iRenderingUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iRenderingUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iRenderingUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iRenderingUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iRenderingUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iRenderingUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iRenderingUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iRenderingUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iRenderingUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iRenderingUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iRenderingUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iRenderingUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iRenderingUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iRenderingUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iRenderingUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iRenderingUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("RenderingUsage"u8); + writer.WriteStartArray("ownedSpecialization"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRenderingUsage.Id); + foreach (var item in iRenderingUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iRenderingUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iRenderingUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iRenderingUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iRenderingUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iRenderingUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iRenderingUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iRenderingUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iRenderingUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iRenderingUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iRenderingUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iRenderingUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iRenderingUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("partDefinition"u8); + + foreach (var item in iRenderingUsage.partDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iRenderingUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iRenderingUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iRenderingUsage.qualifiedName); + + writer.WritePropertyName("renderingDefinition"u8); + + if (iRenderingUsage.renderingDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRenderingUsage.renderingDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iRenderingUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iRenderingUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iRenderingUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iRenderingUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iRenderingUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iRenderingUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iRenderingUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IRenderingUsage iRenderingUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iRenderingUsage.AliasIds) @@ -169,7 +1426,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementConstraintMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementConstraintMembershipSerializer.cs index 579fd189a..1436df696 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementConstraintMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementConstraintMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class RequirementConstraintMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IRequirementConstraintMembership iRequirementConstraintMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iRequirementConstraintMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iRequirementConstraintMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iRequirementConstraintMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IRequirementConstraintMembership iRequirementConstraintMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iRequirementConstraintMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iRequirementConstraintMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iRequirementConstraintMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iRequirementConstraintMembership.ElementId); @@ -88,6 +126,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iRequirementConstraintMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iRequirementConstraintMembership.isLibraryElement); + writer.WritePropertyName("kind"u8); writer.WriteStringValue(iRequirementConstraintMembership.Kind.ToString().ToLower()); @@ -97,12 +138,75 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iRequirementConstraintMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iRequirementConstraintMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iRequirementConstraintMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iRequirementConstraintMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iRequirementConstraintMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iRequirementConstraintMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.ownedConstraint); + writer.WriteEndObject(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iRequirementConstraintMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iRequirementConstraintMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iRequirementConstraintMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iRequirementConstraintMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iRequirementConstraintMembership.OwnedRelatedElement) @@ -127,6 +231,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iRequirementConstraintMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iRequirementConstraintMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iRequirementConstraintMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iRequirementConstraintMembership.OwningRelatedElement.HasValue) @@ -155,6 +301,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iRequirementConstraintMembership.qualifiedName); + + writer.WritePropertyName("referencedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.referencedConstraint); + writer.WriteEndObject(); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iRequirementConstraintMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iRequirementConstraintMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iRequirementConstraintMembership.Source) @@ -179,10 +355,152 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iRequirementConstraintMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iRequirementConstraintMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IRequirementConstraintMembership iRequirementConstraintMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iRequirementConstraintMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iRequirementConstraintMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRequirementConstraintMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iRequirementConstraintMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iRequirementConstraintMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iRequirementConstraintMembership.IsImpliedIncluded); + + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(iRequirementConstraintMembership.Kind.ToString().ToLower()); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iRequirementConstraintMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iRequirementConstraintMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iRequirementConstraintMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iRequirementConstraintMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iRequirementConstraintMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iRequirementConstraintMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iRequirementConstraintMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iRequirementConstraintMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iRequirementConstraintMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementDefinitionSerializer.cs index b72893e53..7757bd62c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementDefinitionSerializer.cs @@ -49,21 +49,1059 @@ internal static class RequirementDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IRequirementDefinition iRequirementDefinition) { - throw new ArgumentException("The object shall be an IRequirementDefinition", nameof(obj)); + throw new ArgumentException("The object shall be an IRequirementDefinition", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("RequirementDefinition"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementDefinition.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iRequirementDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iRequirementDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IRequirementDefinition iRequirementDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iRequirementDefinition.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iRequirementDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("assumedConstraint"u8); + + foreach (var item in iRequirementDefinition.assumedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iRequirementDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRequirementDefinition.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iRequirementDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iRequirementDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iRequirementDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iRequirementDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iRequirementDefinition.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iRequirementDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("expression"u8); + + foreach (var item in iRequirementDefinition.expression) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iRequirementDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iRequirementDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("framedConcern"u8); + + foreach (var item in iRequirementDefinition.framedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iRequirementDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iRequirementDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iRequirementDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iRequirementDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iRequirementDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iRequirementDefinition.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iRequirementDefinition.isConjugated); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iRequirementDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iRequirementDefinition.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iRequirementDefinition.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iRequirementDefinition.isModelLevelEvaluable); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iRequirementDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iRequirementDefinition.IsVariation); + + writer.WriteStartArray("member"u8); + + foreach (var item in iRequirementDefinition.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iRequirementDefinition.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iRequirementDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iRequirementDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iRequirementDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iRequirementDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iRequirementDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iRequirementDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iRequirementDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iRequirementDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iRequirementDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iRequirementDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iRequirementDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iRequirementDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iRequirementDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iRequirementDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iRequirementDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iRequirementDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iRequirementDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iRequirementDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iRequirementDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iRequirementDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iRequirementDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iRequirementDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iRequirementDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iRequirementDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iRequirementDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iRequirementDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iRequirementDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iRequirementDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iRequirementDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iRequirementDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iRequirementDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iRequirementDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iRequirementDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iRequirementDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iRequirementDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iRequirementDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iRequirementDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iRequirementDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iRequirementDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iRequirementDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iRequirementDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iRequirementDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iRequirementDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iRequirementDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iRequirementDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iRequirementDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iRequirementDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iRequirementDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iRequirementDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iRequirementDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iRequirementDefinition.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iRequirementDefinition.qualifiedName); + + writer.WritePropertyName("reqId"u8); + writer.WriteStringValue(iRequirementDefinition.ReqId); + + writer.WriteStartArray("requiredConstraint"u8); + + foreach (var item in iRequirementDefinition.requiredConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } + writer.WriteEndArray(); + + writer.WritePropertyName("result"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementDefinition.result); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("RequirementDefinition"u8); + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iRequirementDefinition.shortName); + + writer.WriteStartArray("stakeholderParameter"u8); + + foreach (var item in iRequirementDefinition.stakeholderParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("step"u8); + foreach (var item in iRequirementDefinition.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementDefinition.Id); + writer.WriteStringValue(iRequirementDefinition.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("text"u8); + + foreach (var item in iRequirementDefinition.text) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iRequirementDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iRequirementDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iRequirementDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iRequirementDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iRequirementDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IRequirementDefinition iRequirementDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iRequirementDefinition.AliasIds) @@ -126,7 +1164,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("reqId"u8); writer.WriteStringValue(iRequirementDefinition.ReqId); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementUsageSerializer.cs index fc4226b49..d540eaab0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementUsageSerializer.cs @@ -49,21 +49,1407 @@ internal static class RequirementUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IRequirementUsage iRequirementUsage) { - throw new ArgumentException("The object shall be an IRequirementUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IRequirementUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("RequirementUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iRequirementUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iRequirementUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequirementUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iRequirementUsage.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iRequirementUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("assumedConstraint"u8); + + foreach (var item in iRequirementUsage.assumedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iRequirementUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iRequirementUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("constraintDefinition"u8); + + if (iRequirementUsage.constraintDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.constraintDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("crossFeature"u8); + + if (iRequirementUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iRequirementUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRequirementUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iRequirementUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iRequirementUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iRequirementUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iRequirementUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iRequirementUsage.Direction.HasValue) + { + writer.WriteStringValue(iRequirementUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iRequirementUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iRequirementUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iRequirementUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iRequirementUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iRequirementUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iRequirementUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iRequirementUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("framedConcern"u8); + + foreach (var item in iRequirementUsage.framedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iRequirementUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iRequirementUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iRequirementUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iRequirementUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iRequirementUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iRequirementUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iRequirementUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iRequirementUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iRequirementUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iRequirementUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iRequirementUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iRequirementUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iRequirementUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iRequirementUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iRequirementUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iRequirementUsage.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iRequirementUsage.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iRequirementUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iRequirementUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iRequirementUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iRequirementUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iRequirementUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iRequirementUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iRequirementUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iRequirementUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iRequirementUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iRequirementUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iRequirementUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iRequirementUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iRequirementUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iRequirementUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iRequirementUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iRequirementUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iRequirementUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iRequirementUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iRequirementUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iRequirementUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iRequirementUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iRequirementUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iRequirementUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iRequirementUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iRequirementUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iRequirementUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iRequirementUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iRequirementUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iRequirementUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iRequirementUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iRequirementUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iRequirementUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iRequirementUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iRequirementUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iRequirementUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iRequirementUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iRequirementUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iRequirementUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iRequirementUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iRequirementUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iRequirementUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iRequirementUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iRequirementUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iRequirementUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iRequirementUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iRequirementUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iRequirementUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iRequirementUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iRequirementUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iRequirementUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iRequirementUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iRequirementUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iRequirementUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iRequirementUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iRequirementUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iRequirementUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iRequirementUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iRequirementUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iRequirementUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iRequirementUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iRequirementUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iRequirementUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iRequirementUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iRequirementUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iRequirementUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iRequirementUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iRequirementUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iRequirementUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iRequirementUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iRequirementUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iRequirementUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iRequirementUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iRequirementUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iRequirementUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iRequirementUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("predicate"u8); + + if (iRequirementUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iRequirementUsage.qualifiedName); + + writer.WritePropertyName("reqId"u8); + writer.WriteStringValue(iRequirementUsage.ReqId); + + writer.WriteStartArray("requiredConstraint"u8); + + foreach (var item in iRequirementUsage.requiredConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("requirementDefinition"u8); + + if (iRequirementUsage.requirementDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.requirementDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } + writer.WritePropertyName("result"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.result); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("RequirementUsage"u8); + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iRequirementUsage.shortName); + + writer.WriteStartArray("stakeholderParameter"u8); + + foreach (var item in iRequirementUsage.stakeholderParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementUsage.Id); + writer.WriteStringValue(iRequirementUsage.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("text"u8); + + foreach (var item in iRequirementUsage.text) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iRequirementUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iRequirementUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iRequirementUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iRequirementUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iRequirementUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iRequirementUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IRequirementUsage iRequirementUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iRequirementUsage.AliasIds) @@ -172,7 +1558,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("reqId"u8); writer.WriteStringValue(iRequirementUsage.ReqId); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementVerificationMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementVerificationMembershipSerializer.cs index 98f3e1368..e68ed91dc 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementVerificationMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementVerificationMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class RequirementVerificationMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IRequirementVerificationMembership iRequirementVerificationMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iRequirementVerificationMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iRequirementVerificationMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iRequirementVerificationMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IRequirementVerificationMembership iRequirementVerificationMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iRequirementVerificationMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iRequirementVerificationMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iRequirementVerificationMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iRequirementVerificationMembership.ElementId); @@ -88,6 +126,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iRequirementVerificationMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iRequirementVerificationMembership.isLibraryElement); + writer.WritePropertyName("kind"u8); writer.WriteStringValue(iRequirementVerificationMembership.Kind.ToString().ToLower()); @@ -97,12 +138,75 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iRequirementVerificationMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iRequirementVerificationMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iRequirementVerificationMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iRequirementVerificationMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iRequirementVerificationMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iRequirementVerificationMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.ownedConstraint); + writer.WriteEndObject(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iRequirementVerificationMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iRequirementVerificationMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iRequirementVerificationMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iRequirementVerificationMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iRequirementVerificationMembership.OwnedRelatedElement) @@ -127,6 +231,54 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("ownedRequirement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.ownedRequirement); + writer.WriteEndObject(); + + writer.WritePropertyName("owner"u8); + + if (iRequirementVerificationMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iRequirementVerificationMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iRequirementVerificationMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iRequirementVerificationMembership.OwningRelatedElement.HasValue) @@ -155,6 +307,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iRequirementVerificationMembership.qualifiedName); + + writer.WritePropertyName("referencedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.referencedConstraint); + writer.WriteEndObject(); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iRequirementVerificationMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iRequirementVerificationMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iRequirementVerificationMembership.Source) @@ -179,10 +361,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iRequirementVerificationMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("verifiedRequirement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.verifiedRequirement); + writer.WriteEndObject(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iRequirementVerificationMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IRequirementVerificationMembership iRequirementVerificationMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iRequirementVerificationMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iRequirementVerificationMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRequirementVerificationMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iRequirementVerificationMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iRequirementVerificationMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iRequirementVerificationMembership.IsImpliedIncluded); + + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(iRequirementVerificationMembership.Kind.ToString().ToLower()); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iRequirementVerificationMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iRequirementVerificationMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iRequirementVerificationMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iRequirementVerificationMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iRequirementVerificationMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iRequirementVerificationMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iRequirementVerificationMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iRequirementVerificationMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iRequirementVerificationMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ResultExpressionMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ResultExpressionMembershipSerializer.cs index af841474c..e6ec5ea9e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ResultExpressionMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ResultExpressionMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class ResultExpressionMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IResultExpressionMembership iResultExpressionMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iResultExpressionMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iResultExpressionMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iResultExpressionMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IResultExpressionMembership iResultExpressionMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iResultExpressionMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iResultExpressionMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iResultExpressionMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iResultExpressionMembership.ElementId); @@ -88,18 +126,78 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iResultExpressionMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iResultExpressionMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iResultExpressionMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iResultExpressionMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iResultExpressionMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iResultExpressionMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iResultExpressionMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iResultExpressionMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iResultExpressionMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iResultExpressionMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iResultExpressionMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iResultExpressionMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iResultExpressionMembership.OwnedRelatedElement) @@ -124,6 +222,54 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("ownedResultExpression"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.ownedResultExpression); + writer.WriteEndObject(); + + writer.WritePropertyName("owner"u8); + + if (iResultExpressionMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iResultExpressionMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iResultExpressionMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iResultExpressionMembership.OwningRelatedElement.HasValue) @@ -152,6 +298,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iResultExpressionMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iResultExpressionMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iResultExpressionMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iResultExpressionMembership.Source) @@ -176,10 +346,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iResultExpressionMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iResultExpressionMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IResultExpressionMembership iResultExpressionMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iResultExpressionMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iResultExpressionMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iResultExpressionMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iResultExpressionMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iResultExpressionMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iResultExpressionMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iResultExpressionMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iResultExpressionMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iResultExpressionMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iResultExpressionMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iResultExpressionMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iResultExpressionMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iResultExpressionMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iResultExpressionMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iResultExpressionMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReturnParameterMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReturnParameterMembershipSerializer.cs index 2564d54f4..5d7a2f911 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReturnParameterMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReturnParameterMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class ReturnParameterMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IReturnParameterMembership iReturnParameterMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iReturnParameterMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iReturnParameterMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iReturnParameterMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IReturnParameterMembership iReturnParameterMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iReturnParameterMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iReturnParameterMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iReturnParameterMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iReturnParameterMembership.ElementId); @@ -88,18 +126,84 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iReturnParameterMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iReturnParameterMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iReturnParameterMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iReturnParameterMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iReturnParameterMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iReturnParameterMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iReturnParameterMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iReturnParameterMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iReturnParameterMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iReturnParameterMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iReturnParameterMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.ownedMemberParameter); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iReturnParameterMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iReturnParameterMembership.OwnedRelatedElement) @@ -124,6 +228,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iReturnParameterMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iReturnParameterMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iReturnParameterMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iReturnParameterMembership.OwningRelatedElement.HasValue) @@ -152,6 +298,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iReturnParameterMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iReturnParameterMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iReturnParameterMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iReturnParameterMembership.Source) @@ -176,10 +346,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iReturnParameterMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iReturnParameterMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IReturnParameterMembership iReturnParameterMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iReturnParameterMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iReturnParameterMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iReturnParameterMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iReturnParameterMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iReturnParameterMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iReturnParameterMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iReturnParameterMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iReturnParameterMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iReturnParameterMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iReturnParameterMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iReturnParameterMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iReturnParameterMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iReturnParameterMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iReturnParameterMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iReturnParameterMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SatisfyRequirementUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SatisfyRequirementUsageSerializer.cs index f64655a01..c3a1e7e03 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SatisfyRequirementUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SatisfyRequirementUsageSerializer.cs @@ -49,21 +49,1428 @@ internal static class SatisfyRequirementUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ISatisfyRequirementUsage iSatisfyRequirementUsage) { - throw new ArgumentException("The object shall be an ISatisfyRequirementUsage", nameof(obj)); + throw new ArgumentException("The object shall be an ISatisfyRequirementUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("SatisfyRequirementUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iSatisfyRequirementUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iSatisfyRequirementUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsage iSatisfyRequirementUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iSatisfyRequirementUsage.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iSatisfyRequirementUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("assertedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.assertedConstraint); + writer.WriteEndObject(); + + writer.WriteStartArray("assumedConstraint"u8); + + foreach (var item in iSatisfyRequirementUsage.assumedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iSatisfyRequirementUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iSatisfyRequirementUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("constraintDefinition"u8); + + if (iSatisfyRequirementUsage.constraintDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.constraintDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("crossFeature"u8); + + if (iSatisfyRequirementUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iSatisfyRequirementUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iSatisfyRequirementUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSatisfyRequirementUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iSatisfyRequirementUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iSatisfyRequirementUsage.Direction.HasValue) + { + writer.WriteStringValue(iSatisfyRequirementUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iSatisfyRequirementUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iSatisfyRequirementUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iSatisfyRequirementUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iSatisfyRequirementUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iSatisfyRequirementUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iSatisfyRequirementUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("framedConcern"u8); + + foreach (var item in iSatisfyRequirementUsage.framedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iSatisfyRequirementUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iSatisfyRequirementUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iSatisfyRequirementUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iSatisfyRequirementUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iSatisfyRequirementUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iSatisfyRequirementUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iSatisfyRequirementUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.isModelLevelEvaluable); + + writer.WritePropertyName("isNegated"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsNegated); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iSatisfyRequirementUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iSatisfyRequirementUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iSatisfyRequirementUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iSatisfyRequirementUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iSatisfyRequirementUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iSatisfyRequirementUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iSatisfyRequirementUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iSatisfyRequirementUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iSatisfyRequirementUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iSatisfyRequirementUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iSatisfyRequirementUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iSatisfyRequirementUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iSatisfyRequirementUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iSatisfyRequirementUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iSatisfyRequirementUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iSatisfyRequirementUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iSatisfyRequirementUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iSatisfyRequirementUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iSatisfyRequirementUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iSatisfyRequirementUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iSatisfyRequirementUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iSatisfyRequirementUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("predicate"u8); + + if (iSatisfyRequirementUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.qualifiedName); + + writer.WritePropertyName("reqId"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.ReqId); + + writer.WriteStartArray("requiredConstraint"u8); + + foreach (var item in iSatisfyRequirementUsage.requiredConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("requirementDefinition"u8); + + if (iSatisfyRequirementUsage.requirementDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.requirementDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("result"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.result); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("SatisfyRequirementUsage"u8); + writer.WritePropertyName("satisfiedRequirement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.satisfiedRequirement); + writer.WriteEndObject(); + writer.WritePropertyName("satisfyingFeature"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSatisfyRequirementUsage.Id); + writer.WriteStringValue(iSatisfyRequirementUsage.satisfyingFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.shortName); + + writer.WriteStartArray("stakeholderParameter"u8); + + foreach (var item in iSatisfyRequirementUsage.stakeholderParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("text"u8); + + foreach (var item in iSatisfyRequirementUsage.text) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iSatisfyRequirementUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iSatisfyRequirementUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iSatisfyRequirementUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iSatisfyRequirementUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iSatisfyRequirementUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iSatisfyRequirementUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ISatisfyRequirementUsage iSatisfyRequirementUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iSatisfyRequirementUsage.AliasIds) @@ -175,7 +1582,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("reqId"u8); writer.WriteStringValue(iSatisfyRequirementUsage.ReqId); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SelectExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SelectExpressionSerializer.cs index 65796492b..7628ed59c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SelectExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SelectExpressionSerializer.cs @@ -49,21 +49,847 @@ internal static class SelectExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ISelectExpression iSelectExpression) { - throw new ArgumentException("The object shall be an ISelectExpression", nameof(obj)); + throw new ArgumentException("The object shall be an ISelectExpression", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("SelectExpression"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iSelectExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iSelectExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ISelectExpression iSelectExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iSelectExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("argument"u8); + + foreach (var item in iSelectExpression.argument) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iSelectExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iSelectExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iSelectExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iSelectExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSelectExpression.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iSelectExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSelectExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iSelectExpression.Direction.HasValue) + { + writer.WriteStringValue(iSelectExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iSelectExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iSelectExpression.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iSelectExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iSelectExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iSelectExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iSelectExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iSelectExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iSelectExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iSelectExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iSelectExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iSelectExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iSelectExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("instantiatedType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.instantiatedType); + writer.WriteEndObject(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iSelectExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iSelectExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iSelectExpression.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iSelectExpression.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iSelectExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iSelectExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iSelectExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iSelectExpression.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iSelectExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iSelectExpression.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iSelectExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iSelectExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iSelectExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iSelectExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSelectExpression.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iSelectExpression.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iSelectExpression.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iSelectExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iSelectExpression.name); + + writer.WritePropertyName("operator"u8); + writer.WriteStringValue(iSelectExpression.Operator); + + writer.WriteStartArray("output"u8); + + foreach (var item in iSelectExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iSelectExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iSelectExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iSelectExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iSelectExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iSelectExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iSelectExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iSelectExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iSelectExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iSelectExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iSelectExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iSelectExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("SelectExpression"u8); + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iSelectExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iSelectExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iSelectExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iSelectExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iSelectExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iSelectExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iSelectExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iSelectExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iSelectExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iSelectExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iSelectExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iSelectExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iSelectExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iSelectExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iSelectExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iSelectExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iSelectExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iSelectExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSelectExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iSelectExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iSelectExpression.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSelectExpression.Id); + writer.WriteStringValue(iSelectExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iSelectExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iSelectExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iSelectExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iSelectExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ISelectExpression iSelectExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iSelectExpression.AliasIds) @@ -155,7 +981,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SendActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SendActionUsageSerializer.cs index 18d79a7c3..37fa218f6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SendActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SendActionUsageSerializer.cs @@ -49,21 +49,1310 @@ internal static class SendActionUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ISendActionUsage iSendActionUsage) { - throw new ArgumentException("The object shall be an ISendActionUsage", nameof(obj)); + throw new ArgumentException("The object shall be an ISendActionUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("SendActionUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iSendActionUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iSendActionUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ISendActionUsage iSendActionUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iSendActionUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iSendActionUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iSendActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iSendActionUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iSendActionUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iSendActionUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSendActionUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iSendActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iSendActionUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSendActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iSendActionUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iSendActionUsage.Direction.HasValue) + { + writer.WriteStringValue(iSendActionUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iSendActionUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iSendActionUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iSendActionUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iSendActionUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iSendActionUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iSendActionUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iSendActionUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iSendActionUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iSendActionUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iSendActionUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iSendActionUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iSendActionUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iSendActionUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iSendActionUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iSendActionUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iSendActionUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iSendActionUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iSendActionUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iSendActionUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iSendActionUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iSendActionUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iSendActionUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iSendActionUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iSendActionUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iSendActionUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iSendActionUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iSendActionUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSendActionUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iSendActionUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iSendActionUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iSendActionUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iSendActionUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iSendActionUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iSendActionUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iSendActionUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iSendActionUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iSendActionUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iSendActionUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iSendActionUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iSendActionUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iSendActionUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iSendActionUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iSendActionUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iSendActionUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iSendActionUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iSendActionUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iSendActionUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iSendActionUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iSendActionUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iSendActionUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iSendActionUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iSendActionUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iSendActionUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iSendActionUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iSendActionUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iSendActionUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iSendActionUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iSendActionUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iSendActionUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iSendActionUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iSendActionUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iSendActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iSendActionUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iSendActionUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iSendActionUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iSendActionUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iSendActionUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iSendActionUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iSendActionUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iSendActionUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iSendActionUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iSendActionUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iSendActionUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iSendActionUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iSendActionUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iSendActionUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iSendActionUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iSendActionUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iSendActionUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iSendActionUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iSendActionUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iSendActionUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iSendActionUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("SendActionUsage"u8); + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iSendActionUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iSendActionUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iSendActionUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iSendActionUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iSendActionUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iSendActionUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iSendActionUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iSendActionUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iSendActionUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iSendActionUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iSendActionUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iSendActionUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("payloadArgument"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSendActionUsage.Id); + writer.WriteStringValue(iSendActionUsage.payloadArgument); + writer.WriteEndObject(); + + writer.WritePropertyName("portionKind"u8); + + if (iSendActionUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iSendActionUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iSendActionUsage.qualifiedName); + + writer.WritePropertyName("receiverArgument"u8); + + if (iSendActionUsage.receiverArgument.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.receiverArgument.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("senderArgument"u8); + + if (iSendActionUsage.senderArgument.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSendActionUsage.senderArgument.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iSendActionUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iSendActionUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iSendActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iSendActionUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iSendActionUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iSendActionUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iSendActionUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ISendActionUsage iSendActionUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iSendActionUsage.AliasIds) @@ -169,7 +1458,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SerializationProvider.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SerializationProvider.cs index 3f9b0991d..fa8b0224f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SerializationProvider.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SerializationProvider.cs @@ -1,247 +1,247 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Json.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Text.Json; - - using SysML2.NET.Serializer.Json; - - /// - /// Delegate provider for the appropriate serialization method to serialize a - /// - internal static class SerializationProvider - { - /// - /// Caches the delegate for the - /// that is to be serialized - /// - private static readonly Dictionary> SerializerActionMap = new Dictionary> - { - { typeof(SysML2.NET.Core.DTO.Systems.Actions.AcceptActionUsage), AcceptActionUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.ActionDefinition), ActionDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.ActionUsage), ActionUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Requirements.ActorMembership), ActorMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Allocations.AllocationDefinition), AllocationDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Allocations.AllocationUsage), AllocationUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.AnalysisCases.AnalysisCaseDefinition), AnalysisCaseDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.AnalysisCases.AnalysisCaseUsage), AnalysisCaseUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Root.Annotations.AnnotatingElement), AnnotatingElementSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Root.Annotations.Annotation), AnnotationSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Constraints.AssertConstraintUsage), AssertConstraintUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.AssignmentActionUsage), AssignmentActionUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Associations.Association), AssociationSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Associations.AssociationStructure), AssociationStructureSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Attributes.AttributeDefinition), AttributeDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Attributes.AttributeUsage), AttributeUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Behaviors.Behavior), BehaviorSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Connectors.BindingConnector), BindingConnectorSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Connections.BindingConnectorAsUsage), BindingConnectorAsUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Functions.BooleanExpression), BooleanExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Calculations.CalculationDefinition), CalculationDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Calculations.CalculationUsage), CalculationUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Cases.CaseDefinition), CaseDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Cases.CaseUsage), CaseUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Classes.Class), ClassSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Classifiers.Classifier), ClassifierSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.CollectExpression), CollectExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Root.Annotations.Comment), CommentSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Requirements.ConcernDefinition), ConcernDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Requirements.ConcernUsage), ConcernUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Ports.ConjugatedPortDefinition), ConjugatedPortDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Ports.ConjugatedPortTyping), ConjugatedPortTypingSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Types.Conjugation), ConjugationSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Connections.ConnectionDefinition), ConnectionDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Connections.ConnectionUsage), ConnectionUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Connectors.Connector), ConnectorSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Constraints.ConstraintDefinition), ConstraintDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Constraints.ConstraintUsage), ConstraintUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.ConstructorExpression), ConstructorExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Features.CrossSubsetting), CrossSubsettingSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.DataTypes.DataType), DataTypeSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.DecisionNode), DecisionNodeSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.Definition), DefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Root.Dependencies.Dependency), DependencySerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Types.Differencing), DifferencingSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Types.Disjoining), DisjoiningSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Root.Annotations.Documentation), DocumentationSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Packages.ElementFilterMembership), ElementFilterMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Features.EndFeatureMembership), EndFeatureMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Enumerations.EnumerationDefinition), EnumerationDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Enumerations.EnumerationUsage), EnumerationUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Occurrences.EventOccurrenceUsage), EventOccurrenceUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.States.ExhibitStateUsage), ExhibitStateUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Functions.Expression), ExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Features.Feature), FeatureSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.FeatureChainExpression), FeatureChainExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Features.FeatureChaining), FeatureChainingSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Features.FeatureInverting), FeatureInvertingSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Types.FeatureMembership), FeatureMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.FeatureReferenceExpression), FeatureReferenceExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Features.FeatureTyping), FeatureTypingSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.FeatureValues.FeatureValue), FeatureValueSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Interactions.Flow), FlowSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Flows.FlowDefinition), FlowDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Interactions.FlowEnd), FlowEndSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Flows.FlowUsage), FlowUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.ForkNode), ForkNodeSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.ForLoopActionUsage), ForLoopActionUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Requirements.FramedConcernMembership), FramedConcernMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Functions.Function), FunctionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.IfActionUsage), IfActionUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.UseCases.IncludeUseCaseUsage), IncludeUseCaseUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.IndexExpression), IndexExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Interactions.Interaction), InteractionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Interfaces.InterfaceDefinition), InterfaceDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Interfaces.InterfaceUsage), InterfaceUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Types.Intersecting), IntersectingSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Functions.Invariant), InvariantSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.InvocationExpression), InvocationExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Items.ItemDefinition), ItemDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Items.ItemUsage), ItemUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.JoinNode), JoinNodeSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Packages.LibraryPackage), LibraryPackageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.LiteralBoolean), LiteralBooleanSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.LiteralExpression), LiteralExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.LiteralInfinity), LiteralInfinitySerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.LiteralInteger), LiteralIntegerSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.LiteralRational), LiteralRationalSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.LiteralString), LiteralStringSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Root.Namespaces.Membership), MembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Views.MembershipExpose), MembershipExposeSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Root.Namespaces.MembershipImport), MembershipImportSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.MergeNode), MergeNodeSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Metadata.Metaclass), MetaclassSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.MetadataAccessExpression), MetadataAccessExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Metadata.MetadataDefinition), MetadataDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Metadata.MetadataFeature), MetadataFeatureSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Metadata.MetadataUsage), MetadataUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Types.Multiplicity), MultiplicitySerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Multiplicities.MultiplicityRange), MultiplicityRangeSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Root.Namespaces.Namespace), NamespaceSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Views.NamespaceExpose), NamespaceExposeSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Root.Namespaces.NamespaceImport), NamespaceImportSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.NullExpression), NullExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Cases.ObjectiveMembership), ObjectiveMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Occurrences.OccurrenceDefinition), OccurrenceDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Occurrences.OccurrenceUsage), OccurrenceUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.OperatorExpression), OperatorExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Root.Namespaces.OwningMembership), OwningMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Packages.Package), PackageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Behaviors.ParameterMembership), ParameterMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Parts.PartDefinition), PartDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Parts.PartUsage), PartUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Interactions.PayloadFeature), PayloadFeatureSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.PerformActionUsage), PerformActionUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Ports.PortConjugation), PortConjugationSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Ports.PortDefinition), PortDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Ports.PortUsage), PortUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Functions.Predicate), PredicateSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Features.Redefinition), RedefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Features.ReferenceSubsetting), ReferenceSubsettingSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.ReferenceUsage), ReferenceUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Views.RenderingDefinition), RenderingDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Views.RenderingUsage), RenderingUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Requirements.RequirementConstraintMembership), RequirementConstraintMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Requirements.RequirementDefinition), RequirementDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Requirements.RequirementUsage), RequirementUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.VerificationCases.RequirementVerificationMembership), RequirementVerificationMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Functions.ResultExpressionMembership), ResultExpressionMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Functions.ReturnParameterMembership), ReturnParameterMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Requirements.SatisfyRequirementUsage), SatisfyRequirementUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.SelectExpression), SelectExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.SendActionUsage), SendActionUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Types.Specialization), SpecializationSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Requirements.StakeholderMembership), StakeholderMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.States.StateDefinition), StateDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.States.StateSubactionMembership), StateSubactionMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.States.StateUsage), StateUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Behaviors.Step), StepSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Structures.Structure), StructureSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Classifiers.Subclassification), SubclassificationSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Requirements.SubjectMembership), SubjectMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Features.Subsetting), SubsettingSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Connectors.Succession), SuccessionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Connections.SuccessionAsUsage), SuccessionAsUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Kernel.Interactions.SuccessionFlow), SuccessionFlowSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Flows.SuccessionFlowUsage), SuccessionFlowUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.TerminateActionUsage), TerminateActionUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Root.Annotations.TextualRepresentation), TextualRepresentationSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.States.TransitionFeatureMembership), TransitionFeatureMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.States.TransitionUsage), TransitionUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.TriggerInvocationExpression), TriggerInvocationExpressionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Types.Type), TypeSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Features.TypeFeaturing), TypeFeaturingSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Core.Types.Unioning), UnioningSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.Usage), UsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.UseCases.UseCaseDefinition), UseCaseDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.UseCases.UseCaseUsage), UseCaseUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.VariantMembership), VariantMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.VerificationCases.VerificationCaseDefinition), VerificationCaseDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.VerificationCases.VerificationCaseUsage), VerificationCaseUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Views.ViewDefinition), ViewDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Views.ViewpointDefinition), ViewpointDefinitionSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Views.ViewpointUsage), ViewpointUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Views.ViewRenderingMembership), ViewRenderingMembershipSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Views.ViewUsage), ViewUsageSerializer.Serialize }, - { typeof(SysML2.NET.Core.DTO.Systems.Actions.WhileLoopActionUsage), WhileLoopActionUsageSerializer.Serialize }, - }; - - /// - /// Provides the delegate for the - /// that is to be serialized - /// - /// - /// The subject that is to be serialized - /// - /// - /// A Delegate of - /// - /// - /// Thrown when the is not supported. - /// - internal static Action Provide(System.Type type) - { - return !SerializerActionMap.TryGetValue(type, out var action) ? throw new NotSupportedException($"The {type.Name} is not supported by the SerializationProvider.") : action; - } - - /// - /// Asserts whether the is supported by the provider - /// - /// - /// The for which support is asserted - /// - /// - internal static bool IsTypeSupported(System.Type type) - { - return SerializerActionMap.ContainsKey(type); - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2025 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +// ------------------------------------------------------------------------------------------------ +// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Serializer.Json.Core.DTO +{ + using System; + using System.Collections.Generic; + using System.Text.Json; + + using SysML2.NET.Serializer.Json; + + /// + /// Delegate provider for the appropriate serialization method to serialize a + /// + internal static class SerializationProvider + { + /// + /// Caches the delegate for the + /// that is to be serialized + /// + private static readonly Dictionary> SerializerActionMap = new Dictionary> + { + { typeof(SysML2.NET.Core.DTO.Systems.Actions.AcceptActionUsage), AcceptActionUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.ActionDefinition), ActionDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.ActionUsage), ActionUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Requirements.ActorMembership), ActorMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Allocations.AllocationDefinition), AllocationDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Allocations.AllocationUsage), AllocationUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.AnalysisCases.AnalysisCaseDefinition), AnalysisCaseDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.AnalysisCases.AnalysisCaseUsage), AnalysisCaseUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Root.Annotations.AnnotatingElement), AnnotatingElementSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Root.Annotations.Annotation), AnnotationSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Constraints.AssertConstraintUsage), AssertConstraintUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.AssignmentActionUsage), AssignmentActionUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Associations.Association), AssociationSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Associations.AssociationStructure), AssociationStructureSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Attributes.AttributeDefinition), AttributeDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Attributes.AttributeUsage), AttributeUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Behaviors.Behavior), BehaviorSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Connectors.BindingConnector), BindingConnectorSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Connections.BindingConnectorAsUsage), BindingConnectorAsUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Functions.BooleanExpression), BooleanExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Calculations.CalculationDefinition), CalculationDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Calculations.CalculationUsage), CalculationUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Cases.CaseDefinition), CaseDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Cases.CaseUsage), CaseUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Classes.Class), ClassSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Classifiers.Classifier), ClassifierSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.CollectExpression), CollectExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Root.Annotations.Comment), CommentSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Requirements.ConcernDefinition), ConcernDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Requirements.ConcernUsage), ConcernUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Ports.ConjugatedPortDefinition), ConjugatedPortDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Ports.ConjugatedPortTyping), ConjugatedPortTypingSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Types.Conjugation), ConjugationSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Connections.ConnectionDefinition), ConnectionDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Connections.ConnectionUsage), ConnectionUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Connectors.Connector), ConnectorSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Constraints.ConstraintDefinition), ConstraintDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Constraints.ConstraintUsage), ConstraintUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.ConstructorExpression), ConstructorExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Features.CrossSubsetting), CrossSubsettingSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.DataTypes.DataType), DataTypeSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.DecisionNode), DecisionNodeSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.Definition), DefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Root.Dependencies.Dependency), DependencySerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Types.Differencing), DifferencingSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Types.Disjoining), DisjoiningSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Root.Annotations.Documentation), DocumentationSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Packages.ElementFilterMembership), ElementFilterMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Features.EndFeatureMembership), EndFeatureMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Enumerations.EnumerationDefinition), EnumerationDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Enumerations.EnumerationUsage), EnumerationUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Occurrences.EventOccurrenceUsage), EventOccurrenceUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.States.ExhibitStateUsage), ExhibitStateUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Functions.Expression), ExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Features.Feature), FeatureSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.FeatureChainExpression), FeatureChainExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Features.FeatureChaining), FeatureChainingSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Features.FeatureInverting), FeatureInvertingSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Types.FeatureMembership), FeatureMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.FeatureReferenceExpression), FeatureReferenceExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Features.FeatureTyping), FeatureTypingSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.FeatureValues.FeatureValue), FeatureValueSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Interactions.Flow), FlowSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Flows.FlowDefinition), FlowDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Interactions.FlowEnd), FlowEndSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Flows.FlowUsage), FlowUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.ForkNode), ForkNodeSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.ForLoopActionUsage), ForLoopActionUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Requirements.FramedConcernMembership), FramedConcernMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Functions.Function), FunctionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.IfActionUsage), IfActionUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.UseCases.IncludeUseCaseUsage), IncludeUseCaseUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.IndexExpression), IndexExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Interactions.Interaction), InteractionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Interfaces.InterfaceDefinition), InterfaceDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Interfaces.InterfaceUsage), InterfaceUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Types.Intersecting), IntersectingSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Functions.Invariant), InvariantSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.InvocationExpression), InvocationExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Items.ItemDefinition), ItemDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Items.ItemUsage), ItemUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.JoinNode), JoinNodeSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Packages.LibraryPackage), LibraryPackageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.LiteralBoolean), LiteralBooleanSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.LiteralExpression), LiteralExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.LiteralInfinity), LiteralInfinitySerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.LiteralInteger), LiteralIntegerSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.LiteralRational), LiteralRationalSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.LiteralString), LiteralStringSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Root.Namespaces.Membership), MembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Views.MembershipExpose), MembershipExposeSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Root.Namespaces.MembershipImport), MembershipImportSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.MergeNode), MergeNodeSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Metadata.Metaclass), MetaclassSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.MetadataAccessExpression), MetadataAccessExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Metadata.MetadataDefinition), MetadataDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Metadata.MetadataFeature), MetadataFeatureSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Metadata.MetadataUsage), MetadataUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Types.Multiplicity), MultiplicitySerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Multiplicities.MultiplicityRange), MultiplicityRangeSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Root.Namespaces.Namespace), NamespaceSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Views.NamespaceExpose), NamespaceExposeSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Root.Namespaces.NamespaceImport), NamespaceImportSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.NullExpression), NullExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Cases.ObjectiveMembership), ObjectiveMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Occurrences.OccurrenceDefinition), OccurrenceDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Occurrences.OccurrenceUsage), OccurrenceUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.OperatorExpression), OperatorExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Root.Namespaces.OwningMembership), OwningMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Packages.Package), PackageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Behaviors.ParameterMembership), ParameterMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Parts.PartDefinition), PartDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Parts.PartUsage), PartUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Interactions.PayloadFeature), PayloadFeatureSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.PerformActionUsage), PerformActionUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Ports.PortConjugation), PortConjugationSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Ports.PortDefinition), PortDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Ports.PortUsage), PortUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Functions.Predicate), PredicateSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Features.Redefinition), RedefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Features.ReferenceSubsetting), ReferenceSubsettingSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.ReferenceUsage), ReferenceUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Views.RenderingDefinition), RenderingDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Views.RenderingUsage), RenderingUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Requirements.RequirementConstraintMembership), RequirementConstraintMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Requirements.RequirementDefinition), RequirementDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Requirements.RequirementUsage), RequirementUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.VerificationCases.RequirementVerificationMembership), RequirementVerificationMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Functions.ResultExpressionMembership), ResultExpressionMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Functions.ReturnParameterMembership), ReturnParameterMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Requirements.SatisfyRequirementUsage), SatisfyRequirementUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Expressions.SelectExpression), SelectExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.SendActionUsage), SendActionUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Types.Specialization), SpecializationSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Requirements.StakeholderMembership), StakeholderMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.States.StateDefinition), StateDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.States.StateSubactionMembership), StateSubactionMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.States.StateUsage), StateUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Behaviors.Step), StepSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Structures.Structure), StructureSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Classifiers.Subclassification), SubclassificationSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Requirements.SubjectMembership), SubjectMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Features.Subsetting), SubsettingSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Connectors.Succession), SuccessionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Connections.SuccessionAsUsage), SuccessionAsUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Kernel.Interactions.SuccessionFlow), SuccessionFlowSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Flows.SuccessionFlowUsage), SuccessionFlowUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.TerminateActionUsage), TerminateActionUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Root.Annotations.TextualRepresentation), TextualRepresentationSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.States.TransitionFeatureMembership), TransitionFeatureMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.States.TransitionUsage), TransitionUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.TriggerInvocationExpression), TriggerInvocationExpressionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Types.Type), TypeSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Features.TypeFeaturing), TypeFeaturingSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Core.Types.Unioning), UnioningSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.Usage), UsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.UseCases.UseCaseDefinition), UseCaseDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.UseCases.UseCaseUsage), UseCaseUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.VariantMembership), VariantMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.VerificationCases.VerificationCaseDefinition), VerificationCaseDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.VerificationCases.VerificationCaseUsage), VerificationCaseUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Views.ViewDefinition), ViewDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Views.ViewpointDefinition), ViewpointDefinitionSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Views.ViewpointUsage), ViewpointUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Views.ViewRenderingMembership), ViewRenderingMembershipSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Views.ViewUsage), ViewUsageSerializer.Serialize }, + { typeof(SysML2.NET.Core.DTO.Systems.Actions.WhileLoopActionUsage), WhileLoopActionUsageSerializer.Serialize }, + }; + + /// + /// Provides the delegate for the + /// that is to be serialized + /// + /// + /// The subject that is to be serialized + /// + /// + /// A Delegate of + /// + /// + /// Thrown when the is not supported. + /// + internal static Action Provide(System.Type type) + { + return !SerializerActionMap.TryGetValue(type, out var action) ? throw new NotSupportedException($"The {type.Name} is not supported by the SerializationProvider.") : action; + } + + /// + /// Asserts whether the is supported by the provider + /// + /// + /// The for which support is asserted + /// + /// + internal static bool IsTypeSupported(System.Type type) + { + return SerializerActionMap.ContainsKey(type); + } + } +} + +// ------------------------------------------------------------------------------------------------ +// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- +// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SpecializationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SpecializationSerializer.cs index 6bdfaea45..70a5df007 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SpecializationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SpecializationSerializer.cs @@ -49,7 +49,10 @@ internal static class SpecializationSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ISpecialization iSpecialization) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iSpecialization.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iSpecialization, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iSpecialization, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ISpecialization iSpecialization, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iSpecialization.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iSpecialization.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iSpecialization.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSpecialization.ElementId); @@ -94,6 +132,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iSpecialization.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iSpecialization.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iSpecialization.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iSpecialization.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iSpecialization.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iSpecialization.OwnedRelatedElement) @@ -118,6 +186,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iSpecialization.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSpecialization.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iSpecialization.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSpecialization.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iSpecialization.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSpecialization.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iSpecialization.OwningRelatedElement.HasValue) @@ -146,6 +256,38 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iSpecialization.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSpecialization.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iSpecialization.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iSpecialization.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iSpecialization.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iSpecialization.Source) @@ -176,7 +318,143 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iSpecialization.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ISpecialization iSpecialization, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iSpecialization.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iSpecialization.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSpecialization.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iSpecialization.ElementId); + + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSpecialization.General); + writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iSpecialization.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iSpecialization.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iSpecialization.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iSpecialization.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iSpecialization.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSpecialization.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iSpecialization.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSpecialization.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iSpecialization.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSpecialization.Specific); writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iSpecialization.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StakeholderMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StakeholderMembershipSerializer.cs index 4f471ef1b..2d756998f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StakeholderMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StakeholderMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class StakeholderMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IStakeholderMembership iStakeholderMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iStakeholderMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iStakeholderMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iStakeholderMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IStakeholderMembership iStakeholderMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iStakeholderMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iStakeholderMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iStakeholderMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iStakeholderMembership.ElementId); @@ -88,18 +126,84 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iStakeholderMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iStakeholderMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iStakeholderMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iStakeholderMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iStakeholderMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iStakeholderMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iStakeholderMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iStakeholderMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iStakeholderMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iStakeholderMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iStakeholderMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.ownedMemberParameter); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iStakeholderMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iStakeholderMembership.OwnedRelatedElement) @@ -124,6 +228,54 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("ownedStakeholderParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.ownedStakeholderParameter); + writer.WriteEndObject(); + + writer.WritePropertyName("owner"u8); + + if (iStakeholderMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iStakeholderMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iStakeholderMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iStakeholderMembership.OwningRelatedElement.HasValue) @@ -152,6 +304,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iStakeholderMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iStakeholderMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iStakeholderMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iStakeholderMembership.Source) @@ -176,10 +352,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iStakeholderMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iStakeholderMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IStakeholderMembership iStakeholderMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iStakeholderMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iStakeholderMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iStakeholderMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iStakeholderMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iStakeholderMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iStakeholderMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iStakeholderMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iStakeholderMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iStakeholderMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iStakeholderMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iStakeholderMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iStakeholderMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iStakeholderMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iStakeholderMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iStakeholderMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateDefinitionSerializer.cs index 8566fb98d..37c97add6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class StateDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IStateDefinition iStateDefinition) { @@ -64,6 +67,41 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iStateDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iStateDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iStateDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IStateDefinition iStateDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("action"u8); + + foreach (var item in iStateDefinition.action) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("aliasIds"u8); foreach (var item in iStateDefinition.AliasIds) @@ -79,18 +117,210 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iStateDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iStateDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iStateDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iStateDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("doAction"u8); + + if (iStateDefinition.doAction.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateDefinition.doAction.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iStateDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iStateDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iStateDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("entryAction"u8); + + if (iStateDefinition.entryAction.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateDefinition.entryAction.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("exitAction"u8); + + if (iStateDefinition.exitAction.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateDefinition.exitAction.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iStateDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iStateDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iStateDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iStateDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iStateDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iStateDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iStateDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iStateDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iStateDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iStateDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iStateDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iStateDefinition.isLibraryElement); + writer.WritePropertyName("isParallel"u8); writer.WriteBooleanValue(iStateDefinition.IsParallel); @@ -100,9 +330,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iStateDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iStateDefinition.OwnedRelationship) + foreach (var item in iStateDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -112,13 +342,791 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iStateDefinition.OwningRelationship.HasValue) + foreach (var item in iStateDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStateDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iStateDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iStateDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iStateDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iStateDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iStateDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iStateDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iStateDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iStateDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iStateDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iStateDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iStateDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iStateDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iStateDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iStateDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iStateDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iStateDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iStateDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iStateDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iStateDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iStateDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iStateDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iStateDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iStateDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iStateDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iStateDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iStateDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iStateDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iStateDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iStateDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iStateDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iStateDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iStateDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iStateDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iStateDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iStateDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iStateDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iStateDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iStateDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iStateDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iStateDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iStateDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iStateDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iStateDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iStateDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iStateDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iStateDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iStateDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iStateDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iStateDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iStateDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iStateDefinition.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iStateDefinition.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iStateDefinition.shortName); + + writer.WriteStartArray("state"u8); + + foreach (var item in iStateDefinition.state) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("step"u8); + + foreach (var item in iStateDefinition.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iStateDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iStateDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iStateDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iStateDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iStateDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IStateDefinition iStateDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iStateDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iStateDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iStateDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iStateDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iStateDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iStateDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iStateDefinition.IsIndividual); + + writer.WritePropertyName("isParallel"u8); + writer.WriteBooleanValue(iStateDefinition.IsParallel); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iStateDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iStateDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iStateDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iStateDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -126,7 +1134,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateSubactionMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateSubactionMembershipSerializer.cs index 3f1d70744..d22eb9832 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateSubactionMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateSubactionMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class StateSubactionMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IStateSubactionMembership iStateSubactionMembership) { @@ -64,6 +67,35 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iStateSubactionMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iStateSubactionMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iStateSubactionMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IStateSubactionMembership iStateSubactionMembership, Utf8JsonWriter writer) + { + writer.WritePropertyName("action"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.action); + writer.WriteEndObject(); + writer.WriteStartArray("aliasIds"u8); foreach (var item in iStateSubactionMembership.AliasIds) @@ -79,6 +111,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iStateSubactionMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iStateSubactionMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iStateSubactionMembership.ElementId); @@ -88,6 +132,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iStateSubactionMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iStateSubactionMembership.isLibraryElement); + writer.WritePropertyName("kind"u8); writer.WriteStringValue(iStateSubactionMembership.Kind.ToString().ToLower()); @@ -97,12 +144,69 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iStateSubactionMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iStateSubactionMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iStateSubactionMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iStateSubactionMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iStateSubactionMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iStateSubactionMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iStateSubactionMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iStateSubactionMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iStateSubactionMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iStateSubactionMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iStateSubactionMembership.OwnedRelatedElement) @@ -127,6 +231,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iStateSubactionMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iStateSubactionMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iStateSubactionMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iStateSubactionMembership.OwningRelatedElement.HasValue) @@ -155,6 +301,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iStateSubactionMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iStateSubactionMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iStateSubactionMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iStateSubactionMembership.Source) @@ -179,10 +349,152 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iStateSubactionMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iStateSubactionMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IStateSubactionMembership iStateSubactionMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iStateSubactionMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iStateSubactionMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iStateSubactionMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iStateSubactionMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iStateSubactionMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iStateSubactionMembership.IsImpliedIncluded); + + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(iStateSubactionMembership.Kind.ToString().ToLower()); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iStateSubactionMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iStateSubactionMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iStateSubactionMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iStateSubactionMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iStateSubactionMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iStateSubactionMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iStateSubactionMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iStateSubactionMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iStateSubactionMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateUsageSerializer.cs index 661f43a42..68a9e645b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateUsageSerializer.cs @@ -49,21 +49,1333 @@ internal static class StateUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IStateUsage iStateUsage) { - throw new ArgumentException("The object shall be an IStateUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IStateUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("StateUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iStateUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iStateUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iStateUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iStateUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iStateUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iStateUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iStateUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iStateUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iStateUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iStateUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iStateUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iStateUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iStateUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iStateUsage.Direction.HasValue) + { + writer.WriteStringValue(iStateUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("doAction"u8); + + if (iStateUsage.doAction.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.doAction.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iStateUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iStateUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iStateUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iStateUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("entryAction"u8); + + if (iStateUsage.entryAction.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.entryAction.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("exitAction"u8); + + if (iStateUsage.exitAction.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.exitAction.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iStateUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iStateUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iStateUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iStateUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iStateUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iStateUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iStateUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iStateUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iStateUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iStateUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iStateUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iStateUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iStateUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iStateUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iStateUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iStateUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iStateUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iStateUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iStateUsage.IsOrdered); + + writer.WritePropertyName("isParallel"u8); + writer.WriteBooleanValue(iStateUsage.IsParallel); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iStateUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iStateUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iStateUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iStateUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iStateUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iStateUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iStateUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iStateUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iStateUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iStateUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iStateUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iStateUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iStateUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iStateUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iStateUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iStateUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iStateUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iStateUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iStateUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iStateUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iStateUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iStateUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iStateUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iStateUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iStateUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iStateUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iStateUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iStateUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iStateUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iStateUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iStateUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iStateUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iStateUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iStateUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iStateUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iStateUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iStateUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iStateUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iStateUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iStateUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iStateUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iStateUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iStateUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iStateUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iStateUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iStateUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iStateUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iStateUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iStateUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iStateUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iStateUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iStateUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iStateUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iStateUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iStateUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iStateUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iStateUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iStateUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("StateUsage"u8); + writer.WriteStartArray("ownedSpecialization"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStateUsage.Id); + foreach (var item in iStateUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iStateUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iStateUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iStateUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iStateUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iStateUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iStateUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iStateUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iStateUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iStateUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iStateUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iStateUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iStateUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iStateUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iStateUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iStateUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iStateUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iStateUsage.shortName); + + writer.WriteStartArray("stateDefinition"u8); + + foreach (var item in iStateUsage.stateDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iStateUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iStateUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iStateUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iStateUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iStateUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iStateUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IStateUsage iStateUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iStateUsage.AliasIds) @@ -172,7 +1484,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StepSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StepSerializer.cs index 4e1b2ced9..a26af8942 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StepSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StepSerializer.cs @@ -49,7 +49,10 @@ internal static class StepSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IStep iStep) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iStep.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iStep, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iStep, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IStep iStep, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iStep.AliasIds) @@ -73,12 +99,74 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iStep.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iStep.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iStep.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iStep.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iStep.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iStep.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iStep.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iStep.Direction.HasValue) @@ -90,15 +178,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iStep.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iStep.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iStep.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iStep.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iStep.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iStep.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iStep.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iStep.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iStep.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iStep.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iStep.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iStep.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iStep.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iStep.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iStep.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iStep.IsConstant); @@ -111,6 +342,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iStep.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iStep.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iStep.IsOrdered); @@ -126,9 +360,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariable"u8); writer.WriteBooleanValue(iStep.IsVariable); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iStep.OwnedRelationship) + foreach (var item in iStep.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -138,13 +372,561 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iStep.OwningRelationship.HasValue) + foreach (var item in iStep.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStep.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iStep.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iStep.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iStep.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iStep.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iStep.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iStep.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iStep.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iStep.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iStep.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iStep.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iStep.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iStep.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iStep.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iStep.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iStep.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iStep.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iStep.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iStep.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iStep.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iStep.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iStep.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iStep.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iStep.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iStep.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iStep.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iStep.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iStep.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iStep.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iStep.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iStep.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iStep.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iStep.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iStep.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iStep.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iStep.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iStep.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iStep.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iStep.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IStep iStep, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iStep.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iStep.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iStep.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iStep.Direction.HasValue) + { + writer.WriteStringValue(iStep.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iStep.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iStep.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iStep.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iStep.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iStep.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iStep.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iStep.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iStep.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iStep.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iStep.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iStep.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iStep.IsVariable); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iStep.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iStep.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStep.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -152,7 +934,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StructureSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StructureSerializer.cs index ae0babb2b..1f94a0a2f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StructureSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StructureSerializer.cs @@ -49,7 +49,10 @@ internal static class StructureSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IStructure iStructure) { @@ -64,6 +67,540 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iStructure.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iStructure, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iStructure, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IStructure iStructure, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iStructure.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iStructure.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iStructure.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iStructure.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iStructure.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iStructure.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iStructure.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iStructure.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iStructure.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iStructure.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iStructure.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iStructure.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iStructure.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iStructure.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iStructure.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iStructure.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iStructure.isConjugated); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iStructure.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iStructure.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iStructure.IsSufficient); + + writer.WriteStartArray("member"u8); + + foreach (var item in iStructure.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iStructure.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iStructure.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStructure.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iStructure.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iStructure.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iStructure.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iStructure.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStructure.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iStructure.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iStructure.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iStructure.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iStructure.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iStructure.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iStructure.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iStructure.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iStructure.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iStructure.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iStructure.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iStructure.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iStructure.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iStructure.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iStructure.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iStructure.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStructure.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iStructure.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStructure.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iStructure.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStructure.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iStructure.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStructure.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iStructure.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iStructure.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iStructure.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iStructure.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IStructure iStructure, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iStructure.AliasIds) @@ -117,7 +654,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubclassificationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubclassificationSerializer.cs index fd214eecc..f7d0327fa 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubclassificationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubclassificationSerializer.cs @@ -49,7 +49,10 @@ internal static class SubclassificationSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ISubclassification iSubclassification) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iSubclassification.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iSubclassification, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iSubclassification, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSubclassification, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iSubclassification.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iSubclassification.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iSubclassification.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubclassification.ElementId); @@ -94,6 +132,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iSubclassification.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iSubclassification.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iSubclassification.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iSubclassification.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iSubclassification.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iSubclassification.OwnedRelatedElement) @@ -118,6 +186,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iSubclassification.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningClassifier"u8); + + if (iSubclassification.owningClassifier.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.owningClassifier.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iSubclassification.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iSubclassification.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iSubclassification.OwningRelatedElement.HasValue) @@ -146,6 +270,38 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iSubclassification.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iSubclassification.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iSubclassification.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iSubclassification.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iSubclassification.Source) @@ -188,7 +344,155 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iSubclassification.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification iSubclassification, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iSubclassification.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iSubclassification.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSubclassification.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iSubclassification.ElementId); + + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.General); + writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iSubclassification.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iSubclassification.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iSubclassification.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iSubclassification.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iSubclassification.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iSubclassification.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iSubclassification.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subclassifier"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.Subclassifier); + writer.WriteEndObject(); + + writer.WritePropertyName("superclassifier"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.Superclassifier); writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iSubclassification.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubjectMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubjectMembershipSerializer.cs index f0152eed2..99dacad08 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubjectMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubjectMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class SubjectMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ISubjectMembership iSubjectMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iSubjectMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iSubjectMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iSubjectMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ISubjectMembership iSubjectMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iSubjectMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iSubjectMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iSubjectMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubjectMembership.ElementId); @@ -88,18 +126,84 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iSubjectMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iSubjectMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iSubjectMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iSubjectMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iSubjectMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iSubjectMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iSubjectMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iSubjectMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iSubjectMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iSubjectMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iSubjectMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.ownedMemberParameter); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iSubjectMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iSubjectMembership.OwnedRelatedElement) @@ -124,6 +228,54 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("ownedSubjectParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.ownedSubjectParameter); + writer.WriteEndObject(); + + writer.WritePropertyName("owner"u8); + + if (iSubjectMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iSubjectMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iSubjectMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iSubjectMembership.OwningRelatedElement.HasValue) @@ -152,6 +304,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iSubjectMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iSubjectMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iSubjectMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iSubjectMembership.Source) @@ -176,10 +352,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iSubjectMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iSubjectMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ISubjectMembership iSubjectMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iSubjectMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iSubjectMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSubjectMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iSubjectMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iSubjectMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iSubjectMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iSubjectMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iSubjectMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iSubjectMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iSubjectMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iSubjectMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iSubjectMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iSubjectMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iSubjectMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iSubjectMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubsettingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubsettingSerializer.cs index 250a92ce1..9f19296f2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubsettingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubsettingSerializer.cs @@ -49,7 +49,10 @@ internal static class SubsettingSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ISubsetting iSubsetting) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iSubsetting.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iSubsetting, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iSubsetting, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ISubsetting iSubsetting, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iSubsetting.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iSubsetting.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iSubsetting.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubsetting.ElementId); @@ -94,6 +132,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iSubsetting.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iSubsetting.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iSubsetting.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iSubsetting.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iSubsetting.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iSubsetting.OwnedRelatedElement) @@ -118,6 +186,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iSubsetting.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeature"u8); + + if (iSubsetting.owningFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.owningFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iSubsetting.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iSubsetting.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iSubsetting.OwningRelatedElement.HasValue) @@ -146,6 +270,38 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iSubsetting.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iSubsetting.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iSubsetting.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iSubsetting.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iSubsetting.Source) @@ -188,7 +344,155 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iSubsetting.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ISubsetting iSubsetting, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iSubsetting.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iSubsetting.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSubsetting.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iSubsetting.ElementId); + + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.General); + writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iSubsetting.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iSubsetting.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iSubsetting.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iSubsetting.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iSubsetting.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iSubsetting.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iSubsetting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.SubsettedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.SubsettingFeature); writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iSubsetting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionAsUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionAsUsageSerializer.cs index b46df4bc7..e9b6ebb53 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionAsUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionAsUsageSerializer.cs @@ -49,21 +49,1341 @@ internal static class SuccessionAsUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ISuccessionAsUsage iSuccessionAsUsage) { - throw new ArgumentException("The object shall be an ISuccessionAsUsage", nameof(obj)); + throw new ArgumentException("The object shall be an ISuccessionAsUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("SuccessionAsUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iSuccessionAsUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iSuccessionAsUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ISuccessionAsUsage iSuccessionAsUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iSuccessionAsUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("association"u8); + + foreach (var item in iSuccessionAsUsage.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iSuccessionAsUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectorEnd"u8); + + foreach (var item in iSuccessionAsUsage.connectorEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iSuccessionAsUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iSuccessionAsUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSuccessionAsUsage.DeclaredShortName); + + writer.WritePropertyName("defaultFeaturingType"u8); + + if (iSuccessionAsUsage.defaultFeaturingType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.defaultFeaturingType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("definition"u8); + + foreach (var item in iSuccessionAsUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iSuccessionAsUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSuccessionAsUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iSuccessionAsUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iSuccessionAsUsage.Direction.HasValue) + { + writer.WriteStringValue(iSuccessionAsUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iSuccessionAsUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iSuccessionAsUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iSuccessionAsUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iSuccessionAsUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iSuccessionAsUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iSuccessionAsUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iSuccessionAsUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iSuccessionAsUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iSuccessionAsUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iSuccessionAsUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iSuccessionAsUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iSuccessionAsUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsEnd); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iSuccessionAsUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iSuccessionAsUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iSuccessionAsUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iSuccessionAsUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iSuccessionAsUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iSuccessionAsUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iSuccessionAsUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iSuccessionAsUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iSuccessionAsUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iSuccessionAsUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iSuccessionAsUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iSuccessionAsUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iSuccessionAsUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iSuccessionAsUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iSuccessionAsUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iSuccessionAsUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iSuccessionAsUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iSuccessionAsUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iSuccessionAsUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iSuccessionAsUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iSuccessionAsUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iSuccessionAsUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iSuccessionAsUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iSuccessionAsUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iSuccessionAsUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iSuccessionAsUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iSuccessionAsUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iSuccessionAsUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iSuccessionAsUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iSuccessionAsUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iSuccessionAsUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iSuccessionAsUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iSuccessionAsUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iSuccessionAsUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iSuccessionAsUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iSuccessionAsUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iSuccessionAsUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iSuccessionAsUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iSuccessionAsUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iSuccessionAsUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iSuccessionAsUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iSuccessionAsUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iSuccessionAsUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iSuccessionAsUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iSuccessionAsUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iSuccessionAsUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iSuccessionAsUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iSuccessionAsUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iSuccessionAsUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iSuccessionAsUsage.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iSuccessionAsUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iSuccessionAsUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iSuccessionAsUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iSuccessionAsUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iSuccessionAsUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iSuccessionAsUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("SuccessionAsUsage"u8); + writer.WritePropertyName("owner"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSuccessionAsUsage.Id); + if (iSuccessionAsUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iSuccessionAsUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iSuccessionAsUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iSuccessionAsUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iSuccessionAsUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iSuccessionAsUsage.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iSuccessionAsUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iSuccessionAsUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iSuccessionAsUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iSuccessionAsUsage.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iSuccessionAsUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedFeature"u8); + + foreach (var item in iSuccessionAsUsage.relatedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iSuccessionAsUsage.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iSuccessionAsUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceFeature"u8); + + if (iSuccessionAsUsage.sourceFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionAsUsage.sourceFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iSuccessionAsUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetFeature"u8); + + foreach (var item in iSuccessionAsUsage.targetFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iSuccessionAsUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iSuccessionAsUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iSuccessionAsUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iSuccessionAsUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iSuccessionAsUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iSuccessionAsUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ISuccessionAsUsage iSuccessionAsUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iSuccessionAsUsage.AliasIds) @@ -208,7 +1528,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowSerializer.cs index 2c760a373..87b1f3383 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowSerializer.cs @@ -49,21 +49,1022 @@ internal static class SuccessionFlowSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ISuccessionFlow iSuccessionFlow) { - throw new ArgumentException("The object shall be an ISuccessionFlow", nameof(obj)); + throw new ArgumentException("The object shall be an ISuccessionFlow", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("SuccessionFlow"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iSuccessionFlow, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iSuccessionFlow, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSuccessionFlow, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iSuccessionFlow.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("association"u8); + + foreach (var item in iSuccessionFlow.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iSuccessionFlow.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iSuccessionFlow.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectorEnd"u8); + + foreach (var item in iSuccessionFlow.connectorEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iSuccessionFlow.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iSuccessionFlow.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSuccessionFlow.DeclaredShortName); + + writer.WritePropertyName("defaultFeaturingType"u8); + + if (iSuccessionFlow.defaultFeaturingType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.defaultFeaturingType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iSuccessionFlow.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSuccessionFlow.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iSuccessionFlow.Direction.HasValue) + { + writer.WriteStringValue(iSuccessionFlow.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iSuccessionFlow.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iSuccessionFlow.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iSuccessionFlow.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iSuccessionFlow.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iSuccessionFlow.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iSuccessionFlow.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iSuccessionFlow.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("flowEnd"u8); + + foreach (var item in iSuccessionFlow.flowEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iSuccessionFlow.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iSuccessionFlow.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iSuccessionFlow.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iSuccessionFlow.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("interaction"u8); + + foreach (var item in iSuccessionFlow.interaction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iSuccessionFlow.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iSuccessionFlow.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iSuccessionFlow.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iSuccessionFlow.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iSuccessionFlow.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iSuccessionFlow.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iSuccessionFlow.IsEnd); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iSuccessionFlow.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iSuccessionFlow.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iSuccessionFlow.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iSuccessionFlow.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iSuccessionFlow.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iSuccessionFlow.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iSuccessionFlow.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSuccessionFlow.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iSuccessionFlow.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iSuccessionFlow.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iSuccessionFlow.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iSuccessionFlow.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iSuccessionFlow.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iSuccessionFlow.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iSuccessionFlow.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iSuccessionFlow.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iSuccessionFlow.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iSuccessionFlow.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iSuccessionFlow.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iSuccessionFlow.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iSuccessionFlow.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iSuccessionFlow.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iSuccessionFlow.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iSuccessionFlow.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iSuccessionFlow.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iSuccessionFlow.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iSuccessionFlow.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iSuccessionFlow.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iSuccessionFlow.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iSuccessionFlow.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iSuccessionFlow.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iSuccessionFlow.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iSuccessionFlow.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iSuccessionFlow.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iSuccessionFlow.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iSuccessionFlow.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iSuccessionFlow.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("SuccessionFlow"u8); + writer.WritePropertyName("owner"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSuccessionFlow.Id); + if (iSuccessionFlow.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iSuccessionFlow.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iSuccessionFlow.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iSuccessionFlow.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iSuccessionFlow.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iSuccessionFlow.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iSuccessionFlow.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iSuccessionFlow.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("payloadFeature"u8); + + if (iSuccessionFlow.payloadFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.payloadFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("payloadType"u8); + + foreach (var item in iSuccessionFlow.payloadType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iSuccessionFlow.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + foreach (var item in iSuccessionFlow.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedFeature"u8); + + foreach (var item in iSuccessionFlow.relatedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iSuccessionFlow.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iSuccessionFlow.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceFeature"u8); + + if (iSuccessionFlow.sourceFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.sourceFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("sourceOutputFeature"u8); + + if (iSuccessionFlow.sourceOutputFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.sourceOutputFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iSuccessionFlow.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetFeature"u8); + + foreach (var item in iSuccessionFlow.targetFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("targetInputFeature"u8); + + if (iSuccessionFlow.targetInputFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlow.targetInputFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iSuccessionFlow.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iSuccessionFlow.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iSuccessionFlow.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ISuccessionFlow iSuccessionFlow, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iSuccessionFlow.AliasIds) @@ -205,7 +1206,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowUsageSerializer.cs index 6c11605ec..c8a5a2c15 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowUsageSerializer.cs @@ -49,21 +49,1507 @@ internal static class SuccessionFlowUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ISuccessionFlowUsage iSuccessionFlowUsage) { - throw new ArgumentException("The object shall be an ISuccessionFlowUsage", nameof(obj)); + throw new ArgumentException("The object shall be an ISuccessionFlowUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("SuccessionFlowUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iSuccessionFlowUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iSuccessionFlowUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iSuccessionFlowUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iSuccessionFlowUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iSuccessionFlowUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("association"u8); + + foreach (var item in iSuccessionFlowUsage.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iSuccessionFlowUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iSuccessionFlowUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectorEnd"u8); + + foreach (var item in iSuccessionFlowUsage.connectorEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iSuccessionFlowUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iSuccessionFlowUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSuccessionFlowUsage.DeclaredShortName); + + writer.WritePropertyName("defaultFeaturingType"u8); + + if (iSuccessionFlowUsage.defaultFeaturingType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.defaultFeaturingType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("definition"u8); + + foreach (var item in iSuccessionFlowUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iSuccessionFlowUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSuccessionFlowUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iSuccessionFlowUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iSuccessionFlowUsage.Direction.HasValue) + { + writer.WriteStringValue(iSuccessionFlowUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iSuccessionFlowUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iSuccessionFlowUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iSuccessionFlowUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iSuccessionFlowUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iSuccessionFlowUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iSuccessionFlowUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iSuccessionFlowUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("flowDefinition"u8); + + foreach (var item in iSuccessionFlowUsage.flowDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("flowEnd"u8); + + foreach (var item in iSuccessionFlowUsage.flowEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iSuccessionFlowUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iSuccessionFlowUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iSuccessionFlowUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iSuccessionFlowUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iSuccessionFlowUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("interaction"u8); + + foreach (var item in iSuccessionFlowUsage.interaction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iSuccessionFlowUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsEnd); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iSuccessionFlowUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iSuccessionFlowUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iSuccessionFlowUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iSuccessionFlowUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iSuccessionFlowUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iSuccessionFlowUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iSuccessionFlowUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iSuccessionFlowUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iSuccessionFlowUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iSuccessionFlowUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iSuccessionFlowUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iSuccessionFlowUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iSuccessionFlowUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iSuccessionFlowUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iSuccessionFlowUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iSuccessionFlowUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iSuccessionFlowUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iSuccessionFlowUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iSuccessionFlowUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iSuccessionFlowUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iSuccessionFlowUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iSuccessionFlowUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iSuccessionFlowUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iSuccessionFlowUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iSuccessionFlowUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iSuccessionFlowUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iSuccessionFlowUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iSuccessionFlowUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iSuccessionFlowUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iSuccessionFlowUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iSuccessionFlowUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iSuccessionFlowUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iSuccessionFlowUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iSuccessionFlowUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iSuccessionFlowUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iSuccessionFlowUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iSuccessionFlowUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iSuccessionFlowUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iSuccessionFlowUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iSuccessionFlowUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iSuccessionFlowUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iSuccessionFlowUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iSuccessionFlowUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iSuccessionFlowUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iSuccessionFlowUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iSuccessionFlowUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iSuccessionFlowUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iSuccessionFlowUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iSuccessionFlowUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iSuccessionFlowUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iSuccessionFlowUsage.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iSuccessionFlowUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iSuccessionFlowUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iSuccessionFlowUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iSuccessionFlowUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iSuccessionFlowUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iSuccessionFlowUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iSuccessionFlowUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iSuccessionFlowUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iSuccessionFlowUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iSuccessionFlowUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iSuccessionFlowUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } - writer.WriteStartObject(); + writer.WritePropertyName("owningRelatedElement"u8); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("SuccessionFlowUsage"u8); + if (iSuccessionFlowUsage.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSuccessionFlowUsage.Id); + writer.WritePropertyName("owningRelationship"u8); + + if (iSuccessionFlowUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iSuccessionFlowUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iSuccessionFlowUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iSuccessionFlowUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("payloadFeature"u8); + + if (iSuccessionFlowUsage.payloadFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.payloadFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("payloadType"u8); + + foreach (var item in iSuccessionFlowUsage.payloadType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iSuccessionFlowUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iSuccessionFlowUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iSuccessionFlowUsage.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iSuccessionFlowUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedFeature"u8); + + foreach (var item in iSuccessionFlowUsage.relatedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iSuccessionFlowUsage.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iSuccessionFlowUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("sourceFeature"u8); + + if (iSuccessionFlowUsage.sourceFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.sourceFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("sourceOutputFeature"u8); + + if (iSuccessionFlowUsage.sourceOutputFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.sourceOutputFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iSuccessionFlowUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetFeature"u8); + + foreach (var item in iSuccessionFlowUsage.targetFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("targetInputFeature"u8); + + if (iSuccessionFlowUsage.targetInputFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccessionFlowUsage.targetInputFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iSuccessionFlowUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iSuccessionFlowUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iSuccessionFlowUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iSuccessionFlowUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iSuccessionFlowUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iSuccessionFlowUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ISuccessionFlowUsage iSuccessionFlowUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iSuccessionFlowUsage.AliasIds) @@ -222,7 +1708,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionSerializer.cs index cff4b29f0..bcabcd1d6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionSerializer.cs @@ -49,21 +49,920 @@ internal static class SuccessionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ISuccession iSuccession) { - throw new ArgumentException("The object shall be an ISuccession", nameof(obj)); + throw new ArgumentException("The object shall be an ISuccession", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("Succession"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iSuccession, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iSuccession, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ISuccession iSuccession, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iSuccession.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("association"u8); + + foreach (var item in iSuccession.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iSuccession.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectorEnd"u8); + + foreach (var item in iSuccession.connectorEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iSuccession.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iSuccession.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSuccession.DeclaredShortName); + + writer.WritePropertyName("defaultFeaturingType"u8); + + if (iSuccession.defaultFeaturingType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.defaultFeaturingType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iSuccession.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSuccession.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iSuccession.Direction.HasValue) + { + writer.WriteStringValue(iSuccession.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iSuccession.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iSuccession.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iSuccession.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iSuccession.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iSuccession.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iSuccession.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iSuccession.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iSuccession.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iSuccession.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iSuccession.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iSuccession.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iSuccession.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iSuccession.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iSuccession.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iSuccession.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iSuccession.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iSuccession.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iSuccession.IsEnd); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iSuccession.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iSuccession.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iSuccession.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iSuccession.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iSuccession.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iSuccession.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iSuccession.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSuccession.IsVariable); + + writer.WriteStartArray("member"u8); + + foreach (var item in iSuccession.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iSuccession.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iSuccession.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iSuccession.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iSuccession.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iSuccession.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iSuccession.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iSuccession.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iSuccession.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iSuccession.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iSuccession.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iSuccession.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iSuccession.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iSuccession.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iSuccession.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iSuccession.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iSuccession.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iSuccession.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iSuccession.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iSuccession.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iSuccession.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iSuccession.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iSuccession.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iSuccession.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("Succession"u8); + writer.WriteStartArray("ownedSpecialization"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSuccession.Id); + foreach (var item in iSuccession.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iSuccession.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iSuccession.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iSuccession.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iSuccession.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iSuccession.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iSuccession.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iSuccession.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iSuccession.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iSuccession.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iSuccession.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iSuccession.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iSuccession.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iSuccession.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("relatedFeature"u8); + + foreach (var item in iSuccession.relatedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iSuccession.shortName); + + writer.WriteStartArray("source"u8); + + foreach (var item in iSuccession.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("sourceFeature"u8); + + if (iSuccession.sourceFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSuccession.sourceFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("target"u8); + + foreach (var item in iSuccession.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("targetFeature"u8); + + foreach (var item in iSuccession.targetFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iSuccession.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iSuccession.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iSuccession.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ISuccession iSuccession, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iSuccession.AliasIds) @@ -205,7 +1104,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TerminateActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TerminateActionUsageSerializer.cs index d916bd3d1..40bfa6ea9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TerminateActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TerminateActionUsageSerializer.cs @@ -49,21 +49,1290 @@ internal static class TerminateActionUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ITerminateActionUsage iTerminateActionUsage) { - throw new ArgumentException("The object shall be an ITerminateActionUsage", nameof(obj)); + throw new ArgumentException("The object shall be an ITerminateActionUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("TerminateActionUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iTerminateActionUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iTerminateActionUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ITerminateActionUsage iTerminateActionUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iTerminateActionUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iTerminateActionUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iTerminateActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iTerminateActionUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iTerminateActionUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iTerminateActionUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iTerminateActionUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iTerminateActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iTerminateActionUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iTerminateActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iTerminateActionUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iTerminateActionUsage.Direction.HasValue) + { + writer.WriteStringValue(iTerminateActionUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iTerminateActionUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iTerminateActionUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iTerminateActionUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iTerminateActionUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iTerminateActionUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iTerminateActionUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iTerminateActionUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iTerminateActionUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iTerminateActionUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iTerminateActionUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iTerminateActionUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iTerminateActionUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iTerminateActionUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iTerminateActionUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iTerminateActionUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iTerminateActionUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iTerminateActionUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iTerminateActionUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iTerminateActionUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iTerminateActionUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iTerminateActionUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iTerminateActionUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iTerminateActionUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iTerminateActionUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iTerminateActionUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iTerminateActionUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iTerminateActionUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iTerminateActionUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iTerminateActionUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iTerminateActionUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iTerminateActionUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iTerminateActionUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iTerminateActionUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iTerminateActionUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iTerminateActionUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iTerminateActionUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iTerminateActionUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iTerminateActionUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iTerminateActionUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iTerminateActionUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iTerminateActionUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iTerminateActionUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iTerminateActionUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iTerminateActionUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iTerminateActionUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iTerminateActionUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iTerminateActionUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iTerminateActionUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iTerminateActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iTerminateActionUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iTerminateActionUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iTerminateActionUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iTerminateActionUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iTerminateActionUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iTerminateActionUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iTerminateActionUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iTerminateActionUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iTerminateActionUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iTerminateActionUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iTerminateActionUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iTerminateActionUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iTerminateActionUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iTerminateActionUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iTerminateActionUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iTerminateActionUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iTerminateActionUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iTerminateActionUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iTerminateActionUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("TerminateActionUsage"u8); + writer.WriteStartArray("ownedSpecialization"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iTerminateActionUsage.Id); + foreach (var item in iTerminateActionUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iTerminateActionUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iTerminateActionUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iTerminateActionUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iTerminateActionUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iTerminateActionUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iTerminateActionUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iTerminateActionUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iTerminateActionUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iTerminateActionUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iTerminateActionUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iTerminateActionUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iTerminateActionUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iTerminateActionUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iTerminateActionUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iTerminateActionUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iTerminateActionUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iTerminateActionUsage.shortName); + + writer.WritePropertyName("terminatedOccurrenceArgument"u8); + + if (iTerminateActionUsage.terminatedOccurrenceArgument.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTerminateActionUsage.terminatedOccurrenceArgument.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iTerminateActionUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iTerminateActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iTerminateActionUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iTerminateActionUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iTerminateActionUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iTerminateActionUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ITerminateActionUsage iTerminateActionUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iTerminateActionUsage.AliasIds) @@ -169,7 +1438,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TextualRepresentationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TextualRepresentationSerializer.cs index e6de8186c..b91f87283 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TextualRepresentationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TextualRepresentationSerializer.cs @@ -49,7 +49,10 @@ internal static class TextualRepresentationSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ITextualRepresentation iTextualRepresentation) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iTextualRepresentation.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iTextualRepresentation, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iTextualRepresentation, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ITextualRepresentation iTextualRepresentation, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iTextualRepresentation.AliasIds) @@ -73,6 +99,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("annotatedElement"u8); + + foreach (var item in iTextualRepresentation.annotatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("annotation"u8); + + foreach (var item in iTextualRepresentation.annotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("body"u8); writer.WriteStringValue(iTextualRepresentation.Body); @@ -82,15 +132,69 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iTextualRepresentation.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iTextualRepresentation.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iTextualRepresentation.ElementId); writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iTextualRepresentation.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iTextualRepresentation.isLibraryElement); + writer.WritePropertyName("language"u8); writer.WriteStringValue(iTextualRepresentation.Language); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iTextualRepresentation.name); + + writer.WriteStartArray("ownedAnnotatingRelationship"u8); + + foreach (var item in iTextualRepresentation.ownedAnnotatingRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iTextualRepresentation.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iTextualRepresentation.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelationship"u8); foreach (var item in iTextualRepresentation.OwnedRelationship) @@ -103,6 +207,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iTextualRepresentation.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTextualRepresentation.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningAnnotatingRelationship"u8); + + if (iTextualRepresentation.owningAnnotatingRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTextualRepresentation.owningAnnotatingRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iTextualRepresentation.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTextualRepresentation.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iTextualRepresentation.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTextualRepresentation.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelationship"u8); if (iTextualRepresentation.OwningRelationship.HasValue) @@ -117,7 +277,96 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iTextualRepresentation.qualifiedName); + + writer.WritePropertyName("representedElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTextualRepresentation.representedElement); writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iTextualRepresentation.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iTextualRepresentation.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ITextualRepresentation iTextualRepresentation, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iTextualRepresentation.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("body"u8); + writer.WriteStringValue(iTextualRepresentation.Body); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iTextualRepresentation.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iTextualRepresentation.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iTextualRepresentation.ElementId); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iTextualRepresentation.IsImpliedIncluded); + + writer.WritePropertyName("language"u8); + writer.WriteStringValue(iTextualRepresentation.Language); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iTextualRepresentation.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iTextualRepresentation.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTextualRepresentation.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionFeatureMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionFeatureMembershipSerializer.cs index 6895abfb9..ab97c610a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionFeatureMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionFeatureMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class TransitionFeatureMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ITransitionFeatureMembership iTransitionFeatureMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iTransitionFeatureMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iTransitionFeatureMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iTransitionFeatureMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ITransitionFeatureMembership iTransitionFeatureMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iTransitionFeatureMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iTransitionFeatureMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iTransitionFeatureMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iTransitionFeatureMembership.ElementId); @@ -88,6 +126,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iTransitionFeatureMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iTransitionFeatureMembership.isLibraryElement); + writer.WritePropertyName("kind"u8); writer.WriteStringValue(iTransitionFeatureMembership.Kind.ToString().ToLower()); @@ -97,12 +138,69 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteStringValue(iTransitionFeatureMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iTransitionFeatureMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iTransitionFeatureMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iTransitionFeatureMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iTransitionFeatureMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iTransitionFeatureMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iTransitionFeatureMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iTransitionFeatureMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iTransitionFeatureMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iTransitionFeatureMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iTransitionFeatureMembership.OwnedRelatedElement) @@ -127,6 +225,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iTransitionFeatureMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iTransitionFeatureMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iTransitionFeatureMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iTransitionFeatureMembership.OwningRelatedElement.HasValue) @@ -155,6 +295,30 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iTransitionFeatureMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iTransitionFeatureMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iTransitionFeatureMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iTransitionFeatureMembership.Source) @@ -179,10 +343,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iTransitionFeatureMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("transitionFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.transitionFeature); + writer.WriteEndObject(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iTransitionFeatureMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ITransitionFeatureMembership iTransitionFeatureMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iTransitionFeatureMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iTransitionFeatureMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iTransitionFeatureMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iTransitionFeatureMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iTransitionFeatureMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iTransitionFeatureMembership.IsImpliedIncluded); + + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(iTransitionFeatureMembership.Kind.ToString().ToLower()); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iTransitionFeatureMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iTransitionFeatureMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iTransitionFeatureMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iTransitionFeatureMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iTransitionFeatureMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iTransitionFeatureMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iTransitionFeatureMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iTransitionFeatureMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iTransitionFeatureMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionUsageSerializer.cs index 4e8483f1a..b6f4d8bf3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionUsageSerializer.cs @@ -49,21 +49,1330 @@ internal static class TransitionUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ITransitionUsage iTransitionUsage) { - throw new ArgumentException("The object shall be an ITransitionUsage", nameof(obj)); + throw new ArgumentException("The object shall be an ITransitionUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("TransitionUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iTransitionUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iTransitionUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ITransitionUsage iTransitionUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iTransitionUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iTransitionUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iTransitionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iTransitionUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iTransitionUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iTransitionUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iTransitionUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iTransitionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iTransitionUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iTransitionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iTransitionUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iTransitionUsage.Direction.HasValue) + { + writer.WriteStringValue(iTransitionUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iTransitionUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("effectAction"u8); + + foreach (var item in iTransitionUsage.effectAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iTransitionUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iTransitionUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iTransitionUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iTransitionUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iTransitionUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iTransitionUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("guardExpression"u8); + + foreach (var item in iTransitionUsage.guardExpression) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iTransitionUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iTransitionUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iTransitionUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iTransitionUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iTransitionUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iTransitionUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iTransitionUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iTransitionUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iTransitionUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iTransitionUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iTransitionUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iTransitionUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iTransitionUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iTransitionUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iTransitionUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iTransitionUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iTransitionUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iTransitionUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iTransitionUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iTransitionUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iTransitionUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iTransitionUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iTransitionUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iTransitionUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iTransitionUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iTransitionUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iTransitionUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iTransitionUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iTransitionUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iTransitionUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iTransitionUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iTransitionUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iTransitionUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iTransitionUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iTransitionUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iTransitionUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iTransitionUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iTransitionUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iTransitionUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iTransitionUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iTransitionUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iTransitionUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iTransitionUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iTransitionUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iTransitionUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iTransitionUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iTransitionUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iTransitionUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iTransitionUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iTransitionUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iTransitionUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iTransitionUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iTransitionUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iTransitionUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iTransitionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iTransitionUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iTransitionUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iTransitionUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iTransitionUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iTransitionUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iTransitionUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iTransitionUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iTransitionUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iTransitionUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iTransitionUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iTransitionUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iTransitionUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iTransitionUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iTransitionUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iTransitionUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iTransitionUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iTransitionUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iTransitionUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iTransitionUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iTransitionUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iTransitionUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iTransitionUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iTransitionUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iTransitionUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iTransitionUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iTransitionUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iTransitionUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iTransitionUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iTransitionUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iTransitionUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iTransitionUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iTransitionUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iTransitionUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iTransitionUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iTransitionUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iTransitionUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iTransitionUsage.shortName); + + writer.WritePropertyName("source"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.source); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("TransitionUsage"u8); + writer.WritePropertyName("succession"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionUsage.succession); + writer.WriteEndObject(); + writer.WritePropertyName("target"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iTransitionUsage.Id); + writer.WriteStringValue(iTransitionUsage.target); + writer.WriteEndObject(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iTransitionUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("triggerAction"u8); + + foreach (var item in iTransitionUsage.triggerAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iTransitionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iTransitionUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iTransitionUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iTransitionUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iTransitionUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ITransitionUsage iTransitionUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iTransitionUsage.AliasIds) @@ -169,7 +1478,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TriggerInvocationExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TriggerInvocationExpressionSerializer.cs index ebe914324..18a8ee81f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TriggerInvocationExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TriggerInvocationExpressionSerializer.cs @@ -49,7 +49,10 @@ internal static class TriggerInvocationExpressionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ITriggerInvocationExpression iTriggerInvocationExpression) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iTriggerInvocationExpression.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iTriggerInvocationExpression, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iTriggerInvocationExpression, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ITriggerInvocationExpression iTriggerInvocationExpression, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iTriggerInvocationExpression.AliasIds) @@ -73,12 +99,86 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("argument"u8); + + foreach (var item in iTriggerInvocationExpression.argument) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iTriggerInvocationExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iTriggerInvocationExpression.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iTriggerInvocationExpression.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iTriggerInvocationExpression.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iTriggerInvocationExpression.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iTriggerInvocationExpression.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iTriggerInvocationExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iTriggerInvocationExpression.Direction.HasValue) @@ -90,15 +190,178 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iTriggerInvocationExpression.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iTriggerInvocationExpression.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iTriggerInvocationExpression.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iTriggerInvocationExpression.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iTriggerInvocationExpression.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iTriggerInvocationExpression.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iTriggerInvocationExpression.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iTriggerInvocationExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iTriggerInvocationExpression.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iTriggerInvocationExpression.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iTriggerInvocationExpression.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iTriggerInvocationExpression.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("instantiatedType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.instantiatedType); + writer.WriteEndObject(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iTriggerInvocationExpression.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iTriggerInvocationExpression.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iTriggerInvocationExpression.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iTriggerInvocationExpression.IsConstant); @@ -111,6 +374,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iTriggerInvocationExpression.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.isModelLevelEvaluable); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iTriggerInvocationExpression.IsOrdered); @@ -129,9 +398,9 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("kind"u8); writer.WriteStringValue(iTriggerInvocationExpression.Kind.ToString().ToLower()); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iTriggerInvocationExpression.OwnedRelationship) + foreach (var item in iTriggerInvocationExpression.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -141,13 +410,570 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iTriggerInvocationExpression.OwningRelationship.HasValue) + foreach (var item in iTriggerInvocationExpression.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iTriggerInvocationExpression.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iTriggerInvocationExpression.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iTriggerInvocationExpression.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iTriggerInvocationExpression.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iTriggerInvocationExpression.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iTriggerInvocationExpression.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iTriggerInvocationExpression.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iTriggerInvocationExpression.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iTriggerInvocationExpression.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iTriggerInvocationExpression.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iTriggerInvocationExpression.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iTriggerInvocationExpression.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iTriggerInvocationExpression.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iTriggerInvocationExpression.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iTriggerInvocationExpression.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iTriggerInvocationExpression.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iTriggerInvocationExpression.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iTriggerInvocationExpression.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iTriggerInvocationExpression.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iTriggerInvocationExpression.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iTriggerInvocationExpression.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iTriggerInvocationExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iTriggerInvocationExpression.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iTriggerInvocationExpression.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iTriggerInvocationExpression.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iTriggerInvocationExpression.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iTriggerInvocationExpression.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iTriggerInvocationExpression.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iTriggerInvocationExpression.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iTriggerInvocationExpression.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iTriggerInvocationExpression.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iTriggerInvocationExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iTriggerInvocationExpression.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iTriggerInvocationExpression.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iTriggerInvocationExpression.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iTriggerInvocationExpression.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iTriggerInvocationExpression.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iTriggerInvocationExpression.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iTriggerInvocationExpression.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ITriggerInvocationExpression iTriggerInvocationExpression, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iTriggerInvocationExpression.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iTriggerInvocationExpression.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iTriggerInvocationExpression.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iTriggerInvocationExpression.Direction.HasValue) + { + writer.WriteStringValue(iTriggerInvocationExpression.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iTriggerInvocationExpression.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iTriggerInvocationExpression.IsVariable); + + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(iTriggerInvocationExpression.Kind.ToString().ToLower()); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iTriggerInvocationExpression.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iTriggerInvocationExpression.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTriggerInvocationExpression.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -155,7 +981,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeFeaturingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeFeaturingSerializer.cs index 93acd175c..ce6e1ed2a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeFeaturingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeFeaturingSerializer.cs @@ -49,7 +49,10 @@ internal static class TypeFeaturingSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not ITypeFeaturing iTypeFeaturing) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iTypeFeaturing.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iTypeFeaturing, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iTypeFeaturing, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(ITypeFeaturing iTypeFeaturing, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iTypeFeaturing.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iTypeFeaturing.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iTypeFeaturing.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iTypeFeaturing.ElementId); @@ -100,6 +138,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iTypeFeaturing.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iTypeFeaturing.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iTypeFeaturing.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iTypeFeaturing.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iTypeFeaturing.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iTypeFeaturing.OwnedRelatedElement) @@ -124,6 +192,62 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iTypeFeaturing.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTypeFeaturing.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureOfType"u8); + + if (iTypeFeaturing.owningFeatureOfType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTypeFeaturing.owningFeatureOfType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iTypeFeaturing.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTypeFeaturing.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iTypeFeaturing.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTypeFeaturing.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iTypeFeaturing.OwningRelatedElement.HasValue) @@ -152,6 +276,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iTypeFeaturing.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iTypeFeaturing.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iTypeFeaturing.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iTypeFeaturing.Source) @@ -176,7 +318,143 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iTypeFeaturing.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(ITypeFeaturing iTypeFeaturing, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iTypeFeaturing.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iTypeFeaturing.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iTypeFeaturing.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iTypeFeaturing.ElementId); + + writer.WritePropertyName("featureOfType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTypeFeaturing.FeatureOfType); writer.WriteEndObject(); + + writer.WritePropertyName("featuringType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTypeFeaturing.FeaturingType); + writer.WriteEndObject(); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iTypeFeaturing.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iTypeFeaturing.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iTypeFeaturing.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iTypeFeaturing.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iTypeFeaturing.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTypeFeaturing.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iTypeFeaturing.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTypeFeaturing.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iTypeFeaturing.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iTypeFeaturing.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeSerializer.cs index 467b7866d..b889470f4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeSerializer.cs @@ -49,7 +49,10 @@ internal static class TypeSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IType iType) { @@ -64,6 +67,528 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iType.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iType, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iType, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IType iType, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iType.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iType.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iType.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iType.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iType.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iType.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iType.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iType.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iType.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iType.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iType.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iType.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iType.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iType.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iType.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iType.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iType.isConjugated); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iType.IsImpliedIncluded); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iType.isLibraryElement); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iType.IsSufficient); + + writer.WriteStartArray("member"u8); + + foreach (var item in iType.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iType.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iType.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iType.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iType.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iType.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iType.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iType.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iType.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iType.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iType.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iType.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iType.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iType.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iType.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iType.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iType.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iType.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iType.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iType.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iType.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iType.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iType.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iType.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iType.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iType.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iType.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iType.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iType.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iType.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iType.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iType.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iType.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iType.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IType iType, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iType.AliasIds) @@ -117,7 +642,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UnioningSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UnioningSerializer.cs index 8bb57fca6..fe29b36e6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UnioningSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UnioningSerializer.cs @@ -49,7 +49,10 @@ internal static class UnioningSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IUnioning iUnioning) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iUnioning.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iUnioning, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iUnioning, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IUnioning iUnioning, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iUnioning.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iUnioning.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iUnioning.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iUnioning.ElementId); @@ -88,6 +126,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iUnioning.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iUnioning.isLibraryElement); + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iUnioning.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iUnioning.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iUnioning.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iUnioning.OwnedRelatedElement) @@ -112,6 +180,48 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("owner"u8); + + if (iUnioning.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUnioning.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iUnioning.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUnioning.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iUnioning.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUnioning.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iUnioning.OwningRelatedElement.HasValue) @@ -140,6 +250,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iUnioning.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iUnioning.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iUnioning.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iUnioning.Source) @@ -164,13 +292,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iUnioning.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("typeUnioned"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUnioning.typeUnioned); + writer.WriteEndObject(); + writer.WritePropertyName("unioningType"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iUnioning.UnioningType); writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IUnioning iUnioning, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iUnioning.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iUnioning.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iUnioning.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iUnioning.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iUnioning.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iUnioning.IsImpliedIncluded); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iUnioning.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iUnioning.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iUnioning.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUnioning.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iUnioning.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUnioning.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iUnioning.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iUnioning.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("unioningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUnioning.UnioningType); writer.WriteEndObject(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UsageSerializer.cs index b964ae7ba..8fc211dbf 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UsageSerializer.cs @@ -49,7 +49,10 @@ internal static class UsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IUsage iUsage) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iUsage.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IUsage iUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iUsage.AliasIds) @@ -73,12 +99,86 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iUsage.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iUsage.Direction.HasValue) @@ -90,15 +190,158 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WriteStartArray("documentation"u8); + + foreach (var item in iUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iUsage.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iUsage.IsAbstract); writer.WritePropertyName("isComposite"u8); writer.WriteBooleanValue(iUsage.IsComposite); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iUsage.isConjugated); + writer.WritePropertyName("isConstant"u8); writer.WriteBooleanValue(iUsage.IsConstant); @@ -111,12 +354,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iUsage.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iUsage.isLibraryElement); + writer.WritePropertyName("isOrdered"u8); writer.WriteBooleanValue(iUsage.IsOrdered); writer.WritePropertyName("isPortion"u8); writer.WriteBooleanValue(iUsage.IsPortion); + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iUsage.isReference); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iUsage.IsSufficient); @@ -129,9 +378,12 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUsage.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iUsage.mayTimeVary); - foreach (var item in iUsage.OwnedRelationship) + writer.WriteStartArray("member"u8); + + foreach (var item in iUsage.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -141,13 +393,940 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iUsage.OwningRelationship.HasValue) + foreach (var item in iUsage.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iUsage.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IUsage iUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iUsage.DeclaredShortName); + + writer.WritePropertyName("direction"u8); + + if (iUsage.Direction.HasValue) + { + writer.WriteStringValue(iUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iUsage.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iUsage.IsComposite); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iUsage.IsImpliedIncluded); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iUsage.IsPortion); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iUsage.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUsage.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -155,7 +1334,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseDefinitionSerializer.cs index 48b04f4d6..19ee6a0bc 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class UseCaseDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IUseCaseDefinition iUseCaseDefinition) { @@ -64,6 +67,53 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iUseCaseDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iUseCaseDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iUseCaseDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IUseCaseDefinition iUseCaseDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("action"u8); + + foreach (var item in iUseCaseDefinition.action) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iUseCaseDefinition.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("aliasIds"u8); foreach (var item in iUseCaseDefinition.AliasIds) @@ -73,33 +123,222 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("calculation"u8); + + foreach (var item in iUseCaseDefinition.calculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iUseCaseDefinition.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iUseCaseDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iUseCaseDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iUseCaseDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iUseCaseDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iUseCaseDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iUseCaseDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iUseCaseDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("expression"u8); + + foreach (var item in iUseCaseDefinition.expression) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iUseCaseDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iUseCaseDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iUseCaseDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("includedUseCase"u8); + + foreach (var item in iUseCaseDefinition.includedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iUseCaseDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iUseCaseDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iUseCaseDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iUseCaseDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iUseCaseDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iUseCaseDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iUseCaseDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iUseCaseDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iUseCaseDefinition.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iUseCaseDefinition.isModelLevelEvaluable); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iUseCaseDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUseCaseDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iUseCaseDefinition.OwnedRelationship) + foreach (var item in iUseCaseDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +348,802 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iUseCaseDefinition.OwningRelationship.HasValue) + foreach (var item in iUseCaseDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iUseCaseDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iUseCaseDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iUseCaseDefinition.name); + + writer.WritePropertyName("objectiveRequirement"u8); + + if (iUseCaseDefinition.objectiveRequirement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseDefinition.objectiveRequirement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("output"u8); + + foreach (var item in iUseCaseDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iUseCaseDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iUseCaseDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iUseCaseDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iUseCaseDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iUseCaseDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iUseCaseDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iUseCaseDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iUseCaseDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iUseCaseDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iUseCaseDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iUseCaseDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iUseCaseDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iUseCaseDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iUseCaseDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iUseCaseDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iUseCaseDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iUseCaseDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iUseCaseDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iUseCaseDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iUseCaseDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iUseCaseDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iUseCaseDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iUseCaseDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iUseCaseDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iUseCaseDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iUseCaseDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iUseCaseDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iUseCaseDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iUseCaseDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iUseCaseDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iUseCaseDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iUseCaseDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iUseCaseDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iUseCaseDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iUseCaseDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iUseCaseDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iUseCaseDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iUseCaseDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iUseCaseDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iUseCaseDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iUseCaseDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iUseCaseDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iUseCaseDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iUseCaseDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iUseCaseDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iUseCaseDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iUseCaseDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iUseCaseDefinition.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iUseCaseDefinition.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseDefinition.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iUseCaseDefinition.shortName); + + writer.WriteStartArray("step"u8); + + foreach (var item in iUseCaseDefinition.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseDefinition.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iUseCaseDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iUseCaseDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iUseCaseDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iUseCaseDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iUseCaseDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IUseCaseDefinition iUseCaseDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iUseCaseDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iUseCaseDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iUseCaseDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iUseCaseDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iUseCaseDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iUseCaseDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iUseCaseDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iUseCaseDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iUseCaseDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iUseCaseDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iUseCaseDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1151,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseUsageSerializer.cs index 554401955..8849f1134 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseUsageSerializer.cs @@ -49,21 +49,1385 @@ internal static class UseCaseUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IUseCaseUsage iUseCaseUsage) { - throw new ArgumentException("The object shall be an IUseCaseUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IUseCaseUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("UseCaseUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iUseCaseUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iUseCaseUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iUseCaseUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iUseCaseUsage.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iUseCaseUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iUseCaseUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("calculationDefinition"u8); + + if (iUseCaseUsage.calculationDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.calculationDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("caseDefinition"u8); + + if (iUseCaseUsage.caseDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.caseDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iUseCaseUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iUseCaseUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iUseCaseUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iUseCaseUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iUseCaseUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iUseCaseUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iUseCaseUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iUseCaseUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iUseCaseUsage.Direction.HasValue) + { + writer.WriteStringValue(iUseCaseUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iUseCaseUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iUseCaseUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iUseCaseUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iUseCaseUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iUseCaseUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iUseCaseUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iUseCaseUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iUseCaseUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iUseCaseUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("includedUseCase"u8); + + foreach (var item in iUseCaseUsage.includedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iUseCaseUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iUseCaseUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iUseCaseUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iUseCaseUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iUseCaseUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iUseCaseUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iUseCaseUsage.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iUseCaseUsage.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iUseCaseUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iUseCaseUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iUseCaseUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iUseCaseUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iUseCaseUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iUseCaseUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iUseCaseUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iUseCaseUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iUseCaseUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iUseCaseUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iUseCaseUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iUseCaseUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iUseCaseUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iUseCaseUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iUseCaseUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iUseCaseUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iUseCaseUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iUseCaseUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iUseCaseUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iUseCaseUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iUseCaseUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iUseCaseUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iUseCaseUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iUseCaseUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iUseCaseUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iUseCaseUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iUseCaseUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iUseCaseUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iUseCaseUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iUseCaseUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iUseCaseUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iUseCaseUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iUseCaseUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("objectiveRequirement"u8); + + if (iUseCaseUsage.objectiveRequirement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.objectiveRequirement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iUseCaseUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iUseCaseUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iUseCaseUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iUseCaseUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iUseCaseUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iUseCaseUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iUseCaseUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iUseCaseUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iUseCaseUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iUseCaseUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iUseCaseUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iUseCaseUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iUseCaseUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iUseCaseUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iUseCaseUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iUseCaseUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iUseCaseUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iUseCaseUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iUseCaseUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iUseCaseUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iUseCaseUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iUseCaseUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iUseCaseUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iUseCaseUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iUseCaseUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iUseCaseUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iUseCaseUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iUseCaseUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iUseCaseUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iUseCaseUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iUseCaseUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iUseCaseUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iUseCaseUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iUseCaseUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iUseCaseUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iUseCaseUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iUseCaseUsage.qualifiedName); + + writer.WritePropertyName("result"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.result); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("UseCaseUsage"u8); + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iUseCaseUsage.shortName); + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iUseCaseUsage.Id); + writer.WriteStringValue(iUseCaseUsage.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iUseCaseUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iUseCaseUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iUseCaseUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iUseCaseUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("useCaseDefinition"u8); + + if (iUseCaseUsage.useCaseDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.useCaseDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("variant"u8); + + foreach (var item in iUseCaseUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iUseCaseUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IUseCaseUsage iUseCaseUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iUseCaseUsage.AliasIds) @@ -169,7 +1533,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VariantMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VariantMembershipSerializer.cs index 09a47d327..abc69a919 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VariantMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VariantMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class VariantMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IVariantMembership iVariantMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iVariantMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iVariantMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iVariantMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IVariantMembership iVariantMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iVariantMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iVariantMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iVariantMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iVariantMembership.ElementId); @@ -88,18 +126,72 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iVariantMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iVariantMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iVariantMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iVariantMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iVariantMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVariantMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iVariantMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iVariantMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iVariantMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iVariantMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVariantMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iVariantMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iVariantMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iVariantMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iVariantMembership.OwnedRelatedElement) @@ -124,6 +216,54 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("ownedVariantUsage"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVariantMembership.ownedVariantUsage); + writer.WriteEndObject(); + + writer.WritePropertyName("owner"u8); + + if (iVariantMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVariantMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iVariantMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVariantMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iVariantMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVariantMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iVariantMembership.OwningRelatedElement.HasValue) @@ -152,6 +292,24 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iVariantMembership.qualifiedName); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iVariantMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iVariantMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iVariantMembership.Source) @@ -176,10 +334,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iVariantMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iVariantMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IVariantMembership iVariantMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iVariantMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iVariantMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iVariantMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iVariantMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iVariantMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iVariantMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVariantMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iVariantMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iVariantMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iVariantMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iVariantMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iVariantMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVariantMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iVariantMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVariantMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iVariantMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iVariantMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iVariantMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseDefinitionSerializer.cs index 313dba9a1..d82e55a7b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class VerificationCaseDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IVerificationCaseDefinition iVerificationCaseDefinition) { @@ -64,6 +67,53 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iVerificationCaseDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iVerificationCaseDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iVerificationCaseDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseDefinition iVerificationCaseDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("action"u8); + + foreach (var item in iVerificationCaseDefinition.action) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iVerificationCaseDefinition.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("aliasIds"u8); foreach (var item in iVerificationCaseDefinition.AliasIds) @@ -73,33 +123,210 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("calculation"u8); + + foreach (var item in iVerificationCaseDefinition.calculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iVerificationCaseDefinition.DeclaredName); writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iVerificationCaseDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iVerificationCaseDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iVerificationCaseDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iVerificationCaseDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iVerificationCaseDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iVerificationCaseDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iVerificationCaseDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("expression"u8); + + foreach (var item in iVerificationCaseDefinition.expression) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iVerificationCaseDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iVerificationCaseDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iVerificationCaseDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iVerificationCaseDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iVerificationCaseDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iVerificationCaseDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iVerificationCaseDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iVerificationCaseDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iVerificationCaseDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iVerificationCaseDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iVerificationCaseDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iVerificationCaseDefinition.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iVerificationCaseDefinition.isModelLevelEvaluable); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iVerificationCaseDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iVerificationCaseDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iVerificationCaseDefinition.OwnedRelationship) + foreach (var item in iVerificationCaseDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +336,814 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iVerificationCaseDefinition.OwningRelationship.HasValue) + foreach (var item in iVerificationCaseDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iVerificationCaseDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iVerificationCaseDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iVerificationCaseDefinition.name); + + writer.WritePropertyName("objectiveRequirement"u8); + + if (iVerificationCaseDefinition.objectiveRequirement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseDefinition.objectiveRequirement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("output"u8); + + foreach (var item in iVerificationCaseDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iVerificationCaseDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iVerificationCaseDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iVerificationCaseDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iVerificationCaseDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iVerificationCaseDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iVerificationCaseDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iVerificationCaseDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iVerificationCaseDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iVerificationCaseDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iVerificationCaseDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iVerificationCaseDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iVerificationCaseDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iVerificationCaseDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iVerificationCaseDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iVerificationCaseDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iVerificationCaseDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iVerificationCaseDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iVerificationCaseDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iVerificationCaseDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iVerificationCaseDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iVerificationCaseDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iVerificationCaseDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iVerificationCaseDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iVerificationCaseDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iVerificationCaseDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iVerificationCaseDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iVerificationCaseDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iVerificationCaseDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iVerificationCaseDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iVerificationCaseDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iVerificationCaseDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iVerificationCaseDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iVerificationCaseDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iVerificationCaseDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iVerificationCaseDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iVerificationCaseDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iVerificationCaseDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iVerificationCaseDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iVerificationCaseDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iVerificationCaseDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iVerificationCaseDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iVerificationCaseDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iVerificationCaseDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iVerificationCaseDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iVerificationCaseDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iVerificationCaseDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iVerificationCaseDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iVerificationCaseDefinition.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iVerificationCaseDefinition.qualifiedName); + + writer.WritePropertyName("result"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseDefinition.result); + writer.WriteEndObject(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iVerificationCaseDefinition.shortName); + + writer.WriteStartArray("step"u8); + + foreach (var item in iVerificationCaseDefinition.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseDefinition.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iVerificationCaseDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iVerificationCaseDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iVerificationCaseDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iVerificationCaseDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iVerificationCaseDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("verifiedRequirement"u8); + + foreach (var item in iVerificationCaseDefinition.verifiedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IVerificationCaseDefinition iVerificationCaseDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iVerificationCaseDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iVerificationCaseDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iVerificationCaseDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iVerificationCaseDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iVerificationCaseDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iVerificationCaseDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iVerificationCaseDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iVerificationCaseDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iVerificationCaseDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iVerificationCaseDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iVerificationCaseDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1151,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseUsageSerializer.cs index 46c05e98e..566e060f2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseUsageSerializer.cs @@ -49,21 +49,1385 @@ internal static class VerificationCaseUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IVerificationCaseUsage iVerificationCaseUsage) { - throw new ArgumentException("The object shall be an IVerificationCaseUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IVerificationCaseUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("VerificationCaseUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iVerificationCaseUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iVerificationCaseUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage iVerificationCaseUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iVerificationCaseUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iVerificationCaseUsage.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iVerificationCaseUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iVerificationCaseUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("calculationDefinition"u8); + + if (iVerificationCaseUsage.calculationDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.calculationDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("caseDefinition"u8); + + if (iVerificationCaseUsage.caseDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.caseDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iVerificationCaseUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iVerificationCaseUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iVerificationCaseUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iVerificationCaseUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iVerificationCaseUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iVerificationCaseUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iVerificationCaseUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iVerificationCaseUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iVerificationCaseUsage.Direction.HasValue) + { + writer.WriteStringValue(iVerificationCaseUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iVerificationCaseUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iVerificationCaseUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iVerificationCaseUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iVerificationCaseUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iVerificationCaseUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iVerificationCaseUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iVerificationCaseUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iVerificationCaseUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iVerificationCaseUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iVerificationCaseUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iVerificationCaseUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iVerificationCaseUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iVerificationCaseUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iVerificationCaseUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iVerificationCaseUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iVerificationCaseUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iVerificationCaseUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iVerificationCaseUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iVerificationCaseUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iVerificationCaseUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iVerificationCaseUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iVerificationCaseUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iVerificationCaseUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iVerificationCaseUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iVerificationCaseUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iVerificationCaseUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iVerificationCaseUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iVerificationCaseUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iVerificationCaseUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iVerificationCaseUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iVerificationCaseUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iVerificationCaseUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iVerificationCaseUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iVerificationCaseUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iVerificationCaseUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iVerificationCaseUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iVerificationCaseUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iVerificationCaseUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iVerificationCaseUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iVerificationCaseUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iVerificationCaseUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iVerificationCaseUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iVerificationCaseUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iVerificationCaseUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iVerificationCaseUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("objectiveRequirement"u8); + + if (iVerificationCaseUsage.objectiveRequirement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.objectiveRequirement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iVerificationCaseUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iVerificationCaseUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iVerificationCaseUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iVerificationCaseUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iVerificationCaseUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iVerificationCaseUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iVerificationCaseUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iVerificationCaseUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iVerificationCaseUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iVerificationCaseUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iVerificationCaseUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iVerificationCaseUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iVerificationCaseUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iVerificationCaseUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iVerificationCaseUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iVerificationCaseUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iVerificationCaseUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iVerificationCaseUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iVerificationCaseUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iVerificationCaseUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iVerificationCaseUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iVerificationCaseUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iVerificationCaseUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iVerificationCaseUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iVerificationCaseUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iVerificationCaseUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iVerificationCaseUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iVerificationCaseUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iVerificationCaseUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iVerificationCaseUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iVerificationCaseUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iVerificationCaseUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iVerificationCaseUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iVerificationCaseUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iVerificationCaseUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iVerificationCaseUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); } + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iVerificationCaseUsage.qualifiedName); + + writer.WritePropertyName("result"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.result); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("VerificationCaseUsage"u8); + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iVerificationCaseUsage.shortName); + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iVerificationCaseUsage.Id); + writer.WriteStringValue(iVerificationCaseUsage.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iVerificationCaseUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iVerificationCaseUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iVerificationCaseUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iVerificationCaseUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iVerificationCaseUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iVerificationCaseUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("verificationCaseDefinition"u8); + + if (iVerificationCaseUsage.verificationCaseDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.verificationCaseDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("verifiedRequirement"u8); + + foreach (var item in iVerificationCaseUsage.verifiedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IVerificationCaseUsage iVerificationCaseUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iVerificationCaseUsage.AliasIds) @@ -169,7 +1533,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewDefinitionSerializer.cs index 095af5fa2..1af592061 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewDefinitionSerializer.cs @@ -49,7 +49,10 @@ internal static class ViewDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IViewDefinition iViewDefinition) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iViewDefinition.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iViewDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iViewDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IViewDefinition iViewDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iViewDefinition.AliasIds) @@ -79,27 +105,177 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iViewDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iViewDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iViewDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iViewDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iViewDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iViewDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iViewDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iViewDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iViewDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iViewDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iViewDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iViewDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iViewDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iViewDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("isAbstract"u8); writer.WriteBooleanValue(iViewDefinition.IsAbstract); + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iViewDefinition.isConjugated); + writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iViewDefinition.IsImpliedIncluded); writer.WritePropertyName("isIndividual"u8); writer.WriteBooleanValue(iViewDefinition.IsIndividual); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iViewDefinition.isLibraryElement); + writer.WritePropertyName("isSufficient"u8); writer.WriteBooleanValue(iViewDefinition.IsSufficient); writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iViewDefinition.IsVariation); - writer.WriteStartArray("ownedRelationship"u8); + writer.WriteStartArray("member"u8); - foreach (var item in iViewDefinition.OwnedRelationship) + foreach (var item in iViewDefinition.member) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -109,13 +285,802 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); - writer.WritePropertyName("owningRelationship"u8); + writer.WriteStartArray("membership"u8); - if (iViewDefinition.OwningRelationship.HasValue) + foreach (var item in iViewDefinition.membership) { writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iViewDefinition.OwningRelationship.Value); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iViewDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iViewDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iViewDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iViewDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iViewDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iViewDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iViewDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iViewDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iViewDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iViewDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iViewDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iViewDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iViewDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iViewDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iViewDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iViewDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iViewDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iViewDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iViewDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iViewDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iViewDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iViewDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iViewDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iViewDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iViewDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iViewDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iViewDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iViewDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iViewDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iViewDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iViewDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iViewDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iViewDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iViewDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iViewDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iViewDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iViewDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iViewDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iViewDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iViewDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iViewDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iViewDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iViewDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iViewDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iViewDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iViewDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iViewDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iViewDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iViewDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iViewDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iViewDefinition.qualifiedName); + + writer.WriteStartArray("satisfiedViewpoint"u8); + + foreach (var item in iViewDefinition.satisfiedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iViewDefinition.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iViewDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iViewDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iViewDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iViewDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iViewDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("view"u8); + + foreach (var item in iViewDefinition.view) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("viewCondition"u8); + + foreach (var item in iViewDefinition.viewCondition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("viewRendering"u8); + + if (iViewDefinition.viewRendering.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewDefinition.viewRendering.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IViewDefinition iViewDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iViewDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iViewDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iViewDefinition.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iViewDefinition.ElementId); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iViewDefinition.IsAbstract); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iViewDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iViewDefinition.IsIndividual); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iViewDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iViewDefinition.IsVariation); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iViewDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelationship"u8); + + if (iViewDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewDefinition.OwningRelationship.Value); writer.WriteEndObject(); } else @@ -123,7 +1088,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewRenderingMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewRenderingMembershipSerializer.cs index 1ecd40e7a..a3d446a43 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewRenderingMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewRenderingMembershipSerializer.cs @@ -49,7 +49,10 @@ internal static class ViewRenderingMembershipSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IViewRenderingMembership iViewRenderingMembership) { @@ -64,6 +67,29 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("@id"u8); writer.WriteStringValue(iViewRenderingMembership.Id); + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iViewRenderingMembership, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iViewRenderingMembership, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IViewRenderingMembership iViewRenderingMembership, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iViewRenderingMembership.AliasIds) @@ -79,6 +105,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iViewRenderingMembership.DeclaredShortName); + writer.WriteStartArray("documentation"u8); + + foreach (var item in iViewRenderingMembership.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iViewRenderingMembership.ElementId); @@ -88,18 +126,78 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iViewRenderingMembership.IsImpliedIncluded); + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iViewRenderingMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iViewRenderingMembership.MemberElement); writer.WriteEndObject(); + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iViewRenderingMembership.memberElementId); + writer.WritePropertyName("memberName"u8); writer.WriteStringValue(iViewRenderingMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.membershipOwningNamespace); + writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); writer.WriteStringValue(iViewRenderingMembership.MemberShortName); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iViewRenderingMembership.name); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iViewRenderingMembership.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iViewRenderingMembership.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.ownedMemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberElementId"u8); + writer.WriteStringValue(iViewRenderingMembership.ownedMemberElementId); + + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.ownedMemberFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("ownedMemberName"u8); + writer.WriteStringValue(iViewRenderingMembership.ownedMemberName); + + writer.WritePropertyName("ownedMemberShortName"u8); + writer.WriteStringValue(iViewRenderingMembership.ownedMemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iViewRenderingMembership.OwnedRelatedElement) @@ -124,6 +222,54 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WritePropertyName("ownedRendering"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.ownedRendering); + writer.WriteEndObject(); + + writer.WritePropertyName("owner"u8); + + if (iViewRenderingMembership.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iViewRenderingMembership.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iViewRenderingMembership.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelatedElement"u8); if (iViewRenderingMembership.OwningRelatedElement.HasValue) @@ -152,6 +298,36 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.owningType); + writer.WriteEndObject(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iViewRenderingMembership.qualifiedName); + + writer.WritePropertyName("referencedRendering"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.referencedRendering); + writer.WriteEndObject(); + + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iViewRenderingMembership.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iViewRenderingMembership.shortName); + writer.WriteStartArray("source"u8); foreach (var item in iViewRenderingMembership.Source) @@ -176,10 +352,149 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iViewRenderingMembership.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iViewRenderingMembership.Visibility.ToString().ToLower()); + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IViewRenderingMembership iViewRenderingMembership, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iViewRenderingMembership.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iViewRenderingMembership.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iViewRenderingMembership.DeclaredShortName); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iViewRenderingMembership.ElementId); + + writer.WritePropertyName("isImplied"u8); + writer.WriteBooleanValue(iViewRenderingMembership.IsImplied); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iViewRenderingMembership.IsImpliedIncluded); + + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.MemberElement); writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iViewRenderingMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iViewRenderingMembership.MemberShortName); + + writer.WriteStartArray("ownedRelatedElement"u8); + + foreach (var item in iViewRenderingMembership.OwnedRelatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iViewRenderingMembership.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owningRelatedElement"u8); + + if (iViewRenderingMembership.OwningRelatedElement.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.OwningRelatedElement.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iViewRenderingMembership.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("source"u8); + + foreach (var item in iViewRenderingMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iViewRenderingMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("visibility"u8); + writer.WriteStringValue(iViewRenderingMembership.Visibility.ToString().ToLower()); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewUsageSerializer.cs index 79eb6c191..a561a7bb3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewUsageSerializer.cs @@ -49,21 +49,1328 @@ internal static class ViewUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IViewUsage iViewUsage) { - throw new ArgumentException("The object shall be an IViewUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IViewUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("ViewUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iViewUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iViewUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IViewUsage iViewUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iViewUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iViewUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iViewUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iViewUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iViewUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iViewUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iViewUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iViewUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iViewUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iViewUsage.Direction.HasValue) + { + writer.WriteStringValue(iViewUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iViewUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iViewUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iViewUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iViewUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("exposedElement"u8); + + foreach (var item in iViewUsage.exposedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iViewUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iViewUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iViewUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iViewUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iViewUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iViewUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iViewUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iViewUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iViewUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iViewUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iViewUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iViewUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iViewUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iViewUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iViewUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iViewUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iViewUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iViewUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iViewUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iViewUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iViewUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iViewUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iViewUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iViewUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iViewUsage.IsVariation); + + writer.WriteStartArray("itemDefinition"u8); + + foreach (var item in iViewUsage.itemDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iViewUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iViewUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iViewUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iViewUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iViewUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iViewUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iViewUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iViewUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iViewUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iViewUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iViewUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iViewUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iViewUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iViewUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iViewUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iViewUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iViewUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iViewUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iViewUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iViewUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iViewUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iViewUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iViewUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iViewUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iViewUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iViewUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iViewUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iViewUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iViewUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iViewUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iViewUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iViewUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iViewUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iViewUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iViewUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iViewUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iViewUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iViewUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iViewUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iViewUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iViewUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iViewUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iViewUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iViewUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iViewUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iViewUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iViewUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iViewUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iViewUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iViewUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iViewUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iViewUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iViewUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iViewUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iViewUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("ViewUsage"u8); + writer.WriteStartArray("ownedTyping"u8); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iViewUsage.Id); + foreach (var item in iViewUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iViewUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iViewUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iViewUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iViewUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iViewUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iViewUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iViewUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iViewUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iViewUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("partDefinition"u8); + + foreach (var item in iViewUsage.partDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iViewUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iViewUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iViewUsage.qualifiedName); + + writer.WriteStartArray("satisfiedViewpoint"u8); + + foreach (var item in iViewUsage.satisfiedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iViewUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iViewUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iViewUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iViewUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iViewUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iViewUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iViewUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("viewCondition"u8); + + foreach (var item in iViewUsage.viewCondition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("viewDefinition"u8); + + if (iViewUsage.viewDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.viewDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("viewRendering"u8); + + if (iViewUsage.viewRendering.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewUsage.viewRendering.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IViewUsage iViewUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iViewUsage.AliasIds) @@ -169,7 +1476,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointDefinitionSerializer.cs index 7a1f987b3..d5d617e02 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointDefinitionSerializer.cs @@ -49,21 +49,1071 @@ internal static class ViewpointDefinitionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IViewpointDefinition iViewpointDefinition) { - throw new ArgumentException("The object shall be an IViewpointDefinition", nameof(obj)); + throw new ArgumentException("The object shall be an IViewpointDefinition", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("ViewpointDefinition"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointDefinition.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iViewpointDefinition, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iViewpointDefinition, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IViewpointDefinition iViewpointDefinition, Utf8JsonWriter writer) + { + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iViewpointDefinition.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iViewpointDefinition.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("assumedConstraint"u8); + + foreach (var item in iViewpointDefinition.assumedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iViewpointDefinition.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iViewpointDefinition.DeclaredShortName); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iViewpointDefinition.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iViewpointDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iViewpointDefinition.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iViewpointDefinition.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iViewpointDefinition.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iViewpointDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("expression"u8); + + foreach (var item in iViewpointDefinition.expression) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("feature"u8); + + foreach (var item in iViewpointDefinition.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iViewpointDefinition.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("framedConcern"u8); + + foreach (var item in iViewpointDefinition.framedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iViewpointDefinition.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iViewpointDefinition.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iViewpointDefinition.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iViewpointDefinition.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iViewpointDefinition.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iViewpointDefinition.IsAbstract); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iViewpointDefinition.isConjugated); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iViewpointDefinition.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iViewpointDefinition.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iViewpointDefinition.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iViewpointDefinition.isModelLevelEvaluable); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iViewpointDefinition.IsSufficient); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iViewpointDefinition.IsVariation); + + writer.WriteStartArray("member"u8); + + foreach (var item in iViewpointDefinition.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iViewpointDefinition.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iViewpointDefinition.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointDefinition.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iViewpointDefinition.name); + + writer.WriteStartArray("output"u8); + + foreach (var item in iViewpointDefinition.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAction"u8); + + foreach (var item in iViewpointDefinition.ownedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAllocation"u8); + + foreach (var item in iViewpointDefinition.ownedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnalysisCase"u8); + + foreach (var item in iViewpointDefinition.ownedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iViewpointDefinition.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAttribute"u8); + + foreach (var item in iViewpointDefinition.ownedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCalculation"u8); + + foreach (var item in iViewpointDefinition.ownedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedCase"u8); + + foreach (var item in iViewpointDefinition.ownedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConcern"u8); + + foreach (var item in iViewpointDefinition.ownedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iViewpointDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedConnection"u8); + + foreach (var item in iViewpointDefinition.ownedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedConstraint"u8); + + foreach (var item in iViewpointDefinition.ownedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iViewpointDefinition.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iViewpointDefinition.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iViewpointDefinition.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iViewpointDefinition.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEnumeration"u8); + + foreach (var item in iViewpointDefinition.ownedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iViewpointDefinition.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iViewpointDefinition.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFlow"u8); + + foreach (var item in iViewpointDefinition.ownedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iViewpointDefinition.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedInterface"u8); + + foreach (var item in iViewpointDefinition.ownedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iViewpointDefinition.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedItem"u8); + + foreach (var item in iViewpointDefinition.ownedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iViewpointDefinition.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iViewpointDefinition.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMetadata"u8); + + foreach (var item in iViewpointDefinition.ownedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedOccurrence"u8); + + foreach (var item in iViewpointDefinition.ownedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPart"u8); + + foreach (var item in iViewpointDefinition.ownedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedPort"u8); + + foreach (var item in iViewpointDefinition.ownedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedReference"u8); + + foreach (var item in iViewpointDefinition.ownedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iViewpointDefinition.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRendering"u8); + + foreach (var item in iViewpointDefinition.ownedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRequirement"u8); + + foreach (var item in iViewpointDefinition.ownedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iViewpointDefinition.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedState"u8); + + foreach (var item in iViewpointDefinition.ownedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubclassification"u8); + + foreach (var item in iViewpointDefinition.ownedSubclassification) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTransition"u8); + + foreach (var item in iViewpointDefinition.ownedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iViewpointDefinition.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUsage"u8); + + foreach (var item in iViewpointDefinition.ownedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUseCase"u8); + + foreach (var item in iViewpointDefinition.ownedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedVerificationCase"u8); + + foreach (var item in iViewpointDefinition.ownedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedView"u8); + + foreach (var item in iViewpointDefinition.ownedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedViewpoint"u8); + + foreach (var item in iViewpointDefinition.ownedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iViewpointDefinition.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointDefinition.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iViewpointDefinition.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointDefinition.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iViewpointDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iViewpointDefinition.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointDefinition.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iViewpointDefinition.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iViewpointDefinition.qualifiedName); + + writer.WritePropertyName("reqId"u8); + writer.WriteStringValue(iViewpointDefinition.ReqId); + + writer.WriteStartArray("requiredConstraint"u8); + + foreach (var item in iViewpointDefinition.requiredConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } + writer.WriteEndArray(); + + writer.WritePropertyName("result"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointDefinition.result); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("ViewpointDefinition"u8); + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iViewpointDefinition.shortName); + + writer.WriteStartArray("stakeholderParameter"u8); + + foreach (var item in iViewpointDefinition.stakeholderParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("step"u8); + + foreach (var item in iViewpointDefinition.step) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iViewpointDefinition.Id); + writer.WriteStringValue(iViewpointDefinition.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("text"u8); + + foreach (var item in iViewpointDefinition.text) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iViewpointDefinition.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iViewpointDefinition.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iViewpointDefinition.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iViewpointDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iViewpointDefinition.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("viewpointStakeholder"u8); + + foreach (var item in iViewpointDefinition.viewpointStakeholder) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IViewpointDefinition iViewpointDefinition, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iViewpointDefinition.AliasIds) @@ -126,7 +1176,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("reqId"u8); writer.WriteStringValue(iViewpointDefinition.ReqId); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointUsageSerializer.cs index 264005147..f2b23fb3a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointUsageSerializer.cs @@ -49,21 +49,1433 @@ internal static class ViewpointUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IViewpointUsage iViewpointUsage) { - throw new ArgumentException("The object shall be an IViewpointUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IViewpointUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("ViewpointUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iViewpointUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iViewpointUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpointUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actorParameter"u8); + + foreach (var item in iViewpointUsage.actorParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iViewpointUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("assumedConstraint"u8); + + foreach (var item in iViewpointUsage.assumedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iViewpointUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iViewpointUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("constraintDefinition"u8); + + if (iViewpointUsage.constraintDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.constraintDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("crossFeature"u8); + + if (iViewpointUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iViewpointUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iViewpointUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iViewpointUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iViewpointUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iViewpointUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iViewpointUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iViewpointUsage.Direction.HasValue) + { + writer.WriteStringValue(iViewpointUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iViewpointUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iViewpointUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iViewpointUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iViewpointUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iViewpointUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iViewpointUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iViewpointUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("framedConcern"u8); + + foreach (var item in iViewpointUsage.framedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("function"u8); + + if (iViewpointUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iViewpointUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iViewpointUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iViewpointUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iViewpointUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iViewpointUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iViewpointUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iViewpointUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iViewpointUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iViewpointUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iViewpointUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iViewpointUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iViewpointUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iViewpointUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iViewpointUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iViewpointUsage.isLibraryElement); + + writer.WritePropertyName("isModelLevelEvaluable"u8); + writer.WriteBooleanValue(iViewpointUsage.isModelLevelEvaluable); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iViewpointUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iViewpointUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iViewpointUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iViewpointUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iViewpointUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iViewpointUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iViewpointUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iViewpointUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iViewpointUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iViewpointUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iViewpointUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iViewpointUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iViewpointUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iViewpointUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iViewpointUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iViewpointUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iViewpointUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iViewpointUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iViewpointUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iViewpointUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iViewpointUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iViewpointUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iViewpointUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iViewpointUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iViewpointUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iViewpointUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iViewpointUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iViewpointUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iViewpointUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iViewpointUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iViewpointUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iViewpointUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iViewpointUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iViewpointUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iViewpointUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iViewpointUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iViewpointUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iViewpointUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iViewpointUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iViewpointUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iViewpointUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iViewpointUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iViewpointUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iViewpointUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iViewpointUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iViewpointUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iViewpointUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iViewpointUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iViewpointUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iViewpointUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iViewpointUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iViewpointUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iViewpointUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iViewpointUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iViewpointUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iViewpointUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iViewpointUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iViewpointUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iViewpointUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iViewpointUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iViewpointUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iViewpointUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iViewpointUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iViewpointUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iViewpointUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iViewpointUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iViewpointUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iViewpointUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iViewpointUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iViewpointUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iViewpointUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iViewpointUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iViewpointUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iViewpointUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iViewpointUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("predicate"u8); + + if (iViewpointUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iViewpointUsage.qualifiedName); + + writer.WritePropertyName("reqId"u8); + writer.WriteStringValue(iViewpointUsage.ReqId); + + writer.WriteStartArray("requiredConstraint"u8); + + foreach (var item in iViewpointUsage.requiredConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("requirementDefinition"u8); + + if (iViewpointUsage.requirementDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.requirementDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); } + writer.WritePropertyName("result"u8); writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.result); + writer.WriteEndObject(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("ViewpointUsage"u8); + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iViewpointUsage.shortName); + writer.WriteStartArray("stakeholderParameter"u8); + + foreach (var item in iViewpointUsage.stakeholderParameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("subjectParameter"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iViewpointUsage.Id); + writer.WriteStringValue(iViewpointUsage.subjectParameter); + writer.WriteEndObject(); + + writer.WriteStartArray("text"u8); + + foreach (var item in iViewpointUsage.text) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iViewpointUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iViewpointUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + + foreach (var item in iViewpointUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + writer.WriteEndArray(); + + writer.WriteStartArray("usage"u8); + + foreach (var item in iViewpointUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iViewpointUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iViewpointUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("viewpointDefinition"u8); + + if (iViewpointUsage.viewpointDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.viewpointDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("viewpointStakeholder"u8); + + foreach (var item in iViewpointUsage.viewpointStakeholder) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + } + + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IViewpointUsage iViewpointUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iViewpointUsage.AliasIds) @@ -172,7 +1584,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WritePropertyName("reqId"u8); writer.WriteStringValue(iViewpointUsage.ReqId); - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/WhileLoopActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/WhileLoopActionUsageSerializer.cs index b147ddb6e..2978bff40 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/WhileLoopActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/WhileLoopActionUsageSerializer.cs @@ -49,21 +49,1302 @@ internal static class WhileLoopActionUsageSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (obj is not IWhileLoopActionUsage iWhileLoopActionUsage) { - throw new ArgumentException("The object shall be an IWhileLoopActionUsage", nameof(obj)); + throw new ArgumentException("The object shall be an IWhileLoopActionUsage", nameof(obj)); + } + + writer.WriteStartObject(); + + writer.WritePropertyName("@type"u8); + writer.WriteStringValue("WhileLoopActionUsage"u8); + + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.Id); + + if (includeDerivedProperties) + { + SerializeAsJsonWithDerivedProperties(iWhileLoopActionUsage, writer); + } + else + { + SerializeAsJsonWithoutDerivedProperties(iWhileLoopActionUsage, writer); + } + + writer.WriteEndObject(); + } + + /// + /// Serializes an instance of using an as JSON including derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithDerivedProperties(IWhileLoopActionUsage iWhileLoopActionUsage, Utf8JsonWriter writer) + { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iWhileLoopActionUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("aliasIds"u8); + + foreach (var item in iWhileLoopActionUsage.AliasIds) + { + writer.WriteStringValue(item); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iWhileLoopActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("bodyAction"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.bodyAction); + writer.WriteEndObject(); + + writer.WriteStartArray("chainingFeature"u8); + + foreach (var item in iWhileLoopActionUsage.chainingFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("crossFeature"u8); + + if (iWhileLoopActionUsage.crossFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.crossFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("declaredName"u8); + writer.WriteStringValue(iWhileLoopActionUsage.DeclaredName); + + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iWhileLoopActionUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iWhileLoopActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("differencingType"u8); + + foreach (var item in iWhileLoopActionUsage.differencingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iWhileLoopActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("directedUsage"u8); + + foreach (var item in iWhileLoopActionUsage.directedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("direction"u8); + + if (iWhileLoopActionUsage.Direction.HasValue) + { + writer.WriteStringValue(iWhileLoopActionUsage.Direction.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("documentation"u8); + + foreach (var item in iWhileLoopActionUsage.documentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("elementId"u8); + writer.WriteStringValue(iWhileLoopActionUsage.ElementId); + + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iWhileLoopActionUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("endOwningType"u8); + + if (iWhileLoopActionUsage.endOwningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.endOwningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("feature"u8); + + foreach (var item in iWhileLoopActionUsage.feature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("featureMembership"u8); + + foreach (var item in iWhileLoopActionUsage.featureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("featureTarget"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.featureTarget); + writer.WriteEndObject(); + + writer.WriteStartArray("featuringType"u8); + + foreach (var item in iWhileLoopActionUsage.featuringType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("importedMembership"u8); + + foreach (var item in iWhileLoopActionUsage.importedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("individualDefinition"u8); + + if (iWhileLoopActionUsage.individualDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.individualDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("inheritedFeature"u8); + + foreach (var item in iWhileLoopActionUsage.inheritedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("inheritedMembership"u8); + + foreach (var item in iWhileLoopActionUsage.inheritedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("input"u8); + + foreach (var item in iWhileLoopActionUsage.input) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("intersectingType"u8); + + foreach (var item in iWhileLoopActionUsage.intersectingType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("isAbstract"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsAbstract); + + writer.WritePropertyName("isComposite"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsComposite); + + writer.WritePropertyName("isConjugated"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.isConjugated); + + writer.WritePropertyName("isConstant"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsConstant); + + writer.WritePropertyName("isDerived"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsDerived); + + writer.WritePropertyName("isEnd"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsEnd); + + writer.WritePropertyName("isImpliedIncluded"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsImpliedIncluded); + + writer.WritePropertyName("isIndividual"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsIndividual); + + writer.WritePropertyName("isLibraryElement"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.isLibraryElement); + + writer.WritePropertyName("isOrdered"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsOrdered); + + writer.WritePropertyName("isPortion"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsPortion); + + writer.WritePropertyName("isReference"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.isReference); + + writer.WritePropertyName("isSufficient"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsSufficient); + + writer.WritePropertyName("isUnique"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsUnique); + + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsVariable); + + writer.WritePropertyName("isVariation"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsVariation); + + writer.WritePropertyName("mayTimeVary"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.mayTimeVary); + + writer.WriteStartArray("member"u8); + + foreach (var item in iWhileLoopActionUsage.member) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("membership"u8); + + foreach (var item in iWhileLoopActionUsage.membership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("multiplicity"u8); + + if (iWhileLoopActionUsage.multiplicity.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.multiplicity.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(iWhileLoopActionUsage.name); + + writer.WriteStartArray("nestedAction"u8); + + foreach (var item in iWhileLoopActionUsage.nestedAction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAllocation"u8); + + foreach (var item in iWhileLoopActionUsage.nestedAllocation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAnalysisCase"u8); + + foreach (var item in iWhileLoopActionUsage.nestedAnalysisCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedAttribute"u8); + + foreach (var item in iWhileLoopActionUsage.nestedAttribute) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCalculation"u8); + + foreach (var item in iWhileLoopActionUsage.nestedCalculation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedCase"u8); + + foreach (var item in iWhileLoopActionUsage.nestedCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConcern"u8); + + foreach (var item in iWhileLoopActionUsage.nestedConcern) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConnection"u8); + + foreach (var item in iWhileLoopActionUsage.nestedConnection) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedConstraint"u8); + + foreach (var item in iWhileLoopActionUsage.nestedConstraint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedEnumeration"u8); + + foreach (var item in iWhileLoopActionUsage.nestedEnumeration) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedFlow"u8); + + foreach (var item in iWhileLoopActionUsage.nestedFlow) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedInterface"u8); + + foreach (var item in iWhileLoopActionUsage.nestedInterface) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedItem"u8); + + foreach (var item in iWhileLoopActionUsage.nestedItem) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedMetadata"u8); + + foreach (var item in iWhileLoopActionUsage.nestedMetadata) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedOccurrence"u8); + + foreach (var item in iWhileLoopActionUsage.nestedOccurrence) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPart"u8); + + foreach (var item in iWhileLoopActionUsage.nestedPart) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedPort"u8); + + foreach (var item in iWhileLoopActionUsage.nestedPort) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedReference"u8); + + foreach (var item in iWhileLoopActionUsage.nestedReference) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRendering"u8); + + foreach (var item in iWhileLoopActionUsage.nestedRendering) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedRequirement"u8); + + foreach (var item in iWhileLoopActionUsage.nestedRequirement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedState"u8); + + foreach (var item in iWhileLoopActionUsage.nestedState) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedTransition"u8); + + foreach (var item in iWhileLoopActionUsage.nestedTransition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUsage"u8); + + foreach (var item in iWhileLoopActionUsage.nestedUsage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedUseCase"u8); + + foreach (var item in iWhileLoopActionUsage.nestedUseCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedVerificationCase"u8); + + foreach (var item in iWhileLoopActionUsage.nestedVerificationCase) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedView"u8); + + foreach (var item in iWhileLoopActionUsage.nestedView) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("nestedViewpoint"u8); + + foreach (var item in iWhileLoopActionUsage.nestedViewpoint) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iWhileLoopActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("output"u8); + + foreach (var item in iWhileLoopActionUsage.output) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedAnnotation"u8); + + foreach (var item in iWhileLoopActionUsage.ownedAnnotation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedConjugator"u8); + + if (iWhileLoopActionUsage.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("ownedCrossSubsetting"u8); + + if (iWhileLoopActionUsage.ownedCrossSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.ownedCrossSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedDifferencing"u8); + + foreach (var item in iWhileLoopActionUsage.ownedDifferencing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedDisjoining"u8); + + foreach (var item in iWhileLoopActionUsage.ownedDisjoining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedElement"u8); + + foreach (var item in iWhileLoopActionUsage.ownedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedEndFeature"u8); + + foreach (var item in iWhileLoopActionUsage.ownedEndFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeature"u8); + + foreach (var item in iWhileLoopActionUsage.ownedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureChaining"u8); + + foreach (var item in iWhileLoopActionUsage.ownedFeatureChaining) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureInverting"u8); + + foreach (var item in iWhileLoopActionUsage.ownedFeatureInverting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedFeatureMembership"u8); + + foreach (var item in iWhileLoopActionUsage.ownedFeatureMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedImport"u8); + + foreach (var item in iWhileLoopActionUsage.ownedImport) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedIntersecting"u8); + + foreach (var item in iWhileLoopActionUsage.ownedIntersecting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMember"u8); + + foreach (var item in iWhileLoopActionUsage.ownedMember) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedMembership"u8); + + foreach (var item in iWhileLoopActionUsage.ownedMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedRedefinition"u8); + + foreach (var item in iWhileLoopActionUsage.ownedRedefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("ownedReferenceSubsetting"u8); + + if (iWhileLoopActionUsage.ownedReferenceSubsetting.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.ownedReferenceSubsetting.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("ownedRelationship"u8); + + foreach (var item in iWhileLoopActionUsage.OwnedRelationship) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedSpecialization"u8); + + foreach (var item in iWhileLoopActionUsage.ownedSpecialization) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); } - writer.WriteStartObject(); + writer.WriteEndArray(); - writer.WritePropertyName("@type"u8); - writer.WriteStringValue("WhileLoopActionUsage"u8); + writer.WriteStartArray("ownedSubsetting"u8); + + foreach (var item in iWhileLoopActionUsage.ownedSubsetting) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTypeFeaturing"u8); + + foreach (var item in iWhileLoopActionUsage.ownedTypeFeaturing) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedTyping"u8); + + foreach (var item in iWhileLoopActionUsage.ownedTyping) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("ownedUnioning"u8); + + foreach (var item in iWhileLoopActionUsage.ownedUnioning) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("owner"u8); + + if (iWhileLoopActionUsage.owner.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.owner.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningDefinition"u8); + + if (iWhileLoopActionUsage.owningDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.owningDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningFeatureMembership"u8); + + if (iWhileLoopActionUsage.owningFeatureMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.owningFeatureMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningMembership"u8); + + if (iWhileLoopActionUsage.owningMembership.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.owningMembership.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningNamespace"u8); + + if (iWhileLoopActionUsage.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningRelationship"u8); + + if (iWhileLoopActionUsage.OwningRelationship.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.OwningRelationship.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningType"u8); + + if (iWhileLoopActionUsage.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("owningUsage"u8); + + if (iWhileLoopActionUsage.owningUsage.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.owningUsage.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("parameter"u8); + + foreach (var item in iWhileLoopActionUsage.parameter) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("portionKind"u8); + + if (iWhileLoopActionUsage.PortionKind.HasValue) + { + writer.WriteStringValue(iWhileLoopActionUsage.PortionKind.Value.ToString().ToLower()); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("qualifiedName"u8); + writer.WriteStringValue(iWhileLoopActionUsage.qualifiedName); + + writer.WritePropertyName("shortName"u8); + writer.WriteStringValue(iWhileLoopActionUsage.shortName); + + writer.WriteStartArray("textualRepresentation"u8); + + foreach (var item in iWhileLoopActionUsage.textualRepresentation) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("type"u8); + + foreach (var item in iWhileLoopActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("unioningType"u8); + foreach (var item in iWhileLoopActionUsage.unioningType) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("untilArgument"u8); + + if (iWhileLoopActionUsage.untilArgument.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iWhileLoopActionUsage.untilArgument.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WriteStartArray("usage"u8); + + foreach (var item in iWhileLoopActionUsage.usage) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variant"u8); + + foreach (var item in iWhileLoopActionUsage.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("variantMembership"u8); + + foreach (var item in iWhileLoopActionUsage.variantMembership) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("whileArgument"u8); + writer.WriteStartObject(); writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iWhileLoopActionUsage.Id); + writer.WriteStringValue(iWhileLoopActionUsage.whileArgument); + writer.WriteEndObject(); + + } + /// + /// Serializes an instance of using an as JSON excluding derived properties + /// + /// + /// The to serialize + /// + /// + /// The target + /// + private static void SerializeAsJsonWithoutDerivedProperties(IWhileLoopActionUsage iWhileLoopActionUsage, Utf8JsonWriter writer) + { writer.WriteStartArray("aliasIds"u8); foreach (var item in iWhileLoopActionUsage.AliasIds) @@ -169,7 +1450,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteNullValue(); } - writer.WriteEndObject(); } } } diff --git a/SysML2.NET.Serializer.Json/ISerializer.cs b/SysML2.NET.Serializer.Json/ISerializer.cs index ec28ec620..3163f8466 100644 --- a/SysML2.NET.Serializer.Json/ISerializer.cs +++ b/SysML2.NET.Serializer.Json/ISerializer.cs @@ -27,7 +27,6 @@ namespace SysML2.NET.Serializer.Json using System.Threading.Tasks; using SysML2.NET.Common; - using SysML2.NET.Serializer.Json; /// /// The purpose of the is to write an and @@ -44,13 +43,16 @@ public interface ISerializer /// /// The to use /// + /// + /// Asserts that derived properties should also be part of the serialization + /// /// /// The target /// /// /// The to use /// - void Serialize(IEnumerable dataItems, SerializationModeKind serializationModeKind, Stream stream, JsonWriterOptions jsonWriterOptions); + void Serialize(IEnumerable dataItems, SerializationModeKind serializationModeKind, bool includeDerivedProperties, Stream stream, JsonWriterOptions jsonWriterOptions); /// /// Serialize an as JSON to a target @@ -61,13 +63,16 @@ public interface ISerializer /// /// The to use /// + /// + /// Asserts that derived properties should also be part of the serialization + /// /// /// The target /// /// /// The to use /// - void Serialize(IData dataItem, SerializationModeKind serializationModeKind, Stream stream, JsonWriterOptions jsonWriterOptions); + void Serialize(IData dataItem, SerializationModeKind serializationModeKind, bool includeDerivedProperties, Stream stream, JsonWriterOptions jsonWriterOptions); /// /// Asynchronously serialize an as JSON to a target @@ -78,6 +83,9 @@ public interface ISerializer /// /// The to use /// + /// + /// Asserts that derived properties should also be part of the serialization + /// /// /// The target /// @@ -87,7 +95,7 @@ public interface ISerializer /// /// The used to cancel the operation /// - Task SerializeAsync(IEnumerable dataItems, SerializationModeKind serializationModeKind, Stream stream, JsonWriterOptions jsonWriterOptions, CancellationToken cancellationToken); + Task SerializeAsync(IEnumerable dataItems, SerializationModeKind serializationModeKind, bool includeDerivedProperties, Stream stream, JsonWriterOptions jsonWriterOptions, CancellationToken cancellationToken); /// /// Asynchronously serialize an as JSON to a target @@ -98,6 +106,9 @@ public interface ISerializer /// /// The to use /// + /// + /// Asserts that derived properties should also be part of the serialization + /// /// /// The target /// @@ -107,6 +118,6 @@ public interface ISerializer /// /// The used to cancel the operation /// - Task SerializeAsync(IData dataItem, SerializationModeKind serializationModeKind, Stream stream, JsonWriterOptions jsonWriterOptions, CancellationToken cancellationToken); + Task SerializeAsync(IData dataItem, SerializationModeKind serializationModeKind, bool includeDerivedProperties, Stream stream, JsonWriterOptions jsonWriterOptions, CancellationToken cancellationToken); } } diff --git a/SysML2.NET.Serializer.Json/PIM/ApiSerializationProvider.cs b/SysML2.NET.Serializer.Json/PIM/ApiSerializationProvider.cs index 99be29399..ab2d312e6 100644 --- a/SysML2.NET.Serializer.Json/PIM/ApiSerializationProvider.cs +++ b/SysML2.NET.Serializer.Json/PIM/ApiSerializationProvider.cs @@ -31,7 +31,7 @@ namespace SysML2.NET.Serializer.Json.PIM.DTO /// internal static class ApiSerializationProvider { - private static readonly Dictionary> SerializerActionMap = new Dictionary> + private static readonly Dictionary> SerializerActionMap = new Dictionary> { { typeof(SysML2.NET.PIM.DTO.Branch), BranchSerializer.Serialize }, { typeof(SysML2.NET.PIM.DTO.Commit), CommitSerializer.Serialize }, @@ -54,7 +54,7 @@ internal static class ApiSerializationProvider /// /// Thrown when the is not supported. /// - internal static Action Provide(System.Type type) + internal static Action Provide(System.Type type) { if (!SerializerActionMap.TryGetValue(type, out var action)) { diff --git a/SysML2.NET.Serializer.Json/PIM/BranchSerializer.cs b/SysML2.NET.Serializer.Json/PIM/BranchSerializer.cs index bba34ad53..4a3383798 100644 --- a/SysML2.NET.Serializer.Json/PIM/BranchSerializer.cs +++ b/SysML2.NET.Serializer.Json/PIM/BranchSerializer.cs @@ -43,7 +43,10 @@ internal static class BranchSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (!(obj is Branch branch)) { diff --git a/SysML2.NET.Serializer.Json/PIM/CommitSerializer.cs b/SysML2.NET.Serializer.Json/PIM/CommitSerializer.cs index 154f6ccd3..a02e45ab7 100644 --- a/SysML2.NET.Serializer.Json/PIM/CommitSerializer.cs +++ b/SysML2.NET.Serializer.Json/PIM/CommitSerializer.cs @@ -43,7 +43,10 @@ internal static class CommitSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (!(obj is Commit commit)) { diff --git a/SysML2.NET.Serializer.Json/PIM/DataIdentitySerializer.cs b/SysML2.NET.Serializer.Json/PIM/DataIdentitySerializer.cs index 4e8fa7089..f420313b1 100644 --- a/SysML2.NET.Serializer.Json/PIM/DataIdentitySerializer.cs +++ b/SysML2.NET.Serializer.Json/PIM/DataIdentitySerializer.cs @@ -43,7 +43,10 @@ internal static class DataIdentitySerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (!(obj is DataIdentity dataIdentity)) { diff --git a/SysML2.NET.Serializer.Json/PIM/DataVersionSerializer.cs b/SysML2.NET.Serializer.Json/PIM/DataVersionSerializer.cs index 16c9ade47..0e61bd1d4 100644 --- a/SysML2.NET.Serializer.Json/PIM/DataVersionSerializer.cs +++ b/SysML2.NET.Serializer.Json/PIM/DataVersionSerializer.cs @@ -44,7 +44,10 @@ internal static class DataVersionSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (!(obj is DataVersion dataVersion)) { @@ -69,11 +72,11 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM writer.WriteEndArray(); writer.WriteString("description"u8, dataVersion.Description); writer.WriteStartObject("identity"u8); - DataIdentitySerializer.Serialize(dataVersion.Identity, writer, serializationModeKind); + DataIdentitySerializer.Serialize(dataVersion.Identity, writer, serializationModeKind, includeDerivedProperties); writer.WriteEndObject(); writer.WriteStartObject("payload"u8); var func = SerializationProvider.Provide(dataVersion.Payload.GetType()); - func(dataVersion.Payload, writer, serializationModeKind); + func(dataVersion.Payload, writer, serializationModeKind, includeDerivedProperties); writer.WriteEndObject(); writer.WriteString("resourceIdentifier"u8, dataVersion.ResourceIdentifier); writer.WriteEndObject(); diff --git a/SysML2.NET.Serializer.Json/PIM/ProjectSerializer.cs b/SysML2.NET.Serializer.Json/PIM/ProjectSerializer.cs index a4ff42d8b..413d9a295 100644 --- a/SysML2.NET.Serializer.Json/PIM/ProjectSerializer.cs +++ b/SysML2.NET.Serializer.Json/PIM/ProjectSerializer.cs @@ -43,7 +43,10 @@ internal static class ProjectSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (!(obj is Project project)) { diff --git a/SysML2.NET.Serializer.Json/PIM/TagSerializer.cs b/SysML2.NET.Serializer.Json/PIM/TagSerializer.cs index 6e0c5be51..f4dc8056b 100644 --- a/SysML2.NET.Serializer.Json/PIM/TagSerializer.cs +++ b/SysML2.NET.Serializer.Json/PIM/TagSerializer.cs @@ -43,7 +43,10 @@ internal static class TagSerializer /// /// enumeration specifying what kind of serialization shall be used /// - internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind) + /// + /// Asserts that derived properties should also be part of the serialization + /// + internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationModeKind serializationModeKind, bool includeDerivedProperties) { if (!(obj is Tag tag)) { diff --git a/SysML2.NET.Serializer.Json/Serializer.cs b/SysML2.NET.Serializer.Json/Serializer.cs index 2c28fea57..331b1c492 100644 --- a/SysML2.NET.Serializer.Json/Serializer.cs +++ b/SysML2.NET.Serializer.Json/Serializer.cs @@ -27,7 +27,7 @@ namespace SysML2.NET.Serializer.Json using System.Threading.Tasks; using SysML2.NET.Common; - using SysML2.NET.Core.DTO; + using SysML2.NET.Core.DTO.Root.Elements; using SysML2.NET.Serializer.Json.PIM.DTO; using SysML2.NET.Serializer.Json.Core.DTO; @@ -46,38 +46,40 @@ public class Serializer : ISerializer /// /// The to use /// + /// + /// Asserts that derived properties should also be part of the serialization + /// /// /// The target /// /// /// The to use /// - public void Serialize(IEnumerable dataItems, SerializationModeKind serializationModeKind, Stream stream, JsonWriterOptions jsonWriterOptions) + public void Serialize(IEnumerable dataItems, SerializationModeKind serializationModeKind, bool includeDerivedProperties, Stream stream, JsonWriterOptions jsonWriterOptions) { - using (var writer = new Utf8JsonWriter(stream, jsonWriterOptions)) - { - writer.WriteStartArray(); + using var writer = new Utf8JsonWriter(stream, jsonWriterOptions); - foreach (var dataItem in dataItems) + writer.WriteStartArray(); + + foreach (var dataItem in dataItems) + { + if (ApiSerializationProvider.IsTypeSupported(dataItem.GetType())) { - if (ApiSerializationProvider.IsTypeSupported(dataItem.GetType())) - { - var serializationAction = ApiSerializationProvider.Provide(dataItem.GetType()); - serializationAction(dataItem, writer, serializationModeKind); - writer.Flush(); - } - else - { - var serializationAction = SerializationProvider.Provide(dataItem.GetType()); - serializationAction(dataItem, writer, serializationModeKind); - writer.Flush(); - } + var serializationAction = ApiSerializationProvider.Provide(dataItem.GetType()); + serializationAction(dataItem, writer, serializationModeKind, includeDerivedProperties); + writer.Flush(); } + else + { + var serializationAction = SerializationProvider.Provide(dataItem.GetType()); + serializationAction(dataItem, writer, serializationModeKind, includeDerivedProperties); + writer.Flush(); + } + } - writer.WriteEndArray(); + writer.WriteEndArray(); - writer.Flush(); - } + writer.Flush(); } /// @@ -89,28 +91,30 @@ public void Serialize(IEnumerable dataItems, SerializationModeKind serial /// /// The to use /// + /// + /// Asserts that derived properties should also be part of the serialization + /// /// /// The target /// /// /// The to use /// - public void Serialize(IData dataItem, SerializationModeKind serializationModeKind, Stream stream, JsonWriterOptions jsonWriterOptions) + public void Serialize(IData dataItem, SerializationModeKind serializationModeKind, bool includeDerivedProperties, Stream stream, JsonWriterOptions jsonWriterOptions) { - using (var writer = new Utf8JsonWriter(stream, jsonWriterOptions)) + using var writer = new Utf8JsonWriter(stream, jsonWriterOptions); + + if (ApiSerializationProvider.IsTypeSupported(dataItem.GetType())) { - if (ApiSerializationProvider.IsTypeSupported(dataItem.GetType())) - { - var serializationAction = ApiSerializationProvider.Provide(dataItem.GetType()); - serializationAction(dataItem, writer, serializationModeKind); - writer.Flush(); - } - else - { - var serializationAction = SerializationProvider.Provide(dataItem.GetType()); - serializationAction(dataItem, writer, serializationModeKind); - writer.Flush(); - } + var serializationAction = ApiSerializationProvider.Provide(dataItem.GetType()); + serializationAction(dataItem, writer, serializationModeKind, includeDerivedProperties); + writer.Flush(); + } + else + { + var serializationAction = SerializationProvider.Provide(dataItem.GetType()); + serializationAction(dataItem, writer, serializationModeKind, includeDerivedProperties); + writer.Flush(); } } @@ -123,6 +127,9 @@ public void Serialize(IData dataItem, SerializationModeKind serializationModeKin /// /// The to use /// + /// + /// Asserts that derived properties should also be part of the serialization + /// /// /// The target /// @@ -132,32 +139,31 @@ public void Serialize(IData dataItem, SerializationModeKind serializationModeKin /// /// The used to cancel the operation /// - public async Task SerializeAsync(IEnumerable dataItems, SerializationModeKind serializationModeKind, Stream stream, JsonWriterOptions jsonWriterOptions, CancellationToken cancellationToken) + public async Task SerializeAsync(IEnumerable dataItems, SerializationModeKind serializationModeKind, bool includeDerivedProperties, Stream stream, JsonWriterOptions jsonWriterOptions, CancellationToken cancellationToken) { - using (var writer = new Utf8JsonWriter(stream, jsonWriterOptions)) - { - writer.WriteStartArray(); + await using var writer = new Utf8JsonWriter(stream, jsonWriterOptions); + + writer.WriteStartArray(); - foreach (var element in dataItems) + foreach (var element in dataItems) + { + if (ApiSerializationProvider.IsTypeSupported(element.GetType())) { - if (ApiSerializationProvider.IsTypeSupported(element.GetType())) - { - var serializationAction = ApiSerializationProvider.Provide(element.GetType()); - serializationAction(element, writer, serializationModeKind); - await writer.FlushAsync(cancellationToken); - } - else - { - var serializationAction = SerializationProvider.Provide(element.GetType()); - serializationAction(element, writer, serializationModeKind); - await writer.FlushAsync(cancellationToken); - } + var serializationAction = ApiSerializationProvider.Provide(element.GetType()); + serializationAction(element, writer, serializationModeKind, includeDerivedProperties); + await writer.FlushAsync(cancellationToken); } + else + { + var serializationAction = SerializationProvider.Provide(element.GetType()); + serializationAction(element, writer, serializationModeKind, includeDerivedProperties); + await writer.FlushAsync(cancellationToken); + } + } - writer.WriteEndArray(); + writer.WriteEndArray(); - await writer.FlushAsync(cancellationToken); - } + await writer.FlushAsync(cancellationToken); } /// @@ -169,6 +175,9 @@ public async Task SerializeAsync(IEnumerable dataItems, SerializationMode /// /// The to use /// + /// + /// Asserts that derived properties should also be part of the serialization + /// /// /// The target /// @@ -178,22 +187,21 @@ public async Task SerializeAsync(IEnumerable dataItems, SerializationMode /// /// The used to cancel the operation /// - public async Task SerializeAsync(IData dataItem, SerializationModeKind serializationModeKind, Stream stream, JsonWriterOptions jsonWriterOptions, CancellationToken cancellationToken) + public async Task SerializeAsync(IData dataItem, SerializationModeKind serializationModeKind, bool includeDerivedProperties, Stream stream, JsonWriterOptions jsonWriterOptions, CancellationToken cancellationToken) { - using (var writer = new Utf8JsonWriter(stream, jsonWriterOptions)) + await using var writer = new Utf8JsonWriter(stream, jsonWriterOptions); + + if (ApiSerializationProvider.IsTypeSupported(dataItem.GetType())) { - if (ApiSerializationProvider.IsTypeSupported(dataItem.GetType())) - { - var serializationAction = ApiSerializationProvider.Provide(dataItem.GetType()); - serializationAction(dataItem, writer, serializationModeKind); - await writer.FlushAsync(cancellationToken); - } - else - { - var serializationAction = SerializationProvider.Provide(dataItem.GetType()); - serializationAction(dataItem, writer, serializationModeKind); - await writer.FlushAsync(cancellationToken); - } + var serializationAction = ApiSerializationProvider.Provide(dataItem.GetType()); + serializationAction(dataItem, writer, serializationModeKind, includeDerivedProperties); + await writer.FlushAsync(cancellationToken); + } + else + { + var serializationAction = SerializationProvider.Provide(dataItem.GetType()); + serializationAction(dataItem, writer, serializationModeKind, includeDerivedProperties); + await writer.FlushAsync(cancellationToken); } } } diff --git a/SysML2.NET/Core/AutoGenDto/AcceptActionUsage.cs b/SysML2.NET/Core/AutoGenDto/AcceptActionUsage.cs index a27c3e3e2..24c545403 100644 --- a/SysML2.NET/Core/AutoGenDto/AcceptActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AcceptActionUsage.cs @@ -59,7 +59,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -75,7 +75,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -87,7 +87,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -97,7 +97,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -125,7 +125,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -138,7 +138,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -147,7 +147,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -156,7 +156,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -173,7 +173,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -189,7 +189,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -199,7 +199,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -207,7 +207,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -216,14 +216,14 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -233,7 +233,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -241,7 +241,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -249,7 +249,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -257,7 +257,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -266,7 +266,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -274,7 +274,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -287,7 +287,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -311,7 +311,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -366,7 +366,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -388,7 +388,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -437,7 +437,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -445,7 +445,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -453,7 +453,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -463,7 +463,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -473,7 +473,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -481,7 +481,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -489,7 +489,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -497,7 +497,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -505,7 +505,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -513,7 +513,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -521,7 +521,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -529,7 +529,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -539,7 +539,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -547,7 +547,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -555,7 +555,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -563,7 +563,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -571,7 +571,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -579,7 +579,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -587,7 +587,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -595,7 +595,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -603,7 +603,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -611,7 +611,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -619,7 +619,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -627,7 +627,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -635,7 +635,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -643,7 +643,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -651,7 +651,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -660,7 +660,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -668,7 +668,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -676,7 +676,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -684,7 +684,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -692,7 +692,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -703,7 +703,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -711,7 +711,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -721,7 +721,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -730,7 +730,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -739,7 +739,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -749,7 +749,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -759,7 +759,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -767,7 +767,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -776,7 +776,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -784,7 +784,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -794,7 +794,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -804,7 +804,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -814,7 +814,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -824,7 +824,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -833,7 +833,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -842,7 +842,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -853,7 +853,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -862,7 +862,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -871,7 +871,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -889,7 +889,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -899,7 +899,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -909,7 +909,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -919,7 +919,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -928,7 +928,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -936,7 +936,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -945,7 +945,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -953,7 +953,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -962,7 +962,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -971,7 +971,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -989,7 +989,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -997,7 +997,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1006,7 +1006,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// An Expression whose result is bound to the payload parameter of this AcceptActionUsage. If provided, @@ -1014,7 +1014,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1642710978429_81558_4948", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAcceptActionUsage.PayloadArgument")] - public Guid? PayloadArgument { get; internal set; } + public Guid? payloadArgument { get; internal set; } /// /// The nestedReference of this AcceptActionUsage that redefines the payload output parameter of the @@ -1024,7 +1024,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591477541360_47573_933")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IAcceptActionUsage.PayloadParameter")] - public Guid PayloadParameter { get; internal set; } + public Guid payloadParameter { get; internal set; } /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1045,14 +1045,14 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An Expression whose result is bound to the receiver input parameter of this AcceptActionUsage. /// [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)] [Implements(implementation: "IAcceptActionUsage.ReceiverArgument")] - public Guid? ReceiverArgument { get; internal set; } + public Guid? receiverArgument { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1062,7 +1062,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1071,7 +1071,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1082,7 +1082,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1093,7 +1093,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1101,7 +1101,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1110,7 +1110,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1119,7 +1119,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ActionDefinition.cs b/SysML2.NET/Core/AutoGenDto/ActionDefinition.cs index 92c676fc8..1912add73 100644 --- a/SysML2.NET/Core/AutoGenDto/ActionDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ActionDefinition.cs @@ -55,7 +55,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List Action { get; internal set; } + public List action { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -92,7 +92,7 @@ public partial class ActionDefinition : IActionDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -101,7 +101,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -110,7 +110,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -119,7 +119,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -135,7 +135,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -143,7 +143,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -152,7 +152,7 @@ public partial class ActionDefinition : IActionDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -160,7 +160,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -168,7 +168,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -177,7 +177,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -185,7 +185,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -198,7 +198,7 @@ public partial class ActionDefinition : IActionDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -213,7 +213,7 @@ public partial class ActionDefinition : IActionDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -238,7 +238,7 @@ public partial class ActionDefinition : IActionDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -266,7 +266,7 @@ public partial class ActionDefinition : IActionDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -274,7 +274,7 @@ public partial class ActionDefinition : IActionDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -284,7 +284,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -294,7 +294,7 @@ public partial class ActionDefinition : IActionDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -302,7 +302,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -310,7 +310,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -318,7 +318,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -326,7 +326,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -336,7 +336,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -344,7 +344,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -352,7 +352,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -360,7 +360,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -368,7 +368,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -377,7 +377,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -387,7 +387,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -395,7 +395,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -405,7 +405,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -415,7 +415,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -423,7 +423,7 @@ public partial class ActionDefinition : IActionDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -432,7 +432,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -440,7 +440,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -448,7 +448,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -458,7 +458,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -466,7 +466,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -476,7 +476,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -484,7 +484,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -493,7 +493,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -501,7 +501,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -510,7 +510,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -521,7 +521,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -529,7 +529,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -537,7 +537,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -545,7 +545,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -553,7 +553,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -561,7 +561,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -577,7 +577,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -585,7 +585,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -595,7 +595,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -603,7 +603,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -612,7 +612,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -620,7 +620,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -629,7 +629,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -638,7 +638,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -646,7 +646,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -654,7 +654,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -662,7 +662,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -670,7 +670,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -678,7 +678,7 @@ public partial class ActionDefinition : IActionDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -687,7 +687,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -696,7 +696,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -713,7 +713,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -725,7 +725,7 @@ public partial class ActionDefinition : IActionDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -735,7 +735,7 @@ public partial class ActionDefinition : IActionDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Steps that make up this Behavior. @@ -743,7 +743,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -752,7 +752,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -763,7 +763,7 @@ public partial class ActionDefinition : IActionDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -771,7 +771,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -780,7 +780,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -790,7 +790,7 @@ public partial class ActionDefinition : IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ActionUsage.cs b/SysML2.NET/Core/AutoGenDto/ActionUsage.cs index f2a5ff862..c5c92f6c8 100644 --- a/SysML2.NET/Core/AutoGenDto/ActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ActionUsage.cs @@ -60,7 +60,7 @@ public partial class ActionUsage : IActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -76,7 +76,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -88,7 +88,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -98,7 +98,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -126,7 +126,7 @@ public partial class ActionUsage : IActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -139,7 +139,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -148,7 +148,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -157,7 +157,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -174,7 +174,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -190,7 +190,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -200,7 +200,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -208,7 +208,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -217,14 +217,14 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -234,7 +234,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -242,7 +242,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -250,7 +250,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -258,7 +258,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -267,7 +267,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -275,7 +275,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -288,7 +288,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -312,7 +312,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -367,7 +367,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -389,7 +389,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -438,7 +438,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -446,7 +446,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -454,7 +454,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -464,7 +464,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -474,7 +474,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -482,7 +482,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -490,7 +490,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -498,7 +498,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -506,7 +506,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -514,7 +514,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -522,7 +522,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -530,7 +530,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -540,7 +540,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -548,7 +548,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -556,7 +556,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -564,7 +564,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -572,7 +572,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -580,7 +580,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -588,7 +588,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -596,7 +596,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -604,7 +604,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -612,7 +612,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -620,7 +620,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -628,7 +628,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -636,7 +636,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -644,7 +644,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -652,7 +652,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -661,7 +661,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -669,7 +669,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -677,7 +677,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -685,7 +685,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -693,7 +693,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -704,7 +704,7 @@ public partial class ActionUsage : IActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -712,7 +712,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -722,7 +722,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -731,7 +731,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -740,7 +740,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -750,7 +750,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -760,7 +760,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -768,7 +768,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -777,7 +777,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -785,7 +785,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -795,7 +795,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -805,7 +805,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -815,7 +815,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -825,7 +825,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -834,7 +834,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -843,7 +843,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -854,7 +854,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -863,7 +863,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -872,7 +872,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -890,7 +890,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -900,7 +900,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -910,7 +910,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -920,7 +920,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -929,7 +929,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -937,7 +937,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -946,7 +946,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -954,7 +954,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -963,7 +963,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -972,7 +972,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -990,7 +990,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -998,7 +998,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1007,7 +1007,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1028,7 +1028,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1038,7 +1038,7 @@ public partial class ActionUsage : IActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1047,7 +1047,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1058,7 +1058,7 @@ public partial class ActionUsage : IActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1069,7 +1069,7 @@ public partial class ActionUsage : IActionUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1077,7 +1077,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1086,7 +1086,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1095,7 +1095,7 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ActorMembership.cs b/SysML2.NET/Core/AutoGenDto/ActorMembership.cs index 016d66934..0e61a0cde 100644 --- a/SysML2.NET/Core/AutoGenDto/ActorMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ActorMembership.cs @@ -79,7 +79,7 @@ public partial class ActorMembership : IActorMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -113,7 +113,7 @@ public partial class ActorMembership : IActorMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -130,7 +130,7 @@ public partial class ActorMembership : IActorMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -149,7 +149,7 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -167,7 +167,7 @@ public partial class ActorMembership : IActorMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The PartUsage specifying the actor. @@ -175,7 +175,7 @@ public partial class ActorMembership : IActorMembership [Property(xmiId: "_19_0_4_12e503d9_1621464305451_983612_1421", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528016548_548098_110830")] [Implements(implementation: "IActorMembership.OwnedActorParameter")] - public Guid OwnedActorParameter { get; internal set; } + public Guid ownedActorParameter { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -185,7 +185,7 @@ public partial class ActorMembership : IActorMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -193,7 +193,7 @@ public partial class ActorMembership : IActorMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -204,7 +204,7 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -212,7 +212,7 @@ public partial class ActorMembership : IActorMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -222,7 +222,7 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -230,7 +230,7 @@ public partial class ActorMembership : IActorMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The Feature that is identified as a parameter by this ParameterMembership. @@ -239,7 +239,7 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IActorMembership.OwnedActorParameter")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public Guid OwnedMemberParameter { get; internal set; } + public Guid ownedMemberParameter { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -247,7 +247,7 @@ public partial class ActorMembership : IActorMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -271,7 +271,7 @@ public partial class ActorMembership : IActorMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -280,7 +280,7 @@ public partial class ActorMembership : IActorMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -289,7 +289,7 @@ public partial class ActorMembership : IActorMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -314,7 +314,7 @@ public partial class ActorMembership : IActorMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -326,7 +326,7 @@ public partial class ActorMembership : IActorMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -334,7 +334,7 @@ public partial class ActorMembership : IActorMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -344,7 +344,7 @@ public partial class ActorMembership : IActorMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -371,7 +371,7 @@ public partial class ActorMembership : IActorMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -379,7 +379,7 @@ public partial class ActorMembership : IActorMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/AllocationDefinition.cs b/SysML2.NET/Core/AutoGenDto/AllocationDefinition.cs index 17b5ec38c..a8dbec302 100644 --- a/SysML2.NET/Core/AutoGenDto/AllocationDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/AllocationDefinition.cs @@ -63,7 +63,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430644481_402036_964", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IAllocationDefinition.Allocation")] - public List Allocation { get; internal set; } + public List allocation { get; internal set; } = []; /// /// The features of the Association that identify the things that can be related by it. A concrete @@ -74,7 +74,7 @@ public partial class AllocationDefinition : IAllocationDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List AssociationEnd { get; internal set; } + public List associationEnd { get; internal set; } = []; /// /// The Usages that define the things related by the ConnectionDefinition. @@ -82,7 +82,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591476421094_685440_682", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] [Implements(implementation: "IConnectionDefinition.ConnectionEnd")] - public List ConnectionEnd { get; internal set; } + public List connectionEnd { get; internal set; } = []; /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class AllocationDefinition : IAllocationDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -120,7 +120,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -129,7 +129,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -138,7 +138,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -155,7 +155,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -163,7 +163,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -172,7 +172,7 @@ public partial class AllocationDefinition : IAllocationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -180,7 +180,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -188,7 +188,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -197,7 +197,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -205,7 +205,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -218,7 +218,7 @@ public partial class AllocationDefinition : IAllocationDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -233,7 +233,7 @@ public partial class AllocationDefinition : IAllocationDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -266,7 +266,7 @@ public partial class AllocationDefinition : IAllocationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// A ConnectionDefinition always has isSufficient = true. @@ -274,7 +274,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_2022x_2_12e503d9_1734734871008_462076_156", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1564072709069_937523_30797")] [Implements(implementation: "IConnectionDefinition.IsSufficient")] - bool Systems.Connections.IConnectionDefinition.IsSufficient { get; set; } = true; + public bool IsSufficient { get; set; } = true; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -303,7 +303,7 @@ public partial class AllocationDefinition : IAllocationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -311,7 +311,7 @@ public partial class AllocationDefinition : IAllocationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -321,7 +321,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -331,7 +331,7 @@ public partial class AllocationDefinition : IAllocationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -339,7 +339,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -347,7 +347,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -355,7 +355,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -363,7 +363,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -373,7 +373,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -381,7 +381,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -389,7 +389,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -397,7 +397,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -405,7 +405,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -414,7 +414,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -424,7 +424,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -432,7 +432,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -442,7 +442,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -452,7 +452,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -460,7 +460,7 @@ public partial class AllocationDefinition : IAllocationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -469,7 +469,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -477,7 +477,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -485,7 +485,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -495,7 +495,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -503,7 +503,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -513,7 +513,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -521,7 +521,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -530,7 +530,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -538,7 +538,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -547,7 +547,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -558,7 +558,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -566,7 +566,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -574,7 +574,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -582,7 +582,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -590,7 +590,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -598,7 +598,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -622,7 +622,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -630,7 +630,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -640,7 +640,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -648,7 +648,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -657,7 +657,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -665,7 +665,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -674,7 +674,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -683,7 +683,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -691,7 +691,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -699,7 +699,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -707,7 +707,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -715,7 +715,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -723,7 +723,7 @@ public partial class AllocationDefinition : IAllocationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -732,7 +732,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -741,7 +741,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -769,7 +769,7 @@ public partial class AllocationDefinition : IAllocationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -778,7 +778,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -787,7 +787,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List RelatedType { get; internal set; } + public List relatedType { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -797,7 +797,7 @@ public partial class AllocationDefinition : IAllocationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -815,7 +815,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public Guid? SourceType { get; internal set; } + public Guid? sourceType { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -834,7 +834,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List TargetType { get; internal set; } + public List targetType { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -843,7 +843,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -854,7 +854,7 @@ public partial class AllocationDefinition : IAllocationDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -862,7 +862,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -871,7 +871,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -881,7 +881,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/AllocationUsage.cs b/SysML2.NET/Core/AutoGenDto/AllocationUsage.cs index d7f7e2fbe..d261026e8 100644 --- a/SysML2.NET/Core/AutoGenDto/AllocationUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AllocationUsage.cs @@ -61,7 +61,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_12e503d9_1611430742949_241425_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594853499656_139435_802")] [Implements(implementation: "IAllocationUsage.AllocationDefinition")] - public List AllocationDefinition { get; internal set; } + public List allocationDefinition { get; internal set; } = []; /// /// The Associations that type the Connector. @@ -70,7 +70,7 @@ public partial class AllocationUsage : IAllocationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - public List Association { get; internal set; } + public List association { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,7 +82,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The AssociationStructures that are the types of this ConnectionUsage. Nominally, these are , but @@ -94,7 +94,7 @@ public partial class AllocationUsage : IAllocationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedByProperty("IAllocationUsage.AllocationDefinition")] [Implements(implementation: "IConnectionUsage.ConnectionDefinition")] - public List ConnectionDefinition { get; internal set; } + public List connectionDefinition { get; internal set; } = []; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -104,7 +104,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List ConnectorEnd { get; internal set; } + public List connectorEnd { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -114,7 +114,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -140,7 +140,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public Guid? DefaultFeaturingType { get; internal set; } + public Guid? defaultFeaturingType { get; internal set; } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -151,7 +151,7 @@ public partial class AllocationUsage : IAllocationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -164,7 +164,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -172,7 +172,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -181,7 +181,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -198,7 +198,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -215,7 +215,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -225,7 +225,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -233,7 +233,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -242,14 +242,14 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -259,7 +259,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -267,7 +267,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -275,7 +275,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -283,7 +283,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -292,7 +292,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -300,7 +300,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -313,7 +313,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -337,7 +337,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -400,7 +400,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -422,7 +422,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -468,7 +468,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List ItemDefinition { get; internal set; } + public List itemDefinition { get; internal set; } = []; /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -481,7 +481,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -489,7 +489,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -497,7 +497,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -507,7 +507,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -517,7 +517,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -525,7 +525,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -533,7 +533,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -541,7 +541,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -549,7 +549,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -557,7 +557,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -565,7 +565,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -573,7 +573,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -583,7 +583,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -591,7 +591,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -599,7 +599,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -607,7 +607,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -615,7 +615,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -623,7 +623,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -631,7 +631,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -639,7 +639,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -647,7 +647,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -655,7 +655,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -663,7 +663,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -671,7 +671,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -679,7 +679,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -687,7 +687,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -695,7 +695,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -704,7 +704,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -712,7 +712,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -720,7 +720,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -728,7 +728,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -736,7 +736,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -746,7 +746,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -754,7 +754,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -764,7 +764,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -773,7 +773,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -782,7 +782,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -792,7 +792,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -802,7 +802,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -810,7 +810,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -819,7 +819,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -827,7 +827,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -837,7 +837,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -847,7 +847,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -857,7 +857,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -867,7 +867,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -876,7 +876,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -885,7 +885,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -896,7 +896,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -905,7 +905,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -914,7 +914,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -940,7 +940,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -950,7 +950,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -960,7 +960,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -970,7 +970,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -979,7 +979,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -987,7 +987,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -996,7 +996,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1004,7 +1004,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1013,7 +1013,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1022,7 +1022,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -1048,7 +1048,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1056,7 +1056,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The itemDefinitions of this PartUsage that are PartDefinitions. @@ -1064,7 +1064,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1591475180488_929065_121", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List PartDefinition { get; internal set; } + public List partDefinition { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1085,7 +1085,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1094,7 +1094,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1103,7 +1103,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List RelatedFeature { get; internal set; } + public List relatedFeature { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1113,7 +1113,7 @@ public partial class AllocationUsage : IAllocationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1131,7 +1131,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public Guid? SourceFeature { get; internal set; } + public Guid? sourceFeature { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1150,7 +1150,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List TargetFeature { get; internal set; } + public List targetFeature { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -1159,7 +1159,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1170,7 +1170,7 @@ public partial class AllocationUsage : IAllocationUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1181,7 +1181,7 @@ public partial class AllocationUsage : IAllocationUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1189,7 +1189,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1198,7 +1198,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1207,7 +1207,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/AnalysisCaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/AnalysisCaseDefinition.cs index 1a3ca23c8..6e4e9a548 100644 --- a/SysML2.NET/Core/AutoGenDto/AnalysisCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/AnalysisCaseDefinition.cs @@ -53,7 +53,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List Action { get; internal set; } + public List action { get; internal set; } = []; /// /// The parameters of this CaseDefinition that represent actors involved in the case. @@ -62,7 +62,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -78,7 +78,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [Implements(implementation: "ICalculationDefinition.Calculation")] - public List Calculation { get; internal set; } + public List calculation { get; internal set; } = []; /// /// The declared name of this Element. @@ -108,7 +108,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -117,7 +117,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -126,7 +126,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -135,7 +135,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -151,7 +151,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -159,7 +159,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List Expression { get; internal set; } + public List expression { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -167,7 +167,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -176,7 +176,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -184,7 +184,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -192,7 +192,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -201,7 +201,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -209,7 +209,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -222,7 +222,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -237,7 +237,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -262,7 +262,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -273,7 +273,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -301,7 +301,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -309,7 +309,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -319,7 +319,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -329,7 +329,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The RequirementUsage representing the objective of this CaseDefinition. @@ -337,7 +337,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_59601fc_1590259317710_27529_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ObjectiveRequirement")] - public Guid? ObjectiveRequirement { get; internal set; } + public Guid? objectiveRequirement { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -345,7 +345,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -353,7 +353,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -361,7 +361,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -369,7 +369,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -379,7 +379,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -387,7 +387,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -395,7 +395,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -403,7 +403,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -411,7 +411,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -420,7 +420,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -430,7 +430,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -438,7 +438,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -448,7 +448,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -458,7 +458,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -466,7 +466,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -475,7 +475,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -483,7 +483,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -491,7 +491,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -501,7 +501,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -509,7 +509,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -519,7 +519,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -527,7 +527,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -536,7 +536,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -544,7 +544,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -553,7 +553,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -564,7 +564,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -572,7 +572,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -580,7 +580,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -588,7 +588,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -596,7 +596,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -604,7 +604,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -620,7 +620,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -628,7 +628,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -638,7 +638,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -646,7 +646,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -655,7 +655,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -663,7 +663,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -672,7 +672,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -681,7 +681,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -689,7 +689,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -697,7 +697,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -705,7 +705,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -713,7 +713,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -721,7 +721,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -730,7 +730,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -739,7 +739,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -756,7 +756,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -768,7 +768,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The object or value that is the result of evaluating the Function. @@ -777,7 +777,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// An Expression used to compute the result of the AnalysisCaseDefinition, owned via a @@ -787,7 +787,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IAnalysisCaseDefinition.ResultExpression")] - public Guid? ResultExpression { get; internal set; } + public Guid? resultExpression { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -797,7 +797,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Steps that make up this Behavior. @@ -805,7 +805,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The parameter of this CaseDefinition that represents its subject. @@ -814,7 +814,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -823,7 +823,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -834,7 +834,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -842,7 +842,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -851,7 +851,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -861,7 +861,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/AnalysisCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/AnalysisCaseUsage.cs index 59033aaa3..971a4783a 100644 --- a/SysML2.NET/Core/AutoGenDto/AnalysisCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AnalysisCaseUsage.cs @@ -57,7 +57,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -66,7 +66,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -81,7 +81,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591152217935_225164_2921", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] [Implements(implementation: "IAnalysisCaseUsage.AnalysisCaseDefinition")] - public Guid? AnalysisCaseDefinition { get; internal set; } + public Guid? analysisCaseDefinition { get; internal set; } /// /// The Behaviors that type this Step. @@ -90,7 +90,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -102,7 +102,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public Guid? CalculationDefinition { get; internal set; } + public Guid? calculationDefinition { get; internal set; } /// /// The CaseDefinition that is the type of this CaseUsage. @@ -111,7 +111,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [RedefinedByProperty("IAnalysisCaseUsage.AnalysisCaseDefinition")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public Guid? CaseDefinition { get; internal set; } + public Guid? caseDefinition { get; internal set; } /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -123,7 +123,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -133,7 +133,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -161,7 +161,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -174,7 +174,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -183,7 +183,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -192,7 +192,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -209,7 +209,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -225,7 +225,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -235,7 +235,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -243,7 +243,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -252,14 +252,14 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -269,7 +269,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -278,7 +278,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -286,7 +286,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -294,7 +294,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -302,7 +302,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -311,7 +311,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -319,7 +319,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -332,7 +332,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -356,7 +356,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -411,7 +411,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -419,7 +419,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -441,7 +441,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -490,7 +490,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -498,7 +498,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -506,7 +506,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -516,7 +516,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -526,7 +526,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -534,7 +534,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -542,7 +542,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -550,7 +550,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -558,7 +558,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -566,7 +566,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -574,7 +574,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -582,7 +582,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -592,7 +592,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -600,7 +600,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -608,7 +608,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -616,7 +616,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -624,7 +624,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -632,7 +632,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -640,7 +640,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -648,7 +648,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -656,7 +656,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -664,7 +664,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -672,7 +672,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -680,7 +680,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -688,7 +688,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -696,7 +696,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -704,7 +704,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -713,7 +713,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -721,7 +721,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -729,7 +729,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -737,7 +737,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -745,7 +745,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The RequirementUsage representing the objective of this CaseUsage. @@ -753,7 +753,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591138794257_404044_2145", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ObjectiveRequirement")] - public Guid? ObjectiveRequirement { get; internal set; } + public Guid? objectiveRequirement { get; internal set; } /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -764,7 +764,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -772,7 +772,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -782,7 +782,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -791,7 +791,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -800,7 +800,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -810,7 +810,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -820,7 +820,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -828,7 +828,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -837,7 +837,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -845,7 +845,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -855,7 +855,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -865,7 +865,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -875,7 +875,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -885,7 +885,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -894,7 +894,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -903,7 +903,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -914,7 +914,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -923,7 +923,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -932,7 +932,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -950,7 +950,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -960,7 +960,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -970,7 +970,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -980,7 +980,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -989,7 +989,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -997,7 +997,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -1006,7 +1006,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1014,7 +1014,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1023,7 +1023,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1032,7 +1032,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1050,7 +1050,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1058,7 +1058,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1067,7 +1067,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1088,7 +1088,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1099,7 +1099,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// An Expression used to compute the result of the AnalysisCaseUsage, owned via a @@ -1108,7 +1108,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591151453868_910052_2600", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IAnalysisCaseUsage.ResultExpression")] - public Guid? ResultExpression { get; internal set; } + public Guid? resultExpression { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1118,7 +1118,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The parameter of this CaseUsage that represents its subject. @@ -1127,7 +1127,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1136,7 +1136,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1147,7 +1147,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1158,7 +1158,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1166,7 +1166,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1175,7 +1175,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1184,7 +1184,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/AnnotatingElement.cs b/SysML2.NET/Core/AutoGenDto/AnnotatingElement.cs index 33e7a0d98..51bbcb0f4 100644 --- a/SysML2.NET/Core/AutoGenDto/AnnotatingElement.cs +++ b/SysML2.NET/Core/AutoGenDto/AnnotatingElement.cs @@ -61,7 +61,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List AnnotatedElement { get; internal set; } + public List annotatedElement { get; internal set; } = []; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -70,7 +70,7 @@ public partial class AnnotatingElement : IAnnotatingElement [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List Annotation { get; internal set; } + public List annotation { get; internal set; } = []; /// /// The declared name of this Element. @@ -96,7 +96,7 @@ public partial class AnnotatingElement : IAnnotatingElement [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -122,7 +122,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -132,7 +132,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -142,7 +142,7 @@ public partial class AnnotatingElement : IAnnotatingElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List OwnedAnnotatingRelationship { get; internal set; } + public List ownedAnnotatingRelationship { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -152,7 +152,7 @@ public partial class AnnotatingElement : IAnnotatingElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -160,7 +160,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -176,7 +176,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -185,7 +185,7 @@ public partial class AnnotatingElement : IAnnotatingElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public Guid? OwningAnnotatingRelationship { get; internal set; } + public Guid? owningAnnotatingRelationship { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -194,7 +194,7 @@ public partial class AnnotatingElement : IAnnotatingElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -203,7 +203,7 @@ public partial class AnnotatingElement : IAnnotatingElement [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -223,7 +223,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -233,7 +233,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -242,7 +242,7 @@ public partial class AnnotatingElement : IAnnotatingElement [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Annotation.cs b/SysML2.NET/Core/AutoGenDto/Annotation.cs index 46fe0f41e..930d819e7 100644 --- a/SysML2.NET/Core/AutoGenDto/Annotation.cs +++ b/SysML2.NET/Core/AutoGenDto/Annotation.cs @@ -68,7 +68,7 @@ public partial class Annotation : IAnnotation [Property(xmiId: "_18_5_3_12e503d9_1543094212714_638255_18408", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAnnotation.AnnotatingElement")] - public Guid AnnotatingElement { get; internal set; } + public Guid annotatingElement { get; internal set; } /// /// The declared name of this Element. @@ -94,7 +94,7 @@ public partial class Annotation : IAnnotation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -128,7 +128,7 @@ public partial class Annotation : IAnnotation /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -138,7 +138,7 @@ public partial class Annotation : IAnnotation /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The annotatingElement of this Annotation, when it is an ownedRelatedElement. @@ -147,7 +147,7 @@ public partial class Annotation : IAnnotation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_638255_18408")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_59873_43302")] [Implements(implementation: "IAnnotation.OwnedAnnotatingElement")] - public Guid? OwnedAnnotatingElement { get; internal set; } + public Guid? ownedAnnotatingElement { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -157,7 +157,7 @@ public partial class Annotation : IAnnotation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -165,7 +165,7 @@ public partial class Annotation : IAnnotation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -189,7 +189,7 @@ public partial class Annotation : IAnnotation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The annotatedElement of this Annotation, when it is also the owningRelatedElement. @@ -198,7 +198,7 @@ public partial class Annotation : IAnnotation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_494140_18542")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [Implements(implementation: "IAnnotation.OwningAnnotatedElement")] - public Guid? OwningAnnotatedElement { get; internal set; } + public Guid? owningAnnotatedElement { get; internal set; } /// /// The annotatingElement of this Annotation, when it is the owningRelatedElement. @@ -207,7 +207,7 @@ public partial class Annotation : IAnnotation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_638255_18408")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [Implements(implementation: "IAnnotation.OwningAnnotatingElement")] - public Guid? OwningAnnotatingElement { get; internal set; } + public Guid? owningAnnotatingElement { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -216,7 +216,7 @@ public partial class Annotation : IAnnotation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -225,7 +225,7 @@ public partial class Annotation : IAnnotation [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -253,7 +253,7 @@ public partial class Annotation : IAnnotation /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -261,7 +261,7 @@ public partial class Annotation : IAnnotation /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -271,7 +271,7 @@ public partial class Annotation : IAnnotation /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -298,7 +298,7 @@ public partial class Annotation : IAnnotation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/AssertConstraintUsage.cs b/SysML2.NET/Core/AutoGenDto/AssertConstraintUsage.cs index dac01e94d..609c64600 100644 --- a/SysML2.NET/Core/AutoGenDto/AssertConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AssertConstraintUsage.cs @@ -63,7 +63,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_2_12e503d9_1581045158665_239617_9458", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAssertConstraintUsage.AssertedConstraint")] - public Guid AssertedConstraint { get; internal set; } + public Guid assertedConstraint { get; internal set; } /// /// The Behaviors that type this Step. @@ -72,7 +72,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -84,7 +84,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -94,7 +94,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1578067546711_751168_1745", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public Guid? ConstraintDefinition { get; internal set; } + public Guid? constraintDefinition { get; internal set; } /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -104,7 +104,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -132,7 +132,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -145,7 +145,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -154,7 +154,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -163,7 +163,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -180,7 +180,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -196,7 +196,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -206,7 +206,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -214,7 +214,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -223,14 +223,14 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -240,7 +240,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -249,7 +249,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -257,7 +257,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -265,7 +265,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -273,7 +273,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -282,7 +282,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -290,7 +290,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -303,7 +303,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -327,7 +327,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -382,7 +382,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -390,7 +390,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether this Invariant is asserted to be false rather than true. @@ -419,7 +419,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -468,7 +468,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -476,7 +476,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -484,7 +484,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -494,7 +494,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -504,7 +504,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -512,7 +512,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -520,7 +520,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -528,7 +528,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -536,7 +536,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -544,7 +544,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -552,7 +552,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -560,7 +560,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -570,7 +570,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -578,7 +578,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -586,7 +586,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -594,7 +594,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -602,7 +602,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -610,7 +610,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -618,7 +618,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -626,7 +626,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -634,7 +634,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -642,7 +642,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -650,7 +650,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -658,7 +658,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -666,7 +666,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -674,7 +674,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -682,7 +682,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -691,7 +691,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -699,7 +699,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -707,7 +707,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -715,7 +715,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -723,7 +723,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -733,7 +733,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -741,7 +741,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -751,7 +751,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -760,7 +760,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -769,7 +769,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -779,7 +779,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -789,7 +789,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -797,7 +797,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -806,7 +806,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -814,7 +814,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -824,7 +824,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -834,7 +834,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -844,7 +844,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -854,7 +854,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -863,7 +863,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -872,7 +872,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -883,7 +883,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -892,7 +892,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -901,7 +901,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -919,7 +919,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -929,7 +929,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -939,7 +939,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -949,7 +949,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -958,7 +958,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -966,7 +966,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -975,7 +975,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -983,7 +983,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -992,7 +992,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1001,7 +1001,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1019,7 +1019,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1027,7 +1027,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1036,7 +1036,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1054,7 +1054,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? Predicate { get; internal set; } + public Guid? predicate { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1066,7 +1066,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1077,7 +1077,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1087,7 +1087,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1096,7 +1096,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1107,7 +1107,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1118,7 +1118,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1126,7 +1126,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1135,7 +1135,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1144,7 +1144,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/AssignmentActionUsage.cs b/SysML2.NET/Core/AutoGenDto/AssignmentActionUsage.cs index e87863c22..a34135849 100644 --- a/SysML2.NET/Core/AutoGenDto/AssignmentActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AssignmentActionUsage.cs @@ -58,7 +58,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -74,7 +74,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -86,7 +86,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -96,7 +96,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -124,7 +124,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -137,7 +137,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -146,7 +146,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -155,7 +155,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -172,7 +172,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -188,7 +188,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -198,7 +198,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -206,7 +206,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -215,14 +215,14 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -232,7 +232,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -240,7 +240,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -248,7 +248,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -256,7 +256,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -265,7 +265,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -273,7 +273,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -286,7 +286,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -310,7 +310,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -365,7 +365,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -387,7 +387,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -436,7 +436,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -444,7 +444,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -452,7 +452,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -462,7 +462,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -472,7 +472,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -480,7 +480,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -488,7 +488,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -496,7 +496,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -504,7 +504,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -512,7 +512,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -520,7 +520,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -528,7 +528,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -538,7 +538,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -546,7 +546,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -554,7 +554,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -562,7 +562,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -570,7 +570,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -578,7 +578,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -586,7 +586,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -594,7 +594,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -602,7 +602,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -610,7 +610,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -618,7 +618,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -626,7 +626,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -634,7 +634,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -642,7 +642,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -650,7 +650,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -659,7 +659,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -667,7 +667,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -675,7 +675,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -683,7 +683,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -691,7 +691,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -702,7 +702,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -710,7 +710,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -720,7 +720,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -729,7 +729,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -738,7 +738,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -748,7 +748,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -758,7 +758,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -766,7 +766,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -775,7 +775,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -783,7 +783,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -793,7 +793,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -803,7 +803,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -813,7 +813,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -823,7 +823,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -832,7 +832,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -841,7 +841,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -852,7 +852,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -861,7 +861,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -870,7 +870,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -888,7 +888,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -898,7 +898,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -908,7 +908,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -918,7 +918,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -927,7 +927,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -935,7 +935,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -944,7 +944,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -952,7 +952,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -961,7 +961,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -970,7 +970,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -988,7 +988,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -996,7 +996,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1005,7 +1005,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1026,7 +1026,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Feature whose value is to be set. @@ -1034,7 +1034,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_4_12e503d9_1624202269076_561550_3109", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IAssignmentActionUsage.Referent")] - public Guid Referent { get; internal set; } + public Guid referent { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1044,7 +1044,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Expression whose value is an occurrence in the domain of the referent Feature, for which the @@ -1053,7 +1053,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624201786354_844501_2835", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAssignmentActionUsage.TargetArgument")] - public Guid? TargetArgument { get; internal set; } + public Guid? targetArgument { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1062,7 +1062,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1073,7 +1073,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1084,7 +1084,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1092,14 +1092,14 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Expression whose result is to be assigned to the referent Feature. /// [Property(xmiId: "_19_0_4_12e503d9_1624201792996_104394_2856", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAssignmentActionUsage.ValueExpression")] - public Guid? ValueExpression { get; internal set; } + public Guid? valueExpression { get; internal set; } /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1108,7 +1108,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1117,7 +1117,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Association.cs b/SysML2.NET/Core/AutoGenDto/Association.cs index 2b0b421a1..a273194cc 100644 --- a/SysML2.NET/Core/AutoGenDto/Association.cs +++ b/SysML2.NET/Core/AutoGenDto/Association.cs @@ -63,7 +63,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1562477648742_24204_22901", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List AssociationEnd { get; internal set; } + public List associationEnd { get; internal set; } = []; /// /// The declared name of this Element. @@ -93,7 +93,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -101,7 +101,7 @@ public partial class Association : IAssociation [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -110,7 +110,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -127,7 +127,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -135,7 +135,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -144,7 +144,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -152,7 +152,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -160,7 +160,7 @@ public partial class Association : IAssociation [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -169,7 +169,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -177,7 +177,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -190,7 +190,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -205,7 +205,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -231,7 +231,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -251,7 +251,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -259,7 +259,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -269,7 +269,7 @@ public partial class Association : IAssociation [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -279,7 +279,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -287,7 +287,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -297,7 +297,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -306,7 +306,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -316,7 +316,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -326,7 +326,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -334,7 +334,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -343,7 +343,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -351,7 +351,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -361,7 +361,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -371,7 +371,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -380,7 +380,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -389,7 +389,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -400,7 +400,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -426,7 +426,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -435,7 +435,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -444,7 +444,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -452,7 +452,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -461,7 +461,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -470,7 +470,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -498,7 +498,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -507,7 +507,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -516,7 +516,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List RelatedType { get; internal set; } + public List relatedType { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -526,7 +526,7 @@ public partial class Association : IAssociation /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -544,7 +544,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public Guid? SourceType { get; internal set; } + public Guid? sourceType { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -563,7 +563,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List TargetType { get; internal set; } + public List targetType { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -572,7 +572,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -583,7 +583,7 @@ public partial class Association : IAssociation /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/AssociationStructure.cs b/SysML2.NET/Core/AutoGenDto/AssociationStructure.cs index ebd056f4d..16d925212 100644 --- a/SysML2.NET/Core/AutoGenDto/AssociationStructure.cs +++ b/SysML2.NET/Core/AutoGenDto/AssociationStructure.cs @@ -63,7 +63,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1562477648742_24204_22901", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List AssociationEnd { get; internal set; } + public List associationEnd { get; internal set; } = []; /// /// The declared name of this Element. @@ -93,7 +93,7 @@ public partial class AssociationStructure : IAssociationStructure /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -101,7 +101,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -110,7 +110,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -127,7 +127,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -135,7 +135,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -144,7 +144,7 @@ public partial class AssociationStructure : IAssociationStructure /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -152,7 +152,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -160,7 +160,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -169,7 +169,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -177,7 +177,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -190,7 +190,7 @@ public partial class AssociationStructure : IAssociationStructure /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -205,7 +205,7 @@ public partial class AssociationStructure : IAssociationStructure /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -231,7 +231,7 @@ public partial class AssociationStructure : IAssociationStructure /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -251,7 +251,7 @@ public partial class AssociationStructure : IAssociationStructure /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -259,7 +259,7 @@ public partial class AssociationStructure : IAssociationStructure /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -269,7 +269,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -279,7 +279,7 @@ public partial class AssociationStructure : IAssociationStructure /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -287,7 +287,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -297,7 +297,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -306,7 +306,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -316,7 +316,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -326,7 +326,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -334,7 +334,7 @@ public partial class AssociationStructure : IAssociationStructure /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -343,7 +343,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -351,7 +351,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -361,7 +361,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -371,7 +371,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -380,7 +380,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -389,7 +389,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -400,7 +400,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -426,7 +426,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -435,7 +435,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -444,7 +444,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -452,7 +452,7 @@ public partial class AssociationStructure : IAssociationStructure /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -461,7 +461,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -470,7 +470,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -498,7 +498,7 @@ public partial class AssociationStructure : IAssociationStructure /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -507,7 +507,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -516,7 +516,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List RelatedType { get; internal set; } + public List relatedType { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -526,7 +526,7 @@ public partial class AssociationStructure : IAssociationStructure /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -544,7 +544,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public Guid? SourceType { get; internal set; } + public Guid? sourceType { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -563,7 +563,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List TargetType { get; internal set; } + public List targetType { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -572,7 +572,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -583,7 +583,7 @@ public partial class AssociationStructure : IAssociationStructure /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/AttributeDefinition.cs b/SysML2.NET/Core/AutoGenDto/AttributeDefinition.cs index bc23da7ac..1f97d5623 100644 --- a/SysML2.NET/Core/AutoGenDto/AttributeDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/AttributeDefinition.cs @@ -85,7 +85,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -93,7 +93,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -102,7 +102,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -111,7 +111,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -127,7 +127,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -135,7 +135,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -144,7 +144,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -152,7 +152,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -160,7 +160,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -169,7 +169,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -177,7 +177,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -190,7 +190,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -205,7 +205,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -223,7 +223,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -251,7 +251,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -259,7 +259,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -269,7 +269,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -279,7 +279,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -287,7 +287,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -295,7 +295,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -303,7 +303,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -311,7 +311,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -321,7 +321,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -329,7 +329,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -337,7 +337,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -345,7 +345,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -353,7 +353,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -362,7 +362,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -372,7 +372,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -380,7 +380,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -390,7 +390,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -400,7 +400,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -408,7 +408,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -417,7 +417,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -425,7 +425,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -433,7 +433,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -443,7 +443,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -451,7 +451,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -461,7 +461,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -469,7 +469,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -478,7 +478,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -486,7 +486,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -495,7 +495,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -506,7 +506,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -514,7 +514,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -522,7 +522,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -530,7 +530,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -538,7 +538,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -546,7 +546,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -562,7 +562,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -570,7 +570,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -580,7 +580,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -588,7 +588,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -597,7 +597,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -605,7 +605,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -614,7 +614,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -623,7 +623,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -631,7 +631,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -639,7 +639,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -647,7 +647,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -655,7 +655,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -663,7 +663,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -672,7 +672,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -681,7 +681,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -701,7 +701,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -711,7 +711,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -720,7 +720,7 @@ public partial class AttributeDefinition : IAttributeDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -731,7 +731,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -739,7 +739,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -748,7 +748,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -758,7 +758,7 @@ public partial class AttributeDefinition : IAttributeDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/AttributeUsage.cs b/SysML2.NET/Core/AutoGenDto/AttributeUsage.cs index a25469a9f..295f7a73a 100644 --- a/SysML2.NET/Core/AutoGenDto/AttributeUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AttributeUsage.cs @@ -66,7 +66,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1565471811429_523492_20975", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IAttributeUsage.AttributeDefinition")] - public List AttributeDefinition { get; internal set; } + public List attributeDefinition { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -78,7 +78,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -88,7 +88,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -116,7 +116,7 @@ public partial class AttributeUsage : IAttributeUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IAttributeUsage.AttributeDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -129,7 +129,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -137,7 +137,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -146,7 +146,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -163,7 +163,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -179,7 +179,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -189,7 +189,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -197,7 +197,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -206,14 +206,14 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -223,7 +223,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -231,7 +231,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -239,7 +239,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -248,7 +248,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -256,7 +256,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -269,7 +269,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -293,7 +293,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -340,7 +340,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -363,7 +363,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_12e503d9_1624050661138_649455_27", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IAttributeUsage.IsReference")] - bool IAttributeUsage.IsReference { get; } + public bool isReference { get; internal set; } = true; /// /// Whether this Usage is a referential Usage, that is, it has isComposite = false. @@ -371,7 +371,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IAttributeUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.IsReference { get; } + bool Systems.DefinitionAndUsage.IUsage.isReference { get; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -420,7 +420,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -428,7 +428,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -436,7 +436,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -446,7 +446,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -456,7 +456,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -464,7 +464,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -472,7 +472,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -480,7 +480,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -488,7 +488,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -496,7 +496,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -504,7 +504,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -512,7 +512,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -522,7 +522,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -530,7 +530,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -538,7 +538,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -546,7 +546,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -554,7 +554,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -562,7 +562,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -570,7 +570,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -578,7 +578,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -586,7 +586,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -594,7 +594,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -602,7 +602,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -610,7 +610,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -618,7 +618,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -626,7 +626,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -634,7 +634,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -643,7 +643,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -651,7 +651,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -659,7 +659,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -667,7 +667,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -675,7 +675,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -683,7 +683,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -693,7 +693,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -702,7 +702,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -711,7 +711,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -721,7 +721,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -731,7 +731,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -739,7 +739,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -748,7 +748,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -756,7 +756,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -766,7 +766,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -776,7 +776,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -786,7 +786,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -796,7 +796,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -805,7 +805,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -814,7 +814,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -825,7 +825,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -834,7 +834,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -843,7 +843,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -861,7 +861,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -871,7 +871,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -881,7 +881,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -891,7 +891,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -900,7 +900,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -908,7 +908,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -917,7 +917,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -925,7 +925,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -934,7 +934,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -943,7 +943,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -961,7 +961,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -969,7 +969,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -981,7 +981,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -991,7 +991,7 @@ public partial class AttributeUsage : IAttributeUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1000,7 +1000,7 @@ public partial class AttributeUsage : IAttributeUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1011,7 +1011,7 @@ public partial class AttributeUsage : IAttributeUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1022,7 +1022,7 @@ public partial class AttributeUsage : IAttributeUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1030,7 +1030,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1039,7 +1039,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1048,7 +1048,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Behavior.cs b/SysML2.NET/Core/AutoGenDto/Behavior.cs index 0ce7b1c87..82db7598c 100644 --- a/SysML2.NET/Core/AutoGenDto/Behavior.cs +++ b/SysML2.NET/Core/AutoGenDto/Behavior.cs @@ -81,7 +81,7 @@ public partial class Behavior : IBehavior /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -90,7 +90,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -99,7 +99,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -115,7 +115,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -123,7 +123,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -132,7 +132,7 @@ public partial class Behavior : IBehavior /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -140,7 +140,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -148,7 +148,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -157,7 +157,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -165,7 +165,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -178,7 +178,7 @@ public partial class Behavior : IBehavior /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -193,7 +193,7 @@ public partial class Behavior : IBehavior /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -211,7 +211,7 @@ public partial class Behavior : IBehavior /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -231,7 +231,7 @@ public partial class Behavior : IBehavior /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -239,7 +239,7 @@ public partial class Behavior : IBehavior /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -249,7 +249,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -259,7 +259,7 @@ public partial class Behavior : IBehavior /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -267,7 +267,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -277,7 +277,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -286,7 +286,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -296,7 +296,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -306,7 +306,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -314,7 +314,7 @@ public partial class Behavior : IBehavior /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -323,7 +323,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -331,7 +331,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -341,7 +341,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -351,7 +351,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -360,7 +360,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -369,7 +369,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -380,7 +380,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -398,7 +398,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -407,7 +407,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -416,7 +416,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -424,7 +424,7 @@ public partial class Behavior : IBehavior /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -433,7 +433,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -442,7 +442,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -459,7 +459,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -471,7 +471,7 @@ public partial class Behavior : IBehavior /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -481,7 +481,7 @@ public partial class Behavior : IBehavior /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Steps that make up this Behavior. @@ -489,7 +489,7 @@ public partial class Behavior : IBehavior [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -498,7 +498,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -509,7 +509,7 @@ public partial class Behavior : IBehavior /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/BindingConnector.cs b/SysML2.NET/Core/AutoGenDto/BindingConnector.cs index 7bf5ee96e..d8a63e56c 100644 --- a/SysML2.NET/Core/AutoGenDto/BindingConnector.cs +++ b/SysML2.NET/Core/AutoGenDto/BindingConnector.cs @@ -59,7 +59,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674983_471497_43284", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IConnector.Association")] - public List Association { get; internal set; } + public List association { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -71,7 +71,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -81,7 +81,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List ConnectorEnd { get; internal set; } + public List connectorEnd { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -91,7 +91,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -117,7 +117,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public Guid? DefaultFeaturingType { get; internal set; } + public Guid? defaultFeaturingType { get; internal set; } /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -130,7 +130,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -138,7 +138,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -155,7 +155,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -172,7 +172,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -182,7 +182,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -190,7 +190,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -199,14 +199,14 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -216,7 +216,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -224,7 +224,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -232,7 +232,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -241,7 +241,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -249,7 +249,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -262,7 +262,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -286,7 +286,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -341,7 +341,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -391,7 +391,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -399,7 +399,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -409,7 +409,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -419,7 +419,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -427,7 +427,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -437,7 +437,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -446,7 +446,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -455,7 +455,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -465,7 +465,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -475,7 +475,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -483,7 +483,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -492,7 +492,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -500,7 +500,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -510,7 +510,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -520,7 +520,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -530,7 +530,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -540,7 +540,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -549,7 +549,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -558,7 +558,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -569,7 +569,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -578,7 +578,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -587,7 +587,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -613,7 +613,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -623,7 +623,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -633,7 +633,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -643,7 +643,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -652,7 +652,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -660,7 +660,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -668,7 +668,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -677,7 +677,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -686,7 +686,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -712,7 +712,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -724,7 +724,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -733,7 +733,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -742,7 +742,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List RelatedFeature { get; internal set; } + public List relatedFeature { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -752,7 +752,7 @@ public partial class BindingConnector : IBindingConnector /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -770,7 +770,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public Guid? SourceFeature { get; internal set; } + public Guid? sourceFeature { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -789,7 +789,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List TargetFeature { get; internal set; } + public List targetFeature { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -798,7 +798,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -809,7 +809,7 @@ public partial class BindingConnector : IBindingConnector [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -820,7 +820,7 @@ public partial class BindingConnector : IBindingConnector /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/BindingConnectorAsUsage.cs b/SysML2.NET/Core/AutoGenDto/BindingConnectorAsUsage.cs index f7131c2e1..924c84523 100644 --- a/SysML2.NET/Core/AutoGenDto/BindingConnectorAsUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/BindingConnectorAsUsage.cs @@ -59,7 +59,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674983_471497_43284", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IConnector.Association")] - public List Association { get; internal set; } + public List association { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -71,7 +71,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -81,7 +81,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List ConnectorEnd { get; internal set; } + public List connectorEnd { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -91,7 +91,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -117,7 +117,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public Guid? DefaultFeaturingType { get; internal set; } + public Guid? defaultFeaturingType { get; internal set; } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -127,7 +127,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -140,7 +140,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -148,7 +148,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -157,7 +157,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -174,7 +174,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -191,7 +191,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -201,7 +201,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -209,7 +209,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -218,14 +218,14 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -235,7 +235,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -243,7 +243,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -251,7 +251,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -260,7 +260,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -268,7 +268,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -281,7 +281,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -305,7 +305,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -360,7 +360,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -382,7 +382,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -431,7 +431,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -439,7 +439,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -447,7 +447,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -457,7 +457,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -467,7 +467,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -475,7 +475,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -483,7 +483,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -491,7 +491,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -499,7 +499,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -507,7 +507,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -515,7 +515,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -523,7 +523,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -533,7 +533,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -541,7 +541,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -549,7 +549,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -557,7 +557,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -565,7 +565,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -573,7 +573,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -581,7 +581,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -589,7 +589,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -597,7 +597,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -605,7 +605,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -613,7 +613,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -621,7 +621,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -629,7 +629,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -637,7 +637,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -645,7 +645,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -654,7 +654,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -662,7 +662,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -670,7 +670,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -678,7 +678,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -686,7 +686,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -694,7 +694,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -704,7 +704,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -713,7 +713,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -722,7 +722,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -732,7 +732,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -742,7 +742,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -750,7 +750,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -759,7 +759,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -767,7 +767,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -777,7 +777,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -787,7 +787,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -797,7 +797,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -807,7 +807,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -816,7 +816,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -825,7 +825,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -836,7 +836,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -845,7 +845,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -854,7 +854,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -880,7 +880,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -890,7 +890,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -900,7 +900,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -910,7 +910,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -919,7 +919,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -927,7 +927,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -936,7 +936,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -944,7 +944,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -953,7 +953,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -962,7 +962,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -988,7 +988,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -996,7 +996,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1008,7 +1008,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1017,7 +1017,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1026,7 +1026,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List RelatedFeature { get; internal set; } + public List relatedFeature { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1036,7 +1036,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1054,7 +1054,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public Guid? SourceFeature { get; internal set; } + public Guid? sourceFeature { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1073,7 +1073,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List TargetFeature { get; internal set; } + public List targetFeature { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -1082,7 +1082,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1093,7 +1093,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1104,7 +1104,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1112,7 +1112,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1121,7 +1121,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1130,7 +1130,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/BooleanExpression.cs b/SysML2.NET/Core/AutoGenDto/BooleanExpression.cs index 399605998..38cc56225 100644 --- a/SysML2.NET/Core/AutoGenDto/BooleanExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/BooleanExpression.cs @@ -60,7 +60,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -72,7 +72,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -82,7 +82,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -121,7 +121,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -138,7 +138,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -154,7 +154,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -164,7 +164,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -172,7 +172,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -181,14 +181,14 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -198,7 +198,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -207,7 +207,7 @@ public partial class BooleanExpression : IBooleanExpression [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -215,7 +215,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -223,7 +223,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -232,7 +232,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -240,7 +240,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -253,7 +253,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -277,7 +277,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -324,7 +324,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -332,7 +332,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -382,7 +382,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -390,7 +390,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -400,7 +400,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -410,7 +410,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -418,7 +418,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -428,7 +428,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -437,7 +437,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -446,7 +446,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -456,7 +456,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -466,7 +466,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -474,7 +474,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -483,7 +483,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -491,7 +491,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -501,7 +501,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -511,7 +511,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -521,7 +521,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -531,7 +531,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -540,7 +540,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -549,7 +549,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -560,7 +560,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -569,7 +569,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -578,7 +578,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -596,7 +596,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -606,7 +606,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -616,7 +616,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -626,7 +626,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -635,7 +635,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -643,7 +643,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -651,7 +651,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -660,7 +660,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -669,7 +669,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -687,7 +687,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -696,7 +696,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The Predicate that types the Expression. @@ -704,7 +704,7 @@ public partial class BooleanExpression : IBooleanExpression [Property(xmiId: "_19_0_2_12e503d9_1578025035149_386_969", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? Predicate { get; internal set; } + public Guid? predicate { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -716,7 +716,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -727,7 +727,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -737,7 +737,7 @@ public partial class BooleanExpression : IBooleanExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -746,7 +746,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -756,7 +756,7 @@ public partial class BooleanExpression : IBooleanExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -767,7 +767,7 @@ public partial class BooleanExpression : IBooleanExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/CalculationDefinition.cs b/SysML2.NET/Core/AutoGenDto/CalculationDefinition.cs index aa94956f1..ece4682df 100644 --- a/SysML2.NET/Core/AutoGenDto/CalculationDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/CalculationDefinition.cs @@ -55,7 +55,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List Action { get; internal set; } + public List action { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -71,7 +71,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [Implements(implementation: "ICalculationDefinition.Calculation")] - public List Calculation { get; internal set; } + public List calculation { get; internal set; } = []; /// /// The declared name of this Element. @@ -101,7 +101,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -110,7 +110,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -119,7 +119,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -128,7 +128,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -144,7 +144,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -152,7 +152,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List Expression { get; internal set; } + public List expression { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -160,7 +160,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -169,7 +169,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -177,7 +177,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -185,7 +185,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -194,7 +194,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -202,7 +202,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -215,7 +215,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -230,7 +230,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -255,7 +255,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -266,7 +266,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -294,7 +294,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -302,7 +302,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -312,7 +312,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -322,7 +322,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -330,7 +330,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -338,7 +338,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -346,7 +346,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -354,7 +354,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -364,7 +364,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -372,7 +372,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -380,7 +380,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -388,7 +388,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -396,7 +396,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -405,7 +405,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -415,7 +415,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -423,7 +423,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -433,7 +433,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -443,7 +443,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -451,7 +451,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -460,7 +460,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -468,7 +468,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -476,7 +476,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -486,7 +486,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -494,7 +494,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -504,7 +504,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -512,7 +512,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -521,7 +521,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -529,7 +529,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -538,7 +538,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -549,7 +549,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -557,7 +557,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -565,7 +565,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -573,7 +573,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -581,7 +581,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -589,7 +589,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -605,7 +605,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -613,7 +613,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -623,7 +623,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -631,7 +631,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -640,7 +640,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -648,7 +648,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -657,7 +657,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -666,7 +666,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -674,7 +674,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -682,7 +682,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -690,7 +690,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -698,7 +698,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -706,7 +706,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -715,7 +715,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -724,7 +724,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -741,7 +741,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -753,7 +753,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The object or value that is the result of evaluating the Function. @@ -762,7 +762,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -772,7 +772,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Steps that make up this Behavior. @@ -780,7 +780,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -789,7 +789,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -800,7 +800,7 @@ public partial class CalculationDefinition : ICalculationDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -808,7 +808,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -817,7 +817,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -827,7 +827,7 @@ public partial class CalculationDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/CalculationUsage.cs b/SysML2.NET/Core/AutoGenDto/CalculationUsage.cs index e41e3b308..4a6fb4448 100644 --- a/SysML2.NET/Core/AutoGenDto/CalculationUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/CalculationUsage.cs @@ -61,7 +61,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -77,7 +77,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -88,7 +88,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public Guid? CalculationDefinition { get; internal set; } + public Guid? calculationDefinition { get; internal set; } /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -100,7 +100,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -110,7 +110,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -138,7 +138,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -151,7 +151,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -160,7 +160,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -169,7 +169,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -186,7 +186,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -202,7 +202,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -212,7 +212,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -220,7 +220,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -229,14 +229,14 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -246,7 +246,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -255,7 +255,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -263,7 +263,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -271,7 +271,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -279,7 +279,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -288,7 +288,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -296,7 +296,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -309,7 +309,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -333,7 +333,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -388,7 +388,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -396,7 +396,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -418,7 +418,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -467,7 +467,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -475,7 +475,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -483,7 +483,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -493,7 +493,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -503,7 +503,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -511,7 +511,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -519,7 +519,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -527,7 +527,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -535,7 +535,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -543,7 +543,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -551,7 +551,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -559,7 +559,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -569,7 +569,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -577,7 +577,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -585,7 +585,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -593,7 +593,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -601,7 +601,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -609,7 +609,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -617,7 +617,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -625,7 +625,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -633,7 +633,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -641,7 +641,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -649,7 +649,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -657,7 +657,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -665,7 +665,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -673,7 +673,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -681,7 +681,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -690,7 +690,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -698,7 +698,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -706,7 +706,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -714,7 +714,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -722,7 +722,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -733,7 +733,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -741,7 +741,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -751,7 +751,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -760,7 +760,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -769,7 +769,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -779,7 +779,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -789,7 +789,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -797,7 +797,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -806,7 +806,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -814,7 +814,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -824,7 +824,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -834,7 +834,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -844,7 +844,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -854,7 +854,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -863,7 +863,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -872,7 +872,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -883,7 +883,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -892,7 +892,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -901,7 +901,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -919,7 +919,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -929,7 +929,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -939,7 +939,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -949,7 +949,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -958,7 +958,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -966,7 +966,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -975,7 +975,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -983,7 +983,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -992,7 +992,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1001,7 +1001,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1019,7 +1019,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1027,7 +1027,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1036,7 +1036,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1057,7 +1057,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1068,7 +1068,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1078,7 +1078,7 @@ public partial class CalculationUsage : ICalculationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1087,7 +1087,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1098,7 +1098,7 @@ public partial class CalculationUsage : ICalculationUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1109,7 +1109,7 @@ public partial class CalculationUsage : ICalculationUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1117,7 +1117,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1126,7 +1126,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1135,7 +1135,7 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/CaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/CaseDefinition.cs index 25f7b9874..ead008ce8 100644 --- a/SysML2.NET/Core/AutoGenDto/CaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/CaseDefinition.cs @@ -55,7 +55,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List Action { get; internal set; } + public List action { get; internal set; } = []; /// /// The parameters of this CaseDefinition that represent actors involved in the case. @@ -64,7 +64,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -80,7 +80,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [Implements(implementation: "ICalculationDefinition.Calculation")] - public List Calculation { get; internal set; } + public List calculation { get; internal set; } = []; /// /// The declared name of this Element. @@ -110,7 +110,7 @@ public partial class CaseDefinition : ICaseDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -119,7 +119,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -128,7 +128,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -137,7 +137,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -153,7 +153,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -161,7 +161,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List Expression { get; internal set; } + public List expression { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -169,7 +169,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -178,7 +178,7 @@ public partial class CaseDefinition : ICaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -186,7 +186,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -194,7 +194,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -203,7 +203,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -211,7 +211,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -224,7 +224,7 @@ public partial class CaseDefinition : ICaseDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -239,7 +239,7 @@ public partial class CaseDefinition : ICaseDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -264,7 +264,7 @@ public partial class CaseDefinition : ICaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -275,7 +275,7 @@ public partial class CaseDefinition : ICaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -303,7 +303,7 @@ public partial class CaseDefinition : ICaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -311,7 +311,7 @@ public partial class CaseDefinition : ICaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -321,7 +321,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -331,7 +331,7 @@ public partial class CaseDefinition : ICaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The RequirementUsage representing the objective of this CaseDefinition. @@ -339,7 +339,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_59601fc_1590259317710_27529_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ObjectiveRequirement")] - public Guid? ObjectiveRequirement { get; internal set; } + public Guid? objectiveRequirement { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -347,7 +347,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -355,7 +355,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -363,7 +363,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -371,7 +371,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -381,7 +381,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -389,7 +389,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -397,7 +397,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -405,7 +405,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -413,7 +413,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -422,7 +422,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -432,7 +432,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -440,7 +440,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -450,7 +450,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -460,7 +460,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -468,7 +468,7 @@ public partial class CaseDefinition : ICaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -477,7 +477,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -485,7 +485,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -493,7 +493,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -503,7 +503,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -511,7 +511,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -521,7 +521,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -529,7 +529,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -538,7 +538,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -546,7 +546,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -555,7 +555,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -566,7 +566,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -574,7 +574,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -582,7 +582,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -590,7 +590,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -598,7 +598,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -606,7 +606,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -622,7 +622,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -630,7 +630,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -640,7 +640,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -648,7 +648,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -657,7 +657,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -665,7 +665,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -674,7 +674,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -683,7 +683,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -691,7 +691,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -699,7 +699,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -707,7 +707,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -715,7 +715,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -723,7 +723,7 @@ public partial class CaseDefinition : ICaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -732,7 +732,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -741,7 +741,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -758,7 +758,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -770,7 +770,7 @@ public partial class CaseDefinition : ICaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The object or value that is the result of evaluating the Function. @@ -779,7 +779,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -789,7 +789,7 @@ public partial class CaseDefinition : ICaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Steps that make up this Behavior. @@ -797,7 +797,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The parameter of this CaseDefinition that represents its subject. @@ -806,7 +806,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -815,7 +815,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -826,7 +826,7 @@ public partial class CaseDefinition : ICaseDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -834,7 +834,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -843,7 +843,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -853,7 +853,7 @@ public partial class CaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/CaseUsage.cs b/SysML2.NET/Core/AutoGenDto/CaseUsage.cs index 0c71d1de8..7bfa16665 100644 --- a/SysML2.NET/Core/AutoGenDto/CaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/CaseUsage.cs @@ -57,7 +57,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -66,7 +66,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -82,7 +82,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -94,7 +94,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public Guid? CalculationDefinition { get; internal set; } + public Guid? calculationDefinition { get; internal set; } /// /// The CaseDefinition that is the type of this CaseUsage. @@ -102,7 +102,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_59601fc_1590257465225_855208_512", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public Guid? CaseDefinition { get; internal set; } + public Guid? caseDefinition { get; internal set; } /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -114,7 +114,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -124,7 +124,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -152,7 +152,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -165,7 +165,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -174,7 +174,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -183,7 +183,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -200,7 +200,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -216,7 +216,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -226,7 +226,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -234,7 +234,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -243,14 +243,14 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -260,7 +260,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -269,7 +269,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -277,7 +277,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -285,7 +285,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -293,7 +293,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -302,7 +302,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -310,7 +310,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -323,7 +323,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -347,7 +347,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -402,7 +402,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -410,7 +410,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -432,7 +432,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -481,7 +481,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -489,7 +489,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -497,7 +497,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -507,7 +507,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -517,7 +517,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -525,7 +525,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -533,7 +533,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -541,7 +541,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -549,7 +549,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -557,7 +557,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -565,7 +565,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -573,7 +573,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -583,7 +583,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -591,7 +591,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -599,7 +599,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -607,7 +607,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -615,7 +615,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -623,7 +623,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -631,7 +631,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -639,7 +639,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -647,7 +647,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -655,7 +655,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -663,7 +663,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -671,7 +671,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -679,7 +679,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -687,7 +687,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -695,7 +695,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -704,7 +704,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -712,7 +712,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -720,7 +720,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -728,7 +728,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -736,7 +736,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The RequirementUsage representing the objective of this CaseUsage. @@ -744,7 +744,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591138794257_404044_2145", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ObjectiveRequirement")] - public Guid? ObjectiveRequirement { get; internal set; } + public Guid? objectiveRequirement { get; internal set; } /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -755,7 +755,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -763,7 +763,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -773,7 +773,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -782,7 +782,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -791,7 +791,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -801,7 +801,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -811,7 +811,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -819,7 +819,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -828,7 +828,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -836,7 +836,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -846,7 +846,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -856,7 +856,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -866,7 +866,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -876,7 +876,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -885,7 +885,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -894,7 +894,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -905,7 +905,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -914,7 +914,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -923,7 +923,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -941,7 +941,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -951,7 +951,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -961,7 +961,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -971,7 +971,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -980,7 +980,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -988,7 +988,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -997,7 +997,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1005,7 +1005,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1014,7 +1014,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1023,7 +1023,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1041,7 +1041,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1049,7 +1049,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1058,7 +1058,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1079,7 +1079,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1090,7 +1090,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1100,7 +1100,7 @@ public partial class CaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The parameter of this CaseUsage that represents its subject. @@ -1109,7 +1109,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1118,7 +1118,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1129,7 +1129,7 @@ public partial class CaseUsage : ICaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1140,7 +1140,7 @@ public partial class CaseUsage : ICaseUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1148,7 +1148,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1157,7 +1157,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1166,7 +1166,7 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Class.cs b/SysML2.NET/Core/AutoGenDto/Class.cs index 9eb43ccc1..392bcd3c7 100644 --- a/SysML2.NET/Core/AutoGenDto/Class.cs +++ b/SysML2.NET/Core/AutoGenDto/Class.cs @@ -82,7 +82,7 @@ public partial class Class : IClass /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -90,7 +90,7 @@ public partial class Class : IClass [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -99,7 +99,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -115,7 +115,7 @@ public partial class Class : IClass [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -123,7 +123,7 @@ public partial class Class : IClass [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -132,7 +132,7 @@ public partial class Class : IClass /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -140,7 +140,7 @@ public partial class Class : IClass [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -148,7 +148,7 @@ public partial class Class : IClass [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -157,7 +157,7 @@ public partial class Class : IClass [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -165,7 +165,7 @@ public partial class Class : IClass [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -178,7 +178,7 @@ public partial class Class : IClass /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -193,7 +193,7 @@ public partial class Class : IClass /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -211,7 +211,7 @@ public partial class Class : IClass /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -231,7 +231,7 @@ public partial class Class : IClass /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -239,7 +239,7 @@ public partial class Class : IClass /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -249,7 +249,7 @@ public partial class Class : IClass [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -259,7 +259,7 @@ public partial class Class : IClass /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -267,7 +267,7 @@ public partial class Class : IClass [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -277,7 +277,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -286,7 +286,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -296,7 +296,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -306,7 +306,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -314,7 +314,7 @@ public partial class Class : IClass /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -323,7 +323,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -331,7 +331,7 @@ public partial class Class : IClass [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -341,7 +341,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -351,7 +351,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -360,7 +360,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -369,7 +369,7 @@ public partial class Class : IClass [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -380,7 +380,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -398,7 +398,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -407,7 +407,7 @@ public partial class Class : IClass [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -416,7 +416,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -424,7 +424,7 @@ public partial class Class : IClass /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -433,7 +433,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -442,7 +442,7 @@ public partial class Class : IClass [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -462,7 +462,7 @@ public partial class Class : IClass /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -472,7 +472,7 @@ public partial class Class : IClass /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -481,7 +481,7 @@ public partial class Class : IClass [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -492,7 +492,7 @@ public partial class Class : IClass /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Classifier.cs b/SysML2.NET/Core/AutoGenDto/Classifier.cs index 4876d1ded..45d2654d7 100644 --- a/SysML2.NET/Core/AutoGenDto/Classifier.cs +++ b/SysML2.NET/Core/AutoGenDto/Classifier.cs @@ -85,7 +85,7 @@ public partial class Classifier : IClassifier /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -93,7 +93,7 @@ public partial class Classifier : IClassifier [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -102,7 +102,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -118,7 +118,7 @@ public partial class Classifier : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -126,7 +126,7 @@ public partial class Classifier : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -135,7 +135,7 @@ public partial class Classifier : IClassifier /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -143,7 +143,7 @@ public partial class Classifier : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -151,7 +151,7 @@ public partial class Classifier : IClassifier [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -160,7 +160,7 @@ public partial class Classifier : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -168,7 +168,7 @@ public partial class Classifier : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -181,7 +181,7 @@ public partial class Classifier : IClassifier /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -196,7 +196,7 @@ public partial class Classifier : IClassifier /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -214,7 +214,7 @@ public partial class Classifier : IClassifier /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -234,7 +234,7 @@ public partial class Classifier : IClassifier /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -242,7 +242,7 @@ public partial class Classifier : IClassifier /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -252,7 +252,7 @@ public partial class Classifier : IClassifier [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -262,7 +262,7 @@ public partial class Classifier : IClassifier /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -270,7 +270,7 @@ public partial class Classifier : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -280,7 +280,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -289,7 +289,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -299,7 +299,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -309,7 +309,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -317,7 +317,7 @@ public partial class Classifier : IClassifier /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -326,7 +326,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -334,7 +334,7 @@ public partial class Classifier : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -344,7 +344,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -354,7 +354,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -363,7 +363,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -372,7 +372,7 @@ public partial class Classifier : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -383,7 +383,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -401,7 +401,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -410,7 +410,7 @@ public partial class Classifier : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -419,7 +419,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -427,7 +427,7 @@ public partial class Classifier : IClassifier /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -436,7 +436,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -445,7 +445,7 @@ public partial class Classifier : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -465,7 +465,7 @@ public partial class Classifier : IClassifier /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -475,7 +475,7 @@ public partial class Classifier : IClassifier /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -484,7 +484,7 @@ public partial class Classifier : IClassifier [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -495,7 +495,7 @@ public partial class Classifier : IClassifier /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/CollectExpression.cs b/SysML2.NET/Core/AutoGenDto/CollectExpression.cs index f046e6551..37ca36a89 100644 --- a/SysML2.NET/Core/AutoGenDto/CollectExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/CollectExpression.cs @@ -61,7 +61,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List Argument { get; internal set; } + public List argument { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -70,7 +70,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,7 +82,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -92,7 +92,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -122,7 +122,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -131,7 +131,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -148,7 +148,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -164,7 +164,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -174,7 +174,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -182,7 +182,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -191,14 +191,14 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -208,7 +208,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -216,7 +216,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -224,7 +224,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -232,7 +232,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -241,7 +241,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -249,7 +249,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Type that is being instantiated. @@ -257,7 +257,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public Guid InstantiatedType { get; internal set; } + public Guid instantiatedType { get; internal set; } /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -270,7 +270,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -294,7 +294,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -341,7 +341,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -349,7 +349,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -399,7 +399,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -407,7 +407,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -417,7 +417,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -427,14 +427,14 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// [Property(xmiId: "_18_5_3_12e503d9_1559596670531_992404_29068", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "collect")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528808100_646606_111674")] [Implements(implementation: "ICollectExpression.Operator")] - string ICollectExpression.Operator { get; set; } = "collect"; + public string Operator { get; set; } = "collect"; /// /// An operator symbol that names a corresponding Function from one of the standard packages from the @@ -451,7 +451,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -461,7 +461,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -470,7 +470,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -479,7 +479,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -489,7 +489,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -499,7 +499,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -507,7 +507,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -516,7 +516,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -524,7 +524,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -534,7 +534,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -544,7 +544,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -554,7 +554,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -564,7 +564,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -573,7 +573,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -582,7 +582,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -593,7 +593,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -602,7 +602,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -611,7 +611,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -629,7 +629,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -639,7 +639,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -649,7 +649,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -659,7 +659,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -668,7 +668,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -676,7 +676,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -684,7 +684,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -693,7 +693,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -702,7 +702,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -720,7 +720,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -729,7 +729,7 @@ public partial class CollectExpression : ICollectExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -741,7 +741,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -752,7 +752,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -762,7 +762,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -771,7 +771,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -781,7 +781,7 @@ public partial class CollectExpression : ICollectExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -792,7 +792,7 @@ public partial class CollectExpression : ICollectExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Comment.cs b/SysML2.NET/Core/AutoGenDto/Comment.cs index b52a21fe8..b7ef2b438 100644 --- a/SysML2.NET/Core/AutoGenDto/Comment.cs +++ b/SysML2.NET/Core/AutoGenDto/Comment.cs @@ -58,7 +58,7 @@ public partial class Comment : IComment /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List AnnotatedElement { get; internal set; } + public List annotatedElement { get; internal set; } = []; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -67,7 +67,7 @@ public partial class Comment : IComment [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List Annotation { get; internal set; } + public List annotation { get; internal set; } = []; /// /// The annotation text for the Comment. @@ -100,7 +100,7 @@ public partial class Comment : IComment [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -126,7 +126,7 @@ public partial class Comment : IComment /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Identification of the language of the body text and, optionally, the region and/or encoding. The @@ -145,7 +145,7 @@ public partial class Comment : IComment /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -155,7 +155,7 @@ public partial class Comment : IComment [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List OwnedAnnotatingRelationship { get; internal set; } + public List ownedAnnotatingRelationship { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -165,7 +165,7 @@ public partial class Comment : IComment [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -173,7 +173,7 @@ public partial class Comment : IComment /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -189,7 +189,7 @@ public partial class Comment : IComment /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -198,7 +198,7 @@ public partial class Comment : IComment [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public Guid? OwningAnnotatingRelationship { get; internal set; } + public Guid? owningAnnotatingRelationship { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -207,7 +207,7 @@ public partial class Comment : IComment [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -216,7 +216,7 @@ public partial class Comment : IComment [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -236,7 +236,7 @@ public partial class Comment : IComment /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -246,7 +246,7 @@ public partial class Comment : IComment /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -255,7 +255,7 @@ public partial class Comment : IComment [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ConcernDefinition.cs b/SysML2.NET/Core/AutoGenDto/ConcernDefinition.cs index 5c5212e31..b46f0d1c9 100644 --- a/SysML2.NET/Core/AutoGenDto/ConcernDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ConcernDefinition.cs @@ -53,7 +53,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -70,7 +70,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1583376806647_629021_133", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementDefinition.AssumedConstraint")] - public List AssumedConstraint { get; internal set; } + public List assumedConstraint { get; internal set; } = []; /// /// The declared name of this Element. @@ -101,7 +101,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -110,7 +110,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -119,7 +119,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -128,7 +128,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -144,7 +144,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -152,7 +152,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List Expression { get; internal set; } + public List expression { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -160,7 +160,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -169,7 +169,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The ConcernUsages framed by this RequirementDefinition, which are the ownedConcerns of all @@ -178,7 +178,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_4_12e503d9_1617116733499_587735_3242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583376932997_792124_158")] [Implements(implementation: "IRequirementDefinition.FramedConcern")] - public List FramedConcern { get; internal set; } + public List framedConcern { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -186,7 +186,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -194,7 +194,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -203,7 +203,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -211,7 +211,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -224,7 +224,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -239,7 +239,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -264,7 +264,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -275,7 +275,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -303,7 +303,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -311,7 +311,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -321,7 +321,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -331,7 +331,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -339,7 +339,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -347,7 +347,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -355,7 +355,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -363,7 +363,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -373,7 +373,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -381,7 +381,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -389,7 +389,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -397,7 +397,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -405,7 +405,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -414,7 +414,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -424,7 +424,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -432,7 +432,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -442,7 +442,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -452,7 +452,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -460,7 +460,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -469,7 +469,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -477,7 +477,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -485,7 +485,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -495,7 +495,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -503,7 +503,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -513,7 +513,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -521,7 +521,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -530,7 +530,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -538,7 +538,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -547,7 +547,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -558,7 +558,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -566,7 +566,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -574,7 +574,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -582,7 +582,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -590,7 +590,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -598,7 +598,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -614,7 +614,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -622,7 +622,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -632,7 +632,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -640,7 +640,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -649,7 +649,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -657,7 +657,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -666,7 +666,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -675,7 +675,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -683,7 +683,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -691,7 +691,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -699,7 +699,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -707,7 +707,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -715,7 +715,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -724,7 +724,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -733,7 +733,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -750,7 +750,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -762,7 +762,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An optional modeler-specified identifier for this RequirementDefinition (used, e.g., to link it to @@ -782,7 +782,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1583376932997_792124_158", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementDefinition.RequiredConstraint")] - public List RequiredConstraint { get; internal set; } + public List requiredConstraint { get; internal set; } = []; /// /// The object or value that is the result of evaluating the Function. @@ -791,7 +791,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -801,7 +801,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The parameters of this RequirementDefinition that represent stakeholders for th requirement. @@ -810,7 +810,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.StakeholderParameter")] - public List StakeholderParameter { get; internal set; } + public List stakeholderParameter { get; internal set; } = []; /// /// The Steps that make up this Behavior. @@ -818,7 +818,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The parameter of this RequirementDefinition that represents its subject. @@ -827,7 +827,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// An optional textual statement of the requirement represented by this RequirementDefinition, derived @@ -835,7 +835,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1583376433122_189839_94", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementDefinition.Text")] - public List Text { get; internal set; } + public List text { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -844,7 +844,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -855,7 +855,7 @@ public partial class ConcernDefinition : IConcernDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -863,7 +863,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -872,7 +872,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -882,7 +882,7 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ConcernUsage.cs b/SysML2.NET/Core/AutoGenDto/ConcernUsage.cs index aa13779d8..aa602bb6f 100644 --- a/SysML2.NET/Core/AutoGenDto/ConcernUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ConcernUsage.cs @@ -56,7 +56,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -73,7 +73,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.AssumedConstraint")] - public List AssumedConstraint { get; internal set; } + public List assumedConstraint { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -82,7 +82,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -94,7 +94,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The ConcernDefinition that is the single type of this ConcernUsage. @@ -102,7 +102,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_4_12e503d9_1617052514912_780627_2256", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1583000408905_769743_1223")] [Implements(implementation: "IConcernUsage.ConcernDefinition")] - public Guid? ConcernDefinition { get; internal set; } + public Guid? concernDefinition { get; internal set; } /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -113,7 +113,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public Guid? ConstraintDefinition { get; internal set; } + public Guid? constraintDefinition { get; internal set; } /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -123,7 +123,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -152,7 +152,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -165,7 +165,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -174,7 +174,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -183,7 +183,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -200,7 +200,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -216,7 +216,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -226,7 +226,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -234,7 +234,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -243,14 +243,14 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -260,7 +260,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -269,7 +269,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] [Implements(implementation: "IRequirementUsage.FramedConcern")] - public List FramedConcern { get; internal set; } + public List framedConcern { get; internal set; } = []; /// /// The Function that types this Expression. @@ -278,7 +278,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -286,7 +286,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -294,7 +294,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -302,7 +302,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -311,7 +311,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -319,7 +319,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -332,7 +332,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -356,7 +356,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -411,7 +411,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -419,7 +419,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -441,7 +441,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -490,7 +490,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -498,7 +498,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -506,7 +506,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -516,7 +516,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -526,7 +526,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -534,7 +534,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -542,7 +542,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -550,7 +550,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -558,7 +558,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -566,7 +566,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -574,7 +574,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -582,7 +582,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -592,7 +592,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -600,7 +600,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -608,7 +608,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -616,7 +616,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -624,7 +624,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -632,7 +632,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -640,7 +640,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -648,7 +648,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -656,7 +656,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -664,7 +664,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -672,7 +672,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -680,7 +680,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -688,7 +688,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -696,7 +696,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -704,7 +704,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -713,7 +713,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -721,7 +721,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -729,7 +729,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -737,7 +737,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -745,7 +745,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -755,7 +755,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -763,7 +763,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -773,7 +773,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -782,7 +782,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -791,7 +791,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -801,7 +801,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -811,7 +811,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -819,7 +819,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -828,7 +828,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -836,7 +836,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -846,7 +846,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -856,7 +856,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -866,7 +866,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -876,7 +876,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -885,7 +885,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -894,7 +894,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -905,7 +905,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -914,7 +914,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -923,7 +923,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -941,7 +941,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -951,7 +951,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -961,7 +961,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -971,7 +971,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -980,7 +980,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -988,7 +988,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -997,7 +997,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1005,7 +1005,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1014,7 +1014,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1023,7 +1023,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1041,7 +1041,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1049,7 +1049,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1058,7 +1058,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1076,7 +1076,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? Predicate { get; internal set; } + public Guid? predicate { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1088,7 +1088,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -1108,7 +1108,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.RequiredConstraint")] - public List RequiredConstraint { get; internal set; } + public List requiredConstraint { get; internal set; } = []; /// /// The RequirementDefinition that is the single definition of this RequirementUsage. @@ -1117,7 +1117,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [RedefinedByProperty("IConcernUsage.ConcernDefinition")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public Guid? RequirementDefinition { get; internal set; } + public Guid? requirementDefinition { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1128,7 +1128,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1138,7 +1138,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -1147,7 +1147,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.StakeholderParameter")] - public List StakeholderParameter { get; internal set; } + public List stakeholderParameter { get; internal set; } = []; /// /// The parameter of this RequirementUsage that represents its subject. @@ -1156,7 +1156,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from @@ -1164,7 +1164,7 @@ public partial class ConcernUsage : IConcernUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementUsage.Text")] - public List Text { get; internal set; } + public List text { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -1173,7 +1173,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1184,7 +1184,7 @@ public partial class ConcernUsage : IConcernUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1195,7 +1195,7 @@ public partial class ConcernUsage : IConcernUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1203,7 +1203,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1212,7 +1212,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1221,7 +1221,7 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ConjugatedPortDefinition.cs b/SysML2.NET/Core/AutoGenDto/ConjugatedPortDefinition.cs index 00a8e7b4a..b49c7a795 100644 --- a/SysML2.NET/Core/AutoGenDto/ConjugatedPortDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ConjugatedPortDefinition.cs @@ -63,7 +63,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1575484364015_206236_989", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IPortDefinition.ConjugatedPortDefinition")] - Guid? IPortDefinition.ConjugatedPortDefinition { get; } + public Guid? conjugatedPortDefinition { get; internal set; } /// /// The declared name of this Element. @@ -93,7 +93,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -101,7 +101,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -110,7 +110,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -119,7 +119,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -135,7 +135,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -143,7 +143,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -152,7 +152,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -160,7 +160,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -168,7 +168,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -177,7 +177,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -185,7 +185,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -198,7 +198,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -213,7 +213,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -238,7 +238,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -266,7 +266,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -274,7 +274,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -284,7 +284,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -294,7 +294,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The original PortDefinition for this ConjugatedPortDefinition, which is the owningNamespace of the @@ -303,7 +303,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1575484364017_387810_990", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [Implements(implementation: "IConjugatedPortDefinition.OriginalPortDefinition")] - public Guid OriginalPortDefinition { get; internal set; } + public Guid originalPortDefinition { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -311,7 +311,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -319,7 +319,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -327,7 +327,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -335,7 +335,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -345,7 +345,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -353,7 +353,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -361,7 +361,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -369,7 +369,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -377,7 +377,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -387,7 +387,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [RedefinedByProperty("IConjugatedPortDefinition.OwnedPortConjugator")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -397,7 +397,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -405,7 +405,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -415,7 +415,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -425,7 +425,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -433,7 +433,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -442,7 +442,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -450,7 +450,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -458,7 +458,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -468,7 +468,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -476,7 +476,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -486,7 +486,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -494,7 +494,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -503,7 +503,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -511,7 +511,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -520,7 +520,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -531,7 +531,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -539,7 +539,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -547,7 +547,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -555,7 +555,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -563,7 +563,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The PortConjugation that is the ownedConjugator of this ConjugatedPortDefinition, linking it to its @@ -572,7 +572,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1575484344901_850046_947", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1575482646809_280165_440")] [Implements(implementation: "IConjugatedPortDefinition.OwnedPortConjugator")] - public Guid OwnedPortConjugator { get; internal set; } + public Guid ownedPortConjugator { get; internal set; } /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -580,7 +580,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -596,7 +596,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -604,7 +604,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -614,7 +614,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -622,7 +622,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -631,7 +631,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -639,7 +639,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -648,7 +648,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -657,7 +657,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -665,7 +665,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -673,7 +673,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -681,7 +681,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -689,7 +689,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -697,7 +697,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -706,7 +706,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -716,7 +716,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [RedefinedByProperty("IConjugatedPortDefinition.OriginalPortDefinition")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -736,7 +736,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -746,7 +746,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -755,7 +755,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -766,7 +766,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -774,7 +774,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -783,7 +783,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -793,7 +793,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ConjugatedPortTyping.cs b/SysML2.NET/Core/AutoGenDto/ConjugatedPortTyping.cs index e2dc75b5e..299490ee7 100644 --- a/SysML2.NET/Core/AutoGenDto/ConjugatedPortTyping.cs +++ b/SysML2.NET/Core/AutoGenDto/ConjugatedPortTyping.cs @@ -87,7 +87,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -130,7 +130,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -140,7 +140,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -150,7 +150,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -158,7 +158,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -182,7 +182,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// A typedFeature that is also the owningRelatedElement of this FeatureTyping. @@ -191,7 +191,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_13273_21101")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "IFeatureTyping.OwningFeature")] - public Guid? OwningFeature { get; internal set; } + public Guid? owningFeature { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -200,7 +200,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -209,7 +209,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -235,14 +235,14 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IFeatureTyping.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The originalPortDefinition of the conjugatedPortDefinition of this ConjugatedPortTyping. /// [Property(xmiId: "_19_0_2_12e503d9_1577915013583_787601_133", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConjugatedPortTyping.PortDefinition")] - public Guid PortDefinition { get; internal set; } + public Guid portDefinition { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -254,7 +254,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -262,7 +262,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -272,7 +272,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -308,7 +308,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The Type that is being applied by this FeatureTyping. diff --git a/SysML2.NET/Core/AutoGenDto/Conjugation.cs b/SysML2.NET/Core/AutoGenDto/Conjugation.cs index 08fdcd670..49148cdd5 100644 --- a/SysML2.NET/Core/AutoGenDto/Conjugation.cs +++ b/SysML2.NET/Core/AutoGenDto/Conjugation.cs @@ -91,7 +91,7 @@ public partial class Conjugation : IConjugation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -125,7 +125,7 @@ public partial class Conjugation : IConjugation /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -135,7 +135,7 @@ public partial class Conjugation : IConjugation /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The Type to be conjugated. @@ -153,7 +153,7 @@ public partial class Conjugation : IConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -161,7 +161,7 @@ public partial class Conjugation : IConjugation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -185,7 +185,7 @@ public partial class Conjugation : IConjugation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -194,7 +194,7 @@ public partial class Conjugation : IConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -203,7 +203,7 @@ public partial class Conjugation : IConjugation [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -228,7 +228,7 @@ public partial class Conjugation : IConjugation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490143_721644_299")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [Implements(implementation: "IConjugation.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -240,7 +240,7 @@ public partial class Conjugation : IConjugation /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -248,7 +248,7 @@ public partial class Conjugation : IConjugation /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -258,7 +258,7 @@ public partial class Conjugation : IConjugation /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -285,7 +285,7 @@ public partial class Conjugation : IConjugation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ConnectionDefinition.cs b/SysML2.NET/Core/AutoGenDto/ConnectionDefinition.cs index b009dd423..82c7b6440 100644 --- a/SysML2.NET/Core/AutoGenDto/ConnectionDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ConnectionDefinition.cs @@ -63,7 +63,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List AssociationEnd { get; internal set; } + public List associationEnd { get; internal set; } = []; /// /// The Usages that define the things related by the ConnectionDefinition. @@ -71,7 +71,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591476421094_685440_682", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] [Implements(implementation: "IConnectionDefinition.ConnectionEnd")] - public List ConnectionEnd { get; internal set; } + public List connectionEnd { get; internal set; } = []; /// /// The declared name of this Element. @@ -101,7 +101,7 @@ public partial class ConnectionDefinition : IConnectionDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -109,7 +109,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -118,7 +118,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -127,7 +127,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -144,7 +144,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -152,7 +152,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -161,7 +161,7 @@ public partial class ConnectionDefinition : IConnectionDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -169,7 +169,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -177,7 +177,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -186,7 +186,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -194,7 +194,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -207,7 +207,7 @@ public partial class ConnectionDefinition : IConnectionDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -222,7 +222,7 @@ public partial class ConnectionDefinition : IConnectionDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -255,7 +255,7 @@ public partial class ConnectionDefinition : IConnectionDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// A ConnectionDefinition always has isSufficient = true. @@ -263,7 +263,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_2022x_2_12e503d9_1734734871008_462076_156", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1564072709069_937523_30797")] [Implements(implementation: "IConnectionDefinition.IsSufficient")] - bool IConnectionDefinition.IsSufficient { get; set; } = true; + public bool IsSufficient { get; set; } = true; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -292,7 +292,7 @@ public partial class ConnectionDefinition : IConnectionDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -300,7 +300,7 @@ public partial class ConnectionDefinition : IConnectionDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -310,7 +310,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -320,7 +320,7 @@ public partial class ConnectionDefinition : IConnectionDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -328,7 +328,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -336,7 +336,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -344,7 +344,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -352,7 +352,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -362,7 +362,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -370,7 +370,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -378,7 +378,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -386,7 +386,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -394,7 +394,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -403,7 +403,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -413,7 +413,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -421,7 +421,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -431,7 +431,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -441,7 +441,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -449,7 +449,7 @@ public partial class ConnectionDefinition : IConnectionDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -458,7 +458,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -466,7 +466,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -474,7 +474,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -484,7 +484,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -492,7 +492,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -502,7 +502,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -510,7 +510,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -519,7 +519,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -527,7 +527,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -536,7 +536,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -547,7 +547,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -555,7 +555,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -563,7 +563,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -571,7 +571,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -579,7 +579,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -587,7 +587,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -611,7 +611,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -619,7 +619,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -629,7 +629,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -637,7 +637,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -646,7 +646,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -654,7 +654,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -663,7 +663,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -672,7 +672,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -680,7 +680,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -688,7 +688,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -696,7 +696,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -704,7 +704,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -712,7 +712,7 @@ public partial class ConnectionDefinition : IConnectionDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -721,7 +721,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -730,7 +730,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -758,7 +758,7 @@ public partial class ConnectionDefinition : IConnectionDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -767,7 +767,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -776,7 +776,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List RelatedType { get; internal set; } + public List relatedType { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -786,7 +786,7 @@ public partial class ConnectionDefinition : IConnectionDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -804,7 +804,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public Guid? SourceType { get; internal set; } + public Guid? sourceType { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -823,7 +823,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List TargetType { get; internal set; } + public List targetType { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -832,7 +832,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -843,7 +843,7 @@ public partial class ConnectionDefinition : IConnectionDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -851,7 +851,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -860,7 +860,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -870,7 +870,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs b/SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs index 4b074465b..b3050938e 100644 --- a/SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs @@ -64,7 +64,7 @@ public partial class ConnectionUsage : IConnectionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - public List Association { get; internal set; } + public List association { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -76,7 +76,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The AssociationStructures that are the types of this ConnectionUsage. Nominally, these are , but @@ -87,7 +87,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [Implements(implementation: "IConnectionUsage.ConnectionDefinition")] - public List ConnectionDefinition { get; internal set; } + public List connectionDefinition { get; internal set; } = []; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -97,7 +97,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List ConnectorEnd { get; internal set; } + public List connectorEnd { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -107,7 +107,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -133,7 +133,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public Guid? DefaultFeaturingType { get; internal set; } + public Guid? defaultFeaturingType { get; internal set; } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -144,7 +144,7 @@ public partial class ConnectionUsage : IConnectionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -157,7 +157,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -165,7 +165,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -174,7 +174,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -191,7 +191,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -208,7 +208,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -218,7 +218,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -226,7 +226,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -235,14 +235,14 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -252,7 +252,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -260,7 +260,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -268,7 +268,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -276,7 +276,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -285,7 +285,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -293,7 +293,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -306,7 +306,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -330,7 +330,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -393,7 +393,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -415,7 +415,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -461,7 +461,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List ItemDefinition { get; internal set; } + public List itemDefinition { get; internal set; } = []; /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -474,7 +474,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -482,7 +482,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -490,7 +490,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -500,7 +500,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -510,7 +510,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -518,7 +518,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -526,7 +526,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -534,7 +534,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -542,7 +542,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -550,7 +550,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -558,7 +558,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -566,7 +566,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -576,7 +576,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -584,7 +584,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -592,7 +592,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -600,7 +600,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -608,7 +608,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -616,7 +616,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -624,7 +624,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -632,7 +632,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -640,7 +640,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -648,7 +648,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -656,7 +656,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -664,7 +664,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -672,7 +672,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -680,7 +680,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -688,7 +688,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -697,7 +697,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -705,7 +705,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -713,7 +713,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -721,7 +721,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -729,7 +729,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -739,7 +739,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -747,7 +747,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -757,7 +757,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -766,7 +766,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -775,7 +775,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -785,7 +785,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -795,7 +795,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -803,7 +803,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -812,7 +812,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -820,7 +820,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -830,7 +830,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -840,7 +840,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -850,7 +850,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -860,7 +860,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -869,7 +869,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -878,7 +878,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -889,7 +889,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -898,7 +898,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -907,7 +907,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -933,7 +933,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -943,7 +943,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -953,7 +953,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -963,7 +963,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -972,7 +972,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -980,7 +980,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -989,7 +989,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -997,7 +997,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1006,7 +1006,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1015,7 +1015,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -1041,7 +1041,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1049,7 +1049,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The itemDefinitions of this PartUsage that are PartDefinitions. @@ -1057,7 +1057,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1591475180488_929065_121", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List PartDefinition { get; internal set; } + public List partDefinition { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1078,7 +1078,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1087,7 +1087,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1096,7 +1096,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List RelatedFeature { get; internal set; } + public List relatedFeature { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1106,7 +1106,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1124,7 +1124,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public Guid? SourceFeature { get; internal set; } + public Guid? sourceFeature { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1143,7 +1143,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List TargetFeature { get; internal set; } + public List targetFeature { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -1152,7 +1152,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1163,7 +1163,7 @@ public partial class ConnectionUsage : IConnectionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1174,7 +1174,7 @@ public partial class ConnectionUsage : IConnectionUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1182,7 +1182,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1191,7 +1191,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1200,7 +1200,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Connector.cs b/SysML2.NET/Core/AutoGenDto/Connector.cs index c6e676f75..4d40fc855 100644 --- a/SysML2.NET/Core/AutoGenDto/Connector.cs +++ b/SysML2.NET/Core/AutoGenDto/Connector.cs @@ -63,7 +63,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674983_471497_43284", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IConnector.Association")] - public List Association { get; internal set; } + public List association { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -75,7 +75,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -85,7 +85,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List ConnectorEnd { get; internal set; } + public List connectorEnd { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -95,7 +95,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -121,7 +121,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public Guid? DefaultFeaturingType { get; internal set; } + public Guid? defaultFeaturingType { get; internal set; } /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -134,7 +134,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -142,7 +142,7 @@ public partial class Connector : IConnector [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -159,7 +159,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -176,7 +176,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -186,7 +186,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -194,7 +194,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -203,14 +203,14 @@ public partial class Connector : IConnector /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -220,7 +220,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -228,7 +228,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -236,7 +236,7 @@ public partial class Connector : IConnector [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -245,7 +245,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -253,7 +253,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -266,7 +266,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -290,7 +290,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -345,7 +345,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -395,7 +395,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -403,7 +403,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -413,7 +413,7 @@ public partial class Connector : IConnector [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -423,7 +423,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -431,7 +431,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -441,7 +441,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -450,7 +450,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -459,7 +459,7 @@ public partial class Connector : IConnector [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -469,7 +469,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -479,7 +479,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -487,7 +487,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -496,7 +496,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -504,7 +504,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -514,7 +514,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -524,7 +524,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -534,7 +534,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -544,7 +544,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -553,7 +553,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -562,7 +562,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -573,7 +573,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -582,7 +582,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -591,7 +591,7 @@ public partial class Connector : IConnector [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -617,7 +617,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -627,7 +627,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -637,7 +637,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -647,7 +647,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -656,7 +656,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -664,7 +664,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -672,7 +672,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -681,7 +681,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -690,7 +690,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -716,7 +716,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -728,7 +728,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -737,7 +737,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -746,7 +746,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List RelatedFeature { get; internal set; } + public List relatedFeature { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -756,7 +756,7 @@ public partial class Connector : IConnector /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -774,7 +774,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public Guid? SourceFeature { get; internal set; } + public Guid? sourceFeature { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -793,7 +793,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List TargetFeature { get; internal set; } + public List targetFeature { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -802,7 +802,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -813,7 +813,7 @@ public partial class Connector : IConnector [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -824,7 +824,7 @@ public partial class Connector : IConnector /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ConstraintDefinition.cs b/SysML2.NET/Core/AutoGenDto/ConstraintDefinition.cs index fc63e180c..e9ef3a7d0 100644 --- a/SysML2.NET/Core/AutoGenDto/ConstraintDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ConstraintDefinition.cs @@ -82,7 +82,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -91,7 +91,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -100,7 +100,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -109,7 +109,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -125,7 +125,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -133,7 +133,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List Expression { get; internal set; } + public List expression { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -141,7 +141,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -150,7 +150,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -158,7 +158,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -166,7 +166,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -175,7 +175,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -183,7 +183,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -196,7 +196,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -211,7 +211,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -236,7 +236,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -247,7 +247,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -275,7 +275,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -283,7 +283,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -293,7 +293,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -303,7 +303,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -311,7 +311,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -319,7 +319,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -327,7 +327,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -335,7 +335,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -345,7 +345,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -353,7 +353,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -361,7 +361,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -369,7 +369,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -377,7 +377,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -386,7 +386,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -396,7 +396,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -404,7 +404,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -414,7 +414,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -424,7 +424,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -432,7 +432,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -441,7 +441,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -449,7 +449,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -457,7 +457,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -467,7 +467,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -475,7 +475,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -485,7 +485,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -493,7 +493,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -502,7 +502,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -510,7 +510,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -519,7 +519,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -530,7 +530,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -538,7 +538,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -546,7 +546,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -554,7 +554,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -562,7 +562,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -570,7 +570,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -586,7 +586,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -594,7 +594,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -604,7 +604,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -612,7 +612,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -621,7 +621,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -629,7 +629,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -638,7 +638,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -647,7 +647,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -655,7 +655,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -663,7 +663,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -671,7 +671,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -679,7 +679,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -687,7 +687,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -696,7 +696,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -705,7 +705,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -722,7 +722,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -734,7 +734,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The object or value that is the result of evaluating the Function. @@ -743,7 +743,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -753,7 +753,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Steps that make up this Behavior. @@ -761,7 +761,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -770,7 +770,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -781,7 +781,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -789,7 +789,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -798,7 +798,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -808,7 +808,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs b/SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs index 8b2552940..12a15b12b 100644 --- a/SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs @@ -65,7 +65,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -77,7 +77,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -87,7 +87,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1578067546711_751168_1745", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public Guid? ConstraintDefinition { get; internal set; } + public Guid? constraintDefinition { get; internal set; } /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -97,7 +97,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -125,7 +125,7 @@ public partial class ConstraintUsage : IConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -138,7 +138,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -147,7 +147,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -156,7 +156,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -173,7 +173,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -189,7 +189,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -199,7 +199,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -207,7 +207,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -216,14 +216,14 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -233,7 +233,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -242,7 +242,7 @@ public partial class ConstraintUsage : IConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -250,7 +250,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -258,7 +258,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -266,7 +266,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -275,7 +275,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -283,7 +283,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -296,7 +296,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -320,7 +320,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -375,7 +375,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -383,7 +383,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -405,7 +405,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -454,7 +454,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -462,7 +462,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -470,7 +470,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -480,7 +480,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -490,7 +490,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -498,7 +498,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -506,7 +506,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -514,7 +514,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -522,7 +522,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -530,7 +530,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -538,7 +538,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -546,7 +546,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -556,7 +556,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -564,7 +564,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -572,7 +572,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -580,7 +580,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -588,7 +588,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -596,7 +596,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -604,7 +604,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -612,7 +612,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -620,7 +620,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -628,7 +628,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -636,7 +636,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -644,7 +644,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -652,7 +652,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -660,7 +660,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -668,7 +668,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -677,7 +677,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -685,7 +685,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -693,7 +693,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -701,7 +701,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -709,7 +709,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -719,7 +719,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -727,7 +727,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -737,7 +737,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -746,7 +746,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -755,7 +755,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -765,7 +765,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -775,7 +775,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -783,7 +783,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -792,7 +792,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -800,7 +800,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -810,7 +810,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -820,7 +820,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -830,7 +830,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -840,7 +840,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -849,7 +849,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -858,7 +858,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -869,7 +869,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -878,7 +878,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -887,7 +887,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -905,7 +905,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -915,7 +915,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -925,7 +925,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -935,7 +935,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -944,7 +944,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -952,7 +952,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -961,7 +961,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -969,7 +969,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -978,7 +978,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -987,7 +987,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1005,7 +1005,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1013,7 +1013,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1022,7 +1022,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1040,7 +1040,7 @@ public partial class ConstraintUsage : IConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? Predicate { get; internal set; } + public Guid? predicate { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1052,7 +1052,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1063,7 +1063,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1073,7 +1073,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1082,7 +1082,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1093,7 +1093,7 @@ public partial class ConstraintUsage : IConstraintUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1104,7 +1104,7 @@ public partial class ConstraintUsage : IConstraintUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1112,7 +1112,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1121,7 +1121,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1130,7 +1130,7 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ConstructorExpression.cs b/SysML2.NET/Core/AutoGenDto/ConstructorExpression.cs index b27d77c7e..b06ca0a4a 100644 --- a/SysML2.NET/Core/AutoGenDto/ConstructorExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/ConstructorExpression.cs @@ -62,7 +62,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List Argument { get; internal set; } + public List argument { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -71,7 +71,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -83,7 +83,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -93,7 +93,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -123,7 +123,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -132,7 +132,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -149,7 +149,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -165,7 +165,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -175,7 +175,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -183,7 +183,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -192,14 +192,14 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -209,7 +209,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -217,7 +217,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -225,7 +225,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -233,7 +233,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -242,7 +242,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -250,7 +250,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Type that is being instantiated. @@ -258,7 +258,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public Guid InstantiatedType { get; internal set; } + public Guid instantiatedType { get; internal set; } /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -271,7 +271,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -295,7 +295,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -342,7 +342,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -350,7 +350,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -400,7 +400,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -408,7 +408,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -418,7 +418,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -428,7 +428,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -436,7 +436,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -446,7 +446,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -455,7 +455,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -464,7 +464,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -474,7 +474,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -484,7 +484,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -492,7 +492,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -501,7 +501,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -509,7 +509,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -519,7 +519,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -529,7 +529,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -539,7 +539,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -549,7 +549,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -558,7 +558,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -567,7 +567,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -578,7 +578,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -587,7 +587,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -596,7 +596,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -614,7 +614,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -624,7 +624,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -634,7 +634,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -644,7 +644,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -653,7 +653,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -661,7 +661,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -669,7 +669,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -678,7 +678,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -687,7 +687,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -705,7 +705,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -714,7 +714,7 @@ public partial class ConstructorExpression : IConstructorExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -726,7 +726,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -737,7 +737,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -747,7 +747,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -756,7 +756,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -766,7 +766,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -777,7 +777,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/CrossSubsetting.cs b/SysML2.NET/Core/AutoGenDto/CrossSubsetting.cs index 3a737e7d8..f715c6659 100644 --- a/SysML2.NET/Core/AutoGenDto/CrossSubsetting.cs +++ b/SysML2.NET/Core/AutoGenDto/CrossSubsetting.cs @@ -79,7 +79,7 @@ public partial class CrossSubsetting : ICrossSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_236250_43311")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] [Implements(implementation: "ICrossSubsetting.CrossingFeature")] - public Guid CrossingFeature { get; internal set; } + public Guid crossingFeature { get; internal set; } /// /// The declared name of this Element. @@ -105,7 +105,7 @@ public partial class CrossSubsetting : ICrossSubsetting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -148,7 +148,7 @@ public partial class CrossSubsetting : ICrossSubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -158,7 +158,7 @@ public partial class CrossSubsetting : ICrossSubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -168,7 +168,7 @@ public partial class CrossSubsetting : ICrossSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -176,7 +176,7 @@ public partial class CrossSubsetting : ICrossSubsetting /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -200,7 +200,7 @@ public partial class CrossSubsetting : ICrossSubsetting /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// A subsettingFeature that is also the owningRelatedElement of this Subsetting. @@ -210,7 +210,7 @@ public partial class CrossSubsetting : ICrossSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [RedefinedByProperty("ICrossSubsetting.CrossingFeature")] [Implements(implementation: "ISubsetting.OwningFeature")] - public Guid? OwningFeature { get; internal set; } + public Guid? owningFeature { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -219,7 +219,7 @@ public partial class CrossSubsetting : ICrossSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -228,7 +228,7 @@ public partial class CrossSubsetting : ICrossSubsetting [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -254,7 +254,7 @@ public partial class CrossSubsetting : ICrossSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -266,7 +266,7 @@ public partial class CrossSubsetting : ICrossSubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -274,7 +274,7 @@ public partial class CrossSubsetting : ICrossSubsetting /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -284,7 +284,7 @@ public partial class CrossSubsetting : ICrossSubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -338,7 +338,7 @@ public partial class CrossSubsetting : ICrossSubsetting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/DataType.cs b/SysML2.NET/Core/AutoGenDto/DataType.cs index 6028e6911..e82345b84 100644 --- a/SysML2.NET/Core/AutoGenDto/DataType.cs +++ b/SysML2.NET/Core/AutoGenDto/DataType.cs @@ -85,7 +85,7 @@ public partial class DataType : IDataType /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -93,7 +93,7 @@ public partial class DataType : IDataType [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -102,7 +102,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -118,7 +118,7 @@ public partial class DataType : IDataType [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -126,7 +126,7 @@ public partial class DataType : IDataType [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -135,7 +135,7 @@ public partial class DataType : IDataType /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -143,7 +143,7 @@ public partial class DataType : IDataType [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -151,7 +151,7 @@ public partial class DataType : IDataType [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -160,7 +160,7 @@ public partial class DataType : IDataType [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -168,7 +168,7 @@ public partial class DataType : IDataType [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -181,7 +181,7 @@ public partial class DataType : IDataType /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -196,7 +196,7 @@ public partial class DataType : IDataType /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -214,7 +214,7 @@ public partial class DataType : IDataType /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -234,7 +234,7 @@ public partial class DataType : IDataType /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -242,7 +242,7 @@ public partial class DataType : IDataType /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -252,7 +252,7 @@ public partial class DataType : IDataType [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -262,7 +262,7 @@ public partial class DataType : IDataType /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -270,7 +270,7 @@ public partial class DataType : IDataType [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -280,7 +280,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -289,7 +289,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -299,7 +299,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -309,7 +309,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -317,7 +317,7 @@ public partial class DataType : IDataType /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -326,7 +326,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -334,7 +334,7 @@ public partial class DataType : IDataType [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -344,7 +344,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -354,7 +354,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -363,7 +363,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -372,7 +372,7 @@ public partial class DataType : IDataType [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -383,7 +383,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -401,7 +401,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -410,7 +410,7 @@ public partial class DataType : IDataType [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -419,7 +419,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -427,7 +427,7 @@ public partial class DataType : IDataType /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -436,7 +436,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -445,7 +445,7 @@ public partial class DataType : IDataType [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -465,7 +465,7 @@ public partial class DataType : IDataType /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -475,7 +475,7 @@ public partial class DataType : IDataType /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -484,7 +484,7 @@ public partial class DataType : IDataType [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -495,7 +495,7 @@ public partial class DataType : IDataType /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/DecisionNode.cs b/SysML2.NET/Core/AutoGenDto/DecisionNode.cs index 5a9d8dc54..c92bf2916 100644 --- a/SysML2.NET/Core/AutoGenDto/DecisionNode.cs +++ b/SysML2.NET/Core/AutoGenDto/DecisionNode.cs @@ -55,7 +55,7 @@ public partial class DecisionNode : IDecisionNode [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -71,7 +71,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -83,7 +83,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -93,7 +93,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -121,7 +121,7 @@ public partial class DecisionNode : IDecisionNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -134,7 +134,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -143,7 +143,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -152,7 +152,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -169,7 +169,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -185,7 +185,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -195,7 +195,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -203,7 +203,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -212,14 +212,14 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -229,7 +229,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -237,7 +237,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -245,7 +245,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -253,7 +253,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -262,7 +262,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -270,7 +270,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -283,7 +283,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -307,7 +307,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -362,7 +362,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -384,7 +384,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -433,7 +433,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -441,7 +441,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -449,7 +449,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -459,7 +459,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -469,7 +469,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -477,7 +477,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -485,7 +485,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -493,7 +493,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -501,7 +501,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -509,7 +509,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -517,7 +517,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -525,7 +525,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -535,7 +535,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -543,7 +543,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -551,7 +551,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -559,7 +559,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -567,7 +567,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -575,7 +575,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -583,7 +583,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -591,7 +591,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -599,7 +599,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -607,7 +607,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -615,7 +615,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -623,7 +623,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -631,7 +631,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -639,7 +639,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -647,7 +647,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -656,7 +656,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -664,7 +664,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -672,7 +672,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -680,7 +680,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -688,7 +688,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -699,7 +699,7 @@ public partial class DecisionNode : IDecisionNode [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -707,7 +707,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -717,7 +717,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -726,7 +726,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -735,7 +735,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -745,7 +745,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -755,7 +755,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -763,7 +763,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -772,7 +772,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -780,7 +780,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -790,7 +790,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -800,7 +800,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -810,7 +810,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -820,7 +820,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -829,7 +829,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -838,7 +838,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -849,7 +849,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -858,7 +858,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -867,7 +867,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -885,7 +885,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -895,7 +895,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -905,7 +905,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -915,7 +915,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -924,7 +924,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -932,7 +932,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -941,7 +941,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -949,7 +949,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -958,7 +958,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -967,7 +967,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -985,7 +985,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -993,7 +993,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1002,7 +1002,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1023,7 +1023,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1033,7 +1033,7 @@ public partial class DecisionNode : IDecisionNode /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1042,7 +1042,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1053,7 +1053,7 @@ public partial class DecisionNode : IDecisionNode [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1064,7 +1064,7 @@ public partial class DecisionNode : IDecisionNode /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1072,7 +1072,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1081,7 +1081,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1090,7 +1090,7 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Definition.cs b/SysML2.NET/Core/AutoGenDto/Definition.cs index a4c848da4..66e974e10 100644 --- a/SysML2.NET/Core/AutoGenDto/Definition.cs +++ b/SysML2.NET/Core/AutoGenDto/Definition.cs @@ -89,7 +89,7 @@ public partial class Definition : IDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -97,7 +97,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -106,7 +106,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -115,7 +115,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -131,7 +131,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -139,7 +139,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -148,7 +148,7 @@ public partial class Definition : IDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -156,7 +156,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -164,7 +164,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -173,7 +173,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -181,7 +181,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -194,7 +194,7 @@ public partial class Definition : IDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -209,7 +209,7 @@ public partial class Definition : IDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -227,7 +227,7 @@ public partial class Definition : IDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -255,7 +255,7 @@ public partial class Definition : IDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -263,7 +263,7 @@ public partial class Definition : IDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -273,7 +273,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -283,7 +283,7 @@ public partial class Definition : IDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -291,7 +291,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -299,7 +299,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -307,7 +307,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -315,7 +315,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -325,7 +325,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -333,7 +333,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -341,7 +341,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -349,7 +349,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -357,7 +357,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -366,7 +366,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -376,7 +376,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -384,7 +384,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -394,7 +394,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -404,7 +404,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -412,7 +412,7 @@ public partial class Definition : IDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -421,7 +421,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -429,7 +429,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -437,7 +437,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -447,7 +447,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -455,7 +455,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -465,7 +465,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -473,7 +473,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -482,7 +482,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -490,7 +490,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -499,7 +499,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -510,7 +510,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -518,7 +518,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -526,7 +526,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -534,7 +534,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -542,7 +542,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -550,7 +550,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -566,7 +566,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -574,7 +574,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -584,7 +584,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -592,7 +592,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -601,7 +601,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -609,7 +609,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -618,7 +618,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -627,7 +627,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -635,7 +635,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -643,7 +643,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -651,7 +651,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -659,7 +659,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -667,7 +667,7 @@ public partial class Definition : IDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -676,7 +676,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -685,7 +685,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -705,7 +705,7 @@ public partial class Definition : IDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -715,7 +715,7 @@ public partial class Definition : IDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -724,7 +724,7 @@ public partial class Definition : IDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -735,7 +735,7 @@ public partial class Definition : IDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -743,7 +743,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -752,7 +752,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -762,7 +762,7 @@ public partial class Definition : IDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Dependency.cs b/SysML2.NET/Core/AutoGenDto/Dependency.cs index 04b795c6c..0db729ab8 100644 --- a/SysML2.NET/Core/AutoGenDto/Dependency.cs +++ b/SysML2.NET/Core/AutoGenDto/Dependency.cs @@ -87,7 +87,7 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -121,7 +121,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -131,7 +131,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -141,7 +141,7 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -149,7 +149,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -173,7 +173,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -182,7 +182,7 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -191,7 +191,7 @@ public partial class Dependency : IDependency [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -219,7 +219,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -227,7 +227,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -237,7 +237,7 @@ public partial class Dependency : IDependency /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -272,7 +272,7 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Differencing.cs b/SysML2.NET/Core/AutoGenDto/Differencing.cs index 0207ad9cb..1af90a92b 100644 --- a/SysML2.NET/Core/AutoGenDto/Differencing.cs +++ b/SysML2.NET/Core/AutoGenDto/Differencing.cs @@ -86,7 +86,7 @@ public partial class Differencing : IDifferencing [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -120,7 +120,7 @@ public partial class Differencing : IDifferencing /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -130,7 +130,7 @@ public partial class Differencing : IDifferencing /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -140,7 +140,7 @@ public partial class Differencing : IDifferencing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -148,7 +148,7 @@ public partial class Differencing : IDifferencing /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -172,7 +172,7 @@ public partial class Differencing : IDifferencing /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -181,7 +181,7 @@ public partial class Differencing : IDifferencing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -190,7 +190,7 @@ public partial class Differencing : IDifferencing [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -218,7 +218,7 @@ public partial class Differencing : IDifferencing /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -226,7 +226,7 @@ public partial class Differencing : IDifferencing /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -236,7 +236,7 @@ public partial class Differencing : IDifferencing /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -263,7 +263,7 @@ public partial class Differencing : IDifferencing [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Type with interpretations partly determined by differencingType, as described in @@ -273,7 +273,7 @@ public partial class Differencing : IDifferencing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IDifferencing.TypeDifferenced")] - public Guid TypeDifferenced { get; internal set; } + public Guid typeDifferenced { get; internal set; } } } diff --git a/SysML2.NET/Core/AutoGenDto/Disjoining.cs b/SysML2.NET/Core/AutoGenDto/Disjoining.cs index 4c19a8a26..012527f58 100644 --- a/SysML2.NET/Core/AutoGenDto/Disjoining.cs +++ b/SysML2.NET/Core/AutoGenDto/Disjoining.cs @@ -87,7 +87,7 @@ public partial class Disjoining : IDisjoining [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -121,7 +121,7 @@ public partial class Disjoining : IDisjoining /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -131,7 +131,7 @@ public partial class Disjoining : IDisjoining /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -141,7 +141,7 @@ public partial class Disjoining : IDisjoining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -149,7 +149,7 @@ public partial class Disjoining : IDisjoining /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -173,7 +173,7 @@ public partial class Disjoining : IDisjoining /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -182,7 +182,7 @@ public partial class Disjoining : IDisjoining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -191,7 +191,7 @@ public partial class Disjoining : IDisjoining [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -216,7 +216,7 @@ public partial class Disjoining : IDisjoining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_955906_617")] [Implements(implementation: "IDisjoining.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -228,7 +228,7 @@ public partial class Disjoining : IDisjoining /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -236,7 +236,7 @@ public partial class Disjoining : IDisjoining /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -246,7 +246,7 @@ public partial class Disjoining : IDisjoining /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -273,7 +273,7 @@ public partial class Disjoining : IDisjoining [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Type asserted to be disjoint with the disjoiningType. diff --git a/SysML2.NET/Core/AutoGenDto/Documentation.cs b/SysML2.NET/Core/AutoGenDto/Documentation.cs index 39c6bc059..c003f4b8b 100644 --- a/SysML2.NET/Core/AutoGenDto/Documentation.cs +++ b/SysML2.NET/Core/AutoGenDto/Documentation.cs @@ -59,7 +59,7 @@ public partial class Documentation : IDocumentation [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IDocumentation.DocumentedElement")] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List AnnotatedElement { get; internal set; } + public List annotatedElement { get; internal set; } = []; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -68,7 +68,7 @@ public partial class Documentation : IDocumentation [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List Annotation { get; internal set; } + public List annotation { get; internal set; } = []; /// /// The annotation text for the Comment. @@ -101,7 +101,7 @@ public partial class Documentation : IDocumentation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - List Root.Elements.IElement.Documentation { get; } + public List documentation { get; internal set; } = []; /// /// The Element that is documented by this Documentation. @@ -110,7 +110,7 @@ public partial class Documentation : IDocumentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_744477_17277")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594145755058_99428_86")] [Implements(implementation: "IDocumentation.DocumentedElement")] - public Guid DocumentedElement { get; internal set; } + public Guid documentedElement { get; internal set; } /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -136,7 +136,7 @@ public partial class Documentation : IDocumentation /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Identification of the language of the body text and, optionally, the region and/or encoding. The @@ -155,7 +155,7 @@ public partial class Documentation : IDocumentation /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -165,7 +165,7 @@ public partial class Documentation : IDocumentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List OwnedAnnotatingRelationship { get; internal set; } + public List ownedAnnotatingRelationship { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -175,7 +175,7 @@ public partial class Documentation : IDocumentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -183,7 +183,7 @@ public partial class Documentation : IDocumentation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -199,7 +199,7 @@ public partial class Documentation : IDocumentation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -208,7 +208,7 @@ public partial class Documentation : IDocumentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public Guid? OwningAnnotatingRelationship { get; internal set; } + public Guid? owningAnnotatingRelationship { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -217,7 +217,7 @@ public partial class Documentation : IDocumentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -226,7 +226,7 @@ public partial class Documentation : IDocumentation [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -246,7 +246,7 @@ public partial class Documentation : IDocumentation /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -256,7 +256,7 @@ public partial class Documentation : IDocumentation /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -265,7 +265,7 @@ public partial class Documentation : IDocumentation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ElementFilterMembership.cs b/SysML2.NET/Core/AutoGenDto/ElementFilterMembership.cs index 50d3c0e75..85a5e65e9 100644 --- a/SysML2.NET/Core/AutoGenDto/ElementFilterMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ElementFilterMembership.cs @@ -63,7 +63,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [Property(xmiId: "_19_0_4_12e503d9_1605762464250_876969_157", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [Implements(implementation: "IElementFilterMembership.Condition")] - public Guid Condition { get; internal set; } + public Guid condition { get; internal set; } /// /// The declared name of this Element. @@ -89,7 +89,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -123,7 +123,7 @@ public partial class ElementFilterMembership : IElementFilterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -140,7 +140,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -158,7 +158,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -176,7 +176,7 @@ public partial class ElementFilterMembership : IElementFilterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -186,7 +186,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -194,7 +194,7 @@ public partial class ElementFilterMembership : IElementFilterMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -205,7 +205,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IElementFilterMembership.Condition")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -213,7 +213,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The name of the ownedMemberElement. @@ -221,7 +221,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -229,7 +229,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -253,7 +253,7 @@ public partial class ElementFilterMembership : IElementFilterMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -262,7 +262,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -271,7 +271,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -299,7 +299,7 @@ public partial class ElementFilterMembership : IElementFilterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -307,7 +307,7 @@ public partial class ElementFilterMembership : IElementFilterMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -317,7 +317,7 @@ public partial class ElementFilterMembership : IElementFilterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -344,7 +344,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -352,7 +352,7 @@ public partial class ElementFilterMembership : IElementFilterMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/EndFeatureMembership.cs b/SysML2.NET/Core/AutoGenDto/EndFeatureMembership.cs index 06f18b979..9c28351b7 100644 --- a/SysML2.NET/Core/AutoGenDto/EndFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/EndFeatureMembership.cs @@ -78,7 +78,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -112,7 +112,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -129,7 +129,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -148,7 +148,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -166,7 +166,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -176,7 +176,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -184,7 +184,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -195,7 +195,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -203,14 +203,14 @@ public partial class EndFeatureMembership : IEndFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// [Property(xmiId: "_19_0_4_12e503d9_1625459277304_568293_5526", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IEndFeatureMembership.OwnedMemberFeature")] - Guid IEndFeatureMembership.OwnedMemberFeature { get; } + public Guid ownedMemberFeature { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -220,7 +220,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IEndFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - Guid Core.Types.IFeatureMembership.OwnedMemberFeature { get; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature { get; } /// /// The name of the ownedMemberElement. @@ -228,7 +228,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -236,7 +236,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -260,7 +260,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -269,7 +269,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -278,7 +278,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -303,7 +303,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -315,7 +315,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -323,7 +323,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -333,7 +333,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -360,7 +360,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -368,7 +368,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/EnumerationDefinition.cs b/SysML2.NET/Core/AutoGenDto/EnumerationDefinition.cs index ac422a765..c702c31c6 100644 --- a/SysML2.NET/Core/AutoGenDto/EnumerationDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/EnumerationDefinition.cs @@ -82,7 +82,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -90,7 +90,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -99,7 +99,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -108,7 +108,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -124,7 +124,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// EnumerationUsages of this EnumerationDefinitionthat have distinct, fixed values. Each @@ -133,7 +133,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946634788_959145_265", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1590979457191_746167_951")] [Implements(implementation: "IEnumerationDefinition.EnumeratedValue")] - public List EnumeratedValue { get; internal set; } + public List enumeratedValue { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -141,7 +141,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -150,7 +150,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -158,7 +158,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -166,7 +166,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -175,7 +175,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -183,7 +183,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -196,7 +196,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -211,7 +211,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -229,7 +229,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -250,7 +250,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946783667_895456_287", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1590978283180_265362_419")] [Implements(implementation: "IEnumerationDefinition.IsVariation")] - bool IEnumerationDefinition.IsVariation { get; set; } = true; + public bool IsVariation { get; set; } = true; /// /// Whether this Definition is for a variation point or not. If true, then all the memberships of the @@ -267,7 +267,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -275,7 +275,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -285,7 +285,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -295,7 +295,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -303,7 +303,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -311,7 +311,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -319,7 +319,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -327,7 +327,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -337,7 +337,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -345,7 +345,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -353,7 +353,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -361,7 +361,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -369,7 +369,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -378,7 +378,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -388,7 +388,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -396,7 +396,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -406,7 +406,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -416,7 +416,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -424,7 +424,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -433,7 +433,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -441,7 +441,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -449,7 +449,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -459,7 +459,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -467,7 +467,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -477,7 +477,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -485,7 +485,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -494,7 +494,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -502,7 +502,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -511,7 +511,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -522,7 +522,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -530,7 +530,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -538,7 +538,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -546,7 +546,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -554,7 +554,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -562,7 +562,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -578,7 +578,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -586,7 +586,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -596,7 +596,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -604,7 +604,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -613,7 +613,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -621,7 +621,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -630,7 +630,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -639,7 +639,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -647,7 +647,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -655,7 +655,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -663,7 +663,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -671,7 +671,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -679,7 +679,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -688,7 +688,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -697,7 +697,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -717,7 +717,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -727,7 +727,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -736,7 +736,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -747,7 +747,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -755,7 +755,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -765,7 +765,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [RedefinedByProperty("IEnumerationDefinition.EnumeratedValue")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -775,7 +775,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/EnumerationUsage.cs b/SysML2.NET/Core/AutoGenDto/EnumerationUsage.cs index 0fa5dcaf1..0c82e2382 100644 --- a/SysML2.NET/Core/AutoGenDto/EnumerationUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/EnumerationUsage.cs @@ -62,7 +62,7 @@ public partial class EnumerationUsage : IEnumerationUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IEnumerationUsage.EnumerationDefinition")] [Implements(implementation: "IAttributeUsage.AttributeDefinition")] - public List AttributeDefinition { get; internal set; } + public List attributeDefinition { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -74,7 +74,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -84,7 +84,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class EnumerationUsage : IEnumerationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IAttributeUsage.AttributeDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -125,7 +125,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -133,7 +133,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -142,7 +142,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -159,7 +159,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -175,7 +175,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -185,7 +185,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The single EnumerationDefinition that is the type of this EnumerationUsage. @@ -193,7 +193,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1606946962858_570633_331", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565471811429_523492_20975")] [Implements(implementation: "IEnumerationUsage.EnumerationDefinition")] - public Guid EnumerationDefinition { get; internal set; } + public Guid enumerationDefinition { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -201,7 +201,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -210,14 +210,14 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -227,7 +227,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -235,7 +235,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -243,7 +243,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -252,7 +252,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -260,7 +260,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -273,7 +273,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -297,7 +297,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -344,7 +344,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -367,7 +367,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1624050661138_649455_27", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IAttributeUsage.IsReference")] - bool Systems.Attributes.IAttributeUsage.IsReference { get; } + public bool isReference { get; internal set; } = true; /// /// Whether this Usage is a referential Usage, that is, it has isComposite = false. @@ -375,7 +375,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IAttributeUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.IsReference { get; } + bool Systems.DefinitionAndUsage.IUsage.isReference { get; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -424,7 +424,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -432,7 +432,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -440,7 +440,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -450,7 +450,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -460,7 +460,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -468,7 +468,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -476,7 +476,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -484,7 +484,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -492,7 +492,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -500,7 +500,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -508,7 +508,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -516,7 +516,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -526,7 +526,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -534,7 +534,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -542,7 +542,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -550,7 +550,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -558,7 +558,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -566,7 +566,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -574,7 +574,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -582,7 +582,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -590,7 +590,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -598,7 +598,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -606,7 +606,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -614,7 +614,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -622,7 +622,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -630,7 +630,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -638,7 +638,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -647,7 +647,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -655,7 +655,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -663,7 +663,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -671,7 +671,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -679,7 +679,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -687,7 +687,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -697,7 +697,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -706,7 +706,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -715,7 +715,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -725,7 +725,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -735,7 +735,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -743,7 +743,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -752,7 +752,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -760,7 +760,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -770,7 +770,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -780,7 +780,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -790,7 +790,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -800,7 +800,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -809,7 +809,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -818,7 +818,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -829,7 +829,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -838,7 +838,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -847,7 +847,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -865,7 +865,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -875,7 +875,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -885,7 +885,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -895,7 +895,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -904,7 +904,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -912,7 +912,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -921,7 +921,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -929,7 +929,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -938,7 +938,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -947,7 +947,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -965,7 +965,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -973,7 +973,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -985,7 +985,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -995,7 +995,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1004,7 +1004,7 @@ public partial class EnumerationUsage : IEnumerationUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1015,7 +1015,7 @@ public partial class EnumerationUsage : IEnumerationUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1026,7 +1026,7 @@ public partial class EnumerationUsage : IEnumerationUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1034,7 +1034,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1043,7 +1043,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1052,7 +1052,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/EventOccurrenceUsage.cs b/SysML2.NET/Core/AutoGenDto/EventOccurrenceUsage.cs index 127759b20..dc71f6c21 100644 --- a/SysML2.NET/Core/AutoGenDto/EventOccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/EventOccurrenceUsage.cs @@ -68,7 +68,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -78,7 +78,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -106,7 +106,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -119,7 +119,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -127,7 +127,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -136,7 +136,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -153,7 +153,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -169,7 +169,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -179,7 +179,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The OccurrenceUsage referenced as an event by this EventOccurrenceUsage. It is the referenceFeature @@ -188,7 +188,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public Guid EventOccurrence { get; internal set; } + public Guid eventOccurrence { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -196,7 +196,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -205,14 +205,14 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -222,7 +222,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -230,7 +230,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -238,7 +238,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -246,7 +246,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -255,7 +255,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -263,7 +263,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -276,7 +276,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -300,7 +300,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -355,7 +355,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -378,7 +378,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1672526906017_786343_306", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IEventOccurrenceUsage.IsReference")] - bool IEventOccurrenceUsage.IsReference { get; } + public bool isReference { get; internal set; } = true; /// /// Whether this Usage is a referential Usage, that is, it has isComposite = false. @@ -386,7 +386,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.IsReference { get; } + bool Systems.DefinitionAndUsage.IUsage.isReference { get; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -435,7 +435,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -443,7 +443,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -451,7 +451,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -461,7 +461,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -471,7 +471,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -479,7 +479,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -487,7 +487,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -495,7 +495,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -503,7 +503,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -511,7 +511,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -519,7 +519,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -527,7 +527,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -537,7 +537,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -545,7 +545,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -553,7 +553,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -561,7 +561,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -569,7 +569,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -577,7 +577,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -585,7 +585,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -593,7 +593,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -601,7 +601,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -609,7 +609,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -617,7 +617,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -625,7 +625,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -633,7 +633,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -641,7 +641,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -649,7 +649,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -658,7 +658,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -666,7 +666,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -674,7 +674,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -682,7 +682,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -690,7 +690,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -700,7 +700,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -708,7 +708,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -718,7 +718,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -727,7 +727,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -736,7 +736,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -746,7 +746,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -756,7 +756,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -764,7 +764,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -773,7 +773,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -781,7 +781,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -791,7 +791,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -801,7 +801,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -811,7 +811,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -821,7 +821,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -830,7 +830,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -839,7 +839,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -850,7 +850,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -859,7 +859,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -868,7 +868,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -886,7 +886,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -896,7 +896,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -906,7 +906,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -916,7 +916,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -925,7 +925,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -933,7 +933,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -942,7 +942,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -950,7 +950,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -959,7 +959,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -968,7 +968,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -986,7 +986,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -994,7 +994,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1015,7 +1015,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1025,7 +1025,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1034,7 +1034,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1045,7 +1045,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1056,7 +1056,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1064,7 +1064,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1073,7 +1073,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1082,7 +1082,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ExhibitStateUsage.cs b/SysML2.NET/Core/AutoGenDto/ExhibitStateUsage.cs index 1d72e44f2..155b5d41c 100644 --- a/SysML2.NET/Core/AutoGenDto/ExhibitStateUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ExhibitStateUsage.cs @@ -60,7 +60,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IStateUsage.StateDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -76,7 +76,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -88,7 +88,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -98,7 +98,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -126,7 +126,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -139,7 +139,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -148,7 +148,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -157,7 +157,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -174,7 +174,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_2_12e503d9_1582976255473_203238_644", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateUsage.DoAction")] - public Guid? DoAction { get; internal set; } + public Guid? doAction { get; internal set; } /// /// The Documentation owned by this Element. @@ -183,7 +183,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -199,7 +199,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -209,7 +209,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ActionUsage of this StateUsage to be performed on entry to the state defined by the @@ -218,7 +218,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_2_12e503d9_1582976239200_979652_605", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateUsage.EntryAction")] - public Guid? EntryAction { get; internal set; } + public Guid? entryAction { get; internal set; } /// /// The OccurrenceUsage referenced as an event by this EventOccurrenceUsage. It is the referenceFeature @@ -228,7 +228,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IPerformActionUsage.PerformedAction")] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public Guid EventOccurrence { get; internal set; } + public Guid eventOccurrence { get; internal set; } /// /// The StateUsage to be exhibited by the ExhibitStateUsage. It is the performedAction of the @@ -237,7 +237,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1577070999039_688794_260", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1567740791820_867719_18017")] [Implements(implementation: "IExhibitStateUsage.ExhibitedState")] - public Guid ExhibitedState { get; internal set; } + public Guid exhibitedState { get; internal set; } /// /// The ActionUsage of this StateUsage to be performed on exit to the state defined by the @@ -246,7 +246,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_2_12e503d9_1582976283940_998741_691", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateUsage.ExitAction")] - public Guid? ExitAction { get; internal set; } + public Guid? exitAction { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -254,7 +254,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -263,14 +263,14 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -280,7 +280,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -288,7 +288,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -296,7 +296,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -304,7 +304,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -313,7 +313,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -321,7 +321,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -334,7 +334,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -358,7 +358,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -413,7 +413,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -445,7 +445,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.IsReference { get; } + bool Systems.DefinitionAndUsage.IUsage.isReference { get; } /// /// Always true for an EventOccurrenceUsage. @@ -453,7 +453,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1672526906017_786343_306", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IEventOccurrenceUsage.IsReference")] - bool Systems.Occurrences.IEventOccurrenceUsage.IsReference { get; } + public bool isReference { get; internal set; } = true; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -502,7 +502,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -510,7 +510,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -518,7 +518,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -528,7 +528,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -538,7 +538,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -546,7 +546,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -554,7 +554,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -562,7 +562,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -570,7 +570,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -578,7 +578,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -586,7 +586,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -594,7 +594,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -604,7 +604,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -612,7 +612,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -620,7 +620,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -628,7 +628,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -636,7 +636,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -644,7 +644,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -652,7 +652,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -660,7 +660,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -668,7 +668,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -676,7 +676,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -684,7 +684,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -692,7 +692,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -700,7 +700,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -708,7 +708,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -716,7 +716,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -725,7 +725,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -733,7 +733,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -741,7 +741,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -749,7 +749,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -757,7 +757,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -768,7 +768,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -776,7 +776,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -786,7 +786,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -795,7 +795,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -804,7 +804,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -814,7 +814,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -824,7 +824,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -832,7 +832,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -841,7 +841,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -849,7 +849,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -859,7 +859,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -869,7 +869,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -879,7 +879,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -889,7 +889,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -898,7 +898,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -907,7 +907,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -918,7 +918,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -927,7 +927,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -936,7 +936,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -954,7 +954,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -964,7 +964,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -974,7 +974,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -984,7 +984,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -993,7 +993,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1001,7 +1001,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -1010,7 +1010,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1018,7 +1018,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1027,7 +1027,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1036,7 +1036,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1054,7 +1054,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1062,7 +1062,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1071,7 +1071,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The ActionUsage to be performed by this PerformedActionUsage. It is the eventOccurrence of the @@ -1081,7 +1081,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622831790393_676695_195")] [RedefinedByProperty("IExhibitStateUsage.ExhibitedState")] [Implements(implementation: "IPerformActionUsage.PerformedAction")] - public Guid PerformedAction { get; internal set; } + public Guid performedAction { get; internal set; } /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1102,7 +1102,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1112,7 +1112,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Behaviors that are the types of this StateUsage. Nominally, these would be StateDefinitions, but @@ -1121,7 +1121,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1575588456737_49200_1438", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [Implements(implementation: "IStateUsage.StateDefinition")] - public List StateDefinition { get; internal set; } + public List stateDefinition { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -1130,7 +1130,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1141,7 +1141,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1152,7 +1152,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1160,7 +1160,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1169,7 +1169,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1178,7 +1178,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Expression.cs b/SysML2.NET/Core/AutoGenDto/Expression.cs index 036714d1b..3bd744fee 100644 --- a/SysML2.NET/Core/AutoGenDto/Expression.cs +++ b/SysML2.NET/Core/AutoGenDto/Expression.cs @@ -64,7 +64,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -76,7 +76,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -86,7 +86,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -116,7 +116,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -125,7 +125,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -142,7 +142,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -158,7 +158,7 @@ public partial class Expression : IExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -168,7 +168,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -176,7 +176,7 @@ public partial class Expression : IExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -185,14 +185,14 @@ public partial class Expression : IExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -202,7 +202,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -210,7 +210,7 @@ public partial class Expression : IExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -218,7 +218,7 @@ public partial class Expression : IExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -226,7 +226,7 @@ public partial class Expression : IExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -235,7 +235,7 @@ public partial class Expression : IExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -243,7 +243,7 @@ public partial class Expression : IExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -256,7 +256,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -280,7 +280,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -327,7 +327,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -335,7 +335,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -385,7 +385,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -393,7 +393,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -403,7 +403,7 @@ public partial class Expression : IExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -413,7 +413,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -421,7 +421,7 @@ public partial class Expression : IExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -431,7 +431,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -440,7 +440,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -449,7 +449,7 @@ public partial class Expression : IExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -459,7 +459,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -469,7 +469,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -477,7 +477,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -486,7 +486,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -494,7 +494,7 @@ public partial class Expression : IExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -504,7 +504,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -514,7 +514,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -524,7 +524,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -534,7 +534,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -543,7 +543,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -552,7 +552,7 @@ public partial class Expression : IExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -563,7 +563,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -572,7 +572,7 @@ public partial class Expression : IExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -581,7 +581,7 @@ public partial class Expression : IExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -599,7 +599,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -609,7 +609,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -619,7 +619,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -629,7 +629,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -638,7 +638,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -646,7 +646,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -654,7 +654,7 @@ public partial class Expression : IExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -663,7 +663,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -672,7 +672,7 @@ public partial class Expression : IExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -690,7 +690,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -699,7 +699,7 @@ public partial class Expression : IExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -711,7 +711,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -722,7 +722,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -732,7 +732,7 @@ public partial class Expression : IExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -741,7 +741,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -751,7 +751,7 @@ public partial class Expression : IExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -762,7 +762,7 @@ public partial class Expression : IExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Feature.cs b/SysML2.NET/Core/AutoGenDto/Feature.cs index b8bd1625f..ab104c946 100644 --- a/SysML2.NET/Core/AutoGenDto/Feature.cs +++ b/SysML2.NET/Core/AutoGenDto/Feature.cs @@ -77,7 +77,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -87,7 +87,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -117,7 +117,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -125,7 +125,7 @@ public partial class Feature : IFeature [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -142,7 +142,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -158,7 +158,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -168,7 +168,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -176,7 +176,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - List Core.Types.IType.Feature { get; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -185,14 +185,14 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -202,7 +202,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -210,7 +210,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -218,7 +218,7 @@ public partial class Feature : IFeature [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -227,7 +227,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -235,7 +235,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -248,7 +248,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -272,7 +272,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -319,7 +319,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -369,7 +369,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -377,7 +377,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -387,7 +387,7 @@ public partial class Feature : IFeature [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -397,7 +397,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -405,7 +405,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -415,7 +415,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -424,7 +424,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -433,7 +433,7 @@ public partial class Feature : IFeature [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -443,7 +443,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -453,7 +453,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -461,7 +461,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -470,7 +470,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -478,7 +478,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -488,7 +488,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -498,7 +498,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -508,7 +508,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -518,7 +518,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -527,7 +527,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -536,7 +536,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -547,7 +547,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -556,7 +556,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -565,7 +565,7 @@ public partial class Feature : IFeature [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -583,7 +583,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -593,7 +593,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -603,7 +603,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -613,7 +613,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -622,7 +622,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -630,7 +630,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -638,7 +638,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -647,7 +647,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -656,7 +656,7 @@ public partial class Feature : IFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -674,7 +674,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -686,7 +686,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -696,7 +696,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -705,7 +705,7 @@ public partial class Feature : IFeature [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -715,7 +715,7 @@ public partial class Feature : IFeature /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -726,7 +726,7 @@ public partial class Feature : IFeature /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/FeatureChainExpression.cs b/SysML2.NET/Core/AutoGenDto/FeatureChainExpression.cs index d32b427cb..4ed94ea35 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureChainExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureChainExpression.cs @@ -62,7 +62,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List Argument { get; internal set; } + public List argument { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -71,7 +71,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -83,7 +83,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -93,7 +93,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -123,7 +123,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -132,7 +132,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -149,7 +149,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -165,7 +165,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -175,7 +175,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -183,7 +183,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -192,14 +192,14 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -209,7 +209,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -217,7 +217,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -225,7 +225,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -233,7 +233,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -242,7 +242,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -250,7 +250,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Type that is being instantiated. @@ -258,7 +258,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public Guid InstantiatedType { get; internal set; } + public Guid instantiatedType { get; internal set; } /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -271,7 +271,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -295,7 +295,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -342,7 +342,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -350,7 +350,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -400,7 +400,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -408,7 +408,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -418,7 +418,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -428,14 +428,14 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// [Property(xmiId: "_19_0_4_12e503d9_1645049784007_509459_41", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: ".")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528808100_646606_111674")] [Implements(implementation: "IFeatureChainExpression.Operator")] - string IFeatureChainExpression.Operator { get; set; } = "."; + public string Operator { get; set; } = "."; /// /// An operator symbol that names a corresponding Function from one of the standard packages from the @@ -452,7 +452,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -462,7 +462,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -471,7 +471,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -480,7 +480,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -490,7 +490,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -500,7 +500,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -508,7 +508,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -517,7 +517,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -525,7 +525,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -535,7 +535,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -545,7 +545,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -555,7 +555,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -565,7 +565,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -574,7 +574,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -583,7 +583,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -594,7 +594,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -603,7 +603,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -612,7 +612,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -630,7 +630,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -640,7 +640,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -650,7 +650,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -660,7 +660,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -669,7 +669,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -677,7 +677,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -685,7 +685,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -694,7 +694,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -703,7 +703,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -721,7 +721,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -730,7 +730,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -742,7 +742,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -753,7 +753,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -763,7 +763,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Feature that is accessed by this FeatureChainExpression, which is its first non-parameter @@ -772,7 +772,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [Property(xmiId: "_19_0_4_12e503d9_1645049897369_762611_49", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IFeatureChainExpression.TargetFeature")] - public Guid TargetFeature { get; internal set; } + public Guid targetFeature { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -781,7 +781,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -791,7 +791,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -802,7 +802,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/FeatureChaining.cs b/SysML2.NET/Core/AutoGenDto/FeatureChaining.cs index 884f38a53..3a255eff6 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureChaining.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureChaining.cs @@ -86,7 +86,7 @@ public partial class FeatureChaining : IFeatureChaining [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -104,7 +104,7 @@ public partial class FeatureChaining : IFeatureChaining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IFeatureChaining.FeatureChained")] - public Guid FeatureChained { get; internal set; } + public Guid featureChained { get; internal set; } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -130,7 +130,7 @@ public partial class FeatureChaining : IFeatureChaining /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -140,7 +140,7 @@ public partial class FeatureChaining : IFeatureChaining /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -150,7 +150,7 @@ public partial class FeatureChaining : IFeatureChaining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -158,7 +158,7 @@ public partial class FeatureChaining : IFeatureChaining /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -182,7 +182,7 @@ public partial class FeatureChaining : IFeatureChaining /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -191,7 +191,7 @@ public partial class FeatureChaining : IFeatureChaining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -200,7 +200,7 @@ public partial class FeatureChaining : IFeatureChaining [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -228,7 +228,7 @@ public partial class FeatureChaining : IFeatureChaining /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -236,7 +236,7 @@ public partial class FeatureChaining : IFeatureChaining /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -246,7 +246,7 @@ public partial class FeatureChaining : IFeatureChaining /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -273,7 +273,7 @@ public partial class FeatureChaining : IFeatureChaining [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/FeatureInverting.cs b/SysML2.NET/Core/AutoGenDto/FeatureInverting.cs index 64fd2b6d4..3d79d2f18 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureInverting.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureInverting.cs @@ -80,7 +80,7 @@ public partial class FeatureInverting : IFeatureInverting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -130,7 +130,7 @@ public partial class FeatureInverting : IFeatureInverting /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -140,7 +140,7 @@ public partial class FeatureInverting : IFeatureInverting /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -150,7 +150,7 @@ public partial class FeatureInverting : IFeatureInverting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -158,7 +158,7 @@ public partial class FeatureInverting : IFeatureInverting /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -182,7 +182,7 @@ public partial class FeatureInverting : IFeatureInverting /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// A featureInverted that is also the owningRelatedElement of this FeatureInverting. @@ -191,7 +191,7 @@ public partial class FeatureInverting : IFeatureInverting [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838862_842173_146")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [Implements(implementation: "IFeatureInverting.OwningFeature")] - public Guid? OwningFeature { get; internal set; } + public Guid? owningFeature { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -200,7 +200,7 @@ public partial class FeatureInverting : IFeatureInverting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -209,7 +209,7 @@ public partial class FeatureInverting : IFeatureInverting [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -237,7 +237,7 @@ public partial class FeatureInverting : IFeatureInverting /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -245,7 +245,7 @@ public partial class FeatureInverting : IFeatureInverting /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -255,7 +255,7 @@ public partial class FeatureInverting : IFeatureInverting /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -282,7 +282,7 @@ public partial class FeatureInverting : IFeatureInverting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/FeatureMembership.cs b/SysML2.NET/Core/AutoGenDto/FeatureMembership.cs index 4f7e8732c..938b118b8 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureMembership.cs @@ -81,7 +81,7 @@ public partial class FeatureMembership : IFeatureMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -115,7 +115,7 @@ public partial class FeatureMembership : IFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -132,7 +132,7 @@ public partial class FeatureMembership : IFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -151,7 +151,7 @@ public partial class FeatureMembership : IFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -169,7 +169,7 @@ public partial class FeatureMembership : IFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -179,7 +179,7 @@ public partial class FeatureMembership : IFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -187,7 +187,7 @@ public partial class FeatureMembership : IFeatureMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -198,7 +198,7 @@ public partial class FeatureMembership : IFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -206,7 +206,7 @@ public partial class FeatureMembership : IFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -215,7 +215,7 @@ public partial class FeatureMembership : IFeatureMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674993_898044_43344", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -223,7 +223,7 @@ public partial class FeatureMembership : IFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -231,7 +231,7 @@ public partial class FeatureMembership : IFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -255,7 +255,7 @@ public partial class FeatureMembership : IFeatureMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -264,7 +264,7 @@ public partial class FeatureMembership : IFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -273,7 +273,7 @@ public partial class FeatureMembership : IFeatureMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -298,7 +298,7 @@ public partial class FeatureMembership : IFeatureMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -310,7 +310,7 @@ public partial class FeatureMembership : IFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -318,7 +318,7 @@ public partial class FeatureMembership : IFeatureMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -328,7 +328,7 @@ public partial class FeatureMembership : IFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -355,7 +355,7 @@ public partial class FeatureMembership : IFeatureMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -363,7 +363,7 @@ public partial class FeatureMembership : IFeatureMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/FeatureReferenceExpression.cs b/SysML2.NET/Core/AutoGenDto/FeatureReferenceExpression.cs index bc1dbb1be..4984d6d99 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureReferenceExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureReferenceExpression.cs @@ -60,7 +60,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -72,7 +72,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -82,7 +82,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -121,7 +121,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -138,7 +138,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -154,7 +154,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -164,7 +164,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -172,7 +172,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -181,14 +181,14 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -198,7 +198,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -206,7 +206,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -214,7 +214,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -222,7 +222,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -231,7 +231,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -239,7 +239,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -252,7 +252,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -276,7 +276,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -323,7 +323,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -331,7 +331,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -381,7 +381,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -389,7 +389,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -399,7 +399,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -409,7 +409,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -417,7 +417,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -427,7 +427,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -436,7 +436,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -445,7 +445,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -455,7 +455,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -465,7 +465,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -473,7 +473,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -482,7 +482,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -490,7 +490,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -500,7 +500,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -510,7 +510,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -520,7 +520,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -530,7 +530,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -539,7 +539,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -548,7 +548,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -559,7 +559,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -568,7 +568,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -577,7 +577,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -595,7 +595,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -605,7 +605,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -615,7 +615,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -625,7 +625,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -634,7 +634,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -642,7 +642,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -650,7 +650,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -659,7 +659,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -668,7 +668,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -686,7 +686,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -695,7 +695,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -707,7 +707,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Feature that is referenced by this FeatureReferenceExpression, which is its first non-parameter @@ -716,7 +716,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674962_848357_43185", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IFeatureReferenceExpression.Referent")] - public Guid Referent { get; internal set; } + public Guid referent { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -727,7 +727,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -737,7 +737,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -746,7 +746,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -756,7 +756,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -767,7 +767,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/FeatureTyping.cs b/SysML2.NET/Core/AutoGenDto/FeatureTyping.cs index a86fdaac4..4b65ddecf 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureTyping.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureTyping.cs @@ -79,7 +79,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -122,7 +122,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -132,7 +132,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -142,7 +142,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -150,7 +150,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -174,7 +174,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// A typedFeature that is also the owningRelatedElement of this FeatureTyping. @@ -183,7 +183,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_13273_21101")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "IFeatureTyping.OwningFeature")] - public Guid? OwningFeature { get; internal set; } + public Guid? owningFeature { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -192,7 +192,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -201,7 +201,7 @@ public partial class FeatureTyping : IFeatureTyping [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -227,7 +227,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IFeatureTyping.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -239,7 +239,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -247,7 +247,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -257,7 +257,7 @@ public partial class FeatureTyping : IFeatureTyping /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -293,7 +293,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The Type that is being applied by this FeatureTyping. diff --git a/SysML2.NET/Core/AutoGenDto/FeatureValue.cs b/SysML2.NET/Core/AutoGenDto/FeatureValue.cs index a413b6339..26094d236 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureValue.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureValue.cs @@ -86,7 +86,7 @@ public partial class FeatureValue : IFeatureValue [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -102,7 +102,7 @@ public partial class FeatureValue : IFeatureValue [Property(xmiId: "_19_0_2_12e503d9_1573079011690_119762_1724", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureValue.FeatureWithValue")] - public Guid FeatureWithValue { get; internal set; } + public Guid featureWithValue { get; internal set; } /// /// Whether this FeatureValue is a concrete specification of the bound or initial value of the @@ -143,7 +143,7 @@ public partial class FeatureValue : IFeatureValue /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -160,7 +160,7 @@ public partial class FeatureValue : IFeatureValue [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -178,7 +178,7 @@ public partial class FeatureValue : IFeatureValue [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -196,7 +196,7 @@ public partial class FeatureValue : IFeatureValue /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -206,7 +206,7 @@ public partial class FeatureValue : IFeatureValue [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -214,7 +214,7 @@ public partial class FeatureValue : IFeatureValue /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -225,7 +225,7 @@ public partial class FeatureValue : IFeatureValue [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureValue.Value")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -233,7 +233,7 @@ public partial class FeatureValue : IFeatureValue [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The name of the ownedMemberElement. @@ -241,7 +241,7 @@ public partial class FeatureValue : IFeatureValue [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -249,7 +249,7 @@ public partial class FeatureValue : IFeatureValue [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -273,7 +273,7 @@ public partial class FeatureValue : IFeatureValue /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -282,7 +282,7 @@ public partial class FeatureValue : IFeatureValue [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -291,7 +291,7 @@ public partial class FeatureValue : IFeatureValue [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -319,7 +319,7 @@ public partial class FeatureValue : IFeatureValue /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -327,7 +327,7 @@ public partial class FeatureValue : IFeatureValue /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -337,7 +337,7 @@ public partial class FeatureValue : IFeatureValue /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -364,7 +364,7 @@ public partial class FeatureValue : IFeatureValue [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The Expression that provides the value as a result. @@ -372,7 +372,7 @@ public partial class FeatureValue : IFeatureValue [Property(xmiId: "_19_0_2_12e503d9_1573081851611_231043_3236", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [Implements(implementation: "IFeatureValue.Value")] - public Guid Value { get; internal set; } + public Guid value { get; internal set; } /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -380,7 +380,7 @@ public partial class FeatureValue : IFeatureValue /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/Flow.cs b/SysML2.NET/Core/AutoGenDto/Flow.cs index 76107e078..bedd547b6 100644 --- a/SysML2.NET/Core/AutoGenDto/Flow.cs +++ b/SysML2.NET/Core/AutoGenDto/Flow.cs @@ -62,7 +62,7 @@ public partial class Flow : IFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List Association { get; internal set; } + public List association { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -71,7 +71,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -83,7 +83,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -93,7 +93,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List ConnectorEnd { get; internal set; } + public List connectorEnd { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -103,7 +103,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -129,7 +129,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public Guid? DefaultFeaturingType { get; internal set; } + public Guid? defaultFeaturingType { get; internal set; } /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -142,7 +142,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -151,7 +151,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -168,7 +168,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -185,7 +185,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -195,7 +195,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -203,7 +203,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -212,14 +212,14 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -229,7 +229,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The connectorEnds of this Flow that are FlowEnds. @@ -237,7 +237,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] [Implements(implementation: "IFlow.FlowEnd")] - public List FlowEnd { get; internal set; } + public List flowEnd { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -245,7 +245,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -253,7 +253,7 @@ public partial class Flow : IFlow [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -262,7 +262,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -270,7 +270,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -280,7 +280,7 @@ public partial class Flow : IFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IFlow.Interaction")] - public List Interaction { get; internal set; } + public List interaction { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -293,7 +293,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -317,7 +317,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -372,7 +372,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -422,7 +422,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -430,7 +430,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -440,7 +440,7 @@ public partial class Flow : IFlow [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -450,7 +450,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -458,7 +458,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -468,7 +468,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -477,7 +477,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -486,7 +486,7 @@ public partial class Flow : IFlow [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -496,7 +496,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -506,7 +506,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -514,7 +514,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -523,7 +523,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -531,7 +531,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -541,7 +541,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -551,7 +551,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -561,7 +561,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -571,7 +571,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -580,7 +580,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -589,7 +589,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -600,7 +600,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -609,7 +609,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -618,7 +618,7 @@ public partial class Flow : IFlow [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -644,7 +644,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -654,7 +654,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -664,7 +664,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -674,7 +674,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -683,7 +683,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -691,7 +691,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -699,7 +699,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -708,7 +708,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -717,7 +717,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -743,7 +743,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -752,7 +752,7 @@ public partial class Flow : IFlow [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). @@ -760,14 +760,14 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IFlow.PayloadFeature")] - public Guid? PayloadFeature { get; internal set; } + public Guid? payloadFeature { get; internal set; } /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.PayloadType")] - public List PayloadType { get; internal set; } + public List payloadType { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -779,7 +779,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -788,7 +788,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -797,7 +797,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List RelatedFeature { get; internal set; } + public List relatedFeature { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -807,7 +807,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -825,7 +825,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public Guid? SourceFeature { get; internal set; } + public Guid? sourceFeature { get; internal set; } /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the @@ -833,7 +833,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.SourceOutputFeature")] - public Guid? SourceOutputFeature { get; internal set; } + public Guid? sourceOutputFeature { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -852,7 +852,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List TargetFeature { get; internal set; } + public List targetFeature { get; internal set; } = []; /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the @@ -860,7 +860,7 @@ public partial class Flow : IFlow /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.TargetInputFeature")] - public Guid? TargetInputFeature { get; internal set; } + public Guid? targetInputFeature { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -869,7 +869,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -880,7 +880,7 @@ public partial class Flow : IFlow [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -891,7 +891,7 @@ public partial class Flow : IFlow /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/FlowDefinition.cs b/SysML2.NET/Core/AutoGenDto/FlowDefinition.cs index ae27622fa..f480de242 100644 --- a/SysML2.NET/Core/AutoGenDto/FlowDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/FlowDefinition.cs @@ -55,7 +55,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List Action { get; internal set; } + public List action { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -73,7 +73,7 @@ public partial class FlowDefinition : IFlowDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IFlowDefinition.FlowEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List AssociationEnd { get; internal set; } + public List associationEnd { get; internal set; } = []; /// /// The declared name of this Element. @@ -103,7 +103,7 @@ public partial class FlowDefinition : IFlowDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -112,7 +112,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -121,7 +121,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -130,7 +130,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -147,7 +147,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -155,7 +155,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -164,7 +164,7 @@ public partial class FlowDefinition : IFlowDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Usages that define the things related by the FlowDefinition. @@ -172,7 +172,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_2022x_2_12e503d9_1733008492358_136366_19515", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] [Implements(implementation: "IFlowDefinition.FlowEnd")] - public List FlowEnd { get; internal set; } + public List flowEnd { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -180,7 +180,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -188,7 +188,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -197,7 +197,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -205,7 +205,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -218,7 +218,7 @@ public partial class FlowDefinition : IFlowDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -233,7 +233,7 @@ public partial class FlowDefinition : IFlowDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -266,7 +266,7 @@ public partial class FlowDefinition : IFlowDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -294,7 +294,7 @@ public partial class FlowDefinition : IFlowDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -302,7 +302,7 @@ public partial class FlowDefinition : IFlowDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -312,7 +312,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -322,7 +322,7 @@ public partial class FlowDefinition : IFlowDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -330,7 +330,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -338,7 +338,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -346,7 +346,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -354,7 +354,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -364,7 +364,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -372,7 +372,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -380,7 +380,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -388,7 +388,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -396,7 +396,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -405,7 +405,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -415,7 +415,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -423,7 +423,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -433,7 +433,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -443,7 +443,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -451,7 +451,7 @@ public partial class FlowDefinition : IFlowDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -460,7 +460,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -468,7 +468,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -476,7 +476,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -486,7 +486,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -494,7 +494,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -504,7 +504,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -512,7 +512,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -521,7 +521,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -529,7 +529,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -538,7 +538,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -549,7 +549,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -557,7 +557,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -565,7 +565,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -573,7 +573,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -581,7 +581,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -589,7 +589,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -613,7 +613,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -621,7 +621,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -631,7 +631,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -639,7 +639,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -648,7 +648,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -656,7 +656,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -665,7 +665,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -674,7 +674,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -682,7 +682,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -690,7 +690,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -698,7 +698,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -706,7 +706,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -714,7 +714,7 @@ public partial class FlowDefinition : IFlowDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -723,7 +723,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -732,7 +732,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -757,7 +757,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -769,7 +769,7 @@ public partial class FlowDefinition : IFlowDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -778,7 +778,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -787,7 +787,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List RelatedType { get; internal set; } + public List relatedType { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -797,7 +797,7 @@ public partial class FlowDefinition : IFlowDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -815,7 +815,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public Guid? SourceType { get; internal set; } + public Guid? sourceType { get; internal set; } /// /// The Steps that make up this Behavior. @@ -823,7 +823,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The relatedElements to which this Relationship is considered to be directed. @@ -842,7 +842,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List TargetType { get; internal set; } + public List targetType { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -851,7 +851,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -862,7 +862,7 @@ public partial class FlowDefinition : IFlowDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -870,7 +870,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -879,7 +879,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -889,7 +889,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/FlowEnd.cs b/SysML2.NET/Core/AutoGenDto/FlowEnd.cs index 8f74115d7..3228e2bed 100644 --- a/SysML2.NET/Core/AutoGenDto/FlowEnd.cs +++ b/SysML2.NET/Core/AutoGenDto/FlowEnd.cs @@ -66,7 +66,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -76,7 +76,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -106,7 +106,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -114,7 +114,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -131,7 +131,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -147,7 +147,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -157,7 +157,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -165,7 +165,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -174,14 +174,14 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -191,7 +191,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -199,7 +199,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -207,7 +207,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -216,7 +216,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -224,7 +224,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -237,7 +237,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -261,7 +261,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -308,7 +308,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -358,7 +358,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -366,7 +366,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -376,7 +376,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -386,7 +386,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -394,7 +394,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -404,7 +404,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -413,7 +413,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -422,7 +422,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -432,7 +432,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -442,7 +442,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -450,7 +450,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -459,7 +459,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -467,7 +467,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -477,7 +477,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -487,7 +487,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -497,7 +497,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -507,7 +507,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -516,7 +516,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -525,7 +525,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -536,7 +536,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -545,7 +545,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -554,7 +554,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -572,7 +572,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -582,7 +582,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -592,7 +592,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -602,7 +602,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -611,7 +611,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -619,7 +619,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -627,7 +627,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -636,7 +636,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -645,7 +645,7 @@ public partial class FlowEnd : IFlowEnd [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -663,7 +663,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -675,7 +675,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -685,7 +685,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -694,7 +694,7 @@ public partial class FlowEnd : IFlowEnd [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -704,7 +704,7 @@ public partial class FlowEnd : IFlowEnd /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -715,7 +715,7 @@ public partial class FlowEnd : IFlowEnd /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/FlowUsage.cs b/SysML2.NET/Core/AutoGenDto/FlowUsage.cs index 8b842fa51..8e4dfb40d 100644 --- a/SysML2.NET/Core/AutoGenDto/FlowUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/FlowUsage.cs @@ -59,7 +59,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -75,7 +75,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List Association { get; internal set; } + public List association { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -84,7 +84,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -96,7 +96,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -106,7 +106,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List ConnectorEnd { get; internal set; } + public List connectorEnd { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -116,7 +116,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -142,7 +142,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public Guid? DefaultFeaturingType { get; internal set; } + public Guid? defaultFeaturingType { get; internal set; } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -153,7 +153,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -166,7 +166,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -175,7 +175,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -184,7 +184,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -201,7 +201,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -218,7 +218,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -228,7 +228,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -236,7 +236,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -245,14 +245,14 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -262,7 +262,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Interactions that are the types of this FlowUsage. Nominally, these are FlowDefinitions, but @@ -273,7 +273,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1661900477937_518125_727")] [Implements(implementation: "IFlowUsage.FlowDefinition")] - public List FlowDefinition { get; internal set; } + public List flowDefinition { get; internal set; } = []; /// /// The connectorEnds of this Flow that are FlowEnds. @@ -281,7 +281,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] [Implements(implementation: "IFlow.FlowEnd")] - public List FlowEnd { get; internal set; } + public List flowEnd { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -289,7 +289,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -297,7 +297,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -305,7 +305,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -314,7 +314,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -322,7 +322,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -333,7 +333,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IFlow.Interaction")] - public List Interaction { get; internal set; } + public List interaction { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -346,7 +346,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -370,7 +370,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -433,7 +433,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -455,7 +455,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -504,7 +504,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -512,7 +512,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -520,7 +520,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -530,7 +530,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -540,7 +540,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -548,7 +548,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -556,7 +556,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -564,7 +564,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -572,7 +572,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -580,7 +580,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -588,7 +588,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -596,7 +596,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -606,7 +606,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -614,7 +614,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -622,7 +622,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -630,7 +630,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -638,7 +638,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -646,7 +646,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -654,7 +654,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -662,7 +662,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -670,7 +670,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -678,7 +678,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -686,7 +686,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -694,7 +694,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -702,7 +702,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -710,7 +710,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -718,7 +718,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -727,7 +727,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -735,7 +735,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -743,7 +743,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -751,7 +751,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -759,7 +759,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -770,7 +770,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -778,7 +778,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -788,7 +788,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -797,7 +797,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -806,7 +806,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -816,7 +816,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -826,7 +826,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -834,7 +834,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -843,7 +843,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -851,7 +851,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -861,7 +861,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -871,7 +871,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -881,7 +881,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -891,7 +891,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -900,7 +900,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -909,7 +909,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -920,7 +920,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -929,7 +929,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -938,7 +938,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -964,7 +964,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -974,7 +974,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -984,7 +984,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -994,7 +994,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1003,7 +1003,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1011,7 +1011,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -1020,7 +1020,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1028,7 +1028,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1037,7 +1037,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1046,7 +1046,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -1072,7 +1072,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1080,7 +1080,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1089,7 +1089,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). @@ -1097,14 +1097,14 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IFlow.PayloadFeature")] - public Guid? PayloadFeature { get; internal set; } + public Guid? payloadFeature { get; internal set; } /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.PayloadType")] - public List PayloadType { get; internal set; } + public List payloadType { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1125,7 +1125,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1134,7 +1134,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1143,7 +1143,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List RelatedFeature { get; internal set; } + public List relatedFeature { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1153,7 +1153,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1171,7 +1171,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public Guid? SourceFeature { get; internal set; } + public Guid? sourceFeature { get; internal set; } /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the @@ -1179,7 +1179,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.SourceOutputFeature")] - public Guid? SourceOutputFeature { get; internal set; } + public Guid? sourceOutputFeature { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1198,7 +1198,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List TargetFeature { get; internal set; } + public List targetFeature { get; internal set; } = []; /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the @@ -1206,7 +1206,7 @@ public partial class FlowUsage : IFlowUsage /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.TargetInputFeature")] - public Guid? TargetInputFeature { get; internal set; } + public Guid? targetInputFeature { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1215,7 +1215,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1226,7 +1226,7 @@ public partial class FlowUsage : IFlowUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1237,7 +1237,7 @@ public partial class FlowUsage : IFlowUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1245,7 +1245,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1254,7 +1254,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1263,7 +1263,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ForLoopActionUsage.cs b/SysML2.NET/Core/AutoGenDto/ForLoopActionUsage.cs index 2d313589c..3ee6d9e7f 100644 --- a/SysML2.NET/Core/AutoGenDto/ForLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ForLoopActionUsage.cs @@ -57,7 +57,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -73,7 +73,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The ActionUsage to be performed repeatedly by the LoopActionUsage. It is the second parameter of the @@ -81,7 +81,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624203902575_509097_3869", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ILoopActionUsage.BodyAction")] - public Guid BodyAction { get; internal set; } + public Guid bodyAction { get; internal set; } /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -93,7 +93,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -103,7 +103,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -131,7 +131,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -144,7 +144,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -153,7 +153,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -162,7 +162,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -179,7 +179,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -195,7 +195,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -205,7 +205,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -213,7 +213,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -222,14 +222,14 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -239,7 +239,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -247,7 +247,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -255,7 +255,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -263,7 +263,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -272,7 +272,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -280,7 +280,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -293,7 +293,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -317,7 +317,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -372,7 +372,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -394,7 +394,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -439,7 +439,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1640325378400_227367_3662", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IForLoopActionUsage.LoopVariable")] - public Guid LoopVariable { get; internal set; } + public Guid loopVariable { get; internal set; } /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -452,7 +452,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -460,7 +460,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -468,7 +468,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -478,7 +478,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -488,7 +488,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -496,7 +496,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -504,7 +504,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -512,7 +512,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -520,7 +520,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -528,7 +528,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -536,7 +536,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -544,7 +544,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -554,7 +554,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -562,7 +562,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -570,7 +570,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -578,7 +578,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -586,7 +586,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -594,7 +594,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -602,7 +602,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -610,7 +610,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -618,7 +618,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -626,7 +626,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -634,7 +634,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -642,7 +642,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -650,7 +650,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -658,7 +658,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -666,7 +666,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -675,7 +675,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -683,7 +683,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -691,7 +691,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -699,7 +699,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -707,7 +707,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -718,7 +718,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -726,7 +726,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -736,7 +736,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -745,7 +745,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -754,7 +754,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -764,7 +764,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -774,7 +774,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -782,7 +782,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -791,7 +791,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -799,7 +799,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -809,7 +809,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -819,7 +819,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -829,7 +829,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -839,7 +839,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -848,7 +848,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -857,7 +857,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -868,7 +868,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -877,7 +877,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -886,7 +886,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -904,7 +904,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -914,7 +914,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -924,7 +924,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -934,7 +934,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -943,7 +943,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -951,7 +951,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -960,7 +960,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -968,7 +968,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -977,7 +977,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -986,7 +986,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1004,7 +1004,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1012,7 +1012,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1021,7 +1021,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1042,7 +1042,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Expression whose result provides the sequence of values to which the loopVariable is set for @@ -1051,7 +1051,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624306920911_355291_5769", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IForLoopActionUsage.SeqArgument")] - public Guid SeqArgument { get; internal set; } + public Guid seqArgument { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1061,7 +1061,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1070,7 +1070,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1081,7 +1081,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1092,7 +1092,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1100,7 +1100,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1109,7 +1109,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1118,7 +1118,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ForkNode.cs b/SysML2.NET/Core/AutoGenDto/ForkNode.cs index 2f913ba0f..78a958f2f 100644 --- a/SysML2.NET/Core/AutoGenDto/ForkNode.cs +++ b/SysML2.NET/Core/AutoGenDto/ForkNode.cs @@ -56,7 +56,7 @@ public partial class ForkNode : IForkNode [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -72,7 +72,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -84,7 +84,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -94,7 +94,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -122,7 +122,7 @@ public partial class ForkNode : IForkNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -135,7 +135,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -144,7 +144,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -153,7 +153,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -170,7 +170,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -186,7 +186,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -196,7 +196,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -204,7 +204,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -213,14 +213,14 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -230,7 +230,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -238,7 +238,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -246,7 +246,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -254,7 +254,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -263,7 +263,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -271,7 +271,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -284,7 +284,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -308,7 +308,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -363,7 +363,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -385,7 +385,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -434,7 +434,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -442,7 +442,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -450,7 +450,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -460,7 +460,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -470,7 +470,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -478,7 +478,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -486,7 +486,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -494,7 +494,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -502,7 +502,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -510,7 +510,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -518,7 +518,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -526,7 +526,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -536,7 +536,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -544,7 +544,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -552,7 +552,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -560,7 +560,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -568,7 +568,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -576,7 +576,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -584,7 +584,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -592,7 +592,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -600,7 +600,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -608,7 +608,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -616,7 +616,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -624,7 +624,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -632,7 +632,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -640,7 +640,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -648,7 +648,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -657,7 +657,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -665,7 +665,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -673,7 +673,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -681,7 +681,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -689,7 +689,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -700,7 +700,7 @@ public partial class ForkNode : IForkNode [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -708,7 +708,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -718,7 +718,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -727,7 +727,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -736,7 +736,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -746,7 +746,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -756,7 +756,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -764,7 +764,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -773,7 +773,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -781,7 +781,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -791,7 +791,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -801,7 +801,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -811,7 +811,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -821,7 +821,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -830,7 +830,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -839,7 +839,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -850,7 +850,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -859,7 +859,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -868,7 +868,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -886,7 +886,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -896,7 +896,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -906,7 +906,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -916,7 +916,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -925,7 +925,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -933,7 +933,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -942,7 +942,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -950,7 +950,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -959,7 +959,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -968,7 +968,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -986,7 +986,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -994,7 +994,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1003,7 +1003,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1024,7 +1024,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1034,7 +1034,7 @@ public partial class ForkNode : IForkNode /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1043,7 +1043,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1054,7 +1054,7 @@ public partial class ForkNode : IForkNode [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1065,7 +1065,7 @@ public partial class ForkNode : IForkNode /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1073,7 +1073,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1082,7 +1082,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1091,7 +1091,7 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/FramedConcernMembership.cs b/SysML2.NET/Core/AutoGenDto/FramedConcernMembership.cs index ff8bee22f..c9e319f74 100644 --- a/SysML2.NET/Core/AutoGenDto/FramedConcernMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/FramedConcernMembership.cs @@ -78,7 +78,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -112,7 +112,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The kind of an FramedConcernMembership must be requirement. @@ -120,7 +120,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1617120451812_644221_3690", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "requirement")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048161309_821854_390")] [Implements(implementation: "IFramedConcernMembership.Kind")] - RequirementConstraintKind IFramedConcernMembership.Kind { get; set; } + public RequirementConstraintKind Kind { get; set; } = RequirementConstraintKind.Requirement; /// /// Whether the RequirementConstraintMembership is for an assumed or required ConstraintUsage. @@ -145,7 +145,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -164,7 +164,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -182,7 +182,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -192,7 +192,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The ConcernUsage that is the ownedConstraint of this FramedConcernMembership. @@ -200,7 +200,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1617120590170_490370_3748", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048366950_985767_426")] [Implements(implementation: "IFramedConcernMembership.OwnedConcern")] - public Guid OwnedConcern { get; internal set; } + public Guid ownedConcern { get; internal set; } /// /// The ConstraintUsage that is the ownedMemberFeature of this RequirementConstraintMembership. @@ -209,7 +209,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IFramedConcernMembership.OwnedConcern")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public Guid OwnedConstraint { get; internal set; } + public Guid ownedConstraint { get; internal set; } /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -217,7 +217,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -228,7 +228,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -236,7 +236,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -246,7 +246,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -254,7 +254,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -262,7 +262,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -286,7 +286,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -295,7 +295,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -304,7 +304,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -329,7 +329,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -341,7 +341,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The ConcernUsage that is referenced through this FramedConcernMembership. It is the @@ -351,7 +351,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1617120658044_92083_3773", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1617118807597_77864_3544")] [Implements(implementation: "IFramedConcernMembership.ReferencedConcern")] - public Guid ReferencedConcern { get; internal set; } + public Guid referencedConcern { get; internal set; } /// /// The ConstraintUsage that is referenced through this RequirementConstraintMembership. It is the @@ -361,7 +361,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IFramedConcernMembership.ReferencedConcern")] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public Guid ReferencedConstraint { get; internal set; } + public Guid referencedConstraint { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -369,7 +369,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -379,7 +379,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -406,7 +406,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -414,7 +414,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/Function.cs b/SysML2.NET/Core/AutoGenDto/Function.cs index c56fd2302..20366c9b1 100644 --- a/SysML2.NET/Core/AutoGenDto/Function.cs +++ b/SysML2.NET/Core/AutoGenDto/Function.cs @@ -82,7 +82,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -91,7 +91,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -100,7 +100,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -116,7 +116,7 @@ public partial class Function : IFunction [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -124,7 +124,7 @@ public partial class Function : IFunction [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List Expression { get; internal set; } + public List expression { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -132,7 +132,7 @@ public partial class Function : IFunction [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -141,7 +141,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -149,7 +149,7 @@ public partial class Function : IFunction [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -157,7 +157,7 @@ public partial class Function : IFunction [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -166,7 +166,7 @@ public partial class Function : IFunction [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -174,7 +174,7 @@ public partial class Function : IFunction [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -187,7 +187,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -202,7 +202,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -220,7 +220,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -231,7 +231,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -251,7 +251,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -259,7 +259,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -269,7 +269,7 @@ public partial class Function : IFunction [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -279,7 +279,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -287,7 +287,7 @@ public partial class Function : IFunction [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -297,7 +297,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -306,7 +306,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -316,7 +316,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -326,7 +326,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -334,7 +334,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -343,7 +343,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -351,7 +351,7 @@ public partial class Function : IFunction [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -361,7 +361,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -371,7 +371,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -380,7 +380,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -389,7 +389,7 @@ public partial class Function : IFunction [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -400,7 +400,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -418,7 +418,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -427,7 +427,7 @@ public partial class Function : IFunction [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -436,7 +436,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -444,7 +444,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -453,7 +453,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -462,7 +462,7 @@ public partial class Function : IFunction [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -479,7 +479,7 @@ public partial class Function : IFunction [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -491,7 +491,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The object or value that is the result of evaluating the Function. @@ -500,7 +500,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -510,7 +510,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Steps that make up this Behavior. @@ -518,7 +518,7 @@ public partial class Function : IFunction [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -527,7 +527,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -538,7 +538,7 @@ public partial class Function : IFunction /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/IAcceptActionUsage.cs b/SysML2.NET/Core/AutoGenDto/IAcceptActionUsage.cs index 1fed95351..e4af28e09 100644 --- a/SysML2.NET/Core/AutoGenDto/IAcceptActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IAcceptActionUsage.cs @@ -48,7 +48,7 @@ public partial interface IAcceptActionUsage : IActionUsage /// the AcceptActionUsage will only accept a Transfer with exactly this payload. /// [Property(xmiId: "_19_0_4_12e503d9_1642710978429_81558_4948", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? PayloadArgument { get; } + Guid? payloadArgument { get; } /// /// The nestedReference of this AcceptActionUsage that redefines the payload output parameter of the @@ -57,13 +57,13 @@ public partial interface IAcceptActionUsage : IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1642701018287_478584_4462", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591477541360_47573_933")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] - Guid PayloadParameter { get; } + Guid payloadParameter { get; } /// /// An Expression whose result is bound to the receiver input parameter of this AcceptActionUsage. /// [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)] - Guid? ReceiverArgument { get; } + Guid? receiverArgument { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IActionDefinition.cs b/SysML2.NET/Core/AutoGenDto/IActionDefinition.cs index 9a5ba0a8c..c952d0c40 100644 --- a/SysML2.NET/Core/AutoGenDto/IActionDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IActionDefinition.cs @@ -47,7 +47,7 @@ public partial interface IActionDefinition : IBehavior, IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1565500809065_170841_30688", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List Action { get; } + List action { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IActionUsage.cs b/SysML2.NET/Core/AutoGenDto/IActionUsage.cs index 1cb6bbff2..12832ae6d 100644 --- a/SysML2.NET/Core/AutoGenDto/IActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IActionUsage.cs @@ -52,7 +52,7 @@ public partial interface IActionUsage : IStep, IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1565500905804_589845_30779", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] - List ActionDefinition { get; } + List actionDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IActorMembership.cs b/SysML2.NET/Core/AutoGenDto/IActorMembership.cs index ae88defe7..286201de1 100644 --- a/SysML2.NET/Core/AutoGenDto/IActorMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IActorMembership.cs @@ -46,7 +46,7 @@ public partial interface IActorMembership : IParameterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1621464305451_983612_1421", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528016548_548098_110830")] - Guid OwnedActorParameter { get; } + Guid ownedActorParameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IAllocationDefinition.cs b/SysML2.NET/Core/AutoGenDto/IAllocationDefinition.cs index b13692caf..725bb9ed4 100644 --- a/SysML2.NET/Core/AutoGenDto/IAllocationDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IAllocationDefinition.cs @@ -48,7 +48,7 @@ public partial interface IAllocationDefinition : IConnectionDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611430644481_402036_964", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List Allocation { get; } + List allocation { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IAllocationUsage.cs b/SysML2.NET/Core/AutoGenDto/IAllocationUsage.cs index 65031e5c2..80dec83be 100644 --- a/SysML2.NET/Core/AutoGenDto/IAllocationUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IAllocationUsage.cs @@ -46,7 +46,7 @@ public partial interface IAllocationUsage : IConnectionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611430742949_241425_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594853499656_139435_802")] - List AllocationDefinition { get; } + List allocationDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IAnalysisCaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/IAnalysisCaseDefinition.cs index 6bd408fb9..f54032181 100644 --- a/SysML2.NET/Core/AutoGenDto/IAnalysisCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IAnalysisCaseDefinition.cs @@ -45,7 +45,7 @@ public partial interface IAnalysisCaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_59601fc_1590945152798_315308_221", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - Guid? ResultExpression { get; } + Guid? resultExpression { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IAnalysisCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/IAnalysisCaseUsage.cs index 5460a15b8..bb1c876a9 100644 --- a/SysML2.NET/Core/AutoGenDto/IAnalysisCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IAnalysisCaseUsage.cs @@ -45,7 +45,7 @@ public partial interface IAnalysisCaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_2_12e503d9_1591152217935_225164_2921", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] - Guid? AnalysisCaseDefinition { get; } + Guid? analysisCaseDefinition { get; } /// /// An Expression used to compute the result of the AnalysisCaseUsage, owned via a @@ -53,7 +53,7 @@ public partial interface IAnalysisCaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_2_12e503d9_1591151453868_910052_2600", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - Guid? ResultExpression { get; } + Guid? resultExpression { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IAnnotatingElement.cs b/SysML2.NET/Core/AutoGenDto/IAnnotatingElement.cs index 9a6428d4d..45c774bc4 100644 --- a/SysML2.NET/Core/AutoGenDto/IAnnotatingElement.cs +++ b/SysML2.NET/Core/AutoGenDto/IAnnotatingElement.cs @@ -46,7 +46,7 @@ public partial interface IAnnotatingElement : IElement /// AnnotatingElement. /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List AnnotatedElement { get; } + List annotatedElement { get; } /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -54,7 +54,7 @@ public partial interface IAnnotatingElement : IElement /// [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] - List Annotation { get; } + List annotation { get; } /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -63,7 +63,7 @@ public partial interface IAnnotatingElement : IElement [Property(xmiId: "_19_0_4_12e503d9_1703019570915_375100_18", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List OwnedAnnotatingRelationship { get; } + List ownedAnnotatingRelationship { get; } /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -71,7 +71,7 @@ public partial interface IAnnotatingElement : IElement [Property(xmiId: "_2022x_2_12e503d9_1735188506571_308678_376", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] - Guid? OwningAnnotatingRelationship { get; } + Guid? owningAnnotatingRelationship { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IAnnotation.cs b/SysML2.NET/Core/AutoGenDto/IAnnotation.cs index f48e2149b..2c88fe55a 100644 --- a/SysML2.NET/Core/AutoGenDto/IAnnotation.cs +++ b/SysML2.NET/Core/AutoGenDto/IAnnotation.cs @@ -52,7 +52,7 @@ public partial interface IAnnotation : IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1543094212714_638255_18408", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - Guid AnnotatingElement { get; } + Guid annotatingElement { get; } /// /// The annotatingElement of this Annotation, when it is an ownedRelatedElement. @@ -60,7 +60,7 @@ public partial interface IAnnotation : IRelationship [Property(xmiId: "_2022x_2_12e503d9_1735188506571_384269_375", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_638255_18408")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_59873_43302")] - Guid? OwnedAnnotatingElement { get; } + Guid? ownedAnnotatingElement { get; } /// /// The annotatedElement of this Annotation, when it is also the owningRelatedElement. @@ -68,7 +68,7 @@ public partial interface IAnnotation : IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594152527165_104456_2501", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_494140_18542")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] - Guid? OwningAnnotatedElement { get; } + Guid? owningAnnotatedElement { get; } /// /// The annotatingElement of this Annotation, when it is the owningRelatedElement. @@ -76,7 +76,7 @@ public partial interface IAnnotation : IRelationship [Property(xmiId: "_19_0_4_12e503d9_1703019570939_266622_19", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_638255_18408")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] - Guid? OwningAnnotatingElement { get; } + Guid? owningAnnotatingElement { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IAssertConstraintUsage.cs b/SysML2.NET/Core/AutoGenDto/IAssertConstraintUsage.cs index 5f93f40e1..4f63d89af 100644 --- a/SysML2.NET/Core/AutoGenDto/IAssertConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IAssertConstraintUsage.cs @@ -48,7 +48,7 @@ public partial interface IAssertConstraintUsage : IConstraintUsage, IInvariant /// AssertConstraintUsage itself. /// [Property(xmiId: "_19_0_2_12e503d9_1581045158665_239617_9458", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid AssertedConstraint { get; } + Guid assertedConstraint { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IAssignmentActionUsage.cs b/SysML2.NET/Core/AutoGenDto/IAssignmentActionUsage.cs index f082af38d..c84ec0b0b 100644 --- a/SysML2.NET/Core/AutoGenDto/IAssignmentActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IAssignmentActionUsage.cs @@ -47,7 +47,7 @@ public partial interface IAssignmentActionUsage : IActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624202269076_561550_3109", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - Guid Referent { get; } + Guid referent { get; } /// /// The Expression whose value is an occurrence in the domain of the referent Feature, for which the @@ -55,13 +55,13 @@ public partial interface IAssignmentActionUsage : IActionUsage /// AssignmentActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624201786354_844501_2835", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? TargetArgument { get; } + Guid? targetArgument { get; } /// /// The Expression whose result is to be assigned to the referent Feature. /// [Property(xmiId: "_19_0_4_12e503d9_1624201792996_104394_2856", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? ValueExpression { get; } + Guid? valueExpression { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IAssociation.cs b/SysML2.NET/Core/AutoGenDto/IAssociation.cs index 5208d4840..c47ea65a5 100644 --- a/SysML2.NET/Core/AutoGenDto/IAssociation.cs +++ b/SysML2.NET/Core/AutoGenDto/IAssociation.cs @@ -48,7 +48,7 @@ public partial interface IAssociation : IClassifier, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1562477648742_24204_22901", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] - List AssociationEnd { get; } + List associationEnd { get; } /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -56,7 +56,7 @@ public partial interface IAssociation : IClassifier, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] - List RelatedType { get; } + List relatedType { get; } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -64,7 +64,7 @@ public partial interface IAssociation : IClassifier, IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594939013292_377668_3566", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - Guid? SourceType { get; } + Guid? sourceType { get; } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the @@ -73,7 +73,7 @@ public partial interface IAssociation : IClassifier, IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594939237325_861933_3707", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] - List TargetType { get; } + List targetType { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IAttributeUsage.cs b/SysML2.NET/Core/AutoGenDto/IAttributeUsage.cs index 436525d54..06bd3e43a 100644 --- a/SysML2.NET/Core/AutoGenDto/IAttributeUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IAttributeUsage.cs @@ -51,14 +51,14 @@ public partial interface IAttributeUsage : IUsage /// [Property(xmiId: "_18_5_3_12e503d9_1565471811429_523492_20975", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] - List AttributeDefinition { get; } + List attributeDefinition { get; } /// /// Always true for an AttributeUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624050661138_649455_27", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] - new bool IsReference { get; } + new bool isReference { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IBehavior.cs b/SysML2.NET/Core/AutoGenDto/IBehavior.cs index 2af8ad156..c4c383023 100644 --- a/SysML2.NET/Core/AutoGenDto/IBehavior.cs +++ b/SysML2.NET/Core/AutoGenDto/IBehavior.cs @@ -45,14 +45,14 @@ public partial interface IBehavior : IClass /// [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] - List Parameter { get; } + List parameter { get; } /// /// The Steps that make up this Behavior. /// [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List Step { get; } + List step { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IBooleanExpression.cs b/SysML2.NET/Core/AutoGenDto/IBooleanExpression.cs index a7a953969..ae13dc038 100644 --- a/SysML2.NET/Core/AutoGenDto/IBooleanExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/IBooleanExpression.cs @@ -44,7 +44,7 @@ public partial interface IBooleanExpression : IExpression /// [Property(xmiId: "_19_0_2_12e503d9_1578025035149_386_969", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] - Guid? Predicate { get; } + Guid? predicate { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ICalculationDefinition.cs b/SysML2.NET/Core/AutoGenDto/ICalculationDefinition.cs index 7ec9016d4..b42acafdb 100644 --- a/SysML2.NET/Core/AutoGenDto/ICalculationDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ICalculationDefinition.cs @@ -46,7 +46,7 @@ public partial interface ICalculationDefinition : IFunction, IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1588214479224_101961_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] - List Calculation { get; } + List calculation { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ICalculationUsage.cs b/SysML2.NET/Core/AutoGenDto/ICalculationUsage.cs index 48a03c157..9855bbdcd 100644 --- a/SysML2.NET/Core/AutoGenDto/ICalculationUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ICalculationUsage.cs @@ -52,7 +52,7 @@ public partial interface ICalculationUsage : IExpression, IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1588213526305_899324_302", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] - Guid? CalculationDefinition { get; } + Guid? calculationDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ICaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/ICaseDefinition.cs index d321a7194..17e7a8f2d 100644 --- a/SysML2.NET/Core/AutoGenDto/ICaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ICaseDefinition.cs @@ -46,14 +46,14 @@ public partial interface ICaseDefinition : ICalculationDefinition [Property(xmiId: "_19_0_4_12e503d9_1621464609772_382176_1612", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List ActorParameter { get; } + List actorParameter { get; } /// /// The RequirementUsage representing the objective of this CaseDefinition. /// [Property(xmiId: "_19_0_2_59601fc_1590259317710_27529_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - Guid? ObjectiveRequirement { get; } + Guid? objectiveRequirement { get; } /// /// The parameter of this CaseDefinition that represents its subject. @@ -61,7 +61,7 @@ public partial interface ICaseDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1595189932946_106647_973", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - Guid SubjectParameter { get; } + Guid subjectParameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ICaseUsage.cs b/SysML2.NET/Core/AutoGenDto/ICaseUsage.cs index 042038aac..09192687f 100644 --- a/SysML2.NET/Core/AutoGenDto/ICaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ICaseUsage.cs @@ -46,21 +46,21 @@ public partial interface ICaseUsage : ICalculationUsage [Property(xmiId: "_19_0_4_12e503d9_1621464633171_380461_1655", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List ActorParameter { get; } + List actorParameter { get; } /// /// The CaseDefinition that is the type of this CaseUsage. /// [Property(xmiId: "_19_0_2_59601fc_1590257465225_855208_512", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] - Guid? CaseDefinition { get; } + Guid? caseDefinition { get; } /// /// The RequirementUsage representing the objective of this CaseUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1591138794257_404044_2145", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - Guid? ObjectiveRequirement { get; } + Guid? objectiveRequirement { get; } /// /// The parameter of this CaseUsage that represents its subject. @@ -68,7 +68,7 @@ public partial interface ICaseUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1595190279083_51021_1128", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - Guid SubjectParameter { get; } + Guid subjectParameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IClassifier.cs b/SysML2.NET/Core/AutoGenDto/IClassifier.cs index 457f6fbee..d5bacbacc 100644 --- a/SysML2.NET/Core/AutoGenDto/IClassifier.cs +++ b/SysML2.NET/Core/AutoGenDto/IClassifier.cs @@ -49,7 +49,7 @@ public partial interface IClassifier : IType /// [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] - List OwnedSubclassification { get; } + List ownedSubclassification { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IConcernUsage.cs b/SysML2.NET/Core/AutoGenDto/IConcernUsage.cs index d10ce068f..a38adab61 100644 --- a/SysML2.NET/Core/AutoGenDto/IConcernUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IConcernUsage.cs @@ -47,7 +47,7 @@ public partial interface IConcernUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617052514912_780627_2256", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1583000408905_769743_1223")] - Guid? ConcernDefinition { get; } + Guid? concernDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IConjugatedPortDefinition.cs b/SysML2.NET/Core/AutoGenDto/IConjugatedPortDefinition.cs index 1756c000f..5be7d8631 100644 --- a/SysML2.NET/Core/AutoGenDto/IConjugatedPortDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IConjugatedPortDefinition.cs @@ -49,7 +49,7 @@ public partial interface IConjugatedPortDefinition : IPortDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575484364017_387810_990", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] - Guid OriginalPortDefinition { get; } + Guid originalPortDefinition { get; } /// /// The PortConjugation that is the ownedConjugator of this ConjugatedPortDefinition, linking it to its @@ -57,7 +57,7 @@ public partial interface IConjugatedPortDefinition : IPortDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575484344901_850046_947", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1575482646809_280165_440")] - Guid OwnedPortConjugator { get; } + Guid ownedPortConjugator { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IConjugatedPortTyping.cs b/SysML2.NET/Core/AutoGenDto/IConjugatedPortTyping.cs index 8b54f03e8..beae34a73 100644 --- a/SysML2.NET/Core/AutoGenDto/IConjugatedPortTyping.cs +++ b/SysML2.NET/Core/AutoGenDto/IConjugatedPortTyping.cs @@ -52,7 +52,7 @@ public partial interface IConjugatedPortTyping : IFeatureTyping /// The originalPortDefinition of the conjugatedPortDefinition of this ConjugatedPortTyping. /// [Property(xmiId: "_19_0_2_12e503d9_1577915013583_787601_133", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid PortDefinition { get; } + Guid portDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IConjugation.cs b/SysML2.NET/Core/AutoGenDto/IConjugation.cs index e261ca85d..38a8a4d61 100644 --- a/SysML2.NET/Core/AutoGenDto/IConjugation.cs +++ b/SysML2.NET/Core/AutoGenDto/IConjugation.cs @@ -65,7 +65,7 @@ public partial interface IConjugation : IRelationship [Property(xmiId: "_19_0_2_12e503d9_1575482646809_778895_441", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490143_721644_299")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] - Guid? OwningType { get; } + Guid? owningType { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IConnectionDefinition.cs b/SysML2.NET/Core/AutoGenDto/IConnectionDefinition.cs index 9393517b9..c9e9917e5 100644 --- a/SysML2.NET/Core/AutoGenDto/IConnectionDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IConnectionDefinition.cs @@ -45,7 +45,7 @@ public partial interface IConnectionDefinition : IAssociationStructure, IPartDef /// [Property(xmiId: "_19_0_2_12e503d9_1591476421094_685440_682", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] - List ConnectionEnd { get; } + List connectionEnd { get; } /// /// A ConnectionDefinition always has isSufficient = true. diff --git a/SysML2.NET/Core/AutoGenDto/IConnectionUsage.cs b/SysML2.NET/Core/AutoGenDto/IConnectionUsage.cs index 3f3c03758..99c42502e 100644 --- a/SysML2.NET/Core/AutoGenDto/IConnectionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IConnectionUsage.cs @@ -51,7 +51,7 @@ public partial interface IConnectionUsage : IConnectorAsUsage, IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1594853499656_139435_802", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] - List ConnectionDefinition { get; } + List connectionDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IConnector.cs b/SysML2.NET/Core/AutoGenDto/IConnector.cs index e5f1ec523..ceceb9c04 100644 --- a/SysML2.NET/Core/AutoGenDto/IConnector.cs +++ b/SysML2.NET/Core/AutoGenDto/IConnector.cs @@ -48,7 +48,7 @@ public partial interface IConnector : IFeature, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1533160674983_471497_43284", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] - List Association { get; } + List association { get; } /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -57,7 +57,7 @@ public partial interface IConnector : IFeature, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] - List ConnectorEnd { get; } + List connectorEnd { get; } /// /// The innermost Type that is a common direct or indirect featuringType of the relatedFeatures, such @@ -65,7 +65,7 @@ public partial interface IConnector : IFeature, IRelationship /// checkConnectorTypeFeaturing constraint. /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? DefaultFeaturingType { get; } + Guid? defaultFeaturingType { get; } /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -73,7 +73,7 @@ public partial interface IConnector : IFeature, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] - List RelatedFeature { get; } + List relatedFeature { get; } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -81,7 +81,7 @@ public partial interface IConnector : IFeature, IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594953058873_558253_3897", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - Guid? SourceFeature { get; } + Guid? sourceFeature { get; } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -90,7 +90,7 @@ public partial interface IConnector : IFeature, IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594953128207_991867_3946", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] - List TargetFeature { get; } + List targetFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IConstraintUsage.cs b/SysML2.NET/Core/AutoGenDto/IConstraintUsage.cs index 8af767ef7..b4ca36b62 100644 --- a/SysML2.NET/Core/AutoGenDto/IConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IConstraintUsage.cs @@ -51,7 +51,7 @@ public partial interface IConstraintUsage : IBooleanExpression, IOccurrenceUsage /// [Property(xmiId: "_19_0_2_12e503d9_1578067546711_751168_1745", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] - Guid? ConstraintDefinition { get; } + Guid? constraintDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ICrossSubsetting.cs b/SysML2.NET/Core/AutoGenDto/ICrossSubsetting.cs index 04bdd7e96..39e0d95ea 100644 --- a/SysML2.NET/Core/AutoGenDto/ICrossSubsetting.cs +++ b/SysML2.NET/Core/AutoGenDto/ICrossSubsetting.cs @@ -63,7 +63,7 @@ public partial interface ICrossSubsetting : ISubsetting [Property(xmiId: "_19_0_4_b9102da_1689616916594_477020_278", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_236250_43311")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] - Guid CrossingFeature { get; } + Guid crossingFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IDefinition.cs b/SysML2.NET/Core/AutoGenDto/IDefinition.cs index b1df73c23..0bdbe9987 100644 --- a/SysML2.NET/Core/AutoGenDto/IDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IDefinition.cs @@ -53,7 +53,7 @@ public partial interface IDefinition : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1565495064714_974634_26150", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List DirectedUsage { get; } + List directedUsage { get; } /// /// Whether this Definition is for a variation point or not. If true, then all the memberships of the @@ -67,49 +67,49 @@ public partial interface IDefinition : IClassifier /// [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] - List OwnedAction { get; } + List ownedAction { get; } /// /// The AllocationUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] - List OwnedAllocation { get; } + List ownedAllocation { get; } /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] - List OwnedAnalysisCase { get; } + List ownedAnalysisCase { get; } /// /// The AttributeUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] - List OwnedAttribute { get; } + List ownedAttribute { get; } /// /// The CalculationUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] - List OwnedCalculation { get; } + List ownedCalculation { get; } /// /// The code>CaseUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] - List OwnedCase { get; } + List ownedCase { get; } /// /// The ConcernUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] - List OwnedConcern { get; } + List ownedConcern { get; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -118,105 +118,105 @@ public partial interface IDefinition : IClassifier /// [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] - List OwnedConnection { get; } + List ownedConnection { get; } /// /// The ConstraintUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] - List OwnedConstraint { get; } + List ownedConstraint { get; } /// /// The EnumerationUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] - List OwnedEnumeration { get; } + List ownedEnumeration { get; } /// /// The FlowUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] - List OwnedFlow { get; } + List ownedFlow { get; } /// /// The InterfaceUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] - List OwnedInterface { get; } + List ownedInterface { get; } /// /// The ItemUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] - List OwnedItem { get; } + List ownedItem { get; } /// /// The MetadataUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] - List OwnedMetadata { get; } + List ownedMetadata { get; } /// /// The OccurrenceUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] - List OwnedOccurrence { get; } + List ownedOccurrence { get; } /// /// The PartUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] - List OwnedPart { get; } + List ownedPart { get; } /// /// The PortUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] - List OwnedPort { get; } + List ownedPort { get; } /// /// The ReferenceUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] - List OwnedReference { get; } + List ownedReference { get; } /// /// The RenderingUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] - List OwnedRendering { get; } + List ownedRendering { get; } /// /// The RequirementUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] - List OwnedRequirement { get; } + List ownedRequirement { get; } /// /// The StateUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] - List OwnedState { get; } + List ownedState { get; } /// /// The TransitionUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] - List OwnedTransition { get; } + List ownedTransition { get; } /// /// The Usages that are ownedFeatures of this Definition. @@ -224,42 +224,42 @@ public partial interface IDefinition : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1565479686637_967933_23236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List OwnedUsage { get; } + List ownedUsage { get; } /// /// The UseCaseUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] - List OwnedUseCase { get; } + List ownedUseCase { get; } /// /// The VerificationCaseUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] - List OwnedVerificationCase { get; } + List ownedVerificationCase { get; } /// /// The ViewUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] - List OwnedView { get; } + List ownedView { get; } /// /// The ViewpointUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] - List OwnedViewpoint { get; } + List ownedViewpoint { get; } /// /// The Usages that are features of this Definition (not necessarily owned). /// [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List Usage { get; } + List usage { get; } /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -267,7 +267,7 @@ public partial interface IDefinition : IClassifier /// [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List Variant { get; } + List variant { get; } /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -276,7 +276,7 @@ public partial interface IDefinition : IClassifier /// [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] - List VariantMembership { get; } + List variantMembership { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IDifferencing.cs b/SysML2.NET/Core/AutoGenDto/IDifferencing.cs index 92933efcd..cd4d2d45b 100644 --- a/SysML2.NET/Core/AutoGenDto/IDifferencing.cs +++ b/SysML2.NET/Core/AutoGenDto/IDifferencing.cs @@ -54,7 +54,7 @@ public partial interface IDifferencing : IRelationship [Property(xmiId: "_19_0_4_b9102da_1661871168453_175911_796", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - Guid TypeDifferenced { get; } + Guid typeDifferenced { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IDisjoining.cs b/SysML2.NET/Core/AutoGenDto/IDisjoining.cs index d0e98350d..b9d6c56d6 100644 --- a/SysML2.NET/Core/AutoGenDto/IDisjoining.cs +++ b/SysML2.NET/Core/AutoGenDto/IDisjoining.cs @@ -54,7 +54,7 @@ public partial interface IDisjoining : IRelationship [Property(xmiId: "_19_0_4_12e503d9_1627447519614_499771_371", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_955906_617")] - Guid? OwningType { get; } + Guid? owningType { get; } /// /// Type asserted to be disjoint with the disjoiningType. diff --git a/SysML2.NET/Core/AutoGenDto/IDocumentation.cs b/SysML2.NET/Core/AutoGenDto/IDocumentation.cs index a6967cb83..c14956d52 100644 --- a/SysML2.NET/Core/AutoGenDto/IDocumentation.cs +++ b/SysML2.NET/Core/AutoGenDto/IDocumentation.cs @@ -43,7 +43,7 @@ public partial interface IDocumentation : IComment [Property(xmiId: "_19_0_2_12e503d9_1594150061166_948466_1622", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_744477_17277")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594145755058_99428_86")] - Guid DocumentedElement { get; } + Guid documentedElement { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IElement.cs b/SysML2.NET/Core/AutoGenDto/IElement.cs index 3da55a74d..6097afa36 100644 --- a/SysML2.NET/Core/AutoGenDto/IElement.cs +++ b/SysML2.NET/Core/AutoGenDto/IElement.cs @@ -67,7 +67,7 @@ public partial interface IElement [Property(xmiId: "_19_0_2_12e503d9_1594150061166_345630_1621", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] - List Documentation { get; } + List documentation { get; } /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -90,7 +90,7 @@ public partial interface IElement /// Whether this Element is contained in the ownership tree of a library model. /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool IsLibraryElement { get; } + bool isLibraryElement { get; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -99,7 +99,7 @@ public partial interface IElement /// null. /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string Name { get; } + string name { get; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -108,14 +108,14 @@ public partial interface IElement [Property(xmiId: "_19_0_2_12e503d9_1594152527165_702130_2500", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] - List OwnedAnnotation { get; } + List ownedAnnotation { get; } /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of /// this Element. /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List OwnedElement { get; } + List ownedElement { get; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -129,7 +129,7 @@ public partial interface IElement /// Element, if any. /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? Owner { get; } + Guid? owner { get; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -137,7 +137,7 @@ public partial interface IElement [Property(xmiId: "_18_5_3_12e503d9_1533160674972_622493_43236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] - Guid? OwningMembership { get; } + Guid? owningMembership { get; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -145,7 +145,7 @@ public partial interface IElement /// [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] - Guid? OwningNamespace { get; } + Guid? owningNamespace { get; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -163,7 +163,7 @@ public partial interface IElement /// then the qualifiedName is null for all such Elements other than the first. /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string QualifiedName { get; } + string qualifiedName { get; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -172,7 +172,7 @@ public partial interface IElement /// when the declaredName is null. /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string ShortName { get; } + string shortName { get; } /// /// The TextualRepresentations that annotate this Element. @@ -180,7 +180,7 @@ public partial interface IElement [Property(xmiId: "_19_0_2_12e503d9_1594154758493_640290_3388", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] - List TextualRepresentation { get; } + List textualRepresentation { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IElementFilterMembership.cs b/SysML2.NET/Core/AutoGenDto/IElementFilterMembership.cs index ffaf64229..6cd791a01 100644 --- a/SysML2.NET/Core/AutoGenDto/IElementFilterMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IElementFilterMembership.cs @@ -48,7 +48,7 @@ public partial interface IElementFilterMembership : IOwningMembership /// [Property(xmiId: "_19_0_4_12e503d9_1605762464250_876969_157", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] - Guid Condition { get; } + Guid condition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IEndFeatureMembership.cs b/SysML2.NET/Core/AutoGenDto/IEndFeatureMembership.cs index 686d61b9e..2e580f516 100644 --- a/SysML2.NET/Core/AutoGenDto/IEndFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IEndFeatureMembership.cs @@ -44,7 +44,7 @@ public partial interface IEndFeatureMembership : IFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1625459277304_568293_5526", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - new Guid OwnedMemberFeature { get; } + new Guid ownedMemberFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IEnumerationDefinition.cs b/SysML2.NET/Core/AutoGenDto/IEnumerationDefinition.cs index 45d27e381..fbf44cd93 100644 --- a/SysML2.NET/Core/AutoGenDto/IEnumerationDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IEnumerationDefinition.cs @@ -46,7 +46,7 @@ public partial interface IEnumerationDefinition : IAttributeDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1606946634788_959145_265", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1590979457191_746167_951")] - List EnumeratedValue { get; } + List enumeratedValue { get; } /// /// An EnumerationDefinition is considered semantically to be a variation whose allowed variants are its diff --git a/SysML2.NET/Core/AutoGenDto/IEnumerationUsage.cs b/SysML2.NET/Core/AutoGenDto/IEnumerationUsage.cs index e398af249..6c07b17bd 100644 --- a/SysML2.NET/Core/AutoGenDto/IEnumerationUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IEnumerationUsage.cs @@ -44,7 +44,7 @@ public partial interface IEnumerationUsage : IAttributeUsage /// [Property(xmiId: "_19_0_4_12e503d9_1606946962858_570633_331", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565471811429_523492_20975")] - Guid EnumerationDefinition { get; } + Guid enumerationDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IEventOccurrenceUsage.cs b/SysML2.NET/Core/AutoGenDto/IEventOccurrenceUsage.cs index d2975fea5..500d2a9e9 100644 --- a/SysML2.NET/Core/AutoGenDto/IEventOccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IEventOccurrenceUsage.cs @@ -50,14 +50,14 @@ public partial interface IEventOccurrenceUsage : IOccurrenceUsage /// EventOccurrenceUsage itself. /// [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid EventOccurrence { get; } + Guid eventOccurrence { get; } /// /// Always true for an EventOccurrenceUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1672526906017_786343_306", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] - new bool IsReference { get; } + new bool isReference { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IExhibitStateUsage.cs b/SysML2.NET/Core/AutoGenDto/IExhibitStateUsage.cs index 6fc151135..e1dc54d85 100644 --- a/SysML2.NET/Core/AutoGenDto/IExhibitStateUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IExhibitStateUsage.cs @@ -49,7 +49,7 @@ public partial interface IExhibitStateUsage : IStateUsage, IPerformActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1577070999039_688794_260", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1567740791820_867719_18017")] - Guid ExhibitedState { get; } + Guid exhibitedState { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IExpression.cs b/SysML2.NET/Core/AutoGenDto/IExpression.cs index 54f4f4da6..d4398ad79 100644 --- a/SysML2.NET/Core/AutoGenDto/IExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/IExpression.cs @@ -48,14 +48,14 @@ public partial interface IExpression : IStep /// [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] - Guid? Function { get; } + Guid? function { get; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, /// using metadata within the model. /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool IsModelLevelEvaluable { get; } + bool isModelLevelEvaluable { get; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -65,7 +65,7 @@ public partial interface IExpression : IStep [Property(xmiId: "_19_0_2_12e503d9_1595188071574_902060_363", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] - Guid Result { get; } + Guid result { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IFeature.cs b/SysML2.NET/Core/AutoGenDto/IFeature.cs index 3008322bc..fb38eb734 100644 --- a/SysML2.NET/Core/AutoGenDto/IFeature.cs +++ b/SysML2.NET/Core/AutoGenDto/IFeature.cs @@ -62,7 +62,7 @@ public partial interface IFeature : IType /// Feature in chainingFeatures, and so on, to values of the last Feature. /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - List ChainingFeature { get; } + List chainingFeature { get; } /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -71,7 +71,7 @@ public partial interface IFeature : IType /// owningType. /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? CrossFeature { get; } + Guid? crossFeature { get; } /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -87,13 +87,13 @@ public partial interface IFeature : IType [Property(xmiId: "_18_5_3_12e503d9_1563834516279_920295_20653", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] - Guid? EndOwningType { get; } + Guid? endOwningType { get; } /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid FeatureTarget { get; } + Guid featureTarget { get; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -102,7 +102,7 @@ public partial interface IFeature : IType /// featuringTypes of the chained Feature. /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List FeaturingType { get; } + List featuringType { get; } /// /// Whether the Feature is a composite feature of its featuringType. If so, the values of the Feature @@ -170,7 +170,7 @@ public partial interface IFeature : IType /// [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] - Guid? OwnedCrossSubsetting { get; } + Guid? ownedCrossSubsetting { get; } /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -179,7 +179,7 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_4_b9102da_1622125589880_791465_72", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] - List OwnedFeatureChaining { get; } + List ownedFeatureChaining { get; } /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -188,7 +188,7 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_4_b9102da_1653567738671_359235_43", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List OwnedFeatureInverting { get; } + List ownedFeatureInverting { get; } /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -196,7 +196,7 @@ public partial interface IFeature : IType /// [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] - List OwnedRedefinition { get; } + List ownedRedefinition { get; } /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -204,7 +204,7 @@ public partial interface IFeature : IType /// [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] - Guid? OwnedReferenceSubsetting { get; } + Guid? ownedReferenceSubsetting { get; } /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -213,7 +213,7 @@ public partial interface IFeature : IType [Property(xmiId: "_18_5_3_12e503d9_1533160674970_472382_43221", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] - List OwnedSubsetting { get; } + List ownedSubsetting { get; } /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -222,7 +222,7 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_4_12e503d9_1603905673975_310948_762", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List OwnedTypeFeaturing { get; } + List ownedTypeFeaturing { get; } /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -231,14 +231,14 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_2_12e503d9_1596597427751_965862_42", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] - List OwnedTyping { get; } + List ownedTyping { get; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] - Guid? OwningFeatureMembership { get; } + Guid? owningFeatureMembership { get; } /// /// The Type that is the owningType of the owningFeatureMembership of this Feature. @@ -247,7 +247,7 @@ public partial interface IFeature : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_297074_43308")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] - Guid? OwningType { get; } + Guid? owningType { get; } /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -256,7 +256,7 @@ public partial interface IFeature : IType /// Feature. /// [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; } + List type { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IFeatureChainExpression.cs b/SysML2.NET/Core/AutoGenDto/IFeatureChainExpression.cs index 2c91d5032..d7f68e440 100644 --- a/SysML2.NET/Core/AutoGenDto/IFeatureChainExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/IFeatureChainExpression.cs @@ -52,7 +52,7 @@ public partial interface IFeatureChainExpression : IOperatorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1645049897369_762611_49", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - Guid TargetFeature { get; } + Guid targetFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IFeatureChaining.cs b/SysML2.NET/Core/AutoGenDto/IFeatureChaining.cs index cb4cae20c..04d118836 100644 --- a/SysML2.NET/Core/AutoGenDto/IFeatureChaining.cs +++ b/SysML2.NET/Core/AutoGenDto/IFeatureChaining.cs @@ -54,7 +54,7 @@ public partial interface IFeatureChaining : IRelationship [Property(xmiId: "_19_0_4_b9102da_1622125589880_897608_73", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - Guid FeatureChained { get; } + Guid featureChained { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IFeatureInverting.cs b/SysML2.NET/Core/AutoGenDto/IFeatureInverting.cs index 5203d5722..52e755a03 100644 --- a/SysML2.NET/Core/AutoGenDto/IFeatureInverting.cs +++ b/SysML2.NET/Core/AutoGenDto/IFeatureInverting.cs @@ -62,7 +62,7 @@ public partial interface IFeatureInverting : IRelationship [Property(xmiId: "_19_0_4_b9102da_1653567738671_122613_44", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838862_842173_146")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] - Guid? OwningFeature { get; } + Guid? owningFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IFeatureMembership.cs b/SysML2.NET/Core/AutoGenDto/IFeatureMembership.cs index d9c8ddf19..3f0452f84 100644 --- a/SysML2.NET/Core/AutoGenDto/IFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IFeatureMembership.cs @@ -49,7 +49,7 @@ public partial interface IFeatureMembership : IOwningMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674993_898044_43344", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] - Guid OwnedMemberFeature { get; } + Guid ownedMemberFeature { get; } /// /// The Type that owns this FeatureMembership. @@ -57,7 +57,7 @@ public partial interface IFeatureMembership : IOwningMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674992_418504_43339", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] - Guid OwningType { get; } + Guid owningType { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IFeatureReferenceExpression.cs b/SysML2.NET/Core/AutoGenDto/IFeatureReferenceExpression.cs index 04c25ecd7..05289ce5c 100644 --- a/SysML2.NET/Core/AutoGenDto/IFeatureReferenceExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/IFeatureReferenceExpression.cs @@ -45,7 +45,7 @@ public partial interface IFeatureReferenceExpression : IExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_848357_43185", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - Guid Referent { get; } + Guid referent { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IFeatureTyping.cs b/SysML2.NET/Core/AutoGenDto/IFeatureTyping.cs index 366f66fc2..433785d73 100644 --- a/SysML2.NET/Core/AutoGenDto/IFeatureTyping.cs +++ b/SysML2.NET/Core/AutoGenDto/IFeatureTyping.cs @@ -47,7 +47,7 @@ public partial interface IFeatureTyping : ISpecialization [Property(xmiId: "_19_0_2_12e503d9_1596597427753_801746_43", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_13273_21101")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] - Guid? OwningFeature { get; } + Guid? owningFeature { get; } /// /// The Type that is being applied by this FeatureTyping. diff --git a/SysML2.NET/Core/AutoGenDto/IFeatureValue.cs b/SysML2.NET/Core/AutoGenDto/IFeatureValue.cs index 7f0522e84..3b6a5b583 100644 --- a/SysML2.NET/Core/AutoGenDto/IFeatureValue.cs +++ b/SysML2.NET/Core/AutoGenDto/IFeatureValue.cs @@ -53,7 +53,7 @@ public partial interface IFeatureValue : IOwningMembership /// [Property(xmiId: "_19_0_2_12e503d9_1573079011690_119762_1724", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] - Guid FeatureWithValue { get; } + Guid featureWithValue { get; } /// /// Whether this FeatureValue is a concrete specification of the bound or initial value of the @@ -73,7 +73,7 @@ public partial interface IFeatureValue : IOwningMembership /// [Property(xmiId: "_19_0_2_12e503d9_1573081851611_231043_3236", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] - Guid Value { get; } + Guid value { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IFlow.cs b/SysML2.NET/Core/AutoGenDto/IFlow.cs index 89c96ccdb..eb6ba8ae2 100644 --- a/SysML2.NET/Core/AutoGenDto/IFlow.cs +++ b/SysML2.NET/Core/AutoGenDto/IFlow.cs @@ -46,7 +46,7 @@ public partial interface IFlow : IConnector, IStep /// [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] - List FlowEnd { get; } + List flowEnd { get; } /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -55,34 +55,34 @@ public partial interface IFlow : IConnector, IStep [Property(xmiId: "_19_0_4_12e503d9_1661900477937_518125_727", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] - List Interaction { get; } + List interaction { get; } /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). /// [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - Guid? PayloadFeature { get; } + Guid? payloadFeature { get; } /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - List PayloadType { get; } + List payloadType { get; } /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the /// Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - Guid? SourceOutputFeature { get; } + Guid? sourceOutputFeature { get; } /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the /// Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - Guid? TargetInputFeature { get; } + Guid? targetInputFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IFlowDefinition.cs b/SysML2.NET/Core/AutoGenDto/IFlowDefinition.cs index 60be023e6..832b2fa7a 100644 --- a/SysML2.NET/Core/AutoGenDto/IFlowDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IFlowDefinition.cs @@ -45,7 +45,7 @@ public partial interface IFlowDefinition : IInteraction, IActionDefinition /// [Property(xmiId: "_2022x_2_12e503d9_1733008492358_136366_19515", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] - List FlowEnd { get; } + List flowEnd { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IFlowUsage.cs b/SysML2.NET/Core/AutoGenDto/IFlowUsage.cs index 112b1b463..c46c94d0d 100644 --- a/SysML2.NET/Core/AutoGenDto/IFlowUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IFlowUsage.cs @@ -50,7 +50,7 @@ public partial interface IFlowUsage : IConnectorAsUsage, IFlow, IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661892878973_977062_185", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1661900477937_518125_727")] - List FlowDefinition { get; } + List flowDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IForLoopActionUsage.cs b/SysML2.NET/Core/AutoGenDto/IForLoopActionUsage.cs index 8c73bf65d..64a8863e4 100644 --- a/SysML2.NET/Core/AutoGenDto/IForLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IForLoopActionUsage.cs @@ -47,7 +47,7 @@ public partial interface IForLoopActionUsage : ILoopActionUsage /// ForLoopAction::var. /// [Property(xmiId: "_19_0_4_12e503d9_1640325378400_227367_3662", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid LoopVariable { get; } + Guid loopVariable { get; } /// /// The Expression whose result provides the sequence of values to which the loopVariable is set for @@ -55,7 +55,7 @@ public partial interface IForLoopActionUsage : ILoopActionUsage /// input parameter of this ForLoopActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624306920911_355291_5769", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid SeqArgument { get; } + Guid seqArgument { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IFramedConcernMembership.cs b/SysML2.NET/Core/AutoGenDto/IFramedConcernMembership.cs index 23ddbb447..483609c28 100644 --- a/SysML2.NET/Core/AutoGenDto/IFramedConcernMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IFramedConcernMembership.cs @@ -52,7 +52,7 @@ public partial interface IFramedConcernMembership : IRequirementConstraintMember /// [Property(xmiId: "_19_0_4_12e503d9_1617120590170_490370_3748", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048366950_985767_426")] - Guid OwnedConcern { get; } + Guid ownedConcern { get; } /// /// The ConcernUsage that is referenced through this FramedConcernMembership. It is the @@ -61,7 +61,7 @@ public partial interface IFramedConcernMembership : IRequirementConstraintMember /// [Property(xmiId: "_19_0_4_12e503d9_1617120658044_92083_3773", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1617118807597_77864_3544")] - Guid ReferencedConcern { get; } + Guid referencedConcern { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IFunction.cs b/SysML2.NET/Core/AutoGenDto/IFunction.cs index 46dd65bbc..35b056b86 100644 --- a/SysML2.NET/Core/AutoGenDto/IFunction.cs +++ b/SysML2.NET/Core/AutoGenDto/IFunction.cs @@ -45,7 +45,7 @@ public partial interface IFunction : IBehavior /// [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] - List Expression { get; } + List expression { get; } /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -55,7 +55,7 @@ public partial interface IFunction : IBehavior /// model-level evaluable. /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool IsModelLevelEvaluable { get; } + bool isModelLevelEvaluable { get; } /// /// The object or value that is the result of evaluating the Function. @@ -63,7 +63,7 @@ public partial interface IFunction : IBehavior [Property(xmiId: "_18_5_3_12e503d9_1543948912268_88159_21323", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] - Guid Result { get; } + Guid result { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IIfActionUsage.cs b/SysML2.NET/Core/AutoGenDto/IIfActionUsage.cs index 4bfac6900..fa466a041 100644 --- a/SysML2.NET/Core/AutoGenDto/IIfActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IIfActionUsage.cs @@ -46,21 +46,21 @@ public partial interface IIfActionUsage : IActionUsage /// (optional) third parameter of the IfActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624203816178_273125_3723", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? ElseAction { get; } + Guid? elseAction { get; } /// /// The Expression whose result determines whether the thenAction or (optionally) the elseAction is /// performed. It is the first parameter of the IfActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624203866872_328861_3821", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid IfArgument { get; } + Guid ifArgument { get; } /// /// The ActionUsage that is to be performed if the result of the ifArgument is true. It is the second /// parameter of the IfActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624203835062_413118_3748", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid ThenAction { get; } + Guid thenAction { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IImport.cs b/SysML2.NET/Core/AutoGenDto/IImport.cs index 5441b7f7e..a0ba55c7f 100644 --- a/SysML2.NET/Core/AutoGenDto/IImport.cs +++ b/SysML2.NET/Core/AutoGenDto/IImport.cs @@ -50,7 +50,7 @@ public partial interface IImport : IRelationship /// of the importedMembership. For a NamespaceImport, it is the importedNamespace. /// [Property(xmiId: "_19_0_4_12e503d9_1668801846848_909736_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid ImportedElement { get; } + Guid importedElement { get; } /// /// The Namespace into which Memberships are imported by this Import, which must be the @@ -59,7 +59,7 @@ public partial interface IImport : IRelationship [Property(xmiId: "_18_5_3_12e503d9_1533160674974_548878_43248", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - Guid ImportOwningNamespace { get; } + Guid importOwningNamespace { get; } /// /// Whether to import memberships without regard to declared visibility. diff --git a/SysML2.NET/Core/AutoGenDto/IIncludeUseCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/IIncludeUseCaseUsage.cs index 9d5bada95..ae5fc38bc 100644 --- a/SysML2.NET/Core/AutoGenDto/IIncludeUseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IIncludeUseCaseUsage.cs @@ -49,7 +49,7 @@ public partial interface IIncludeUseCaseUsage : IUseCaseUsage, IPerformActionUsa /// [Property(xmiId: "_19_0_4_12e503d9_1621532149711_865323_1172", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1567740791820_867719_18017")] - Guid UseCaseIncluded { get; } + Guid useCaseIncluded { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IInstantiationExpression.cs b/SysML2.NET/Core/AutoGenDto/IInstantiationExpression.cs index 97c0299b7..98e4f9150 100644 --- a/SysML2.NET/Core/AutoGenDto/IInstantiationExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/IInstantiationExpression.cs @@ -48,14 +48,14 @@ public partial interface IInstantiationExpression : IExpression /// InstantiationExpression. /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List Argument { get; } + List argument { get; } /// /// The Type that is being instantiated. /// [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - Guid InstantiatedType { get; } + Guid instantiatedType { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IInterfaceDefinition.cs b/SysML2.NET/Core/AutoGenDto/IInterfaceDefinition.cs index aa03317eb..561ded248 100644 --- a/SysML2.NET/Core/AutoGenDto/IInterfaceDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IInterfaceDefinition.cs @@ -44,7 +44,7 @@ public partial interface IInterfaceDefinition : IConnectionDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1565496234915_779221_26664", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591476421094_685440_682")] - List InterfaceEnd { get; } + List interfaceEnd { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IInterfaceUsage.cs b/SysML2.NET/Core/AutoGenDto/IInterfaceUsage.cs index 97db5b0c6..410d68318 100644 --- a/SysML2.NET/Core/AutoGenDto/IInterfaceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IInterfaceUsage.cs @@ -46,7 +46,7 @@ public partial interface IInterfaceUsage : IConnectionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1565499418349_431355_28798", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594853499656_139435_802")] - List InterfaceDefinition { get; } + List interfaceDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IIntersecting.cs b/SysML2.NET/Core/AutoGenDto/IIntersecting.cs index e232c95fb..5ef02a149 100644 --- a/SysML2.NET/Core/AutoGenDto/IIntersecting.cs +++ b/SysML2.NET/Core/AutoGenDto/IIntersecting.cs @@ -54,7 +54,7 @@ public partial interface IIntersecting : IRelationship [Property(xmiId: "_19_0_4_b9102da_1623242552145_149730_525", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - Guid TypeIntersected { get; } + Guid typeIntersected { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IItemUsage.cs b/SysML2.NET/Core/AutoGenDto/IItemUsage.cs index 1a1644a52..99b86b7a7 100644 --- a/SysML2.NET/Core/AutoGenDto/IItemUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IItemUsage.cs @@ -50,7 +50,7 @@ public partial interface IItemUsage : IOccurrenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] - List ItemDefinition { get; } + List itemDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ILoopActionUsage.cs b/SysML2.NET/Core/AutoGenDto/ILoopActionUsage.cs index aae5b885d..d8cc4d6e5 100644 --- a/SysML2.NET/Core/AutoGenDto/ILoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ILoopActionUsage.cs @@ -46,7 +46,7 @@ public partial interface ILoopActionUsage : IActionUsage /// LoopActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624203902575_509097_3869", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid BodyAction { get; } + Guid bodyAction { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IMembership.cs b/SysML2.NET/Core/AutoGenDto/IMembership.cs index 76d14947e..f2170c7e8 100644 --- a/SysML2.NET/Core/AutoGenDto/IMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IMembership.cs @@ -56,7 +56,7 @@ public partial interface IMembership : IRelationship /// The elementId of the memberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string MemberElementId { get; } + string memberElementId { get; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -71,7 +71,7 @@ public partial interface IMembership : IRelationship [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_531296_43182")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - Guid MembershipOwningNamespace { get; } + Guid membershipOwningNamespace { get; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. diff --git a/SysML2.NET/Core/AutoGenDto/IMetadataAccessExpression.cs b/SysML2.NET/Core/AutoGenDto/IMetadataAccessExpression.cs index 09cc2c620..9388842c7 100644 --- a/SysML2.NET/Core/AutoGenDto/IMetadataAccessExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/IMetadataAccessExpression.cs @@ -47,7 +47,7 @@ public partial interface IMetadataAccessExpression : IExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665514131655_247232_1341", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - Guid ReferencedElement { get; } + Guid referencedElement { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IMetadataFeature.cs b/SysML2.NET/Core/AutoGenDto/IMetadataFeature.cs index d34d10ba8..4b6a741e9 100644 --- a/SysML2.NET/Core/AutoGenDto/IMetadataFeature.cs +++ b/SysML2.NET/Core/AutoGenDto/IMetadataFeature.cs @@ -47,7 +47,7 @@ public partial interface IMetadataFeature : IAnnotatingElement, IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1606345564958_925589_327", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] - Guid? Metaclass { get; } + Guid? metaclass { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IMetadataUsage.cs b/SysML2.NET/Core/AutoGenDto/IMetadataUsage.cs index 5b7d06dce..3034c3112 100644 --- a/SysML2.NET/Core/AutoGenDto/IMetadataUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IMetadataUsage.cs @@ -50,7 +50,7 @@ public partial interface IMetadataUsage : IItemUsage, IMetadataFeature [Property(xmiId: "_19_0_4_12e503d9_1647727047674_847094_2563", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1606345564958_925589_327")] - Guid? MetadataDefinition { get; } + Guid? metadataDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IMultiplicityRange.cs b/SysML2.NET/Core/AutoGenDto/IMultiplicityRange.cs index 35b81d6ea..bfa111e4b 100644 --- a/SysML2.NET/Core/AutoGenDto/IMultiplicityRange.cs +++ b/SysML2.NET/Core/AutoGenDto/IMultiplicityRange.cs @@ -51,7 +51,7 @@ public partial interface IMultiplicityRange : IMultiplicity /// [Property(xmiId: "_19_0_2_12e503d9_1573095221994_519580_5095", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List Bound { get; } + List bound { get; } /// /// The Expression whose result provides the lower bound of the MultiplicityRange. If no lowerBound @@ -60,14 +60,14 @@ public partial interface IMultiplicityRange : IMultiplicity /// [Property(xmiId: "_19_0_2_12e503d9_1573094905677_801324_4744", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] - Guid? LowerBound { get; } + Guid? lowerBound { get; } /// /// The Expression whose result is the upper bound of the MultiplicityRange. /// [Property(xmiId: "_19_0_2_12e503d9_1573094947427_797440_4796", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] - Guid UpperBound { get; } + Guid upperBound { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/INamespace.cs b/SysML2.NET/Core/AutoGenDto/INamespace.cs index 5e74a3c61..8087b19b5 100644 --- a/SysML2.NET/Core/AutoGenDto/INamespace.cs +++ b/SysML2.NET/Core/AutoGenDto/INamespace.cs @@ -51,21 +51,21 @@ public partial interface INamespace : IElement /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] - List ImportedMembership { get; } + List importedMembership { get; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of /// the Namespace. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List Member { get; } + List member { get; } /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and /// importedMemberships. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] - List Membership { get; } + List membership { get; } /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -74,7 +74,7 @@ public partial interface INamespace : IElement [Property(xmiId: "_18_5_3_12e503d9_1533160674974_746786_43247", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] - List OwnedImport { get; } + List ownedImport { get; } /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -82,7 +82,7 @@ public partial interface INamespace : IElement /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - List OwnedMember { get; } + List ownedMember { get; } /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -92,7 +92,7 @@ public partial interface INamespace : IElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List OwnedMembership { get; } + List ownedMembership { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IObjectiveMembership.cs b/SysML2.NET/Core/AutoGenDto/IObjectiveMembership.cs index 171c6652b..1bdffe983 100644 --- a/SysML2.NET/Core/AutoGenDto/IObjectiveMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IObjectiveMembership.cs @@ -45,7 +45,7 @@ public partial interface IObjectiveMembership : IFeatureMembership /// [Property(xmiId: "_19_0_2_59601fc_1590258776804_538578_832", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - Guid OwnedObjectiveRequirement { get; } + Guid ownedObjectiveRequirement { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IOccurrenceUsage.cs b/SysML2.NET/Core/AutoGenDto/IOccurrenceUsage.cs index e3eab18ec..55a5b3ca3 100644 --- a/SysML2.NET/Core/AutoGenDto/IOccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IOccurrenceUsage.cs @@ -48,7 +48,7 @@ public partial interface IOccurrenceUsage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] - Guid? IndividualDefinition { get; } + Guid? individualDefinition { get; } /// /// Whether this OccurrenceUsage represents the usage of the specific individual represented by its @@ -64,7 +64,7 @@ public partial interface IOccurrenceUsage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] - List OccurrenceDefinition { get; } + List occurrenceDefinition { get; } /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If diff --git a/SysML2.NET/Core/AutoGenDto/IOwningMembership.cs b/SysML2.NET/Core/AutoGenDto/IOwningMembership.cs index 63a1780f9..49dc50df9 100644 --- a/SysML2.NET/Core/AutoGenDto/IOwningMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IOwningMembership.cs @@ -46,28 +46,28 @@ public partial interface IOwningMembership : IMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674965_501750_43196", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_59873_43302")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] - Guid OwnedMemberElement { get; } + Guid ownedMemberElement { get; } /// /// The elementId of the ownedMemberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] - string OwnedMemberElementId { get; } + string ownedMemberElementId { get; } /// /// The name of the ownedMemberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] - string OwnedMemberName { get; } + string ownedMemberName { get; } /// /// The shortName of the ownedMemberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] - string OwnedMemberShortName { get; } + string ownedMemberShortName { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IPackage.cs b/SysML2.NET/Core/AutoGenDto/IPackage.cs index 7cf87a927..30958823b 100644 --- a/SysML2.NET/Core/AutoGenDto/IPackage.cs +++ b/SysML2.NET/Core/AutoGenDto/IPackage.cs @@ -46,7 +46,7 @@ public partial interface IPackage : INamespace /// [Property(xmiId: "_19_0_4_12e503d9_1607033896050_867332_6206", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List FilterCondition { get; } + List filterCondition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IParameterMembership.cs b/SysML2.NET/Core/AutoGenDto/IParameterMembership.cs index f269b52d9..10f6d4f1f 100644 --- a/SysML2.NET/Core/AutoGenDto/IParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IParameterMembership.cs @@ -46,7 +46,7 @@ public partial interface IParameterMembership : IFeatureMembership /// [Property(xmiId: "_18_5_3_12e503d9_1557528016548_548098_110830", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - Guid OwnedMemberParameter { get; } + Guid ownedMemberParameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IPartUsage.cs b/SysML2.NET/Core/AutoGenDto/IPartUsage.cs index acf25acb1..9c1e6b025 100644 --- a/SysML2.NET/Core/AutoGenDto/IPartUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IPartUsage.cs @@ -47,7 +47,7 @@ public partial interface IPartUsage : IItemUsage /// [Property(xmiId: "_19_0_2_12e503d9_1591475180488_929065_121", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] - List PartDefinition { get; } + List partDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IPerformActionUsage.cs b/SysML2.NET/Core/AutoGenDto/IPerformActionUsage.cs index a4cbd660c..8388b271a 100644 --- a/SysML2.NET/Core/AutoGenDto/IPerformActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IPerformActionUsage.cs @@ -49,7 +49,7 @@ public partial interface IPerformActionUsage : IActionUsage, IEventOccurrenceUsa /// [Property(xmiId: "_19_0_2_12e503d9_1567740791820_867719_18017", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622831790393_676695_195")] - Guid PerformedAction { get; } + Guid performedAction { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IPortConjugation.cs b/SysML2.NET/Core/AutoGenDto/IPortConjugation.cs index a1d98fdd1..0d16139bb 100644 --- a/SysML2.NET/Core/AutoGenDto/IPortConjugation.cs +++ b/SysML2.NET/Core/AutoGenDto/IPortConjugation.cs @@ -47,7 +47,7 @@ public partial interface IPortConjugation : IConjugation /// [Property(xmiId: "_19_0_2_12e503d9_1575484344899_880331_946", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1575482646809_778895_441")] - Guid ConjugatedPortDefinition { get; } + Guid conjugatedPortDefinition { get; } /// /// The PortDefinition being conjugated. diff --git a/SysML2.NET/Core/AutoGenDto/IPortDefinition.cs b/SysML2.NET/Core/AutoGenDto/IPortDefinition.cs index c2be5de29..bb471b013 100644 --- a/SysML2.NET/Core/AutoGenDto/IPortDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IPortDefinition.cs @@ -46,7 +46,7 @@ public partial interface IPortDefinition : IOccurrenceDefinition, IStructure /// [Property(xmiId: "_19_0_2_12e503d9_1575484364015_206236_989", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - Guid? ConjugatedPortDefinition { get; } + Guid? conjugatedPortDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IPortUsage.cs b/SysML2.NET/Core/AutoGenDto/IPortUsage.cs index 4501fc20b..ed21dd411 100644 --- a/SysML2.NET/Core/AutoGenDto/IPortUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IPortUsage.cs @@ -46,7 +46,7 @@ public partial interface IPortUsage : IOccurrenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1565492740124_880100_25026", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] - List PortDefinition { get; } + List portDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IReferenceSubsetting.cs b/SysML2.NET/Core/AutoGenDto/IReferenceSubsetting.cs index edad6052f..fb2afb7e6 100644 --- a/SysML2.NET/Core/AutoGenDto/IReferenceSubsetting.cs +++ b/SysML2.NET/Core/AutoGenDto/IReferenceSubsetting.cs @@ -55,7 +55,7 @@ public partial interface IReferenceSubsetting : ISubsetting [Property(xmiId: "_19_0_4_12e503d9_1661555161575_539076_256", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_236250_43311")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] - Guid ReferencingFeature { get; } + Guid referencingFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IReferenceUsage.cs b/SysML2.NET/Core/AutoGenDto/IReferenceUsage.cs index f314bf035..fb6cb07dd 100644 --- a/SysML2.NET/Core/AutoGenDto/IReferenceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IReferenceUsage.cs @@ -47,7 +47,7 @@ public partial interface IReferenceUsage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035133434_200283_41434", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] - new bool IsReference { get; } + new bool isReference { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IRelationship.cs b/SysML2.NET/Core/AutoGenDto/IRelationship.cs index 268fd5d45..959536c2a 100644 --- a/SysML2.NET/Core/AutoGenDto/IRelationship.cs +++ b/SysML2.NET/Core/AutoGenDto/IRelationship.cs @@ -74,7 +74,7 @@ public partial interface IRelationship : IElement /// Elements of the Relationship. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - List RelatedElement { get; } + List relatedElement { get; } /// /// The relatedElements from which this Relationship is considered to be directed. diff --git a/SysML2.NET/Core/AutoGenDto/IRenderingDefinition.cs b/SysML2.NET/Core/AutoGenDto/IRenderingDefinition.cs index e3637e497..fb6c8e8c2 100644 --- a/SysML2.NET/Core/AutoGenDto/IRenderingDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IRenderingDefinition.cs @@ -44,7 +44,7 @@ public partial interface IRenderingDefinition : IPartDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1596741367270_249607_6373", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List Rendering { get; } + List rendering { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IRenderingUsage.cs b/SysML2.NET/Core/AutoGenDto/IRenderingUsage.cs index 09c7a124e..319ea1bdc 100644 --- a/SysML2.NET/Core/AutoGenDto/IRenderingUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IRenderingUsage.cs @@ -46,7 +46,7 @@ public partial interface IRenderingUsage : IPartUsage /// [Property(xmiId: "_19_0_2_12e503d9_1596741320785_268295_6306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591475180488_929065_121")] - Guid? RenderingDefinition { get; } + Guid? renderingDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IRequirementConstraintMembership.cs b/SysML2.NET/Core/AutoGenDto/IRequirementConstraintMembership.cs index 1b5b22055..874f6ae56 100644 --- a/SysML2.NET/Core/AutoGenDto/IRequirementConstraintMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IRequirementConstraintMembership.cs @@ -52,7 +52,7 @@ public partial interface IRequirementConstraintMembership : IFeatureMembership /// [Property(xmiId: "_19_0_2_12e503d9_1584048366950_985767_426", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - Guid OwnedConstraint { get; } + Guid ownedConstraint { get; } /// /// The ConstraintUsage that is referenced through this RequirementConstraintMembership. It is the @@ -60,7 +60,7 @@ public partial interface IRequirementConstraintMembership : IFeatureMembership /// otherwise, the ownedConstraint itself. /// [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid ReferencedConstraint { get; } + Guid referencedConstraint { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IRequirementDefinition.cs b/SysML2.NET/Core/AutoGenDto/IRequirementDefinition.cs index ab576a6b1..f890959b7 100644 --- a/SysML2.NET/Core/AutoGenDto/IRequirementDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IRequirementDefinition.cs @@ -46,7 +46,7 @@ public partial interface IRequirementDefinition : IConstraintDefinition [Property(xmiId: "_19_0_4_12e503d9_1621564041941_652319_2722", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List ActorParameter { get; } + List actorParameter { get; } /// /// The owned ConstraintUsages that represent assumptions of this RequirementDefinition, which are the @@ -55,7 +55,7 @@ public partial interface IRequirementDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1583376806647_629021_133", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List AssumedConstraint { get; } + List assumedConstraint { get; } /// /// The ConcernUsages framed by this RequirementDefinition, which are the ownedConcerns of all @@ -63,7 +63,7 @@ public partial interface IRequirementDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617116733499_587735_3242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583376932997_792124_158")] - List FramedConcern { get; } + List framedConcern { get; } /// /// An optional modeler-specified identifier for this RequirementDefinition (used, e.g., to link it to @@ -81,7 +81,7 @@ public partial interface IRequirementDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1583376932997_792124_158", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List RequiredConstraint { get; } + List requiredConstraint { get; } /// /// The parameters of this RequirementDefinition that represent stakeholders for th requirement. @@ -89,7 +89,7 @@ public partial interface IRequirementDefinition : IConstraintDefinition [Property(xmiId: "_19_0_4_12e503d9_1624033010374_29375_40166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List StakeholderParameter { get; } + List stakeholderParameter { get; } /// /// The parameter of this RequirementDefinition that represents its subject. @@ -97,14 +97,14 @@ public partial interface IRequirementDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1595189007408_784255_586", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - Guid SubjectParameter { get; } + Guid subjectParameter { get; } /// /// An optional textual statement of the requirement represented by this RequirementDefinition, derived /// from the bodies of the documentation of the RequirementDefinition. /// [Property(xmiId: "_19_0_2_12e503d9_1583376433122_189839_94", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List Text { get; } + List text { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IRequirementUsage.cs b/SysML2.NET/Core/AutoGenDto/IRequirementUsage.cs index 98ac824d8..941f0e3ab 100644 --- a/SysML2.NET/Core/AutoGenDto/IRequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IRequirementUsage.cs @@ -46,7 +46,7 @@ public partial interface IRequirementUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1621564075474_350859_2735", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List ActorParameter { get; } + List actorParameter { get; } /// /// The owned ConstraintUsages that represent assumptions of this RequirementUsage, derived as the @@ -55,7 +55,7 @@ public partial interface IRequirementUsage : IConstraintUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List AssumedConstraint { get; } + List assumedConstraint { get; } /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -63,7 +63,7 @@ public partial interface IRequirementUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] - List FramedConcern { get; } + List framedConcern { get; } /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -81,14 +81,14 @@ public partial interface IRequirementUsage : IConstraintUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List RequiredConstraint { get; } + List requiredConstraint { get; } /// /// The RequirementDefinition that is the single definition of this RequirementUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1583000408905_769743_1223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] - Guid? RequirementDefinition { get; } + Guid? requirementDefinition { get; } /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -96,7 +96,7 @@ public partial interface IRequirementUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1624032823963_328647_40107", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List StakeholderParameter { get; } + List stakeholderParameter { get; } /// /// The parameter of this RequirementUsage that represents its subject. @@ -104,14 +104,14 @@ public partial interface IRequirementUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1595189397261_941898_844", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - Guid SubjectParameter { get; } + Guid subjectParameter { get; } /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from /// the bodies of the documentation of the RequirementUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List Text { get; } + List text { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IRequirementVerificationMembership.cs b/SysML2.NET/Core/AutoGenDto/IRequirementVerificationMembership.cs index 22b88aa55..44dec2011 100644 --- a/SysML2.NET/Core/AutoGenDto/IRequirementVerificationMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IRequirementVerificationMembership.cs @@ -55,7 +55,7 @@ public partial interface IRequirementVerificationMembership : IRequirementConstr /// [Property(xmiId: "_19_0_4_12e503d9_1603921329650_612380_147", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048366950_985767_426")] - Guid OwnedRequirement { get; } + Guid ownedRequirement { get; } /// /// The RequirementUsage that is identified as being verified. It is the referencedConstraint of the @@ -64,7 +64,7 @@ public partial interface IRequirementVerificationMembership : IRequirementConstr /// [Property(xmiId: "_19_0_4_12e503d9_1603921870169_98378_309", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1617118807597_77864_3544")] - Guid VerifiedRequirement { get; } + Guid verifiedRequirement { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IResultExpressionMembership.cs b/SysML2.NET/Core/AutoGenDto/IResultExpressionMembership.cs index 5068abd85..e4ebf64a3 100644 --- a/SysML2.NET/Core/AutoGenDto/IResultExpressionMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IResultExpressionMembership.cs @@ -47,7 +47,7 @@ public partial interface IResultExpressionMembership : IFeatureMembership /// [Property(xmiId: "_19_0_2_12e503d9_1594868945944_989058_2545", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - Guid OwnedResultExpression { get; } + Guid ownedResultExpression { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ISatisfyRequirementUsage.cs b/SysML2.NET/Core/AutoGenDto/ISatisfyRequirementUsage.cs index b537ffa27..ab9018720 100644 --- a/SysML2.NET/Core/AutoGenDto/ISatisfyRequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ISatisfyRequirementUsage.cs @@ -50,14 +50,14 @@ public partial interface ISatisfyRequirementUsage : IRequirementUsage, IAssertCo /// [Property(xmiId: "_19_0_2_12e503d9_1583185037725_699150_2332", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1581045158665_239617_9458")] - Guid SatisfiedRequirement { get; } + Guid satisfiedRequirement { get; } /// /// The Feature that represents the actual subject that is asserted to satisfy the satisfiedRequirement. /// The satisfyingFeature is bound to the subjectParameter of the SatisfyRequirementUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1583378847285_929988_1396", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid SatisfyingFeature { get; } + Guid satisfyingFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ISendActionUsage.cs b/SysML2.NET/Core/AutoGenDto/ISendActionUsage.cs index 050bbd6c8..c3b981ca9 100644 --- a/SysML2.NET/Core/AutoGenDto/ISendActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ISendActionUsage.cs @@ -48,19 +48,19 @@ public partial interface ISendActionUsage : IActionUsage /// An Expression whose result is bound to the payload input parameter of this SendActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1612814399422_336683_143", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid PayloadArgument { get; } + Guid payloadArgument { get; } /// /// An Expression whose result is bound to the receiver input parameter of this SendActionUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1567742374932_10504_18141", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? ReceiverArgument { get; } + Guid? receiverArgument { get; } /// /// An Expression whose result is bound to the sender input parameter of this SendActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1665504224536_894018_944", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? SenderArgument { get; } + Guid? senderArgument { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ISpecialization.cs b/SysML2.NET/Core/AutoGenDto/ISpecialization.cs index 29c2ced7b..1a34194eb 100644 --- a/SysML2.NET/Core/AutoGenDto/ISpecialization.cs +++ b/SysML2.NET/Core/AutoGenDto/ISpecialization.cs @@ -53,7 +53,7 @@ public partial interface ISpecialization : IRelationship [Property(xmiId: "_18_5_3_12e503d9_1533160674971_573157_43226", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] - Guid? OwningType { get; } + Guid? owningType { get; } /// /// A Type with a subset of all instances of the general Type, which might be the same set. diff --git a/SysML2.NET/Core/AutoGenDto/IStakeholderMembership.cs b/SysML2.NET/Core/AutoGenDto/IStakeholderMembership.cs index 66158a1c7..401176761 100644 --- a/SysML2.NET/Core/AutoGenDto/IStakeholderMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IStakeholderMembership.cs @@ -46,7 +46,7 @@ public partial interface IStakeholderMembership : IParameterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1624034451301_6622_40822", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528016548_548098_110830")] - Guid OwnedStakeholderParameter { get; } + Guid ownedStakeholderParameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IStateDefinition.cs b/SysML2.NET/Core/AutoGenDto/IStateDefinition.cs index aff4f78ee..8f0155b72 100644 --- a/SysML2.NET/Core/AutoGenDto/IStateDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IStateDefinition.cs @@ -47,7 +47,7 @@ public partial interface IStateDefinition : IActionDefinition /// StateSubactionMembership with kind = do. /// [Property(xmiId: "_19_0_2_12e503d9_1582975916386_388324_339", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? DoAction { get; } + Guid? doAction { get; } /// /// The ActionUsage of this StateDefinition to be performed on entry to the state defined by the @@ -55,7 +55,7 @@ public partial interface IStateDefinition : IActionDefinition /// StateSubactionMembership with kind = entry. /// [Property(xmiId: "_19_0_2_12e503d9_1582975902339_513804_312", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? EntryAction { get; } + Guid? entryAction { get; } /// /// The ActionUsage of this StateDefinition to be performed on exit to the state defined by the @@ -63,7 +63,7 @@ public partial interface IStateDefinition : IActionDefinition /// StateSubactionMembership with kind = exit. /// [Property(xmiId: "_19_0_2_12e503d9_1582975927011_696894_352", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? ExitAction { get; } + Guid? exitAction { get; } /// /// Whether the ownedStates of this StateDefinition are to all be performed in parallel. If true, none @@ -79,7 +79,7 @@ public partial interface IStateDefinition : IActionDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575588190693_949879_1156", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] - List State { get; } + List state { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IStateSubactionMembership.cs b/SysML2.NET/Core/AutoGenDto/IStateSubactionMembership.cs index 9e1983541..bf79829d9 100644 --- a/SysML2.NET/Core/AutoGenDto/IStateSubactionMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IStateSubactionMembership.cs @@ -46,7 +46,7 @@ public partial interface IStateSubactionMembership : IFeatureMembership /// [Property(xmiId: "_19_0_2_12e503d9_1582974847979_606181_96", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - Guid Action { get; } + Guid action { get; } /// /// Whether this StateSubactionMembership is for an entry, do or exit ActionUsage. diff --git a/SysML2.NET/Core/AutoGenDto/IStateUsage.cs b/SysML2.NET/Core/AutoGenDto/IStateUsage.cs index 96a31f453..f13565d2e 100644 --- a/SysML2.NET/Core/AutoGenDto/IStateUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IStateUsage.cs @@ -49,7 +49,7 @@ public partial interface IStateUsage : IActionUsage /// with kind = do. /// [Property(xmiId: "_19_0_2_12e503d9_1582976255473_203238_644", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? DoAction { get; } + Guid? doAction { get; } /// /// The ActionUsage of this StateUsage to be performed on entry to the state defined by the @@ -57,7 +57,7 @@ public partial interface IStateUsage : IActionUsage /// with kind = entry. /// [Property(xmiId: "_19_0_2_12e503d9_1582976239200_979652_605", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? EntryAction { get; } + Guid? entryAction { get; } /// /// The ActionUsage of this StateUsage to be performed on exit to the state defined by the @@ -65,7 +65,7 @@ public partial interface IStateUsage : IActionUsage /// with kind = exit. /// [Property(xmiId: "_19_0_2_12e503d9_1582976283940_998741_691", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? ExitAction { get; } + Guid? exitAction { get; } /// /// Whether the nestedStates of this StateUsage are to all be performed in parallel. If true, none of @@ -81,7 +81,7 @@ public partial interface IStateUsage : IActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575588456737_49200_1438", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] - List StateDefinition { get; } + List stateDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IStep.cs b/SysML2.NET/Core/AutoGenDto/IStep.cs index d606ec146..c831a72ba 100644 --- a/SysML2.NET/Core/AutoGenDto/IStep.cs +++ b/SysML2.NET/Core/AutoGenDto/IStep.cs @@ -47,7 +47,7 @@ public partial interface IStep : IFeature /// [Property(xmiId: "_18_5_3_b9102da_1536346315176_954314_17388", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] - List Behavior { get; } + List behavior { get; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -55,7 +55,7 @@ public partial interface IStep : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] - List Parameter { get; } + List parameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ISubclassification.cs b/SysML2.NET/Core/AutoGenDto/ISubclassification.cs index 927326288..fb271bad3 100644 --- a/SysML2.NET/Core/AutoGenDto/ISubclassification.cs +++ b/SysML2.NET/Core/AutoGenDto/ISubclassification.cs @@ -44,7 +44,7 @@ public partial interface ISubclassification : ISpecialization /// [Property(xmiId: "_18_5_3_12e503d9_1543189170642_857401_25506", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] - Guid? OwningClassifier { get; } + Guid? owningClassifier { get; } /// /// The more specific Classifier in this Subclassification. diff --git a/SysML2.NET/Core/AutoGenDto/ISubjectMembership.cs b/SysML2.NET/Core/AutoGenDto/ISubjectMembership.cs index 3285497c1..09e595ba4 100644 --- a/SysML2.NET/Core/AutoGenDto/ISubjectMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ISubjectMembership.cs @@ -46,7 +46,7 @@ public partial interface ISubjectMembership : IParameterMembership /// [Property(xmiId: "_19_0_2_59601fc_1590258781117_655788_845", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528016548_548098_110830")] - Guid OwnedSubjectParameter { get; } + Guid ownedSubjectParameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ISubsetting.cs b/SysML2.NET/Core/AutoGenDto/ISubsetting.cs index 9132f2a63..115627ef2 100644 --- a/SysML2.NET/Core/AutoGenDto/ISubsetting.cs +++ b/SysML2.NET/Core/AutoGenDto/ISubsetting.cs @@ -49,7 +49,7 @@ public partial interface ISubsetting : ISpecialization [Property(xmiId: "_18_5_3_12e503d9_1533160674987_236250_43311", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] - Guid? OwningFeature { get; } + Guid? owningFeature { get; } /// /// The Feature that is subsetted by the subsettingFeature of this Subsetting. diff --git a/SysML2.NET/Core/AutoGenDto/ITerminateActionUsage.cs b/SysML2.NET/Core/AutoGenDto/ITerminateActionUsage.cs index 952ab1e0e..61e268d91 100644 --- a/SysML2.NET/Core/AutoGenDto/ITerminateActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ITerminateActionUsage.cs @@ -48,7 +48,7 @@ public partial interface ITerminateActionUsage : IActionUsage /// TerminateActionUsage. /// [Property(xmiId: "_2022x_2_12e503d9_1724451750939_948290_107", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? TerminatedOccurrenceArgument { get; } + Guid? terminatedOccurrenceArgument { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ITextualRepresentation.cs b/SysML2.NET/Core/AutoGenDto/ITextualRepresentation.cs index fcf1af1c3..45c04bb92 100644 --- a/SysML2.NET/Core/AutoGenDto/ITextualRepresentation.cs +++ b/SysML2.NET/Core/AutoGenDto/ITextualRepresentation.cs @@ -78,7 +78,7 @@ public partial interface ITextualRepresentation : IAnnotatingElement [Property(xmiId: "_19_0_2_12e503d9_1594154758494_414887_3389", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_744477_17277")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594145755058_99428_86")] - Guid RepresentedElement { get; } + Guid representedElement { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ITransitionFeatureMembership.cs b/SysML2.NET/Core/AutoGenDto/ITransitionFeatureMembership.cs index 52c27a9f3..5c966d0f2 100644 --- a/SysML2.NET/Core/AutoGenDto/ITransitionFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ITransitionFeatureMembership.cs @@ -53,7 +53,7 @@ public partial interface ITransitionFeatureMembership : IFeatureMembership /// [Property(xmiId: "_19_0_2_12e503d9_1582975046568_736161_148", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - Guid TransitionFeature { get; } + Guid transitionFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ITransitionUsage.cs b/SysML2.NET/Core/AutoGenDto/ITransitionUsage.cs index 6bffd94d4..33076623a 100644 --- a/SysML2.NET/Core/AutoGenDto/ITransitionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ITransitionUsage.cs @@ -52,7 +52,7 @@ public partial interface ITransitionUsage : IActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1581029782522_542070_6299", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List EffectAction { get; } + List effectAction { get; } /// /// The Expressions that define the guards of this TransitionUsage, which are the ownedFeatures of the @@ -61,14 +61,14 @@ public partial interface ITransitionUsage : IActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1581029720824_747691_6254", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List GuardExpression { get; } + List guardExpression { get; } /// /// The source ActionUsage of this TransitionUsage, which becomes the source of the succession for the /// TransitionUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1581029439311_947395_6114", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid Source { get; } + Guid source { get; } /// /// The Succession that is the ownedFeature of this TransitionUsage, which, if the TransitionUsage is @@ -76,14 +76,14 @@ public partial interface ITransitionUsage : IActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1581030490131_304332_6364", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - Guid Succession { get; } + Guid succession { get; } /// /// The target ActionUsage of this TransitionUsage, which is the targetFeature of the succession for the /// TransitionUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1581029493366_130491_6153", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid Target { get; } + Guid target { get; } /// /// The AcceptActionUsages that define the triggers of this TransitionUsage, which are the ownedFeatures @@ -92,7 +92,7 @@ public partial interface ITransitionUsage : IActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1581029662256_985457_6209", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List TriggerAction { get; } + List triggerAction { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IType.cs b/SysML2.NET/Core/AutoGenDto/IType.cs index dd965acf6..0c10f9f39 100644 --- a/SysML2.NET/Core/AutoGenDto/IType.cs +++ b/SysML2.NET/Core/AutoGenDto/IType.cs @@ -50,28 +50,28 @@ public partial interface IType : INamespace /// those of that sex are also interpretations of the Classifier for that sex). /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List DifferencingType { get; } + List differencingType { get; } /// /// The features of this Type that have a non-null direction. /// [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List DirectedFeature { get; } + List directedFeature { get; } /// /// All features of this Type with isEnd = true. /// [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List EndFeature { get; } + List endFeature { get; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - List Feature { get; } + List feature { get; } /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -79,14 +79,14 @@ public partial interface IType : INamespace /// importedMemberships). /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List FeatureMembership { get; } + List featureMembership { get; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. /// [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List InheritedFeature { get; } + List inheritedFeature { get; } /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -94,14 +94,14 @@ public partial interface IType : INamespace /// [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] - List InheritedMembership { get; } + List inheritedMembership { get; } /// /// All features related to this Type by FeatureMemberships that have direction in or inout. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] - List Input { get; } + List input { get; } /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -113,7 +113,7 @@ public partial interface IType : INamespace /// also interpretations of the Classifier for that sex). /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List IntersectingType { get; } + List intersectingType { get; } /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -126,7 +126,7 @@ public partial interface IType : INamespace /// Indicates whether this Type has an ownedConjugator. /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool IsConjugated { get; } + bool isConjugated { get; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -146,14 +146,14 @@ public partial interface IType : INamespace /// [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - Guid? Multiplicity { get; } + Guid? multiplicity { get; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] - List Output { get; } + List output { get; } /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -161,7 +161,7 @@ public partial interface IType : INamespace [Property(xmiId: "_19_0_2_12e503d9_1575482646809_280165_440", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - Guid? OwnedConjugator { get; } + Guid? ownedConjugator { get; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -170,7 +170,7 @@ public partial interface IType : INamespace [Property(xmiId: "_19_0_4_b9102da_1661871168454_98082_797", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List OwnedDifferencing { get; } + List ownedDifferencing { get; } /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -179,7 +179,7 @@ public partial interface IType : INamespace [Property(xmiId: "_19_0_4_12e503d9_1627447519613_145554_370", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] - List OwnedDisjoining { get; } + List ownedDisjoining { get; } /// /// All endFeatures of this Type that are ownedFeatures. @@ -187,14 +187,14 @@ public partial interface IType : INamespace [Property(xmiId: "_18_5_3_12e503d9_1563834516278_687758_20652", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List OwnedEndFeature { get; } + List ownedEndFeature { get; } /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List OwnedFeature { get; } + List ownedFeature { get; } /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -203,7 +203,7 @@ public partial interface IType : INamespace [Property(xmiId: "_18_5_3_12e503d9_1533160674960_868417_43171", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] - List OwnedFeatureMembership { get; } + List ownedFeatureMembership { get; } /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -211,7 +211,7 @@ public partial interface IType : INamespace [Property(xmiId: "_19_0_4_b9102da_1623242552144_910757_524", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List OwnedIntersecting { get; } + List ownedIntersecting { get; } /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -220,7 +220,7 @@ public partial interface IType : INamespace [Property(xmiId: "_18_5_3_12e503d9_1533160674959_579676_43168", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] - List OwnedSpecialization { get; } + List ownedSpecialization { get; } /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -228,7 +228,7 @@ public partial interface IType : INamespace [Property(xmiId: "_19_0_4_b9102da_1661869978505_968809_460", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] - List OwnedUnioning { get; } + List ownedUnioning { get; } /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -238,7 +238,7 @@ public partial interface IType : INamespace /// same ways as people in general. /// [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; } + List unioningType { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ITypeFeaturing.cs b/SysML2.NET/Core/AutoGenDto/ITypeFeaturing.cs index 9beb5f63c..eb4e1eed1 100644 --- a/SysML2.NET/Core/AutoGenDto/ITypeFeaturing.cs +++ b/SysML2.NET/Core/AutoGenDto/ITypeFeaturing.cs @@ -59,7 +59,7 @@ public partial interface ITypeFeaturing : IRelationship [Property(xmiId: "_19_0_4_12e503d9_1603905673976_689994_763", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_912234_579")] - Guid? OwningFeatureOfType { get; } + Guid? owningFeatureOfType { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IUnioning.cs b/SysML2.NET/Core/AutoGenDto/IUnioning.cs index 1fb22fb4c..656379d99 100644 --- a/SysML2.NET/Core/AutoGenDto/IUnioning.cs +++ b/SysML2.NET/Core/AutoGenDto/IUnioning.cs @@ -44,7 +44,7 @@ public partial interface IUnioning : IRelationship [Property(xmiId: "_19_0_4_b9102da_1661869978504_423347_459", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - Guid TypeUnioned { get; } + Guid typeUnioned { get; } /// /// Type that partly determines interpretations of typeUnioned, as described in Type::unioningType. diff --git a/SysML2.NET/Core/AutoGenDto/IUsage.cs b/SysML2.NET/Core/AutoGenDto/IUsage.cs index b70239838..6875c18ce 100644 --- a/SysML2.NET/Core/AutoGenDto/IUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IUsage.cs @@ -52,7 +52,7 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] - List Definition { get; } + List definition { get; } /// /// The usages of this Usage that are directedFeatures. @@ -60,13 +60,13 @@ public partial interface IUsage : IFeature [Property(xmiId: "_19_0_2_12e503d9_1591217699198_66279_508", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List DirectedUsage { get; } + List directedUsage { get; } /// /// Whether this Usage is a referential Usage, that is, it has isComposite = false. /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool IsReference { get; } + bool isReference { get; } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -85,56 +85,56 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] - bool MayTimeVary { get; } + bool mayTimeVary { get; } /// /// The ActionUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] - List NestedAction { get; } + List nestedAction { get; } /// /// The AllocationUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] - List NestedAllocation { get; } + List nestedAllocation { get; } /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] - List NestedAnalysisCase { get; } + List nestedAnalysisCase { get; } /// /// The code>AttributeUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List NestedAttribute { get; } + List nestedAttribute { get; } /// /// The CalculationUsage that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] - List NestedCalculation { get; } + List nestedCalculation { get; } /// /// The CaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] - List NestedCase { get; } + List nestedCase { get; } /// /// The ConcernUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] - List NestedConcern { get; } + List nestedConcern { get; } /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -143,105 +143,105 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List NestedConnection { get; } + List nestedConnection { get; } /// /// The ConstraintUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] - List NestedConstraint { get; } + List nestedConstraint { get; } /// /// The code>EnumerationUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] - List NestedEnumeration { get; } + List nestedEnumeration { get; } /// /// The code>FlowUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] - List NestedFlow { get; } + List nestedFlow { get; } /// /// The InterfaceUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] - List NestedInterface { get; } + List nestedInterface { get; } /// /// The ItemUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] - List NestedItem { get; } + List nestedItem { get; } /// /// The MetadataUsages that are nestedUsages of this of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] - List NestedMetadata { get; } + List nestedMetadata { get; } /// /// The OccurrenceUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List NestedOccurrence { get; } + List nestedOccurrence { get; } /// /// The PartUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] - List NestedPart { get; } + List nestedPart { get; } /// /// The PortUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List NestedPort { get; } + List nestedPort { get; } /// /// The ReferenceUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List NestedReference { get; } + List nestedReference { get; } /// /// The RenderingUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] - List NestedRendering { get; } + List nestedRendering { get; } /// /// The RequirementUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] - List NestedRequirement { get; } + List nestedRequirement { get; } /// /// The StateUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] - List NestedState { get; } + List nestedState { get; } /// /// The TransitionUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List NestedTransition { get; } + List nestedTransition { get; } /// /// The Usages that are ownedFeatures of this Usage. @@ -249,35 +249,35 @@ public partial interface IUsage : IFeature [Property(xmiId: "_18_5_3_12e503d9_1565472757327_162097_21259", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List NestedUsage { get; } + List nestedUsage { get; } /// /// The UseCaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] - List NestedUseCase { get; } + List nestedUseCase { get; } /// /// The VerificationCaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] - List NestedVerificationCase { get; } + List nestedVerificationCase { get; } /// /// The ViewUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] - List NestedView { get; } + List nestedView { get; } /// /// The ViewpointUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] - List NestedViewpoint { get; } + List nestedViewpoint { get; } /// /// The Definition that owns this Usage (if any). @@ -285,21 +285,21 @@ public partial interface IUsage : IFeature [Property(xmiId: "_18_5_3_12e503d9_1565479686638_420576_23237", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] - Guid? OwningDefinition { get; } + Guid? owningDefinition { get; } /// /// The Usage in which this Usage is nested (if any). /// [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] - Guid? OwningUsage { get; } + Guid? owningUsage { get; } /// /// The Usages that are features of this Usage (not necessarily owned). /// [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List Usage { get; } + List usage { get; } /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -307,7 +307,7 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List Variant { get; } + List variant { get; } /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -315,7 +315,7 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] - List VariantMembership { get; } + List variantMembership { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IUseCaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/IUseCaseDefinition.cs index e869f3c91..0e2992017 100644 --- a/SysML2.NET/Core/AutoGenDto/IUseCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IUseCaseDefinition.cs @@ -45,7 +45,7 @@ public partial interface IUseCaseDefinition : ICaseDefinition /// IncludeUseCaseUsages owned by this UseCaseDefinition. /// [Property(xmiId: "_19_0_4_12e503d9_1621461043764_27_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List IncludedUseCase { get; } + List includedUseCase { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IUseCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/IUseCaseUsage.cs index 2ea60f959..468431330 100644 --- a/SysML2.NET/Core/AutoGenDto/IUseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IUseCaseUsage.cs @@ -45,14 +45,14 @@ public partial interface IUseCaseUsage : ICaseUsage /// IncludeUseCaseUsages owned by this UseCaseUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1621545989647_997634_1855", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List IncludedUseCase { get; } + List includedUseCase { get; } /// /// The UseCaseDefinition that is the definition of this UseCaseUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1621460964889_804779_881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] - Guid? UseCaseDefinition { get; } + Guid? useCaseDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IVariantMembership.cs b/SysML2.NET/Core/AutoGenDto/IVariantMembership.cs index 5ffcfa961..cc8651783 100644 --- a/SysML2.NET/Core/AutoGenDto/IVariantMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IVariantMembership.cs @@ -47,7 +47,7 @@ public partial interface IVariantMembership : IOwningMembership /// [Property(xmiId: "_19_0_2_12e503d9_1590978683452_645414_775", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] - Guid OwnedVariantUsage { get; } + Guid ownedVariantUsage { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IVerificationCaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/IVerificationCaseDefinition.cs index 54c234af6..995dcbba4 100644 --- a/SysML2.NET/Core/AutoGenDto/IVerificationCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IVerificationCaseDefinition.cs @@ -44,7 +44,7 @@ public partial interface IVerificationCaseDefinition : ICaseDefinition /// verifiedRequirements of all RequirementVerificationMemberships of the objectiveRequirement. /// [Property(xmiId: "_19_0_4_12e503d9_1603922371399_701592_338", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List VerifiedRequirement { get; } + List verifiedRequirement { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IVerificationCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/IVerificationCaseUsage.cs index 89144e140..471ceed22 100644 --- a/SysML2.NET/Core/AutoGenDto/IVerificationCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IVerificationCaseUsage.cs @@ -45,14 +45,14 @@ public partial interface IVerificationCaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_2_12e503d9_1596821408366_748769_10316", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] - Guid? VerificationCaseDefinition { get; } + Guid? verificationCaseDefinition { get; } /// /// The RequirementUsages verified by this VerificationCaseUsage, which are the verifiedRequirements of /// all RequirementVerificationMemberships of the objectiveRequirement. /// [Property(xmiId: "_19_0_4_12e503d9_1603922396599_812331_357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List VerifiedRequirement { get; } + List verifiedRequirement { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IViewDefinition.cs b/SysML2.NET/Core/AutoGenDto/IViewDefinition.cs index 9ed6cdc26..1e6490161 100644 --- a/SysML2.NET/Core/AutoGenDto/IViewDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IViewDefinition.cs @@ -46,14 +46,14 @@ public partial interface IViewDefinition : IPartDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1596645596183_374903_1209", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] - List SatisfiedViewpoint { get; } + List satisfiedViewpoint { get; } /// /// The usages of this ViewDefinition that are ViewUsages. /// [Property(xmiId: "_19_0_2_12e503d9_1596644452170_21813_753", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List View { get; } + List view { get; } /// /// The Expressions related to this ViewDefinition by ElementFilterMemberships, which specify conditions @@ -61,14 +61,14 @@ public partial interface IViewDefinition : IPartDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1606938929077_183245_4796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List ViewCondition { get; } + List viewCondition { get; } /// /// The RenderingUsage to be used to render views defined by this ViewDefinition, which is the /// referencedRendering of the ViewRenderingMembership of the ViewDefinition. /// [Property(xmiId: "_19_0_2_12e503d9_1596657187664_758418_4914", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? ViewRendering { get; } + Guid? viewRendering { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IViewRenderingMembership.cs b/SysML2.NET/Core/AutoGenDto/IViewRenderingMembership.cs index b7d2f4677..48ea49bc6 100644 --- a/SysML2.NET/Core/AutoGenDto/IViewRenderingMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/IViewRenderingMembership.cs @@ -46,7 +46,7 @@ public partial interface IViewRenderingMembership : IFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617134244546_130200_6000", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - Guid OwnedRendering { get; } + Guid ownedRendering { get; } /// /// The RenderingUsage that is referenced through this ViewRenderingMembership. It is the @@ -54,7 +54,7 @@ public partial interface IViewRenderingMembership : IFeatureMembership /// otherwise, the ownedRendering itself. /// [Property(xmiId: "_19_0_4_12e503d9_1617134300857_286392_6081", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid ReferencedRendering { get; } + Guid referencedRendering { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IViewUsage.cs b/SysML2.NET/Core/AutoGenDto/IViewUsage.cs index 9b3508d53..4d94e5ab8 100644 --- a/SysML2.NET/Core/AutoGenDto/IViewUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IViewUsage.cs @@ -48,7 +48,7 @@ public partial interface IViewUsage : IPartUsage /// [Property(xmiId: "_19_0_2_12e503d9_1596648681658_691767_2705", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - List ExposedElement { get; } + List exposedElement { get; } /// /// The nestedRequirements of this ViewUsage that are ViewpointUsages for (additional) viewpoints @@ -56,7 +56,7 @@ public partial interface IViewUsage : IPartUsage /// [Property(xmiId: "_19_0_2_12e503d9_1596645688987_502277_1282", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] - List SatisfiedViewpoint { get; } + List satisfiedViewpoint { get; } /// /// The Expressions related to this ViewUsage by ElementFilterMemberships, which specify conditions on @@ -64,21 +64,21 @@ public partial interface IViewUsage : IPartUsage /// [Property(xmiId: "_19_0_4_12e503d9_1606938933668_437943_4809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List ViewCondition { get; } + List viewCondition { get; } /// /// The ViewDefinition that is the definition of this ViewUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1596644438889_580287_734", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591475180488_929065_121")] - Guid? ViewDefinition { get; } + Guid? viewDefinition { get; } /// /// The RenderingUsage to be used to render views defined by this ViewUsage, which is the /// referencedRendering of the ViewRenderingMembership of the ViewUsage. /// [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)] - Guid? ViewRendering { get; } + Guid? viewRendering { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IViewpointDefinition.cs b/SysML2.NET/Core/AutoGenDto/IViewpointDefinition.cs index 58da437c0..cf7dab3a9 100644 --- a/SysML2.NET/Core/AutoGenDto/IViewpointDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/IViewpointDefinition.cs @@ -45,7 +45,7 @@ public partial interface IViewpointDefinition : IRequirementDefinition /// ViewpointDefinition. /// [Property(xmiId: "_19_0_4_12e503d9_1617117194003_518610_3310", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List ViewpointStakeholder { get; } + List viewpointStakeholder { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IViewpointUsage.cs b/SysML2.NET/Core/AutoGenDto/IViewpointUsage.cs index 40ff21f44..ac6f930f5 100644 --- a/SysML2.NET/Core/AutoGenDto/IViewpointUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IViewpointUsage.cs @@ -45,14 +45,14 @@ public partial interface IViewpointUsage : IRequirementUsage /// [Property(xmiId: "_19_0_2_12e503d9_1596649684798_569222_3524", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1583000408905_769743_1223")] - Guid? ViewpointDefinition { get; } + Guid? viewpointDefinition { get; } /// /// The PartUsages that identify the stakeholders with concerns framed by this ViewpointUsage, which are /// the owned and inherited stakeholderParameters of the framedConcerns of this ViewpointUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1617117200628_940407_3323", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List ViewpointStakeholder { get; } + List viewpointStakeholder { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IWhileLoopActionUsage.cs b/SysML2.NET/Core/AutoGenDto/IWhileLoopActionUsage.cs index 3c7726ca2..ff2349fa8 100644 --- a/SysML2.NET/Core/AutoGenDto/IWhileLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IWhileLoopActionUsage.cs @@ -48,14 +48,14 @@ public partial interface IWhileLoopActionUsage : ILoopActionUsage /// performed. It is the (optional) third owned parameter of the WhileLoopActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624290717721_449719_4195", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid? UntilArgument { get; } + Guid? untilArgument { get; } /// /// The Expression whose result, if true, determines that the bodyAction should continue to be /// performed. It is the first owned parameter of the WhileLoopActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624203871924_371126_3842", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - Guid WhileArgument { get; } + Guid whileArgument { get; } } } diff --git a/SysML2.NET/Core/AutoGenDto/IfActionUsage.cs b/SysML2.NET/Core/AutoGenDto/IfActionUsage.cs index 21f612529..c4370f07e 100644 --- a/SysML2.NET/Core/AutoGenDto/IfActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IfActionUsage.cs @@ -57,7 +57,7 @@ public partial class IfActionUsage : IIfActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -73,7 +73,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -85,7 +85,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -95,7 +95,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -123,7 +123,7 @@ public partial class IfActionUsage : IIfActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -136,7 +136,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -145,7 +145,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -154,7 +154,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -171,7 +171,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -187,7 +187,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624203816178_273125_3723", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IIfActionUsage.ElseAction")] - public Guid? ElseAction { get; internal set; } + public Guid? elseAction { get; internal set; } /// /// All features of this Type with isEnd = true. @@ -195,7 +195,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -205,7 +205,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -213,7 +213,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -222,14 +222,14 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -239,7 +239,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Expression whose result determines whether the thenAction or (optionally) the elseAction is @@ -247,7 +247,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624203866872_328861_3821", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IIfActionUsage.IfArgument")] - public Guid IfArgument { get; internal set; } + public Guid ifArgument { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -255,7 +255,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -263,7 +263,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -271,7 +271,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -280,7 +280,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -288,7 +288,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -301,7 +301,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -325,7 +325,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -380,7 +380,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -402,7 +402,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -451,7 +451,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -459,7 +459,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -467,7 +467,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -477,7 +477,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -487,7 +487,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -495,7 +495,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -503,7 +503,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -511,7 +511,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -519,7 +519,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -527,7 +527,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -535,7 +535,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -543,7 +543,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -553,7 +553,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -561,7 +561,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -569,7 +569,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -577,7 +577,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -585,7 +585,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -593,7 +593,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -601,7 +601,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -609,7 +609,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -617,7 +617,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -625,7 +625,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -633,7 +633,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -641,7 +641,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -649,7 +649,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -657,7 +657,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -665,7 +665,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -674,7 +674,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -682,7 +682,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -690,7 +690,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -698,7 +698,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -706,7 +706,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -717,7 +717,7 @@ public partial class IfActionUsage : IIfActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -725,7 +725,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -735,7 +735,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -744,7 +744,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -753,7 +753,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -763,7 +763,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -773,7 +773,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -781,7 +781,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -790,7 +790,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -798,7 +798,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -808,7 +808,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -818,7 +818,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -828,7 +828,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -838,7 +838,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -847,7 +847,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -856,7 +856,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -867,7 +867,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -876,7 +876,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -885,7 +885,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -903,7 +903,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -913,7 +913,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -923,7 +923,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -933,7 +933,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -942,7 +942,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -950,7 +950,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -959,7 +959,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -967,7 +967,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -976,7 +976,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -985,7 +985,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1003,7 +1003,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1011,7 +1011,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1020,7 +1020,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1041,7 +1041,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1051,7 +1051,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1060,7 +1060,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The ActionUsage that is to be performed if the result of the ifArgument is true. It is the second @@ -1068,7 +1068,7 @@ public partial class IfActionUsage : IIfActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624203835062_413118_3748", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IIfActionUsage.ThenAction")] - public Guid ThenAction { get; internal set; } + public Guid thenAction { get; internal set; } /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1079,7 +1079,7 @@ public partial class IfActionUsage : IIfActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1090,7 +1090,7 @@ public partial class IfActionUsage : IIfActionUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1098,7 +1098,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1107,7 +1107,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1116,7 +1116,7 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/IncludeUseCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/IncludeUseCaseUsage.cs index cadf862b5..647646aaf 100644 --- a/SysML2.NET/Core/AutoGenDto/IncludeUseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IncludeUseCaseUsage.cs @@ -60,7 +60,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -69,7 +69,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -85,7 +85,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -97,7 +97,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public Guid? CalculationDefinition { get; internal set; } + public Guid? calculationDefinition { get; internal set; } /// /// The CaseDefinition that is the type of this CaseUsage. @@ -106,7 +106,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [RedefinedByProperty("IUseCaseUsage.UseCaseDefinition")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public Guid? CaseDefinition { get; internal set; } + public Guid? caseDefinition { get; internal set; } /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -118,7 +118,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -128,7 +128,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -156,7 +156,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -169,7 +169,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -178,7 +178,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -187,7 +187,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -204,7 +204,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -220,7 +220,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -230,7 +230,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The OccurrenceUsage referenced as an event by this EventOccurrenceUsage. It is the referenceFeature @@ -240,7 +240,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IPerformActionUsage.PerformedAction")] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public Guid EventOccurrence { get; internal set; } + public Guid eventOccurrence { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -248,7 +248,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -257,14 +257,14 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -274,7 +274,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -283,7 +283,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -291,7 +291,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The UseCaseUsages that are included by this UseCaseUse, which are the useCaseIncludeds of the @@ -299,7 +299,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1621545989647_997634_1855", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUseCaseUsage.IncludedUseCase")] - public List IncludedUseCase { get; internal set; } + public List includedUseCase { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -307,7 +307,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -315,7 +315,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -324,7 +324,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -332,7 +332,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -345,7 +345,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -369,7 +369,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -424,7 +424,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -432,7 +432,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -455,7 +455,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.IsReference { get; } + bool Systems.DefinitionAndUsage.IUsage.isReference { get; } /// /// Always true for an EventOccurrenceUsage. @@ -463,7 +463,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1672526906017_786343_306", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IEventOccurrenceUsage.IsReference")] - bool Systems.Occurrences.IEventOccurrenceUsage.IsReference { get; } + public bool isReference { get; internal set; } = true; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -512,7 +512,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -520,7 +520,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -528,7 +528,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -538,7 +538,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -548,7 +548,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -556,7 +556,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -564,7 +564,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -572,7 +572,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -580,7 +580,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -588,7 +588,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -596,7 +596,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -604,7 +604,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -614,7 +614,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -622,7 +622,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -630,7 +630,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -638,7 +638,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -646,7 +646,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -654,7 +654,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -662,7 +662,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -670,7 +670,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -678,7 +678,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -686,7 +686,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -694,7 +694,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -702,7 +702,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -710,7 +710,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -718,7 +718,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -726,7 +726,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -735,7 +735,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -743,7 +743,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -751,7 +751,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -759,7 +759,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -767,7 +767,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The RequirementUsage representing the objective of this CaseUsage. @@ -775,7 +775,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591138794257_404044_2145", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ObjectiveRequirement")] - public Guid? ObjectiveRequirement { get; internal set; } + public Guid? objectiveRequirement { get; internal set; } /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -786,7 +786,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -794,7 +794,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -804,7 +804,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -813,7 +813,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -822,7 +822,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -832,7 +832,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -842,7 +842,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -850,7 +850,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -859,7 +859,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -867,7 +867,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -877,7 +877,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -887,7 +887,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -897,7 +897,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -907,7 +907,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -916,7 +916,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -925,7 +925,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -936,7 +936,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -945,7 +945,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -954,7 +954,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -972,7 +972,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -982,7 +982,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -992,7 +992,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1002,7 +1002,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1011,7 +1011,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1019,7 +1019,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -1028,7 +1028,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1036,7 +1036,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1045,7 +1045,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1054,7 +1054,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1072,7 +1072,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1080,7 +1080,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1089,7 +1089,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The ActionUsage to be performed by this PerformedActionUsage. It is the eventOccurrence of the @@ -1099,7 +1099,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622831790393_676695_195")] [RedefinedByProperty("IIncludeUseCaseUsage.UseCaseIncluded")] [Implements(implementation: "IPerformActionUsage.PerformedAction")] - public Guid PerformedAction { get; internal set; } + public Guid performedAction { get; internal set; } /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1120,7 +1120,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1131,7 +1131,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1141,7 +1141,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The parameter of this CaseUsage that represents its subject. @@ -1150,7 +1150,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1159,7 +1159,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1170,7 +1170,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1181,7 +1181,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1189,7 +1189,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The UseCaseDefinition that is the definition of this UseCaseUsage. @@ -1197,7 +1197,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1621460964889_804779_881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] [Implements(implementation: "IUseCaseUsage.UseCaseDefinition")] - public Guid? UseCaseDefinition { get; internal set; } + public Guid? useCaseDefinition { get; internal set; } /// /// The UseCaseUsage to be included by this IncludeUseCaseUsage. It is the performedAction of the @@ -1206,7 +1206,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1621532149711_865323_1172", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1567740791820_867719_18017")] [Implements(implementation: "IIncludeUseCaseUsage.UseCaseIncluded")] - public Guid UseCaseIncluded { get; internal set; } + public Guid useCaseIncluded { get; internal set; } /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1215,7 +1215,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1224,7 +1224,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/IndexExpression.cs b/SysML2.NET/Core/AutoGenDto/IndexExpression.cs index 392ba75cd..aa5de4ff9 100644 --- a/SysML2.NET/Core/AutoGenDto/IndexExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/IndexExpression.cs @@ -61,7 +61,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List Argument { get; internal set; } + public List argument { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -70,7 +70,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,7 +82,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -92,7 +92,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -122,7 +122,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -131,7 +131,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -148,7 +148,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -164,7 +164,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -174,7 +174,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -182,7 +182,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -191,14 +191,14 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -208,7 +208,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -216,7 +216,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -224,7 +224,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -232,7 +232,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -241,7 +241,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -249,7 +249,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Type that is being instantiated. @@ -257,7 +257,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public Guid InstantiatedType { get; internal set; } + public Guid instantiatedType { get; internal set; } /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -270,7 +270,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -294,7 +294,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -341,7 +341,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -349,7 +349,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -399,7 +399,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -407,7 +407,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -417,7 +417,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -427,14 +427,14 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// [Property(xmiId: "_2022x_2_12e503d9_1735075421526_442091_324", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "#")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528808100_646606_111674")] [Implements(implementation: "IIndexExpression.Operator")] - string IIndexExpression.Operator { get; set; } = "#"; + public string Operator { get; set; } = "#"; /// /// An operator symbol that names a corresponding Function from one of the standard packages from the @@ -451,7 +451,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -461,7 +461,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -470,7 +470,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -479,7 +479,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -489,7 +489,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -499,7 +499,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -507,7 +507,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -516,7 +516,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -524,7 +524,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -534,7 +534,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -544,7 +544,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -554,7 +554,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -564,7 +564,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -573,7 +573,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -582,7 +582,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -593,7 +593,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -602,7 +602,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -611,7 +611,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -629,7 +629,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -639,7 +639,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -649,7 +649,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -659,7 +659,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -668,7 +668,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -676,7 +676,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -684,7 +684,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -693,7 +693,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -702,7 +702,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -720,7 +720,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -729,7 +729,7 @@ public partial class IndexExpression : IIndexExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -741,7 +741,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -752,7 +752,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -762,7 +762,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -771,7 +771,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -781,7 +781,7 @@ public partial class IndexExpression : IIndexExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -792,7 +792,7 @@ public partial class IndexExpression : IIndexExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Interaction.cs b/SysML2.NET/Core/AutoGenDto/Interaction.cs index 64d20ba5c..4584491ec 100644 --- a/SysML2.NET/Core/AutoGenDto/Interaction.cs +++ b/SysML2.NET/Core/AutoGenDto/Interaction.cs @@ -62,7 +62,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1562477648742_24204_22901", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List AssociationEnd { get; internal set; } + public List associationEnd { get; internal set; } = []; /// /// The declared name of this Element. @@ -92,7 +92,7 @@ public partial class Interaction : IInteraction /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -101,7 +101,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -110,7 +110,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -127,7 +127,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -135,7 +135,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -144,7 +144,7 @@ public partial class Interaction : IInteraction /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -152,7 +152,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -160,7 +160,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -169,7 +169,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -177,7 +177,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -190,7 +190,7 @@ public partial class Interaction : IInteraction /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -205,7 +205,7 @@ public partial class Interaction : IInteraction /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -231,7 +231,7 @@ public partial class Interaction : IInteraction /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -251,7 +251,7 @@ public partial class Interaction : IInteraction /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -259,7 +259,7 @@ public partial class Interaction : IInteraction /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -269,7 +269,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -279,7 +279,7 @@ public partial class Interaction : IInteraction /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -287,7 +287,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -297,7 +297,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -306,7 +306,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -316,7 +316,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -326,7 +326,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -334,7 +334,7 @@ public partial class Interaction : IInteraction /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -343,7 +343,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -351,7 +351,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -361,7 +361,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -371,7 +371,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -380,7 +380,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -389,7 +389,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -400,7 +400,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -426,7 +426,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -435,7 +435,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -444,7 +444,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -452,7 +452,7 @@ public partial class Interaction : IInteraction /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -461,7 +461,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -470,7 +470,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -495,7 +495,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -507,7 +507,7 @@ public partial class Interaction : IInteraction /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -516,7 +516,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -525,7 +525,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List RelatedType { get; internal set; } + public List relatedType { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -535,7 +535,7 @@ public partial class Interaction : IInteraction /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -553,7 +553,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public Guid? SourceType { get; internal set; } + public Guid? sourceType { get; internal set; } /// /// The Steps that make up this Behavior. @@ -561,7 +561,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The relatedElements to which this Relationship is considered to be directed. @@ -580,7 +580,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List TargetType { get; internal set; } + public List targetType { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -589,7 +589,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -600,7 +600,7 @@ public partial class Interaction : IInteraction /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/InterfaceDefinition.cs b/SysML2.NET/Core/AutoGenDto/InterfaceDefinition.cs index 156f6076c..cc5f8418a 100644 --- a/SysML2.NET/Core/AutoGenDto/InterfaceDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/InterfaceDefinition.cs @@ -62,7 +62,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List AssociationEnd { get; internal set; } + public List associationEnd { get; internal set; } = []; /// /// The Usages that define the things related by the ConnectionDefinition. @@ -71,7 +71,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] [RedefinedByProperty("IInterfaceDefinition.InterfaceEnd")] [Implements(implementation: "IConnectionDefinition.ConnectionEnd")] - public List ConnectionEnd { get; internal set; } + public List connectionEnd { get; internal set; } = []; /// /// The declared name of this Element. @@ -101,7 +101,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -109,7 +109,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -118,7 +118,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -127,7 +127,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -144,7 +144,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -152,7 +152,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -161,7 +161,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -169,7 +169,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -177,7 +177,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -186,7 +186,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -194,7 +194,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The PortUsages that are the connectionEnds of this InterfaceDefinition. @@ -202,7 +202,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1565496234915_779221_26664", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591476421094_685440_682")] [Implements(implementation: "IInterfaceDefinition.InterfaceEnd")] - public List InterfaceEnd { get; internal set; } + public List interfaceEnd { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -215,7 +215,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -230,7 +230,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -263,7 +263,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// A ConnectionDefinition always has isSufficient = true. @@ -271,7 +271,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_2022x_2_12e503d9_1734734871008_462076_156", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1564072709069_937523_30797")] [Implements(implementation: "IConnectionDefinition.IsSufficient")] - bool Systems.Connections.IConnectionDefinition.IsSufficient { get; set; } = true; + public bool IsSufficient { get; set; } = true; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -300,7 +300,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -308,7 +308,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -318,7 +318,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -328,7 +328,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -336,7 +336,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -344,7 +344,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -352,7 +352,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -360,7 +360,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -370,7 +370,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -378,7 +378,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -386,7 +386,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -394,7 +394,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -402,7 +402,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -411,7 +411,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -421,7 +421,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -429,7 +429,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -439,7 +439,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -449,7 +449,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -457,7 +457,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -466,7 +466,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -474,7 +474,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -482,7 +482,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -492,7 +492,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -500,7 +500,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -510,7 +510,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -518,7 +518,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -527,7 +527,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -535,7 +535,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -544,7 +544,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -555,7 +555,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -563,7 +563,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -571,7 +571,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -579,7 +579,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -587,7 +587,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -595,7 +595,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -619,7 +619,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -627,7 +627,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -637,7 +637,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -645,7 +645,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -654,7 +654,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -662,7 +662,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -671,7 +671,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -680,7 +680,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -688,7 +688,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -696,7 +696,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -704,7 +704,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -712,7 +712,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -720,7 +720,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -729,7 +729,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -738,7 +738,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -766,7 +766,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -775,7 +775,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -784,7 +784,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List RelatedType { get; internal set; } + public List relatedType { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -794,7 +794,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -812,7 +812,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public Guid? SourceType { get; internal set; } + public Guid? sourceType { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -831,7 +831,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List TargetType { get; internal set; } + public List targetType { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -840,7 +840,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -851,7 +851,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -859,7 +859,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -868,7 +868,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -878,7 +878,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs b/SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs index 45f16b124..f0bbbdf96 100644 --- a/SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs @@ -62,7 +62,7 @@ public partial class InterfaceUsage : IInterfaceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - public List Association { get; internal set; } + public List association { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -74,7 +74,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The AssociationStructures that are the types of this ConnectionUsage. Nominally, these are , but @@ -86,7 +86,7 @@ public partial class InterfaceUsage : IInterfaceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedByProperty("IInterfaceUsage.InterfaceDefinition")] [Implements(implementation: "IConnectionUsage.ConnectionDefinition")] - public List ConnectionDefinition { get; internal set; } + public List connectionDefinition { get; internal set; } = []; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -96,7 +96,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List ConnectorEnd { get; internal set; } + public List connectorEnd { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -106,7 +106,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -132,7 +132,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public Guid? DefaultFeaturingType { get; internal set; } + public Guid? defaultFeaturingType { get; internal set; } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -143,7 +143,7 @@ public partial class InterfaceUsage : IInterfaceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -156,7 +156,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -164,7 +164,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -173,7 +173,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -190,7 +190,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -207,7 +207,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -217,7 +217,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -225,7 +225,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -234,14 +234,14 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -251,7 +251,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -259,7 +259,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -267,7 +267,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -275,7 +275,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -284,7 +284,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -292,7 +292,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The InterfaceDefinitions that type this InterfaceUsage. @@ -300,7 +300,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1565499418349_431355_28798", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594853499656_139435_802")] [Implements(implementation: "IInterfaceUsage.InterfaceDefinition")] - public List InterfaceDefinition { get; internal set; } + public List interfaceDefinition { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -313,7 +313,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -337,7 +337,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -400,7 +400,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -422,7 +422,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -468,7 +468,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List ItemDefinition { get; internal set; } + public List itemDefinition { get; internal set; } = []; /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -481,7 +481,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -489,7 +489,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -497,7 +497,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -507,7 +507,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -517,7 +517,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -525,7 +525,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -533,7 +533,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -541,7 +541,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -549,7 +549,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -557,7 +557,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -565,7 +565,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -573,7 +573,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -583,7 +583,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -591,7 +591,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -599,7 +599,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -607,7 +607,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -615,7 +615,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -623,7 +623,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -631,7 +631,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -639,7 +639,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -647,7 +647,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -655,7 +655,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -663,7 +663,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -671,7 +671,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -679,7 +679,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -687,7 +687,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -695,7 +695,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -704,7 +704,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -712,7 +712,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -720,7 +720,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -728,7 +728,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -736,7 +736,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -746,7 +746,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -754,7 +754,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -764,7 +764,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -773,7 +773,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -782,7 +782,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -792,7 +792,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -802,7 +802,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -810,7 +810,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -819,7 +819,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -827,7 +827,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -837,7 +837,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -847,7 +847,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -857,7 +857,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -867,7 +867,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -876,7 +876,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -885,7 +885,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -896,7 +896,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -905,7 +905,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -914,7 +914,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -940,7 +940,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -950,7 +950,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -960,7 +960,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -970,7 +970,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -979,7 +979,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -987,7 +987,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -996,7 +996,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1004,7 +1004,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1013,7 +1013,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1022,7 +1022,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -1048,7 +1048,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1056,7 +1056,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The itemDefinitions of this PartUsage that are PartDefinitions. @@ -1064,7 +1064,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1591475180488_929065_121", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List PartDefinition { get; internal set; } + public List partDefinition { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1085,7 +1085,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1094,7 +1094,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1103,7 +1103,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List RelatedFeature { get; internal set; } + public List relatedFeature { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1113,7 +1113,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1131,7 +1131,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public Guid? SourceFeature { get; internal set; } + public Guid? sourceFeature { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1150,7 +1150,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List TargetFeature { get; internal set; } + public List targetFeature { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -1159,7 +1159,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1170,7 +1170,7 @@ public partial class InterfaceUsage : IInterfaceUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1181,7 +1181,7 @@ public partial class InterfaceUsage : IInterfaceUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1189,7 +1189,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1198,7 +1198,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1207,7 +1207,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Intersecting.cs b/SysML2.NET/Core/AutoGenDto/Intersecting.cs index 89d2f8fb8..0d06edaf3 100644 --- a/SysML2.NET/Core/AutoGenDto/Intersecting.cs +++ b/SysML2.NET/Core/AutoGenDto/Intersecting.cs @@ -77,7 +77,7 @@ public partial class Intersecting : IIntersecting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -120,7 +120,7 @@ public partial class Intersecting : IIntersecting /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -130,7 +130,7 @@ public partial class Intersecting : IIntersecting /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -140,7 +140,7 @@ public partial class Intersecting : IIntersecting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -148,7 +148,7 @@ public partial class Intersecting : IIntersecting /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -172,7 +172,7 @@ public partial class Intersecting : IIntersecting /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -181,7 +181,7 @@ public partial class Intersecting : IIntersecting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -190,7 +190,7 @@ public partial class Intersecting : IIntersecting [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -218,7 +218,7 @@ public partial class Intersecting : IIntersecting /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -226,7 +226,7 @@ public partial class Intersecting : IIntersecting /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -236,7 +236,7 @@ public partial class Intersecting : IIntersecting /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -263,7 +263,7 @@ public partial class Intersecting : IIntersecting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Type with interpretations partly determined by intersectingType, as described in @@ -273,7 +273,7 @@ public partial class Intersecting : IIntersecting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IIntersecting.TypeIntersected")] - public Guid TypeIntersected { get; internal set; } + public Guid typeIntersected { get; internal set; } } } diff --git a/SysML2.NET/Core/AutoGenDto/Invariant.cs b/SysML2.NET/Core/AutoGenDto/Invariant.cs index 08651cb92..bcc453843 100644 --- a/SysML2.NET/Core/AutoGenDto/Invariant.cs +++ b/SysML2.NET/Core/AutoGenDto/Invariant.cs @@ -61,7 +61,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -73,7 +73,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -83,7 +83,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -113,7 +113,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -122,7 +122,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -139,7 +139,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -155,7 +155,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -165,7 +165,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -173,7 +173,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -182,14 +182,14 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -199,7 +199,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -208,7 +208,7 @@ public partial class Invariant : IInvariant [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -216,7 +216,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -224,7 +224,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -233,7 +233,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -241,7 +241,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -254,7 +254,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -278,7 +278,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -325,7 +325,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -333,7 +333,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether this Invariant is asserted to be false rather than true. @@ -390,7 +390,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -398,7 +398,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -408,7 +408,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -418,7 +418,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -426,7 +426,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -436,7 +436,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -445,7 +445,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -454,7 +454,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -464,7 +464,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -474,7 +474,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -482,7 +482,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -491,7 +491,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -499,7 +499,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -509,7 +509,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -519,7 +519,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -529,7 +529,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -539,7 +539,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -548,7 +548,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -557,7 +557,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -568,7 +568,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -577,7 +577,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -586,7 +586,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -604,7 +604,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -614,7 +614,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -624,7 +624,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -634,7 +634,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -643,7 +643,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -651,7 +651,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -659,7 +659,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -668,7 +668,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -677,7 +677,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -695,7 +695,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -704,7 +704,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The Predicate that types the Expression. @@ -712,7 +712,7 @@ public partial class Invariant : IInvariant [Property(xmiId: "_19_0_2_12e503d9_1578025035149_386_969", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? Predicate { get; internal set; } + public Guid? predicate { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -724,7 +724,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -735,7 +735,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -745,7 +745,7 @@ public partial class Invariant : IInvariant /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -754,7 +754,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -764,7 +764,7 @@ public partial class Invariant : IInvariant /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -775,7 +775,7 @@ public partial class Invariant : IInvariant /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/InvocationExpression.cs b/SysML2.NET/Core/AutoGenDto/InvocationExpression.cs index 67ac5ef27..8c48a74b3 100644 --- a/SysML2.NET/Core/AutoGenDto/InvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/InvocationExpression.cs @@ -65,7 +65,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List Argument { get; internal set; } + public List argument { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -74,7 +74,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -86,7 +86,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -96,7 +96,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -126,7 +126,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -135,7 +135,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -152,7 +152,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -168,7 +168,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -178,7 +178,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -186,7 +186,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -195,14 +195,14 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -212,7 +212,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -220,7 +220,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -228,7 +228,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -236,7 +236,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -245,7 +245,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -253,7 +253,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Type that is being instantiated. @@ -261,7 +261,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public Guid InstantiatedType { get; internal set; } + public Guid instantiatedType { get; internal set; } /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -274,7 +274,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -298,7 +298,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -345,7 +345,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -353,7 +353,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -403,7 +403,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -411,7 +411,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -421,7 +421,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -431,7 +431,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -439,7 +439,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -449,7 +449,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -458,7 +458,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -467,7 +467,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -477,7 +477,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -487,7 +487,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -495,7 +495,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -504,7 +504,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -512,7 +512,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -522,7 +522,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -532,7 +532,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -542,7 +542,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -552,7 +552,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -561,7 +561,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -570,7 +570,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -581,7 +581,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -590,7 +590,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -599,7 +599,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -617,7 +617,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -627,7 +627,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -637,7 +637,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -647,7 +647,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -656,7 +656,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -664,7 +664,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -672,7 +672,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -681,7 +681,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -690,7 +690,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -708,7 +708,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -717,7 +717,7 @@ public partial class InvocationExpression : IInvocationExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -729,7 +729,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -740,7 +740,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -750,7 +750,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -759,7 +759,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -769,7 +769,7 @@ public partial class InvocationExpression : IInvocationExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -780,7 +780,7 @@ public partial class InvocationExpression : IInvocationExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ItemDefinition.cs b/SysML2.NET/Core/AutoGenDto/ItemDefinition.cs index b5af0a707..6a30e0df9 100644 --- a/SysML2.NET/Core/AutoGenDto/ItemDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ItemDefinition.cs @@ -84,7 +84,7 @@ public partial class ItemDefinition : IItemDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -92,7 +92,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -101,7 +101,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -110,7 +110,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -126,7 +126,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -134,7 +134,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -143,7 +143,7 @@ public partial class ItemDefinition : IItemDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -151,7 +151,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -159,7 +159,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -168,7 +168,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -176,7 +176,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -189,7 +189,7 @@ public partial class ItemDefinition : IItemDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -204,7 +204,7 @@ public partial class ItemDefinition : IItemDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -229,7 +229,7 @@ public partial class ItemDefinition : IItemDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -257,7 +257,7 @@ public partial class ItemDefinition : IItemDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -265,7 +265,7 @@ public partial class ItemDefinition : IItemDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -275,7 +275,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -285,7 +285,7 @@ public partial class ItemDefinition : IItemDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -293,7 +293,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -301,7 +301,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -309,7 +309,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -317,7 +317,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -327,7 +327,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -335,7 +335,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -343,7 +343,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -351,7 +351,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -359,7 +359,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -368,7 +368,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -378,7 +378,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -386,7 +386,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -396,7 +396,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -406,7 +406,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -414,7 +414,7 @@ public partial class ItemDefinition : IItemDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -423,7 +423,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -431,7 +431,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -439,7 +439,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -449,7 +449,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -457,7 +457,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -467,7 +467,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -475,7 +475,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -484,7 +484,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -492,7 +492,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -501,7 +501,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -512,7 +512,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -520,7 +520,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -528,7 +528,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -536,7 +536,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -544,7 +544,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -552,7 +552,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -568,7 +568,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -576,7 +576,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -586,7 +586,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -594,7 +594,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -603,7 +603,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -611,7 +611,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -620,7 +620,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -629,7 +629,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -637,7 +637,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -645,7 +645,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -653,7 +653,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -661,7 +661,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -669,7 +669,7 @@ public partial class ItemDefinition : IItemDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -678,7 +678,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -687,7 +687,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -707,7 +707,7 @@ public partial class ItemDefinition : IItemDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -717,7 +717,7 @@ public partial class ItemDefinition : IItemDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -726,7 +726,7 @@ public partial class ItemDefinition : IItemDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -737,7 +737,7 @@ public partial class ItemDefinition : IItemDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -745,7 +745,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -754,7 +754,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -764,7 +764,7 @@ public partial class ItemDefinition : IItemDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ItemUsage.cs b/SysML2.NET/Core/AutoGenDto/ItemUsage.cs index 87cdeb5f8..d3c49906f 100644 --- a/SysML2.NET/Core/AutoGenDto/ItemUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ItemUsage.cs @@ -67,7 +67,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -77,7 +77,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -105,7 +105,7 @@ public partial class ItemUsage : IItemUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -118,7 +118,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -126,7 +126,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -135,7 +135,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -152,7 +152,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -168,7 +168,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -178,7 +178,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -186,7 +186,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -195,14 +195,14 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -212,7 +212,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -220,7 +220,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -228,7 +228,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -236,7 +236,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -245,7 +245,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -253,7 +253,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -266,7 +266,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -290,7 +290,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -345,7 +345,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -367,7 +367,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -413,7 +413,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List ItemDefinition { get; internal set; } + public List itemDefinition { get; internal set; } = []; /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -426,7 +426,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -434,7 +434,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -442,7 +442,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -452,7 +452,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -462,7 +462,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -470,7 +470,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -478,7 +478,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -486,7 +486,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -494,7 +494,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -502,7 +502,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -510,7 +510,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -518,7 +518,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -528,7 +528,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -536,7 +536,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -544,7 +544,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -552,7 +552,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -560,7 +560,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -568,7 +568,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -576,7 +576,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -584,7 +584,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -592,7 +592,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -600,7 +600,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -608,7 +608,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -616,7 +616,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -624,7 +624,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -632,7 +632,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -640,7 +640,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -649,7 +649,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -657,7 +657,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -665,7 +665,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -673,7 +673,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -681,7 +681,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -691,7 +691,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -699,7 +699,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -709,7 +709,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -718,7 +718,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -727,7 +727,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -737,7 +737,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -747,7 +747,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -755,7 +755,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -764,7 +764,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -772,7 +772,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -782,7 +782,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -792,7 +792,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -802,7 +802,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -812,7 +812,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -821,7 +821,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -830,7 +830,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -841,7 +841,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -850,7 +850,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -859,7 +859,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -877,7 +877,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -887,7 +887,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -897,7 +897,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -907,7 +907,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -916,7 +916,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -924,7 +924,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -933,7 +933,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -941,7 +941,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -950,7 +950,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -959,7 +959,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -977,7 +977,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -985,7 +985,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1006,7 +1006,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1016,7 +1016,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1025,7 +1025,7 @@ public partial class ItemUsage : IItemUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1036,7 +1036,7 @@ public partial class ItemUsage : IItemUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1047,7 +1047,7 @@ public partial class ItemUsage : IItemUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1055,7 +1055,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1064,7 +1064,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1073,7 +1073,7 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/JoinNode.cs b/SysML2.NET/Core/AutoGenDto/JoinNode.cs index ab358e7a0..6d2553f84 100644 --- a/SysML2.NET/Core/AutoGenDto/JoinNode.cs +++ b/SysML2.NET/Core/AutoGenDto/JoinNode.cs @@ -56,7 +56,7 @@ public partial class JoinNode : IJoinNode [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -72,7 +72,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -84,7 +84,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -94,7 +94,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -122,7 +122,7 @@ public partial class JoinNode : IJoinNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -135,7 +135,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -144,7 +144,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -153,7 +153,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -170,7 +170,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -186,7 +186,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -196,7 +196,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -204,7 +204,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -213,14 +213,14 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -230,7 +230,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -238,7 +238,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -246,7 +246,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -254,7 +254,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -263,7 +263,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -271,7 +271,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -284,7 +284,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -308,7 +308,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -363,7 +363,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -385,7 +385,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -434,7 +434,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -442,7 +442,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -450,7 +450,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -460,7 +460,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -470,7 +470,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -478,7 +478,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -486,7 +486,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -494,7 +494,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -502,7 +502,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -510,7 +510,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -518,7 +518,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -526,7 +526,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -536,7 +536,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -544,7 +544,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -552,7 +552,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -560,7 +560,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -568,7 +568,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -576,7 +576,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -584,7 +584,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -592,7 +592,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -600,7 +600,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -608,7 +608,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -616,7 +616,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -624,7 +624,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -632,7 +632,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -640,7 +640,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -648,7 +648,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -657,7 +657,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -665,7 +665,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -673,7 +673,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -681,7 +681,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -689,7 +689,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -700,7 +700,7 @@ public partial class JoinNode : IJoinNode [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -708,7 +708,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -718,7 +718,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -727,7 +727,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -736,7 +736,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -746,7 +746,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -756,7 +756,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -764,7 +764,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -773,7 +773,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -781,7 +781,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -791,7 +791,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -801,7 +801,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -811,7 +811,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -821,7 +821,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -830,7 +830,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -839,7 +839,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -850,7 +850,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -859,7 +859,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -868,7 +868,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -886,7 +886,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -896,7 +896,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -906,7 +906,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -916,7 +916,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -925,7 +925,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -933,7 +933,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -942,7 +942,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -950,7 +950,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -959,7 +959,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -968,7 +968,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -986,7 +986,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -994,7 +994,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1003,7 +1003,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1024,7 +1024,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1034,7 +1034,7 @@ public partial class JoinNode : IJoinNode /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1043,7 +1043,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1054,7 +1054,7 @@ public partial class JoinNode : IJoinNode [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1065,7 +1065,7 @@ public partial class JoinNode : IJoinNode /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1073,7 +1073,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1082,7 +1082,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1091,7 +1091,7 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/LibraryPackage.cs b/SysML2.NET/Core/AutoGenDto/LibraryPackage.cs index 8ddf7b879..2dff89d77 100644 --- a/SysML2.NET/Core/AutoGenDto/LibraryPackage.cs +++ b/SysML2.NET/Core/AutoGenDto/LibraryPackage.cs @@ -76,7 +76,7 @@ public partial class LibraryPackage : ILibraryPackage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -93,7 +93,7 @@ public partial class LibraryPackage : ILibraryPackage [Property(xmiId: "_19_0_4_12e503d9_1607033896050_867332_6206", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IPackage.FilterCondition")] - public List FilterCondition { get; internal set; } + public List filterCondition { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -101,7 +101,7 @@ public partial class LibraryPackage : ILibraryPackage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -119,7 +119,7 @@ public partial class LibraryPackage : ILibraryPackage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this LibraryPackage contains a standard library model. This should only be set to true for @@ -136,7 +136,7 @@ public partial class LibraryPackage : ILibraryPackage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -144,7 +144,7 @@ public partial class LibraryPackage : ILibraryPackage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -154,7 +154,7 @@ public partial class LibraryPackage : ILibraryPackage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -164,7 +164,7 @@ public partial class LibraryPackage : ILibraryPackage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -172,7 +172,7 @@ public partial class LibraryPackage : ILibraryPackage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -182,7 +182,7 @@ public partial class LibraryPackage : ILibraryPackage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -191,7 +191,7 @@ public partial class LibraryPackage : ILibraryPackage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -202,7 +202,7 @@ public partial class LibraryPackage : ILibraryPackage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -218,7 +218,7 @@ public partial class LibraryPackage : ILibraryPackage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -227,7 +227,7 @@ public partial class LibraryPackage : ILibraryPackage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -236,7 +236,7 @@ public partial class LibraryPackage : ILibraryPackage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -256,7 +256,7 @@ public partial class LibraryPackage : ILibraryPackage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -266,7 +266,7 @@ public partial class LibraryPackage : ILibraryPackage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -275,7 +275,7 @@ public partial class LibraryPackage : ILibraryPackage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs b/SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs index 4c822417b..460d2ff47 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs @@ -60,7 +60,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -72,7 +72,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -82,7 +82,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -121,7 +121,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -138,7 +138,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -154,7 +154,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -164,7 +164,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -172,7 +172,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -181,14 +181,14 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -198,7 +198,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -206,7 +206,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -214,7 +214,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -222,7 +222,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -231,7 +231,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -239,7 +239,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -252,7 +252,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -276,7 +276,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -323,7 +323,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -331,7 +331,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -381,7 +381,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -389,7 +389,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -399,7 +399,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -409,7 +409,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -417,7 +417,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -427,7 +427,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -436,7 +436,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -445,7 +445,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -455,7 +455,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -465,7 +465,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -473,7 +473,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -482,7 +482,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -490,7 +490,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -500,7 +500,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -510,7 +510,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -520,7 +520,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -530,7 +530,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -539,7 +539,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -548,7 +548,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -559,7 +559,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -568,7 +568,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -577,7 +577,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -595,7 +595,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -605,7 +605,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -615,7 +615,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -625,7 +625,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -634,7 +634,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -642,7 +642,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -650,7 +650,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -659,7 +659,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -668,7 +668,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -686,7 +686,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -695,7 +695,7 @@ public partial class LiteralBoolean : ILiteralBoolean [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -707,7 +707,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -718,7 +718,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -728,7 +728,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -737,7 +737,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -747,7 +747,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -758,7 +758,7 @@ public partial class LiteralBoolean : ILiteralBoolean /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Boolean value that is the result of evaluating this LiteralBoolean. diff --git a/SysML2.NET/Core/AutoGenDto/LiteralExpression.cs b/SysML2.NET/Core/AutoGenDto/LiteralExpression.cs index a8114bf0a..95dd119c7 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralExpression.cs @@ -60,7 +60,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -72,7 +72,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -82,7 +82,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -121,7 +121,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -138,7 +138,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -154,7 +154,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -164,7 +164,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -172,7 +172,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -181,14 +181,14 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -198,7 +198,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -206,7 +206,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -214,7 +214,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -222,7 +222,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -231,7 +231,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -239,7 +239,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -252,7 +252,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -276,7 +276,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -323,7 +323,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -331,7 +331,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -381,7 +381,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -389,7 +389,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -399,7 +399,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -409,7 +409,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -417,7 +417,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -427,7 +427,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -436,7 +436,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -445,7 +445,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -455,7 +455,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -465,7 +465,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -473,7 +473,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -482,7 +482,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -490,7 +490,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -500,7 +500,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -510,7 +510,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -520,7 +520,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -530,7 +530,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -539,7 +539,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -548,7 +548,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -559,7 +559,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -568,7 +568,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -577,7 +577,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -595,7 +595,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -605,7 +605,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -615,7 +615,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -625,7 +625,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -634,7 +634,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -642,7 +642,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -650,7 +650,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -659,7 +659,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -668,7 +668,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -686,7 +686,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -695,7 +695,7 @@ public partial class LiteralExpression : ILiteralExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -707,7 +707,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -718,7 +718,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -728,7 +728,7 @@ public partial class LiteralExpression : ILiteralExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -737,7 +737,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -747,7 +747,7 @@ public partial class LiteralExpression : ILiteralExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -758,7 +758,7 @@ public partial class LiteralExpression : ILiteralExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs b/SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs index fa2449e27..10d62150b 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs @@ -60,7 +60,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -72,7 +72,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -82,7 +82,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -121,7 +121,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -138,7 +138,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -154,7 +154,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -164,7 +164,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -172,7 +172,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -181,14 +181,14 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -198,7 +198,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -206,7 +206,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -214,7 +214,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -222,7 +222,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -231,7 +231,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -239,7 +239,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -252,7 +252,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -276,7 +276,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -323,7 +323,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -331,7 +331,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -381,7 +381,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -389,7 +389,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -399,7 +399,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -409,7 +409,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -417,7 +417,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -427,7 +427,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -436,7 +436,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -445,7 +445,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -455,7 +455,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -465,7 +465,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -473,7 +473,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -482,7 +482,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -490,7 +490,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -500,7 +500,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -510,7 +510,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -520,7 +520,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -530,7 +530,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -539,7 +539,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -548,7 +548,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -559,7 +559,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -568,7 +568,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -577,7 +577,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -595,7 +595,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -605,7 +605,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -615,7 +615,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -625,7 +625,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -634,7 +634,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -642,7 +642,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -650,7 +650,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -659,7 +659,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -668,7 +668,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -686,7 +686,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -695,7 +695,7 @@ public partial class LiteralInfinity : ILiteralInfinity [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -707,7 +707,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -718,7 +718,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -728,7 +728,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -737,7 +737,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -747,7 +747,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -758,7 +758,7 @@ public partial class LiteralInfinity : ILiteralInfinity /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/LiteralInteger.cs b/SysML2.NET/Core/AutoGenDto/LiteralInteger.cs index 7a8908d68..74af44a3f 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralInteger.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralInteger.cs @@ -60,7 +60,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -72,7 +72,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -82,7 +82,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -121,7 +121,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -138,7 +138,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -154,7 +154,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -164,7 +164,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -172,7 +172,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -181,14 +181,14 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -198,7 +198,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -206,7 +206,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -214,7 +214,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -222,7 +222,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -231,7 +231,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -239,7 +239,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -252,7 +252,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -276,7 +276,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -323,7 +323,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -331,7 +331,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -381,7 +381,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -389,7 +389,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -399,7 +399,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -409,7 +409,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -417,7 +417,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -427,7 +427,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -436,7 +436,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -445,7 +445,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -455,7 +455,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -465,7 +465,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -473,7 +473,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -482,7 +482,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -490,7 +490,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -500,7 +500,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -510,7 +510,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -520,7 +520,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -530,7 +530,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -539,7 +539,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -548,7 +548,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -559,7 +559,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -568,7 +568,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -577,7 +577,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -595,7 +595,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -605,7 +605,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -615,7 +615,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -625,7 +625,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -634,7 +634,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -642,7 +642,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -650,7 +650,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -659,7 +659,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -668,7 +668,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -686,7 +686,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -695,7 +695,7 @@ public partial class LiteralInteger : ILiteralInteger [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -707,7 +707,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -718,7 +718,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -728,7 +728,7 @@ public partial class LiteralInteger : ILiteralInteger /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -737,7 +737,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -747,7 +747,7 @@ public partial class LiteralInteger : ILiteralInteger /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -758,7 +758,7 @@ public partial class LiteralInteger : ILiteralInteger /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Integer value that is the result of evaluating this LiteralInteger. diff --git a/SysML2.NET/Core/AutoGenDto/LiteralRational.cs b/SysML2.NET/Core/AutoGenDto/LiteralRational.cs index f3e0347f1..1423b7b95 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralRational.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralRational.cs @@ -60,7 +60,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -72,7 +72,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -82,7 +82,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -121,7 +121,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -138,7 +138,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -154,7 +154,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -164,7 +164,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -172,7 +172,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -181,14 +181,14 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -198,7 +198,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -206,7 +206,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -214,7 +214,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -222,7 +222,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -231,7 +231,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -239,7 +239,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -252,7 +252,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -276,7 +276,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -323,7 +323,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -331,7 +331,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -381,7 +381,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -389,7 +389,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -399,7 +399,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -409,7 +409,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -417,7 +417,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -427,7 +427,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -436,7 +436,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -445,7 +445,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -455,7 +455,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -465,7 +465,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -473,7 +473,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -482,7 +482,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -490,7 +490,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -500,7 +500,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -510,7 +510,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -520,7 +520,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -530,7 +530,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -539,7 +539,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -548,7 +548,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -559,7 +559,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -568,7 +568,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -577,7 +577,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -595,7 +595,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -605,7 +605,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -615,7 +615,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -625,7 +625,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -634,7 +634,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -642,7 +642,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -650,7 +650,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -659,7 +659,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -668,7 +668,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -686,7 +686,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -695,7 +695,7 @@ public partial class LiteralRational : ILiteralRational [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -707,7 +707,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -718,7 +718,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -728,7 +728,7 @@ public partial class LiteralRational : ILiteralRational /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -737,7 +737,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -747,7 +747,7 @@ public partial class LiteralRational : ILiteralRational /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -758,7 +758,7 @@ public partial class LiteralRational : ILiteralRational /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The value whose rational approximation is the result of evaluating this LiteralRational. diff --git a/SysML2.NET/Core/AutoGenDto/LiteralString.cs b/SysML2.NET/Core/AutoGenDto/LiteralString.cs index d2b683eb4..34135decb 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralString.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralString.cs @@ -60,7 +60,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -72,7 +72,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -82,7 +82,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -121,7 +121,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -138,7 +138,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -154,7 +154,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -164,7 +164,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -172,7 +172,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -181,14 +181,14 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -198,7 +198,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -206,7 +206,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -214,7 +214,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -222,7 +222,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -231,7 +231,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -239,7 +239,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -252,7 +252,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -276,7 +276,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -323,7 +323,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -331,7 +331,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -381,7 +381,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -389,7 +389,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -399,7 +399,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -409,7 +409,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -417,7 +417,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -427,7 +427,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -436,7 +436,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -445,7 +445,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -455,7 +455,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -465,7 +465,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -473,7 +473,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -482,7 +482,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -490,7 +490,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -500,7 +500,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -510,7 +510,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -520,7 +520,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -530,7 +530,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -539,7 +539,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -548,7 +548,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -559,7 +559,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -568,7 +568,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -577,7 +577,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -595,7 +595,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -605,7 +605,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -615,7 +615,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -625,7 +625,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -634,7 +634,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -642,7 +642,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -650,7 +650,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -659,7 +659,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -668,7 +668,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -686,7 +686,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -695,7 +695,7 @@ public partial class LiteralString : ILiteralString [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -707,7 +707,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -718,7 +718,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -728,7 +728,7 @@ public partial class LiteralString : ILiteralString /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -737,7 +737,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -747,7 +747,7 @@ public partial class LiteralString : ILiteralString /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -758,7 +758,7 @@ public partial class LiteralString : ILiteralString /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The String value that is the result of evaluating this Expression. diff --git a/SysML2.NET/Core/AutoGenDto/Membership.cs b/SysML2.NET/Core/AutoGenDto/Membership.cs index 44fd96aee..862883ed5 100644 --- a/SysML2.NET/Core/AutoGenDto/Membership.cs +++ b/SysML2.NET/Core/AutoGenDto/Membership.cs @@ -83,7 +83,7 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -117,7 +117,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -132,7 +132,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -149,7 +149,7 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -166,7 +166,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -176,7 +176,7 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -184,7 +184,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -208,7 +208,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -217,7 +217,7 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -226,7 +226,7 @@ public partial class Membership : IMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -254,7 +254,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -262,7 +262,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -272,7 +272,7 @@ public partial class Membership : IMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -299,7 +299,7 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -307,7 +307,7 @@ public partial class Membership : IMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/MembershipExpose.cs b/SysML2.NET/Core/AutoGenDto/MembershipExpose.cs index 25525b783..1109c11e5 100644 --- a/SysML2.NET/Core/AutoGenDto/MembershipExpose.cs +++ b/SysML2.NET/Core/AutoGenDto/MembershipExpose.cs @@ -78,7 +78,7 @@ public partial class MembershipExpose : IMembershipExpose [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -94,7 +94,7 @@ public partial class MembershipExpose : IMembershipExpose /// [Property(xmiId: "_19_0_4_12e503d9_1668801846848_909736_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IImport.ImportedElement")] - public Guid ImportedElement { get; internal set; } + public Guid importedElement { get; internal set; } /// /// The Membership to be imported. @@ -112,7 +112,7 @@ public partial class MembershipExpose : IMembershipExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IImport.ImportOwningNamespace")] - public Guid ImportOwningNamespace { get; internal set; } + public Guid importOwningNamespace { get; internal set; } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -147,14 +147,14 @@ public partial class MembershipExpose : IMembershipExpose [Property(xmiId: "_19_0_4_12e503d9_1622578615027_762161_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622577942205_869984_64")] [Implements(implementation: "IExpose.IsImportAll")] - bool IExpose.IsImportAll { get; set; } = true; + public bool IsImportAll { get; set; } = true; /// /// Whether this Element is contained in the ownership tree of a library model. /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether to recursively import Memberships from visible, owned sub-Namespaces. @@ -171,7 +171,7 @@ public partial class MembershipExpose : IMembershipExpose /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -181,7 +181,7 @@ public partial class MembershipExpose : IMembershipExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -189,7 +189,7 @@ public partial class MembershipExpose : IMembershipExpose /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -213,7 +213,7 @@ public partial class MembershipExpose : IMembershipExpose /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -222,7 +222,7 @@ public partial class MembershipExpose : IMembershipExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -231,7 +231,7 @@ public partial class MembershipExpose : IMembershipExpose [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -259,7 +259,7 @@ public partial class MembershipExpose : IMembershipExpose /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -267,7 +267,7 @@ public partial class MembershipExpose : IMembershipExpose /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -277,7 +277,7 @@ public partial class MembershipExpose : IMembershipExpose /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -304,7 +304,7 @@ public partial class MembershipExpose : IMembershipExpose [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The visibility level of the imported members from this Import relative to the importOwningNamespace. @@ -313,7 +313,7 @@ public partial class MembershipExpose : IMembershipExpose [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")] [RedefinedByProperty("IExpose.Visibility")] [Implements(implementation: "IImport.Visibility")] - VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } + VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } = VisibilityKind.Private; /// /// An Expose always has protected visibility. @@ -321,7 +321,7 @@ public partial class MembershipExpose : IMembershipExpose [Property(xmiId: "_2022x_2_12e503d9_1720469034555_222060_1140", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "protected")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674976_798509_43257")] [Implements(implementation: "IExpose.Visibility")] - VisibilityKind IExpose.Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Protected; } } diff --git a/SysML2.NET/Core/AutoGenDto/MembershipImport.cs b/SysML2.NET/Core/AutoGenDto/MembershipImport.cs index 0fd8942a0..d21d2ac88 100644 --- a/SysML2.NET/Core/AutoGenDto/MembershipImport.cs +++ b/SysML2.NET/Core/AutoGenDto/MembershipImport.cs @@ -78,7 +78,7 @@ public partial class MembershipImport : IMembershipImport [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -94,7 +94,7 @@ public partial class MembershipImport : IMembershipImport /// [Property(xmiId: "_19_0_4_12e503d9_1668801846848_909736_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IImport.ImportedElement")] - public Guid ImportedElement { get; internal set; } + public Guid importedElement { get; internal set; } /// /// The Membership to be imported. @@ -112,7 +112,7 @@ public partial class MembershipImport : IMembershipImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IImport.ImportOwningNamespace")] - public Guid ImportOwningNamespace { get; internal set; } + public Guid importOwningNamespace { get; internal set; } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -145,7 +145,7 @@ public partial class MembershipImport : IMembershipImport /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether to recursively import Memberships from visible, owned sub-Namespaces. @@ -162,7 +162,7 @@ public partial class MembershipImport : IMembershipImport /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -172,7 +172,7 @@ public partial class MembershipImport : IMembershipImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -180,7 +180,7 @@ public partial class MembershipImport : IMembershipImport /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -204,7 +204,7 @@ public partial class MembershipImport : IMembershipImport /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -213,7 +213,7 @@ public partial class MembershipImport : IMembershipImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -222,7 +222,7 @@ public partial class MembershipImport : IMembershipImport [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -250,7 +250,7 @@ public partial class MembershipImport : IMembershipImport /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -258,7 +258,7 @@ public partial class MembershipImport : IMembershipImport /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -268,7 +268,7 @@ public partial class MembershipImport : IMembershipImport /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -295,7 +295,7 @@ public partial class MembershipImport : IMembershipImport [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The visibility level of the imported members from this Import relative to the importOwningNamespace. @@ -303,7 +303,7 @@ public partial class MembershipImport : IMembershipImport /// [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")] [Implements(implementation: "IImport.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Private; } } diff --git a/SysML2.NET/Core/AutoGenDto/MergeNode.cs b/SysML2.NET/Core/AutoGenDto/MergeNode.cs index 438daad4c..4e5f0ebe5 100644 --- a/SysML2.NET/Core/AutoGenDto/MergeNode.cs +++ b/SysML2.NET/Core/AutoGenDto/MergeNode.cs @@ -56,7 +56,7 @@ public partial class MergeNode : IMergeNode [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -72,7 +72,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -84,7 +84,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -94,7 +94,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -122,7 +122,7 @@ public partial class MergeNode : IMergeNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -135,7 +135,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -144,7 +144,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -153,7 +153,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -170,7 +170,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -186,7 +186,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -196,7 +196,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -204,7 +204,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -213,14 +213,14 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -230,7 +230,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -238,7 +238,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -246,7 +246,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -254,7 +254,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -263,7 +263,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -271,7 +271,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -284,7 +284,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -308,7 +308,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -363,7 +363,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -385,7 +385,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -434,7 +434,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -442,7 +442,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -450,7 +450,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -460,7 +460,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -470,7 +470,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -478,7 +478,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -486,7 +486,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -494,7 +494,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -502,7 +502,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -510,7 +510,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -518,7 +518,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -526,7 +526,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -536,7 +536,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -544,7 +544,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -552,7 +552,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -560,7 +560,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -568,7 +568,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -576,7 +576,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -584,7 +584,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -592,7 +592,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -600,7 +600,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -608,7 +608,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -616,7 +616,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -624,7 +624,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -632,7 +632,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -640,7 +640,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -648,7 +648,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -657,7 +657,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -665,7 +665,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -673,7 +673,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -681,7 +681,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -689,7 +689,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -700,7 +700,7 @@ public partial class MergeNode : IMergeNode [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -708,7 +708,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -718,7 +718,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -727,7 +727,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -736,7 +736,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -746,7 +746,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -756,7 +756,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -764,7 +764,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -773,7 +773,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -781,7 +781,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -791,7 +791,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -801,7 +801,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -811,7 +811,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -821,7 +821,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -830,7 +830,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -839,7 +839,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -850,7 +850,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -859,7 +859,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -868,7 +868,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -886,7 +886,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -896,7 +896,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -906,7 +906,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -916,7 +916,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -925,7 +925,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -933,7 +933,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -942,7 +942,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -950,7 +950,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -959,7 +959,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -968,7 +968,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -986,7 +986,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -994,7 +994,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1003,7 +1003,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1024,7 +1024,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1034,7 +1034,7 @@ public partial class MergeNode : IMergeNode /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1043,7 +1043,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1054,7 +1054,7 @@ public partial class MergeNode : IMergeNode [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1065,7 +1065,7 @@ public partial class MergeNode : IMergeNode /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1073,7 +1073,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1082,7 +1082,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1091,7 +1091,7 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Metaclass.cs b/SysML2.NET/Core/AutoGenDto/Metaclass.cs index 848fc4f9d..39d7d34a1 100644 --- a/SysML2.NET/Core/AutoGenDto/Metaclass.cs +++ b/SysML2.NET/Core/AutoGenDto/Metaclass.cs @@ -80,7 +80,7 @@ public partial class Metaclass : IMetaclass /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -88,7 +88,7 @@ public partial class Metaclass : IMetaclass [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -97,7 +97,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -113,7 +113,7 @@ public partial class Metaclass : IMetaclass [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -121,7 +121,7 @@ public partial class Metaclass : IMetaclass [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -130,7 +130,7 @@ public partial class Metaclass : IMetaclass /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -138,7 +138,7 @@ public partial class Metaclass : IMetaclass [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -146,7 +146,7 @@ public partial class Metaclass : IMetaclass [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -155,7 +155,7 @@ public partial class Metaclass : IMetaclass [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -163,7 +163,7 @@ public partial class Metaclass : IMetaclass [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -176,7 +176,7 @@ public partial class Metaclass : IMetaclass /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -191,7 +191,7 @@ public partial class Metaclass : IMetaclass /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -209,7 +209,7 @@ public partial class Metaclass : IMetaclass /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -229,7 +229,7 @@ public partial class Metaclass : IMetaclass /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -237,7 +237,7 @@ public partial class Metaclass : IMetaclass /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -247,7 +247,7 @@ public partial class Metaclass : IMetaclass [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -257,7 +257,7 @@ public partial class Metaclass : IMetaclass /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -265,7 +265,7 @@ public partial class Metaclass : IMetaclass [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -275,7 +275,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -284,7 +284,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -294,7 +294,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -304,7 +304,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -312,7 +312,7 @@ public partial class Metaclass : IMetaclass /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -321,7 +321,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -329,7 +329,7 @@ public partial class Metaclass : IMetaclass [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -339,7 +339,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -349,7 +349,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -358,7 +358,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -367,7 +367,7 @@ public partial class Metaclass : IMetaclass [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -378,7 +378,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -396,7 +396,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -405,7 +405,7 @@ public partial class Metaclass : IMetaclass [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -414,7 +414,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -422,7 +422,7 @@ public partial class Metaclass : IMetaclass /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -431,7 +431,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -440,7 +440,7 @@ public partial class Metaclass : IMetaclass [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -460,7 +460,7 @@ public partial class Metaclass : IMetaclass /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -470,7 +470,7 @@ public partial class Metaclass : IMetaclass /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -479,7 +479,7 @@ public partial class Metaclass : IMetaclass [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -490,7 +490,7 @@ public partial class Metaclass : IMetaclass /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/MetadataAccessExpression.cs b/SysML2.NET/Core/AutoGenDto/MetadataAccessExpression.cs index 8480038c7..24de6c8bf 100644 --- a/SysML2.NET/Core/AutoGenDto/MetadataAccessExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/MetadataAccessExpression.cs @@ -63,7 +63,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -75,7 +75,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -85,7 +85,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -115,7 +115,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -124,7 +124,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -141,7 +141,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -157,7 +157,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -167,7 +167,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -175,7 +175,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -184,14 +184,14 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -201,7 +201,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -209,7 +209,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -217,7 +217,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -225,7 +225,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -234,7 +234,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -242,7 +242,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -255,7 +255,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -279,7 +279,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -326,7 +326,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -334,7 +334,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -384,7 +384,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -392,7 +392,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -402,7 +402,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -412,7 +412,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -420,7 +420,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -430,7 +430,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -439,7 +439,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -448,7 +448,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -458,7 +458,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -468,7 +468,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -476,7 +476,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -485,7 +485,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -493,7 +493,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -503,7 +503,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -513,7 +513,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -523,7 +523,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -533,7 +533,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -542,7 +542,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -551,7 +551,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -562,7 +562,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -571,7 +571,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -580,7 +580,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -598,7 +598,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -608,7 +608,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -618,7 +618,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -628,7 +628,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -637,7 +637,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -645,7 +645,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -653,7 +653,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -662,7 +662,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -671,7 +671,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -689,7 +689,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -698,7 +698,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -710,7 +710,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Element whose metadata is being accessed. @@ -718,7 +718,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [Property(xmiId: "_19_0_4_12e503d9_1665514131655_247232_1341", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IMetadataAccessExpression.ReferencedElement")] - public Guid ReferencedElement { get; internal set; } + public Guid referencedElement { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -729,7 +729,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -739,7 +739,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -748,7 +748,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -758,7 +758,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -769,7 +769,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/MetadataDefinition.cs b/SysML2.NET/Core/AutoGenDto/MetadataDefinition.cs index 784cb075a..ea1ce24eb 100644 --- a/SysML2.NET/Core/AutoGenDto/MetadataDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/MetadataDefinition.cs @@ -81,7 +81,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -89,7 +89,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -98,7 +98,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -107,7 +107,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -123,7 +123,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -131,7 +131,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -140,7 +140,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -148,7 +148,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -156,7 +156,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -165,7 +165,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -173,7 +173,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -186,7 +186,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -201,7 +201,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -226,7 +226,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -254,7 +254,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -262,7 +262,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -272,7 +272,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -282,7 +282,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -290,7 +290,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -298,7 +298,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -306,7 +306,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -314,7 +314,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -324,7 +324,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -332,7 +332,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -340,7 +340,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -348,7 +348,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -356,7 +356,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -365,7 +365,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -375,7 +375,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -383,7 +383,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -393,7 +393,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -403,7 +403,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -411,7 +411,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -420,7 +420,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -428,7 +428,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -436,7 +436,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -446,7 +446,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -454,7 +454,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -464,7 +464,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -472,7 +472,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -481,7 +481,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -489,7 +489,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -498,7 +498,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -509,7 +509,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -517,7 +517,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -525,7 +525,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -533,7 +533,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -541,7 +541,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -549,7 +549,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -565,7 +565,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -573,7 +573,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -583,7 +583,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -591,7 +591,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -600,7 +600,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -608,7 +608,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -617,7 +617,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -626,7 +626,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -634,7 +634,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -642,7 +642,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -650,7 +650,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -658,7 +658,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -666,7 +666,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -675,7 +675,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -684,7 +684,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -704,7 +704,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -714,7 +714,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -723,7 +723,7 @@ public partial class MetadataDefinition : IMetadataDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -734,7 +734,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -742,7 +742,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -751,7 +751,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -761,7 +761,7 @@ public partial class MetadataDefinition : IMetadataDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/MetadataFeature.cs b/SysML2.NET/Core/AutoGenDto/MetadataFeature.cs index 4ad5d9cc5..6b8cf5fd7 100644 --- a/SysML2.NET/Core/AutoGenDto/MetadataFeature.cs +++ b/SysML2.NET/Core/AutoGenDto/MetadataFeature.cs @@ -63,7 +63,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List AnnotatedElement { get; internal set; } + public List annotatedElement { get; internal set; } = []; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -72,7 +72,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List Annotation { get; internal set; } + public List annotation { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -84,7 +84,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -94,7 +94,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -124,7 +124,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -132,7 +132,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -149,7 +149,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -165,7 +165,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -175,7 +175,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -183,7 +183,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -192,14 +192,14 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -209,7 +209,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -217,7 +217,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -225,7 +225,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -234,7 +234,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -242,7 +242,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -255,7 +255,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -279,7 +279,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -326,7 +326,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -376,7 +376,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -384,7 +384,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// The type of this MetadataFeature, which must be a Metaclass. @@ -392,7 +392,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_19_0_4_12e503d9_1606345564958_925589_327", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IMetadataFeature.Metaclass")] - public Guid? Metaclass { get; internal set; } + public Guid? metaclass { get; internal set; } /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -402,7 +402,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -412,7 +412,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -420,7 +420,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -430,7 +430,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List OwnedAnnotatingRelationship { get; internal set; } + public List ownedAnnotatingRelationship { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -440,7 +440,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -449,7 +449,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -458,7 +458,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -468,7 +468,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -478,7 +478,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -486,7 +486,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -495,7 +495,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -503,7 +503,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -513,7 +513,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -523,7 +523,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -533,7 +533,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -543,7 +543,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -552,7 +552,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -561,7 +561,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -572,7 +572,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -581,7 +581,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -590,7 +590,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -608,7 +608,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -618,7 +618,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -628,7 +628,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -638,7 +638,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -647,7 +647,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -655,7 +655,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -664,7 +664,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public Guid? OwningAnnotatingRelationship { get; internal set; } + public Guid? owningAnnotatingRelationship { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -672,7 +672,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -681,7 +681,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -690,7 +690,7 @@ public partial class MetadataFeature : IMetadataFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -708,7 +708,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -720,7 +720,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -730,7 +730,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -739,7 +739,7 @@ public partial class MetadataFeature : IMetadataFeature [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -749,7 +749,7 @@ public partial class MetadataFeature : IMetadataFeature /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -760,7 +760,7 @@ public partial class MetadataFeature : IMetadataFeature /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/MetadataUsage.cs b/SysML2.NET/Core/AutoGenDto/MetadataUsage.cs index 29cd4a4f0..364a01c33 100644 --- a/SysML2.NET/Core/AutoGenDto/MetadataUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/MetadataUsage.cs @@ -65,7 +65,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List AnnotatedElement { get; internal set; } + public List annotatedElement { get; internal set; } = []; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -74,7 +74,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List Annotation { get; internal set; } + public List annotation { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -86,7 +86,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -96,7 +96,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -124,7 +124,7 @@ public partial class MetadataUsage : IMetadataUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -137,7 +137,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -145,7 +145,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -154,7 +154,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -171,7 +171,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -187,7 +187,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -197,7 +197,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -205,7 +205,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -214,14 +214,14 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -231,7 +231,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -239,7 +239,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -247,7 +247,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -255,7 +255,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -264,7 +264,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -272,7 +272,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -285,7 +285,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -309,7 +309,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -364,7 +364,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -386,7 +386,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -433,7 +433,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IMetadataUsage.MetadataDefinition")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List ItemDefinition { get; internal set; } + public List itemDefinition { get; internal set; } = []; /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -446,7 +446,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -454,7 +454,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -462,7 +462,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// The type of this MetadataFeature, which must be a Metaclass. @@ -471,7 +471,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IMetadataUsage.MetadataDefinition")] [Implements(implementation: "IMetadataFeature.Metaclass")] - public Guid? Metaclass { get; internal set; } + public Guid? metaclass { get; internal set; } /// /// The MetadataDefinition that is the definition of this MetadataUsage. @@ -480,7 +480,7 @@ public partial class MetadataUsage : IMetadataUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1606345564958_925589_327")] [Implements(implementation: "IMetadataUsage.MetadataDefinition")] - public Guid? MetadataDefinition { get; internal set; } + public Guid? metadataDefinition { get; internal set; } /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -490,7 +490,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -500,7 +500,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -508,7 +508,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -516,7 +516,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -524,7 +524,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -532,7 +532,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -540,7 +540,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -548,7 +548,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -556,7 +556,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -566,7 +566,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -574,7 +574,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -582,7 +582,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -590,7 +590,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -598,7 +598,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -606,7 +606,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -614,7 +614,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -622,7 +622,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -630,7 +630,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -638,7 +638,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -646,7 +646,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -654,7 +654,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -662,7 +662,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -670,7 +670,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -678,7 +678,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -687,7 +687,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -695,7 +695,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -703,7 +703,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -711,7 +711,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -719,7 +719,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -729,7 +729,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -737,7 +737,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -747,7 +747,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List OwnedAnnotatingRelationship { get; internal set; } + public List ownedAnnotatingRelationship { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -757,7 +757,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -766,7 +766,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -775,7 +775,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -785,7 +785,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -795,7 +795,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -803,7 +803,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -812,7 +812,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -820,7 +820,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -830,7 +830,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -840,7 +840,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -850,7 +850,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -860,7 +860,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -869,7 +869,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -878,7 +878,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -889,7 +889,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -898,7 +898,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -907,7 +907,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -925,7 +925,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -935,7 +935,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -945,7 +945,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -955,7 +955,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -964,7 +964,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -972,7 +972,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -981,7 +981,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public Guid? OwningAnnotatingRelationship { get; internal set; } + public Guid? owningAnnotatingRelationship { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -990,7 +990,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -998,7 +998,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1007,7 +1007,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1016,7 +1016,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1034,7 +1034,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1042,7 +1042,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1063,7 +1063,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1073,7 +1073,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1082,7 +1082,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1093,7 +1093,7 @@ public partial class MetadataUsage : IMetadataUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1104,7 +1104,7 @@ public partial class MetadataUsage : IMetadataUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1112,7 +1112,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1121,7 +1121,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1130,7 +1130,7 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Multiplicity.cs b/SysML2.NET/Core/AutoGenDto/Multiplicity.cs index 973c05ae6..eab429141 100644 --- a/SysML2.NET/Core/AutoGenDto/Multiplicity.cs +++ b/SysML2.NET/Core/AutoGenDto/Multiplicity.cs @@ -74,7 +74,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -84,7 +84,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -114,7 +114,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -122,7 +122,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -139,7 +139,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -155,7 +155,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -165,7 +165,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -173,7 +173,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -182,14 +182,14 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -199,7 +199,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -207,7 +207,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -215,7 +215,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -224,7 +224,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -232,7 +232,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -245,7 +245,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -269,7 +269,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -316,7 +316,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -366,7 +366,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -374,7 +374,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -384,7 +384,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - Guid? IType.Multiplicity { get; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -394,7 +394,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -402,7 +402,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -412,7 +412,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -421,7 +421,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -430,7 +430,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -440,7 +440,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -450,7 +450,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -458,7 +458,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -467,7 +467,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -475,7 +475,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -485,7 +485,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -495,7 +495,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -505,7 +505,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -515,7 +515,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -524,7 +524,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -533,7 +533,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -544,7 +544,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -553,7 +553,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -562,7 +562,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -580,7 +580,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -590,7 +590,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -600,7 +600,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -610,7 +610,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -619,7 +619,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -627,7 +627,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -635,7 +635,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -644,7 +644,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -653,7 +653,7 @@ public partial class Multiplicity : IMultiplicity [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -671,7 +671,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -683,7 +683,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -693,7 +693,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -702,7 +702,7 @@ public partial class Multiplicity : IMultiplicity [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -712,7 +712,7 @@ public partial class Multiplicity : IMultiplicity /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -723,7 +723,7 @@ public partial class Multiplicity : IMultiplicity /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/MultiplicityRange.cs b/SysML2.NET/Core/AutoGenDto/MultiplicityRange.cs index e5a94b3c6..77cf50c2f 100644 --- a/SysML2.NET/Core/AutoGenDto/MultiplicityRange.cs +++ b/SysML2.NET/Core/AutoGenDto/MultiplicityRange.cs @@ -66,7 +66,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_2_12e503d9_1573095221994_519580_5095", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IMultiplicityRange.Bound")] - public List Bound { get; internal set; } + public List bound { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -78,7 +78,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -88,7 +88,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -118,7 +118,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -126,7 +126,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -143,7 +143,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -159,7 +159,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -169,7 +169,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -177,7 +177,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -186,14 +186,14 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -203,7 +203,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -211,7 +211,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -219,7 +219,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -228,7 +228,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -236,7 +236,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -249,7 +249,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -273,7 +273,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -320,7 +320,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -372,7 +372,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_2_12e503d9_1573094905677_801324_4744", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] [Implements(implementation: "IMultiplicityRange.LowerBound")] - public Guid? LowerBound { get; internal set; } + public Guid? lowerBound { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -380,7 +380,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -388,7 +388,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -398,7 +398,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -408,7 +408,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -416,7 +416,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -426,7 +426,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -435,7 +435,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -444,7 +444,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -454,7 +454,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -464,7 +464,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -472,7 +472,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -481,7 +481,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -489,7 +489,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -499,7 +499,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -509,7 +509,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -519,7 +519,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -529,7 +529,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -538,7 +538,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -547,7 +547,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -558,7 +558,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -567,7 +567,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -576,7 +576,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -594,7 +594,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -604,7 +604,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -614,7 +614,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -624,7 +624,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -633,7 +633,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -641,7 +641,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -649,7 +649,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -658,7 +658,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -667,7 +667,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -685,7 +685,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -697,7 +697,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -707,7 +707,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -716,7 +716,7 @@ public partial class MultiplicityRange : IMultiplicityRange [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -726,7 +726,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -737,7 +737,7 @@ public partial class MultiplicityRange : IMultiplicityRange /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Expression whose result is the upper bound of the MultiplicityRange. @@ -745,7 +745,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_2_12e503d9_1573094947427_797440_4796", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] [Implements(implementation: "IMultiplicityRange.UpperBound")] - public Guid UpperBound { get; internal set; } + public Guid upperBound { get; internal set; } } } diff --git a/SysML2.NET/Core/AutoGenDto/Namespace.cs b/SysML2.NET/Core/AutoGenDto/Namespace.cs index d50bcb0a2..17bcec693 100644 --- a/SysML2.NET/Core/AutoGenDto/Namespace.cs +++ b/SysML2.NET/Core/AutoGenDto/Namespace.cs @@ -84,7 +84,7 @@ public partial class Namespace : INamespace [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -100,7 +100,7 @@ public partial class Namespace : INamespace [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -118,7 +118,7 @@ public partial class Namespace : INamespace /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -126,7 +126,7 @@ public partial class Namespace : INamespace /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -134,7 +134,7 @@ public partial class Namespace : INamespace /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -144,7 +144,7 @@ public partial class Namespace : INamespace /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -154,7 +154,7 @@ public partial class Namespace : INamespace [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -162,7 +162,7 @@ public partial class Namespace : INamespace /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -172,7 +172,7 @@ public partial class Namespace : INamespace [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -181,7 +181,7 @@ public partial class Namespace : INamespace [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -192,7 +192,7 @@ public partial class Namespace : INamespace [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -208,7 +208,7 @@ public partial class Namespace : INamespace /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -217,7 +217,7 @@ public partial class Namespace : INamespace [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -226,7 +226,7 @@ public partial class Namespace : INamespace [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -246,7 +246,7 @@ public partial class Namespace : INamespace /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -256,7 +256,7 @@ public partial class Namespace : INamespace /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -265,7 +265,7 @@ public partial class Namespace : INamespace [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/NamespaceExpose.cs b/SysML2.NET/Core/AutoGenDto/NamespaceExpose.cs index 7c28aea1c..7ed161067 100644 --- a/SysML2.NET/Core/AutoGenDto/NamespaceExpose.cs +++ b/SysML2.NET/Core/AutoGenDto/NamespaceExpose.cs @@ -78,7 +78,7 @@ public partial class NamespaceExpose : INamespaceExpose [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -94,7 +94,7 @@ public partial class NamespaceExpose : INamespaceExpose /// [Property(xmiId: "_19_0_4_12e503d9_1668801846848_909736_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IImport.ImportedElement")] - public Guid ImportedElement { get; internal set; } + public Guid importedElement { get; internal set; } /// /// The Namespace whose visible Memberships are imported by this NamespaceImport. @@ -112,7 +112,7 @@ public partial class NamespaceExpose : INamespaceExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IImport.ImportOwningNamespace")] - public Guid ImportOwningNamespace { get; internal set; } + public Guid importOwningNamespace { get; internal set; } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -139,7 +139,7 @@ public partial class NamespaceExpose : INamespaceExpose [Property(xmiId: "_19_0_4_12e503d9_1622578615027_762161_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622577942205_869984_64")] [Implements(implementation: "IExpose.IsImportAll")] - bool IExpose.IsImportAll { get; set; } = true; + public bool IsImportAll { get; set; } = true; /// /// Whether to import memberships without regard to declared visibility. @@ -154,7 +154,7 @@ public partial class NamespaceExpose : INamespaceExpose /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether to recursively import Memberships from visible, owned sub-Namespaces. @@ -171,7 +171,7 @@ public partial class NamespaceExpose : INamespaceExpose /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -181,7 +181,7 @@ public partial class NamespaceExpose : INamespaceExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -189,7 +189,7 @@ public partial class NamespaceExpose : INamespaceExpose /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -213,7 +213,7 @@ public partial class NamespaceExpose : INamespaceExpose /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -222,7 +222,7 @@ public partial class NamespaceExpose : INamespaceExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -231,7 +231,7 @@ public partial class NamespaceExpose : INamespaceExpose [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -259,7 +259,7 @@ public partial class NamespaceExpose : INamespaceExpose /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -267,7 +267,7 @@ public partial class NamespaceExpose : INamespaceExpose /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -277,7 +277,7 @@ public partial class NamespaceExpose : INamespaceExpose /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -304,7 +304,7 @@ public partial class NamespaceExpose : INamespaceExpose [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// An Expose always has protected visibility. @@ -312,7 +312,7 @@ public partial class NamespaceExpose : INamespaceExpose [Property(xmiId: "_2022x_2_12e503d9_1720469034555_222060_1140", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "protected")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674976_798509_43257")] [Implements(implementation: "IExpose.Visibility")] - VisibilityKind IExpose.Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Protected; /// /// The visibility level of the imported members from this Import relative to the importOwningNamespace. @@ -321,7 +321,7 @@ public partial class NamespaceExpose : INamespaceExpose [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")] [RedefinedByProperty("IExpose.Visibility")] [Implements(implementation: "IImport.Visibility")] - VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } + VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } = VisibilityKind.Private; } } diff --git a/SysML2.NET/Core/AutoGenDto/NamespaceImport.cs b/SysML2.NET/Core/AutoGenDto/NamespaceImport.cs index da48e233f..967bbaabe 100644 --- a/SysML2.NET/Core/AutoGenDto/NamespaceImport.cs +++ b/SysML2.NET/Core/AutoGenDto/NamespaceImport.cs @@ -79,7 +79,7 @@ public partial class NamespaceImport : INamespaceImport [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -95,7 +95,7 @@ public partial class NamespaceImport : INamespaceImport /// [Property(xmiId: "_19_0_4_12e503d9_1668801846848_909736_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IImport.ImportedElement")] - public Guid ImportedElement { get; internal set; } + public Guid importedElement { get; internal set; } /// /// The Namespace whose visible Memberships are imported by this NamespaceImport. @@ -113,7 +113,7 @@ public partial class NamespaceImport : INamespaceImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IImport.ImportOwningNamespace")] - public Guid ImportOwningNamespace { get; internal set; } + public Guid importOwningNamespace { get; internal set; } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -146,7 +146,7 @@ public partial class NamespaceImport : INamespaceImport /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether to recursively import Memberships from visible, owned sub-Namespaces. @@ -163,7 +163,7 @@ public partial class NamespaceImport : INamespaceImport /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -173,7 +173,7 @@ public partial class NamespaceImport : INamespaceImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -181,7 +181,7 @@ public partial class NamespaceImport : INamespaceImport /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -205,7 +205,7 @@ public partial class NamespaceImport : INamespaceImport /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -214,7 +214,7 @@ public partial class NamespaceImport : INamespaceImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -223,7 +223,7 @@ public partial class NamespaceImport : INamespaceImport [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -251,7 +251,7 @@ public partial class NamespaceImport : INamespaceImport /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -259,7 +259,7 @@ public partial class NamespaceImport : INamespaceImport /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -269,7 +269,7 @@ public partial class NamespaceImport : INamespaceImport /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -296,7 +296,7 @@ public partial class NamespaceImport : INamespaceImport [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The visibility level of the imported members from this Import relative to the importOwningNamespace. @@ -304,7 +304,7 @@ public partial class NamespaceImport : INamespaceImport /// [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")] [Implements(implementation: "IImport.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Private; } } diff --git a/SysML2.NET/Core/AutoGenDto/NullExpression.cs b/SysML2.NET/Core/AutoGenDto/NullExpression.cs index 913f5bd9e..6fdae7d13 100644 --- a/SysML2.NET/Core/AutoGenDto/NullExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/NullExpression.cs @@ -60,7 +60,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -72,7 +72,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -82,7 +82,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -121,7 +121,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -138,7 +138,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -154,7 +154,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -164,7 +164,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -172,7 +172,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -181,14 +181,14 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -198,7 +198,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -206,7 +206,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -214,7 +214,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -222,7 +222,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -231,7 +231,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -239,7 +239,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -252,7 +252,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -276,7 +276,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -323,7 +323,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -331,7 +331,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -381,7 +381,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -389,7 +389,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -399,7 +399,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -409,7 +409,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -417,7 +417,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -427,7 +427,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -436,7 +436,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -445,7 +445,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -455,7 +455,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -465,7 +465,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -473,7 +473,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -482,7 +482,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -490,7 +490,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -500,7 +500,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -510,7 +510,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -520,7 +520,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -530,7 +530,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -539,7 +539,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -548,7 +548,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -559,7 +559,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -568,7 +568,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -577,7 +577,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -595,7 +595,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -605,7 +605,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -615,7 +615,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -625,7 +625,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -634,7 +634,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -642,7 +642,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -650,7 +650,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -659,7 +659,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -668,7 +668,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -686,7 +686,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -695,7 +695,7 @@ public partial class NullExpression : INullExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -707,7 +707,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -718,7 +718,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -728,7 +728,7 @@ public partial class NullExpression : INullExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -737,7 +737,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -747,7 +747,7 @@ public partial class NullExpression : INullExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -758,7 +758,7 @@ public partial class NullExpression : INullExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ObjectiveMembership.cs b/SysML2.NET/Core/AutoGenDto/ObjectiveMembership.cs index 4027a02ae..ef2a1d05c 100644 --- a/SysML2.NET/Core/AutoGenDto/ObjectiveMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ObjectiveMembership.cs @@ -78,7 +78,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -112,7 +112,7 @@ public partial class ObjectiveMembership : IObjectiveMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -129,7 +129,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -148,7 +148,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -166,7 +166,7 @@ public partial class ObjectiveMembership : IObjectiveMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -176,7 +176,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -184,7 +184,7 @@ public partial class ObjectiveMembership : IObjectiveMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -195,7 +195,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -203,7 +203,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -213,7 +213,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IObjectiveMembership.OwnedObjectiveRequirement")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -221,7 +221,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -229,7 +229,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The RequirementUsage that is the ownedMemberFeature of this RequirementUsage. @@ -237,7 +237,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [Property(xmiId: "_19_0_2_59601fc_1590258776804_538578_832", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IObjectiveMembership.OwnedObjectiveRequirement")] - public Guid OwnedObjectiveRequirement { get; internal set; } + public Guid ownedObjectiveRequirement { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -261,7 +261,7 @@ public partial class ObjectiveMembership : IObjectiveMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -270,7 +270,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -279,7 +279,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -304,7 +304,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -316,7 +316,7 @@ public partial class ObjectiveMembership : IObjectiveMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -324,7 +324,7 @@ public partial class ObjectiveMembership : IObjectiveMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -334,7 +334,7 @@ public partial class ObjectiveMembership : IObjectiveMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -361,7 +361,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -369,7 +369,7 @@ public partial class ObjectiveMembership : IObjectiveMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/OccurrenceDefinition.cs b/SysML2.NET/Core/AutoGenDto/OccurrenceDefinition.cs index 745b78df1..2398d4178 100644 --- a/SysML2.NET/Core/AutoGenDto/OccurrenceDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/OccurrenceDefinition.cs @@ -84,7 +84,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -92,7 +92,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -101,7 +101,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -110,7 +110,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -126,7 +126,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -134,7 +134,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -143,7 +143,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -151,7 +151,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -159,7 +159,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -168,7 +168,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -176,7 +176,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -189,7 +189,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -204,7 +204,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -229,7 +229,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -257,7 +257,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -265,7 +265,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -275,7 +275,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -285,7 +285,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -293,7 +293,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -301,7 +301,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -309,7 +309,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -317,7 +317,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -327,7 +327,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -335,7 +335,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -343,7 +343,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -351,7 +351,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -359,7 +359,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -368,7 +368,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -378,7 +378,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -386,7 +386,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -396,7 +396,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -406,7 +406,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -414,7 +414,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -423,7 +423,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -431,7 +431,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -439,7 +439,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -449,7 +449,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -457,7 +457,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -467,7 +467,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -475,7 +475,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -484,7 +484,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -492,7 +492,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -501,7 +501,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -512,7 +512,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -520,7 +520,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -528,7 +528,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -536,7 +536,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -544,7 +544,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -552,7 +552,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -568,7 +568,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -576,7 +576,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -586,7 +586,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -594,7 +594,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -603,7 +603,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -611,7 +611,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -620,7 +620,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -629,7 +629,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -637,7 +637,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -645,7 +645,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -653,7 +653,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -661,7 +661,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -669,7 +669,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -678,7 +678,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -687,7 +687,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -707,7 +707,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -717,7 +717,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -726,7 +726,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -737,7 +737,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -745,7 +745,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -754,7 +754,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -764,7 +764,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs b/SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs index 19c078ffd..ecda5e10a 100644 --- a/SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs @@ -67,7 +67,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -77,7 +77,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -105,7 +105,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -118,7 +118,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -126,7 +126,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -135,7 +135,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -152,7 +152,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -168,7 +168,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -178,7 +178,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -186,7 +186,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -195,14 +195,14 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -212,7 +212,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -220,7 +220,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -228,7 +228,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -236,7 +236,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -245,7 +245,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -253,7 +253,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -266,7 +266,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -290,7 +290,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -345,7 +345,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -367,7 +367,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -416,7 +416,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -424,7 +424,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -432,7 +432,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -442,7 +442,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -452,7 +452,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -460,7 +460,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -468,7 +468,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -476,7 +476,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -484,7 +484,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -492,7 +492,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -500,7 +500,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -508,7 +508,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -518,7 +518,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -526,7 +526,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -534,7 +534,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -542,7 +542,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -550,7 +550,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -558,7 +558,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -566,7 +566,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -574,7 +574,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -582,7 +582,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -590,7 +590,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -598,7 +598,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -606,7 +606,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -614,7 +614,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -622,7 +622,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -630,7 +630,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -639,7 +639,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -647,7 +647,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -655,7 +655,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -663,7 +663,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -671,7 +671,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -681,7 +681,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -689,7 +689,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -699,7 +699,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -708,7 +708,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -717,7 +717,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -727,7 +727,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -737,7 +737,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -745,7 +745,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -754,7 +754,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -762,7 +762,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -772,7 +772,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -782,7 +782,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -792,7 +792,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -802,7 +802,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -811,7 +811,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -820,7 +820,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -831,7 +831,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -840,7 +840,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -849,7 +849,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -867,7 +867,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -877,7 +877,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -887,7 +887,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -897,7 +897,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -906,7 +906,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -914,7 +914,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -923,7 +923,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -931,7 +931,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -940,7 +940,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -949,7 +949,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -967,7 +967,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -975,7 +975,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -996,7 +996,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1006,7 +1006,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1015,7 +1015,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1026,7 +1026,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1037,7 +1037,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1045,7 +1045,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1054,7 +1054,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1063,7 +1063,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/OperatorExpression.cs b/SysML2.NET/Core/AutoGenDto/OperatorExpression.cs index edfd4f991..6dfb62832 100644 --- a/SysML2.NET/Core/AutoGenDto/OperatorExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/OperatorExpression.cs @@ -61,7 +61,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List Argument { get; internal set; } + public List argument { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -70,7 +70,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,7 +82,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -92,7 +92,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -122,7 +122,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -131,7 +131,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -148,7 +148,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -164,7 +164,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -174,7 +174,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -182,7 +182,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -191,14 +191,14 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -208,7 +208,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -216,7 +216,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -224,7 +224,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -232,7 +232,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -241,7 +241,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -249,7 +249,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Type that is being instantiated. @@ -257,7 +257,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public Guid InstantiatedType { get; internal set; } + public Guid instantiatedType { get; internal set; } /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -270,7 +270,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -294,7 +294,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -341,7 +341,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -349,7 +349,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -399,7 +399,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -407,7 +407,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -417,7 +417,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -427,7 +427,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// An operator symbol that names a corresponding Function from one of the standard packages from the @@ -443,7 +443,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -453,7 +453,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -462,7 +462,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -471,7 +471,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -481,7 +481,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -491,7 +491,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -499,7 +499,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -508,7 +508,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -516,7 +516,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -526,7 +526,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -536,7 +536,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -546,7 +546,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -556,7 +556,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -565,7 +565,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -574,7 +574,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -585,7 +585,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -594,7 +594,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -603,7 +603,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -621,7 +621,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -631,7 +631,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -641,7 +641,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -651,7 +651,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -660,7 +660,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -668,7 +668,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -676,7 +676,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -685,7 +685,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -694,7 +694,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -712,7 +712,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -721,7 +721,7 @@ public partial class OperatorExpression : IOperatorExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -733,7 +733,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -744,7 +744,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -754,7 +754,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -763,7 +763,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -773,7 +773,7 @@ public partial class OperatorExpression : IOperatorExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -784,7 +784,7 @@ public partial class OperatorExpression : IOperatorExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/OwningMembership.cs b/SysML2.NET/Core/AutoGenDto/OwningMembership.cs index f740fd1a9..bf5ffa86b 100644 --- a/SysML2.NET/Core/AutoGenDto/OwningMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/OwningMembership.cs @@ -77,7 +77,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -111,7 +111,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -128,7 +128,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -146,7 +146,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -164,7 +164,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -174,7 +174,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -182,7 +182,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -192,7 +192,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_59873_43302")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -200,7 +200,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The name of the ownedMemberElement. @@ -208,7 +208,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -216,7 +216,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -240,7 +240,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -249,7 +249,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - Guid? Root.Elements.IElement.OwningMembership { get; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -258,7 +258,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -286,7 +286,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -294,7 +294,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -304,7 +304,7 @@ public partial class OwningMembership : IOwningMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -331,7 +331,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -339,7 +339,7 @@ public partial class OwningMembership : IOwningMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/Package.cs b/SysML2.NET/Core/AutoGenDto/Package.cs index 5e96145d7..170d3fbff 100644 --- a/SysML2.NET/Core/AutoGenDto/Package.cs +++ b/SysML2.NET/Core/AutoGenDto/Package.cs @@ -78,7 +78,7 @@ public partial class Package : IPackage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -95,7 +95,7 @@ public partial class Package : IPackage [Property(xmiId: "_19_0_4_12e503d9_1607033896050_867332_6206", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IPackage.FilterCondition")] - public List FilterCondition { get; internal set; } + public List filterCondition { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -103,7 +103,7 @@ public partial class Package : IPackage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -121,7 +121,7 @@ public partial class Package : IPackage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -129,7 +129,7 @@ public partial class Package : IPackage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -137,7 +137,7 @@ public partial class Package : IPackage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -147,7 +147,7 @@ public partial class Package : IPackage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -157,7 +157,7 @@ public partial class Package : IPackage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -165,7 +165,7 @@ public partial class Package : IPackage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -175,7 +175,7 @@ public partial class Package : IPackage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -184,7 +184,7 @@ public partial class Package : IPackage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -195,7 +195,7 @@ public partial class Package : IPackage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -211,7 +211,7 @@ public partial class Package : IPackage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -220,7 +220,7 @@ public partial class Package : IPackage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -229,7 +229,7 @@ public partial class Package : IPackage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -249,7 +249,7 @@ public partial class Package : IPackage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -259,7 +259,7 @@ public partial class Package : IPackage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -268,7 +268,7 @@ public partial class Package : IPackage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ParameterMembership.cs b/SysML2.NET/Core/AutoGenDto/ParameterMembership.cs index 3121a1e0e..bd81f0940 100644 --- a/SysML2.NET/Core/AutoGenDto/ParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ParameterMembership.cs @@ -79,7 +79,7 @@ public partial class ParameterMembership : IParameterMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -113,7 +113,7 @@ public partial class ParameterMembership : IParameterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -130,7 +130,7 @@ public partial class ParameterMembership : IParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -149,7 +149,7 @@ public partial class ParameterMembership : IParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -167,7 +167,7 @@ public partial class ParameterMembership : IParameterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -177,7 +177,7 @@ public partial class ParameterMembership : IParameterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -185,7 +185,7 @@ public partial class ParameterMembership : IParameterMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -196,7 +196,7 @@ public partial class ParameterMembership : IParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -204,7 +204,7 @@ public partial class ParameterMembership : IParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -214,7 +214,7 @@ public partial class ParameterMembership : IParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -222,7 +222,7 @@ public partial class ParameterMembership : IParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The Feature that is identified as a parameter by this ParameterMembership. @@ -230,7 +230,7 @@ public partial class ParameterMembership : IParameterMembership [Property(xmiId: "_18_5_3_12e503d9_1557528016548_548098_110830", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public Guid OwnedMemberParameter { get; internal set; } + public Guid ownedMemberParameter { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -238,7 +238,7 @@ public partial class ParameterMembership : IParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -262,7 +262,7 @@ public partial class ParameterMembership : IParameterMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -271,7 +271,7 @@ public partial class ParameterMembership : IParameterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -280,7 +280,7 @@ public partial class ParameterMembership : IParameterMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -305,7 +305,7 @@ public partial class ParameterMembership : IParameterMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -317,7 +317,7 @@ public partial class ParameterMembership : IParameterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -325,7 +325,7 @@ public partial class ParameterMembership : IParameterMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -335,7 +335,7 @@ public partial class ParameterMembership : IParameterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -362,7 +362,7 @@ public partial class ParameterMembership : IParameterMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -370,7 +370,7 @@ public partial class ParameterMembership : IParameterMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/PartDefinition.cs b/SysML2.NET/Core/AutoGenDto/PartDefinition.cs index 986778e91..ec6e6c868 100644 --- a/SysML2.NET/Core/AutoGenDto/PartDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/PartDefinition.cs @@ -82,7 +82,7 @@ public partial class PartDefinition : IPartDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -90,7 +90,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -99,7 +99,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -108,7 +108,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -124,7 +124,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -132,7 +132,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -141,7 +141,7 @@ public partial class PartDefinition : IPartDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -149,7 +149,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -157,7 +157,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -166,7 +166,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -174,7 +174,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -187,7 +187,7 @@ public partial class PartDefinition : IPartDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -202,7 +202,7 @@ public partial class PartDefinition : IPartDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -227,7 +227,7 @@ public partial class PartDefinition : IPartDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -255,7 +255,7 @@ public partial class PartDefinition : IPartDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -263,7 +263,7 @@ public partial class PartDefinition : IPartDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -273,7 +273,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -283,7 +283,7 @@ public partial class PartDefinition : IPartDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -291,7 +291,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -299,7 +299,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -307,7 +307,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -315,7 +315,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -325,7 +325,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -333,7 +333,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -341,7 +341,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -349,7 +349,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -357,7 +357,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -366,7 +366,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -376,7 +376,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -384,7 +384,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -394,7 +394,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -404,7 +404,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -412,7 +412,7 @@ public partial class PartDefinition : IPartDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -421,7 +421,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -429,7 +429,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -437,7 +437,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -447,7 +447,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -455,7 +455,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -465,7 +465,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -473,7 +473,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -482,7 +482,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -490,7 +490,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -499,7 +499,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -510,7 +510,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -518,7 +518,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -526,7 +526,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -534,7 +534,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -542,7 +542,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -550,7 +550,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -566,7 +566,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -574,7 +574,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -584,7 +584,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -592,7 +592,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -601,7 +601,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -609,7 +609,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -618,7 +618,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -627,7 +627,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -635,7 +635,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -643,7 +643,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -651,7 +651,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -659,7 +659,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -667,7 +667,7 @@ public partial class PartDefinition : IPartDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -676,7 +676,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -685,7 +685,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -705,7 +705,7 @@ public partial class PartDefinition : IPartDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -715,7 +715,7 @@ public partial class PartDefinition : IPartDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -724,7 +724,7 @@ public partial class PartDefinition : IPartDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -735,7 +735,7 @@ public partial class PartDefinition : IPartDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -743,7 +743,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -752,7 +752,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -762,7 +762,7 @@ public partial class PartDefinition : IPartDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/PartUsage.cs b/SysML2.NET/Core/AutoGenDto/PartUsage.cs index ce4f44c86..7c6c67311 100644 --- a/SysML2.NET/Core/AutoGenDto/PartUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/PartUsage.cs @@ -66,7 +66,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -76,7 +76,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -104,7 +104,7 @@ public partial class PartUsage : IPartUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -117,7 +117,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -125,7 +125,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -134,7 +134,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -151,7 +151,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -167,7 +167,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -177,7 +177,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -185,7 +185,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -194,14 +194,14 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -211,7 +211,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -219,7 +219,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -227,7 +227,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -235,7 +235,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -244,7 +244,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -252,7 +252,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -265,7 +265,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -289,7 +289,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -344,7 +344,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -366,7 +366,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -412,7 +412,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List ItemDefinition { get; internal set; } + public List itemDefinition { get; internal set; } = []; /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -425,7 +425,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -433,7 +433,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -441,7 +441,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -451,7 +451,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -461,7 +461,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -469,7 +469,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -477,7 +477,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -485,7 +485,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -493,7 +493,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -501,7 +501,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -509,7 +509,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -517,7 +517,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -527,7 +527,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -535,7 +535,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -543,7 +543,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -551,7 +551,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -559,7 +559,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -567,7 +567,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -575,7 +575,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -583,7 +583,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -591,7 +591,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -599,7 +599,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -607,7 +607,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -615,7 +615,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -623,7 +623,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -631,7 +631,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -639,7 +639,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -648,7 +648,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -656,7 +656,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -664,7 +664,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -672,7 +672,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -680,7 +680,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -690,7 +690,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -698,7 +698,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -708,7 +708,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -717,7 +717,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -726,7 +726,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -736,7 +736,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -746,7 +746,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -754,7 +754,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -763,7 +763,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -771,7 +771,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -781,7 +781,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -791,7 +791,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -801,7 +801,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -811,7 +811,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -820,7 +820,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -829,7 +829,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -840,7 +840,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -849,7 +849,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -858,7 +858,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -876,7 +876,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -886,7 +886,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -896,7 +896,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -906,7 +906,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -915,7 +915,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -923,7 +923,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -932,7 +932,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -940,7 +940,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -949,7 +949,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -958,7 +958,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -976,7 +976,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -984,7 +984,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The itemDefinitions of this PartUsage that are PartDefinitions. @@ -992,7 +992,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1591475180488_929065_121", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List PartDefinition { get; internal set; } + public List partDefinition { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1013,7 +1013,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1023,7 +1023,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1032,7 +1032,7 @@ public partial class PartUsage : IPartUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1043,7 +1043,7 @@ public partial class PartUsage : IPartUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1054,7 +1054,7 @@ public partial class PartUsage : IPartUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1062,7 +1062,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1071,7 +1071,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1080,7 +1080,7 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/PayloadFeature.cs b/SysML2.NET/Core/AutoGenDto/PayloadFeature.cs index 1f28f2b94..c61a3a623 100644 --- a/SysML2.NET/Core/AutoGenDto/PayloadFeature.cs +++ b/SysML2.NET/Core/AutoGenDto/PayloadFeature.cs @@ -64,7 +64,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -74,7 +74,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -104,7 +104,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -112,7 +112,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -129,7 +129,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -145,7 +145,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -155,7 +155,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -163,7 +163,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -172,14 +172,14 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -189,7 +189,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -197,7 +197,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -205,7 +205,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -214,7 +214,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -222,7 +222,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -235,7 +235,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -259,7 +259,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -306,7 +306,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -356,7 +356,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -364,7 +364,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -374,7 +374,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -384,7 +384,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -392,7 +392,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -402,7 +402,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -411,7 +411,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -420,7 +420,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -430,7 +430,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -440,7 +440,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -448,7 +448,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -457,7 +457,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -465,7 +465,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -475,7 +475,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -485,7 +485,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -495,7 +495,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -505,7 +505,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -514,7 +514,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -523,7 +523,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -534,7 +534,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -543,7 +543,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -552,7 +552,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -570,7 +570,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -580,7 +580,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -590,7 +590,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -600,7 +600,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -609,7 +609,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -617,7 +617,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -625,7 +625,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -634,7 +634,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -643,7 +643,7 @@ public partial class PayloadFeature : IPayloadFeature [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -661,7 +661,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -673,7 +673,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -683,7 +683,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -692,7 +692,7 @@ public partial class PayloadFeature : IPayloadFeature [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -702,7 +702,7 @@ public partial class PayloadFeature : IPayloadFeature /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -713,7 +713,7 @@ public partial class PayloadFeature : IPayloadFeature /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/PerformActionUsage.cs b/SysML2.NET/Core/AutoGenDto/PerformActionUsage.cs index 2bdc631af..1d011e264 100644 --- a/SysML2.NET/Core/AutoGenDto/PerformActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/PerformActionUsage.cs @@ -59,7 +59,7 @@ public partial class PerformActionUsage : IPerformActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -75,7 +75,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -87,7 +87,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -97,7 +97,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -125,7 +125,7 @@ public partial class PerformActionUsage : IPerformActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -138,7 +138,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -147,7 +147,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -156,7 +156,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -173,7 +173,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -189,7 +189,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -199,7 +199,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The OccurrenceUsage referenced as an event by this EventOccurrenceUsage. It is the referenceFeature @@ -209,7 +209,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IPerformActionUsage.PerformedAction")] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public Guid EventOccurrence { get; internal set; } + public Guid eventOccurrence { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -217,7 +217,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -226,14 +226,14 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -243,7 +243,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -251,7 +251,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -259,7 +259,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -267,7 +267,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -276,7 +276,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -284,7 +284,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -297,7 +297,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -321,7 +321,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -376,7 +376,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -399,7 +399,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.IsReference { get; } + bool Systems.DefinitionAndUsage.IUsage.isReference { get; } /// /// Always true for an EventOccurrenceUsage. @@ -407,7 +407,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1672526906017_786343_306", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IEventOccurrenceUsage.IsReference")] - bool Systems.Occurrences.IEventOccurrenceUsage.IsReference { get; } + public bool isReference { get; internal set; } = true; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -456,7 +456,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -464,7 +464,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -472,7 +472,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -482,7 +482,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -492,7 +492,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -500,7 +500,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -508,7 +508,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -516,7 +516,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -524,7 +524,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -532,7 +532,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -540,7 +540,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -548,7 +548,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -558,7 +558,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -566,7 +566,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -574,7 +574,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -582,7 +582,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -590,7 +590,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -598,7 +598,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -606,7 +606,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -614,7 +614,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -622,7 +622,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -630,7 +630,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -638,7 +638,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -646,7 +646,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -654,7 +654,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -662,7 +662,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -670,7 +670,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -679,7 +679,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -687,7 +687,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -695,7 +695,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -703,7 +703,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -711,7 +711,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -722,7 +722,7 @@ public partial class PerformActionUsage : IPerformActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -730,7 +730,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -740,7 +740,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -749,7 +749,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -758,7 +758,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -768,7 +768,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -778,7 +778,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -786,7 +786,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -795,7 +795,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -803,7 +803,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -813,7 +813,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -823,7 +823,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -833,7 +833,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -843,7 +843,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -852,7 +852,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -861,7 +861,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -872,7 +872,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -881,7 +881,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -890,7 +890,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -908,7 +908,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -918,7 +918,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -928,7 +928,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -938,7 +938,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -947,7 +947,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -955,7 +955,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -964,7 +964,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -972,7 +972,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -981,7 +981,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -990,7 +990,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1008,7 +1008,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1016,7 +1016,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1025,7 +1025,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The ActionUsage to be performed by this PerformedActionUsage. It is the eventOccurrence of the @@ -1034,7 +1034,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1567740791820_867719_18017", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622831790393_676695_195")] [Implements(implementation: "IPerformActionUsage.PerformedAction")] - public Guid PerformedAction { get; internal set; } + public Guid performedAction { get; internal set; } /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1055,7 +1055,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1065,7 +1065,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1074,7 +1074,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1085,7 +1085,7 @@ public partial class PerformActionUsage : IPerformActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1096,7 +1096,7 @@ public partial class PerformActionUsage : IPerformActionUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1104,7 +1104,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1113,7 +1113,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1122,7 +1122,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/PortConjugation.cs b/SysML2.NET/Core/AutoGenDto/PortConjugation.cs index 819c4d5b5..e07a89c54 100644 --- a/SysML2.NET/Core/AutoGenDto/PortConjugation.cs +++ b/SysML2.NET/Core/AutoGenDto/PortConjugation.cs @@ -62,7 +62,7 @@ public partial class PortConjugation : IPortConjugation [Property(xmiId: "_19_0_2_12e503d9_1575484344899_880331_946", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1575482646809_778895_441")] [Implements(implementation: "IPortConjugation.ConjugatedPortDefinition")] - public Guid ConjugatedPortDefinition { get; internal set; } + public Guid conjugatedPortDefinition { get; internal set; } /// /// The Type that is the result of applying Conjugation to the originalType. @@ -96,7 +96,7 @@ public partial class PortConjugation : IPortConjugation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -130,7 +130,7 @@ public partial class PortConjugation : IPortConjugation /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -140,7 +140,7 @@ public partial class PortConjugation : IPortConjugation /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The PortDefinition being conjugated. @@ -167,7 +167,7 @@ public partial class PortConjugation : IPortConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -175,7 +175,7 @@ public partial class PortConjugation : IPortConjugation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -199,7 +199,7 @@ public partial class PortConjugation : IPortConjugation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -208,7 +208,7 @@ public partial class PortConjugation : IPortConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -217,7 +217,7 @@ public partial class PortConjugation : IPortConjugation [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -243,7 +243,7 @@ public partial class PortConjugation : IPortConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedByProperty("IPortConjugation.ConjugatedPortDefinition")] [Implements(implementation: "IConjugation.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -255,7 +255,7 @@ public partial class PortConjugation : IPortConjugation /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -263,7 +263,7 @@ public partial class PortConjugation : IPortConjugation /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -273,7 +273,7 @@ public partial class PortConjugation : IPortConjugation /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -300,7 +300,7 @@ public partial class PortConjugation : IPortConjugation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/PortDefinition.cs b/SysML2.NET/Core/AutoGenDto/PortDefinition.cs index 661489ded..a850b228a 100644 --- a/SysML2.NET/Core/AutoGenDto/PortDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/PortDefinition.cs @@ -61,7 +61,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1575484364015_206236_989", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IPortDefinition.ConjugatedPortDefinition")] - public Guid? ConjugatedPortDefinition { get; internal set; } + public Guid? conjugatedPortDefinition { get; internal set; } /// /// The declared name of this Element. @@ -91,7 +91,7 @@ public partial class PortDefinition : IPortDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -99,7 +99,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -108,7 +108,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -117,7 +117,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -133,7 +133,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -141,7 +141,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -150,7 +150,7 @@ public partial class PortDefinition : IPortDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -158,7 +158,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -166,7 +166,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -175,7 +175,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -183,7 +183,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -196,7 +196,7 @@ public partial class PortDefinition : IPortDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -211,7 +211,7 @@ public partial class PortDefinition : IPortDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -236,7 +236,7 @@ public partial class PortDefinition : IPortDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -264,7 +264,7 @@ public partial class PortDefinition : IPortDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -272,7 +272,7 @@ public partial class PortDefinition : IPortDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -282,7 +282,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -292,7 +292,7 @@ public partial class PortDefinition : IPortDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -300,7 +300,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -308,7 +308,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -316,7 +316,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -324,7 +324,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -334,7 +334,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -342,7 +342,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -350,7 +350,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -358,7 +358,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -366,7 +366,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -375,7 +375,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -385,7 +385,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -393,7 +393,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -403,7 +403,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -413,7 +413,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -421,7 +421,7 @@ public partial class PortDefinition : IPortDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -430,7 +430,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -438,7 +438,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -446,7 +446,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -456,7 +456,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -464,7 +464,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -474,7 +474,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -482,7 +482,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -491,7 +491,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -499,7 +499,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -508,7 +508,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -519,7 +519,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -527,7 +527,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -535,7 +535,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -543,7 +543,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -551,7 +551,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -559,7 +559,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -575,7 +575,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -583,7 +583,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -593,7 +593,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -601,7 +601,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -610,7 +610,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -618,7 +618,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -627,7 +627,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -636,7 +636,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -644,7 +644,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -652,7 +652,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -660,7 +660,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -668,7 +668,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -676,7 +676,7 @@ public partial class PortDefinition : IPortDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -685,7 +685,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -694,7 +694,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -714,7 +714,7 @@ public partial class PortDefinition : IPortDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -724,7 +724,7 @@ public partial class PortDefinition : IPortDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -733,7 +733,7 @@ public partial class PortDefinition : IPortDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -744,7 +744,7 @@ public partial class PortDefinition : IPortDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -752,7 +752,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -761,7 +761,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -771,7 +771,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/PortUsage.cs b/SysML2.NET/Core/AutoGenDto/PortUsage.cs index 8367e542b..b97c01142 100644 --- a/SysML2.NET/Core/AutoGenDto/PortUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/PortUsage.cs @@ -65,7 +65,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -75,7 +75,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -103,7 +103,7 @@ public partial class PortUsage : IPortUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -116,7 +116,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -124,7 +124,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -133,7 +133,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -150,7 +150,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -166,7 +166,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -176,7 +176,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -184,7 +184,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -193,14 +193,14 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -210,7 +210,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -218,7 +218,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -226,7 +226,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -234,7 +234,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -243,7 +243,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -251,7 +251,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -264,7 +264,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -288,7 +288,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -343,7 +343,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -365,7 +365,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -414,7 +414,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -422,7 +422,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -430,7 +430,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -440,7 +440,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -450,7 +450,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -458,7 +458,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -466,7 +466,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -474,7 +474,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -482,7 +482,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -490,7 +490,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -498,7 +498,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -506,7 +506,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -516,7 +516,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -524,7 +524,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -532,7 +532,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -540,7 +540,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -548,7 +548,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -556,7 +556,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -564,7 +564,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -572,7 +572,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -580,7 +580,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -588,7 +588,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -596,7 +596,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -604,7 +604,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -612,7 +612,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -620,7 +620,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -628,7 +628,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -637,7 +637,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -645,7 +645,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -653,7 +653,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -661,7 +661,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -669,7 +669,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -680,7 +680,7 @@ public partial class PortUsage : IPortUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IPortUsage.PortDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -688,7 +688,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -698,7 +698,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -707,7 +707,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -716,7 +716,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -726,7 +726,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -736,7 +736,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -744,7 +744,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -753,7 +753,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -761,7 +761,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -771,7 +771,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -781,7 +781,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -791,7 +791,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -801,7 +801,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -810,7 +810,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -819,7 +819,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -830,7 +830,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -839,7 +839,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -848,7 +848,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -866,7 +866,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -876,7 +876,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -886,7 +886,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -896,7 +896,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -905,7 +905,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -913,7 +913,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -922,7 +922,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -930,7 +930,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -939,7 +939,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -948,7 +948,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -966,7 +966,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -974,7 +974,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The occurrenceDefinitions of this PortUsage, which must all be PortDefinitions. @@ -982,7 +982,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_18_5_3_12e503d9_1565492740124_880100_25026", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IPortUsage.PortDefinition")] - public List PortDefinition { get; internal set; } + public List portDefinition { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1003,7 +1003,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1013,7 +1013,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1022,7 +1022,7 @@ public partial class PortUsage : IPortUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1033,7 +1033,7 @@ public partial class PortUsage : IPortUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1044,7 +1044,7 @@ public partial class PortUsage : IPortUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1052,7 +1052,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1061,7 +1061,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1070,7 +1070,7 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Predicate.cs b/SysML2.NET/Core/AutoGenDto/Predicate.cs index f99e53f7a..7edcc3830 100644 --- a/SysML2.NET/Core/AutoGenDto/Predicate.cs +++ b/SysML2.NET/Core/AutoGenDto/Predicate.cs @@ -79,7 +79,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -88,7 +88,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -97,7 +97,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -113,7 +113,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -121,7 +121,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List Expression { get; internal set; } + public List expression { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -129,7 +129,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -138,7 +138,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -146,7 +146,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -154,7 +154,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -163,7 +163,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -171,7 +171,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -184,7 +184,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -199,7 +199,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -217,7 +217,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -228,7 +228,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -248,7 +248,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -256,7 +256,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -266,7 +266,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -276,7 +276,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -284,7 +284,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -294,7 +294,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -303,7 +303,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -313,7 +313,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -323,7 +323,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -331,7 +331,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -340,7 +340,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -348,7 +348,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -358,7 +358,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -368,7 +368,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -377,7 +377,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -386,7 +386,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -397,7 +397,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -415,7 +415,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -424,7 +424,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -433,7 +433,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -441,7 +441,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -450,7 +450,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -459,7 +459,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -476,7 +476,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -488,7 +488,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The object or value that is the result of evaluating the Function. @@ -497,7 +497,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -507,7 +507,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Steps that make up this Behavior. @@ -515,7 +515,7 @@ public partial class Predicate : IPredicate [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -524,7 +524,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -535,7 +535,7 @@ public partial class Predicate : IPredicate /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Redefinition.cs b/SysML2.NET/Core/AutoGenDto/Redefinition.cs index 6160ca54e..bd2585bf3 100644 --- a/SysML2.NET/Core/AutoGenDto/Redefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/Redefinition.cs @@ -86,7 +86,7 @@ public partial class Redefinition : IRedefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -129,7 +129,7 @@ public partial class Redefinition : IRedefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -139,7 +139,7 @@ public partial class Redefinition : IRedefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -149,7 +149,7 @@ public partial class Redefinition : IRedefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -157,7 +157,7 @@ public partial class Redefinition : IRedefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -181,7 +181,7 @@ public partial class Redefinition : IRedefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// A subsettingFeature that is also the owningRelatedElement of this Subsetting. @@ -190,7 +190,7 @@ public partial class Redefinition : IRedefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "ISubsetting.OwningFeature")] - public Guid? OwningFeature { get; internal set; } + public Guid? owningFeature { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -199,7 +199,7 @@ public partial class Redefinition : IRedefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -208,7 +208,7 @@ public partial class Redefinition : IRedefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -234,7 +234,7 @@ public partial class Redefinition : IRedefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -246,7 +246,7 @@ public partial class Redefinition : IRedefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Feature that is redefined by the redefiningFeature of this Redefinition. @@ -270,7 +270,7 @@ public partial class Redefinition : IRedefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -280,7 +280,7 @@ public partial class Redefinition : IRedefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -334,7 +334,7 @@ public partial class Redefinition : IRedefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ReferenceSubsetting.cs b/SysML2.NET/Core/AutoGenDto/ReferenceSubsetting.cs index 3cbca7809..52cc785dd 100644 --- a/SysML2.NET/Core/AutoGenDto/ReferenceSubsetting.cs +++ b/SysML2.NET/Core/AutoGenDto/ReferenceSubsetting.cs @@ -80,7 +80,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -123,7 +123,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -133,7 +133,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -143,7 +143,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -151,7 +151,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -175,7 +175,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// A subsettingFeature that is also the owningRelatedElement of this Subsetting. @@ -185,7 +185,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [RedefinedByProperty("IReferenceSubsetting.ReferencingFeature")] [Implements(implementation: "ISubsetting.OwningFeature")] - public Guid? OwningFeature { get; internal set; } + public Guid? owningFeature { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -194,7 +194,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -203,7 +203,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -229,7 +229,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -241,7 +241,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Feature that is referenced by the referencingFeature of this ReferenceSubsetting. @@ -258,7 +258,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_236250_43311")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] [Implements(implementation: "IReferenceSubsetting.ReferencingFeature")] - public Guid ReferencingFeature { get; internal set; } + public Guid referencingFeature { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -266,7 +266,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -276,7 +276,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -330,7 +330,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs b/SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs index 0aaa48a24..d61dba8c9 100644 --- a/SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs @@ -66,7 +66,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -76,7 +76,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -103,7 +103,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -116,7 +116,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -124,7 +124,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -133,7 +133,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -150,7 +150,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -166,7 +166,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -176,7 +176,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -184,7 +184,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -193,14 +193,14 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -210,7 +210,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -218,7 +218,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -226,7 +226,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -235,7 +235,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -243,7 +243,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -256,7 +256,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -280,7 +280,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -327,7 +327,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -350,7 +350,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_12e503d9_1624035133434_200283_41434", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IReferenceUsage.IsReference")] - bool IReferenceUsage.IsReference { get; } + public bool isReference { get; internal set; } = true; /// /// Whether this Usage is a referential Usage, that is, it has isComposite = false. @@ -358,7 +358,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IReferenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool IUsage.IsReference { get; } + bool IUsage.isReference { get; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -407,7 +407,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -415,7 +415,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -423,7 +423,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -433,7 +433,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -443,7 +443,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -451,7 +451,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -459,7 +459,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -467,7 +467,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -475,7 +475,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -483,7 +483,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -491,7 +491,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -499,7 +499,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -509,7 +509,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -517,7 +517,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -525,7 +525,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -533,7 +533,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -541,7 +541,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -549,7 +549,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -557,7 +557,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -565,7 +565,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -573,7 +573,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -581,7 +581,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -589,7 +589,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -597,7 +597,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -605,7 +605,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -613,7 +613,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -621,7 +621,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -630,7 +630,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -638,7 +638,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -646,7 +646,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -654,7 +654,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -662,7 +662,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -670,7 +670,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -680,7 +680,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -689,7 +689,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -698,7 +698,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -708,7 +708,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -718,7 +718,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -726,7 +726,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -735,7 +735,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -743,7 +743,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -753,7 +753,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -763,7 +763,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -773,7 +773,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -783,7 +783,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -792,7 +792,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -801,7 +801,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -812,7 +812,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -821,7 +821,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -830,7 +830,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -848,7 +848,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -858,7 +858,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -868,7 +868,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -878,7 +878,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -887,7 +887,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -895,7 +895,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -904,7 +904,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -912,7 +912,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -921,7 +921,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -930,7 +930,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -948,7 +948,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -956,7 +956,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -968,7 +968,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -978,7 +978,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -987,7 +987,7 @@ public partial class ReferenceUsage : IReferenceUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -998,7 +998,7 @@ public partial class ReferenceUsage : IReferenceUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1009,7 +1009,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1017,7 +1017,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1026,7 +1026,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1035,7 +1035,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/RenderingDefinition.cs b/SysML2.NET/Core/AutoGenDto/RenderingDefinition.cs index 20ad34cc3..3ac9d4336 100644 --- a/SysML2.NET/Core/AutoGenDto/RenderingDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/RenderingDefinition.cs @@ -81,7 +81,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -89,7 +89,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -98,7 +98,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -107,7 +107,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -123,7 +123,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -131,7 +131,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -140,7 +140,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -148,7 +148,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -156,7 +156,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -165,7 +165,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -173,7 +173,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -186,7 +186,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -201,7 +201,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -226,7 +226,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -254,7 +254,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -262,7 +262,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -272,7 +272,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -282,7 +282,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -290,7 +290,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -298,7 +298,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -306,7 +306,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -314,7 +314,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -324,7 +324,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -332,7 +332,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -340,7 +340,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -348,7 +348,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -356,7 +356,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -365,7 +365,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -375,7 +375,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -383,7 +383,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -393,7 +393,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -403,7 +403,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -411,7 +411,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -420,7 +420,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -428,7 +428,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -436,7 +436,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -446,7 +446,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -454,7 +454,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -464,7 +464,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -472,7 +472,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -481,7 +481,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -489,7 +489,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -498,7 +498,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -509,7 +509,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -517,7 +517,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -525,7 +525,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -533,7 +533,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -541,7 +541,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -549,7 +549,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -565,7 +565,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -573,7 +573,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -583,7 +583,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -591,7 +591,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -600,7 +600,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -608,7 +608,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -617,7 +617,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -626,7 +626,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -634,7 +634,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -642,7 +642,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -650,7 +650,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -658,7 +658,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -666,7 +666,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -675,7 +675,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -684,7 +684,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -704,7 +704,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The usages of a RenderingDefinition that are RenderingUsages. @@ -712,7 +712,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741367270_249607_6373", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRenderingDefinition.Rendering")] - public List Rendering { get; internal set; } + public List rendering { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -722,7 +722,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -731,7 +731,7 @@ public partial class RenderingDefinition : IRenderingDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -742,7 +742,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -750,7 +750,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -759,7 +759,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -769,7 +769,7 @@ public partial class RenderingDefinition : IRenderingDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/RenderingUsage.cs b/SysML2.NET/Core/AutoGenDto/RenderingUsage.cs index 03fcf8eed..6764079b6 100644 --- a/SysML2.NET/Core/AutoGenDto/RenderingUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/RenderingUsage.cs @@ -65,7 +65,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -75,7 +75,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -103,7 +103,7 @@ public partial class RenderingUsage : IRenderingUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -116,7 +116,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -124,7 +124,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -133,7 +133,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -150,7 +150,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -166,7 +166,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -176,7 +176,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -184,7 +184,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -193,14 +193,14 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -210,7 +210,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -218,7 +218,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -226,7 +226,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -234,7 +234,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -243,7 +243,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -251,7 +251,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -264,7 +264,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -288,7 +288,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -343,7 +343,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -365,7 +365,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -411,7 +411,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List ItemDefinition { get; internal set; } + public List itemDefinition { get; internal set; } = []; /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -424,7 +424,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -432,7 +432,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -440,7 +440,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -450,7 +450,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -460,7 +460,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -468,7 +468,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -476,7 +476,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -484,7 +484,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -492,7 +492,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -500,7 +500,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -508,7 +508,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -516,7 +516,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -526,7 +526,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -534,7 +534,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -542,7 +542,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -550,7 +550,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -558,7 +558,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -566,7 +566,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -574,7 +574,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -582,7 +582,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -590,7 +590,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -598,7 +598,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -606,7 +606,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -614,7 +614,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -622,7 +622,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -630,7 +630,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -638,7 +638,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -647,7 +647,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -655,7 +655,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -663,7 +663,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -671,7 +671,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -679,7 +679,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -689,7 +689,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -697,7 +697,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -707,7 +707,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -716,7 +716,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -725,7 +725,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -735,7 +735,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -745,7 +745,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -753,7 +753,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -762,7 +762,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -770,7 +770,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -780,7 +780,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -790,7 +790,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -800,7 +800,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -810,7 +810,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -819,7 +819,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -828,7 +828,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -839,7 +839,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -848,7 +848,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -857,7 +857,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -875,7 +875,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -885,7 +885,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -895,7 +895,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -905,7 +905,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -914,7 +914,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -922,7 +922,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -931,7 +931,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -939,7 +939,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -948,7 +948,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -957,7 +957,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -975,7 +975,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -983,7 +983,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The itemDefinitions of this PartUsage that are PartDefinitions. @@ -992,7 +992,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedByProperty("IRenderingUsage.RenderingDefinition")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List PartDefinition { get; internal set; } + public List partDefinition { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1013,7 +1013,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The RenderingDefinition that is the definition of this RenderingUsage. @@ -1021,7 +1021,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1596741320785_268295_6306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591475180488_929065_121")] [Implements(implementation: "IRenderingUsage.RenderingDefinition")] - public Guid? RenderingDefinition { get; internal set; } + public Guid? renderingDefinition { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1031,7 +1031,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1040,7 +1040,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1051,7 +1051,7 @@ public partial class RenderingUsage : IRenderingUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1062,7 +1062,7 @@ public partial class RenderingUsage : IRenderingUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1070,7 +1070,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1079,7 +1079,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1088,7 +1088,7 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/RequirementConstraintMembership.cs b/SysML2.NET/Core/AutoGenDto/RequirementConstraintMembership.cs index e95c6dde0..2ba31e6bd 100644 --- a/SysML2.NET/Core/AutoGenDto/RequirementConstraintMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/RequirementConstraintMembership.cs @@ -79,7 +79,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -113,7 +113,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether the RequirementConstraintMembership is for an assumed or required ConstraintUsage. @@ -137,7 +137,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -156,7 +156,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -174,7 +174,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -184,7 +184,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The ConstraintUsage that is the ownedMemberFeature of this RequirementConstraintMembership. @@ -192,7 +192,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [Property(xmiId: "_19_0_2_12e503d9_1584048366950_985767_426", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public Guid OwnedConstraint { get; internal set; } + public Guid ownedConstraint { get; internal set; } /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -200,7 +200,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -211,7 +211,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -219,7 +219,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -229,7 +229,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -237,7 +237,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -245,7 +245,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -269,7 +269,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -278,7 +278,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -287,7 +287,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -312,7 +312,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -324,7 +324,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The ConstraintUsage that is referenced through this RequirementConstraintMembership. It is the @@ -333,7 +333,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem /// [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public Guid ReferencedConstraint { get; internal set; } + public Guid referencedConstraint { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -341,7 +341,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -351,7 +351,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -378,7 +378,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -386,7 +386,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/RequirementDefinition.cs b/SysML2.NET/Core/AutoGenDto/RequirementDefinition.cs index d662057eb..11d83e463 100644 --- a/SysML2.NET/Core/AutoGenDto/RequirementDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/RequirementDefinition.cs @@ -54,7 +54,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -71,7 +71,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1583376806647_629021_133", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementDefinition.AssumedConstraint")] - public List AssumedConstraint { get; internal set; } + public List assumedConstraint { get; internal set; } = []; /// /// The declared name of this Element. @@ -102,7 +102,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -111,7 +111,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -120,7 +120,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -129,7 +129,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -145,7 +145,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -153,7 +153,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List Expression { get; internal set; } + public List expression { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -161,7 +161,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -170,7 +170,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The ConcernUsages framed by this RequirementDefinition, which are the ownedConcerns of all @@ -179,7 +179,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_4_12e503d9_1617116733499_587735_3242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583376932997_792124_158")] [Implements(implementation: "IRequirementDefinition.FramedConcern")] - public List FramedConcern { get; internal set; } + public List framedConcern { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -187,7 +187,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -195,7 +195,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -204,7 +204,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -212,7 +212,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -225,7 +225,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -240,7 +240,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -265,7 +265,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -276,7 +276,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -304,7 +304,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -312,7 +312,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -322,7 +322,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -332,7 +332,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -340,7 +340,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -348,7 +348,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -356,7 +356,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -364,7 +364,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -374,7 +374,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -382,7 +382,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -390,7 +390,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -398,7 +398,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -406,7 +406,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -415,7 +415,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -425,7 +425,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -433,7 +433,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -443,7 +443,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -453,7 +453,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -461,7 +461,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -470,7 +470,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -478,7 +478,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -486,7 +486,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -496,7 +496,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -504,7 +504,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -514,7 +514,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -522,7 +522,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -531,7 +531,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -539,7 +539,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -548,7 +548,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -559,7 +559,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -567,7 +567,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -575,7 +575,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -583,7 +583,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -591,7 +591,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -599,7 +599,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -615,7 +615,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -623,7 +623,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -633,7 +633,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -641,7 +641,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -650,7 +650,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -658,7 +658,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -667,7 +667,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -676,7 +676,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -684,7 +684,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -692,7 +692,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -700,7 +700,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -708,7 +708,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -716,7 +716,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -725,7 +725,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -734,7 +734,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -751,7 +751,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -763,7 +763,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An optional modeler-specified identifier for this RequirementDefinition (used, e.g., to link it to @@ -783,7 +783,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1583376932997_792124_158", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementDefinition.RequiredConstraint")] - public List RequiredConstraint { get; internal set; } + public List requiredConstraint { get; internal set; } = []; /// /// The object or value that is the result of evaluating the Function. @@ -792,7 +792,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -802,7 +802,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The parameters of this RequirementDefinition that represent stakeholders for th requirement. @@ -811,7 +811,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.StakeholderParameter")] - public List StakeholderParameter { get; internal set; } + public List stakeholderParameter { get; internal set; } = []; /// /// The Steps that make up this Behavior. @@ -819,7 +819,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The parameter of this RequirementDefinition that represents its subject. @@ -828,7 +828,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// An optional textual statement of the requirement represented by this RequirementDefinition, derived @@ -836,7 +836,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1583376433122_189839_94", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementDefinition.Text")] - public List Text { get; internal set; } + public List text { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -845,7 +845,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -856,7 +856,7 @@ public partial class RequirementDefinition : IRequirementDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -864,7 +864,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -873,7 +873,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -883,7 +883,7 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/RequirementUsage.cs b/SysML2.NET/Core/AutoGenDto/RequirementUsage.cs index 76d48040b..716324f82 100644 --- a/SysML2.NET/Core/AutoGenDto/RequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/RequirementUsage.cs @@ -54,7 +54,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -71,7 +71,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.AssumedConstraint")] - public List AssumedConstraint { get; internal set; } + public List assumedConstraint { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -80,7 +80,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -92,7 +92,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -103,7 +103,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public Guid? ConstraintDefinition { get; internal set; } + public Guid? constraintDefinition { get; internal set; } /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -113,7 +113,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -142,7 +142,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -155,7 +155,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -164,7 +164,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -173,7 +173,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -190,7 +190,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -206,7 +206,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -216,7 +216,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -224,7 +224,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -233,14 +233,14 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -250,7 +250,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -259,7 +259,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] [Implements(implementation: "IRequirementUsage.FramedConcern")] - public List FramedConcern { get; internal set; } + public List framedConcern { get; internal set; } = []; /// /// The Function that types this Expression. @@ -268,7 +268,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -276,7 +276,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -284,7 +284,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -292,7 +292,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -301,7 +301,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -309,7 +309,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -322,7 +322,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -346,7 +346,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -401,7 +401,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -409,7 +409,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -431,7 +431,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -480,7 +480,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -488,7 +488,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -496,7 +496,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -506,7 +506,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -516,7 +516,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -524,7 +524,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -532,7 +532,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -540,7 +540,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -548,7 +548,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -556,7 +556,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -564,7 +564,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -572,7 +572,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -582,7 +582,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -590,7 +590,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -598,7 +598,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -606,7 +606,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -614,7 +614,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -622,7 +622,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -630,7 +630,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -638,7 +638,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -646,7 +646,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -654,7 +654,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -662,7 +662,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -670,7 +670,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -678,7 +678,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -686,7 +686,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -694,7 +694,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -703,7 +703,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -711,7 +711,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -719,7 +719,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -727,7 +727,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -735,7 +735,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -745,7 +745,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -753,7 +753,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -763,7 +763,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -772,7 +772,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -781,7 +781,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -791,7 +791,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -801,7 +801,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -809,7 +809,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -818,7 +818,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -826,7 +826,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -836,7 +836,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -846,7 +846,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -856,7 +856,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -866,7 +866,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -875,7 +875,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -884,7 +884,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -895,7 +895,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -904,7 +904,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -913,7 +913,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -931,7 +931,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -941,7 +941,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -951,7 +951,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -961,7 +961,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -970,7 +970,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -978,7 +978,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -987,7 +987,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -995,7 +995,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1004,7 +1004,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1013,7 +1013,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1031,7 +1031,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1039,7 +1039,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1048,7 +1048,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1066,7 +1066,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? Predicate { get; internal set; } + public Guid? predicate { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1078,7 +1078,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -1098,7 +1098,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.RequiredConstraint")] - public List RequiredConstraint { get; internal set; } + public List requiredConstraint { get; internal set; } = []; /// /// The RequirementDefinition that is the single definition of this RequirementUsage. @@ -1106,7 +1106,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1583000408905_769743_1223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public Guid? RequirementDefinition { get; internal set; } + public Guid? requirementDefinition { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1117,7 +1117,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1127,7 +1127,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -1136,7 +1136,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.StakeholderParameter")] - public List StakeholderParameter { get; internal set; } + public List stakeholderParameter { get; internal set; } = []; /// /// The parameter of this RequirementUsage that represents its subject. @@ -1145,7 +1145,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from @@ -1153,7 +1153,7 @@ public partial class RequirementUsage : IRequirementUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementUsage.Text")] - public List Text { get; internal set; } + public List text { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -1162,7 +1162,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1173,7 +1173,7 @@ public partial class RequirementUsage : IRequirementUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1184,7 +1184,7 @@ public partial class RequirementUsage : IRequirementUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1192,7 +1192,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1201,7 +1201,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1210,7 +1210,7 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/RequirementVerificationMembership.cs b/SysML2.NET/Core/AutoGenDto/RequirementVerificationMembership.cs index 61d718bae..422ad9f9e 100644 --- a/SysML2.NET/Core/AutoGenDto/RequirementVerificationMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/RequirementVerificationMembership.cs @@ -79,7 +79,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -113,7 +113,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The kind of a RequirementVerificationMembership must be requirement. @@ -121,7 +121,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1603921465292_637146_187", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "requirement")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048161309_821854_390")] [Implements(implementation: "IRequirementVerificationMembership.Kind")] - RequirementConstraintKind IRequirementVerificationMembership.Kind { get; set; } + public RequirementConstraintKind Kind { get; set; } = RequirementConstraintKind.Requirement; /// /// Whether the RequirementConstraintMembership is for an assumed or required ConstraintUsage. @@ -146,7 +146,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -165,7 +165,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -183,7 +183,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -193,7 +193,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The ConstraintUsage that is the ownedMemberFeature of this RequirementConstraintMembership. @@ -202,7 +202,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IRequirementVerificationMembership.OwnedRequirement")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public Guid OwnedConstraint { get; internal set; } + public Guid ownedConstraint { get; internal set; } /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -210,7 +210,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -221,7 +221,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -229,7 +229,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -239,7 +239,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -247,7 +247,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -255,7 +255,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -281,7 +281,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1603921329650_612380_147", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048366950_985767_426")] [Implements(implementation: "IRequirementVerificationMembership.OwnedRequirement")] - public Guid OwnedRequirement { get; internal set; } + public Guid ownedRequirement { get; internal set; } /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -289,7 +289,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -298,7 +298,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -307,7 +307,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -332,7 +332,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -344,7 +344,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The ConstraintUsage that is referenced through this RequirementConstraintMembership. It is the @@ -354,7 +354,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementVerificationMembership.VerifiedRequirement")] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public Guid ReferencedConstraint { get; internal set; } + public Guid referencedConstraint { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -362,7 +362,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -372,7 +372,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -399,7 +399,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The RequirementUsage that is identified as being verified. It is the referencedConstraint of the @@ -409,7 +409,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1603921870169_98378_309", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1617118807597_77864_3544")] [Implements(implementation: "IRequirementVerificationMembership.VerifiedRequirement")] - public Guid VerifiedRequirement { get; internal set; } + public Guid verifiedRequirement { get; internal set; } /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -417,7 +417,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/ResultExpressionMembership.cs b/SysML2.NET/Core/AutoGenDto/ResultExpressionMembership.cs index 1c2a9c269..b1b242209 100644 --- a/SysML2.NET/Core/AutoGenDto/ResultExpressionMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ResultExpressionMembership.cs @@ -80,7 +80,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -114,7 +114,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -131,7 +131,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -150,7 +150,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -168,7 +168,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -178,7 +178,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -186,7 +186,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -197,7 +197,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -205,7 +205,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -215,7 +215,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IResultExpressionMembership.OwnedResultExpression")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -223,7 +223,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -231,7 +231,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -255,7 +255,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [Property(xmiId: "_19_0_2_12e503d9_1594868945944_989058_2545", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IResultExpressionMembership.OwnedResultExpression")] - public Guid OwnedResultExpression { get; internal set; } + public Guid ownedResultExpression { get; internal set; } /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -263,7 +263,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -272,7 +272,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -281,7 +281,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -306,7 +306,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -318,7 +318,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -326,7 +326,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -336,7 +336,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -363,7 +363,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -371,7 +371,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/ReturnParameterMembership.cs b/SysML2.NET/Core/AutoGenDto/ReturnParameterMembership.cs index 8360aeae1..495f2c3e3 100644 --- a/SysML2.NET/Core/AutoGenDto/ReturnParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ReturnParameterMembership.cs @@ -79,7 +79,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -113,7 +113,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -130,7 +130,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -149,7 +149,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -167,7 +167,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -177,7 +177,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -185,7 +185,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -196,7 +196,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -204,7 +204,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -214,7 +214,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -222,7 +222,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The Feature that is identified as a parameter by this ParameterMembership. @@ -230,7 +230,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [Property(xmiId: "_18_5_3_12e503d9_1557528016548_548098_110830", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public Guid OwnedMemberParameter { get; internal set; } + public Guid ownedMemberParameter { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -238,7 +238,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -262,7 +262,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -271,7 +271,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -280,7 +280,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -305,7 +305,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -317,7 +317,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -325,7 +325,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -335,7 +335,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -362,7 +362,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -370,7 +370,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/SatisfyRequirementUsage.cs b/SysML2.NET/Core/AutoGenDto/SatisfyRequirementUsage.cs index d35870cbe..5a4a33e7d 100644 --- a/SysML2.NET/Core/AutoGenDto/SatisfyRequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/SatisfyRequirementUsage.cs @@ -57,7 +57,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -74,7 +74,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1581045158665_239617_9458", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("ISatisfyRequirementUsage.SatisfiedRequirement")] [Implements(implementation: "IAssertConstraintUsage.AssertedConstraint")] - public Guid AssertedConstraint { get; internal set; } + public Guid assertedConstraint { get; internal set; } /// /// The owned ConstraintUsages that represent assumptions of this RequirementUsage, derived as the @@ -84,7 +84,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.AssumedConstraint")] - public List AssumedConstraint { get; internal set; } + public List assumedConstraint { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -93,7 +93,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -105,7 +105,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -116,7 +116,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public Guid? ConstraintDefinition { get; internal set; } + public Guid? constraintDefinition { get; internal set; } /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -126,7 +126,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -155,7 +155,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -168,7 +168,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -177,7 +177,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -186,7 +186,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -203,7 +203,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -219,7 +219,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -229,7 +229,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -237,7 +237,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -246,14 +246,14 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -263,7 +263,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -272,7 +272,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] [Implements(implementation: "IRequirementUsage.FramedConcern")] - public List FramedConcern { get; internal set; } + public List framedConcern { get; internal set; } = []; /// /// The Function that types this Expression. @@ -281,7 +281,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -289,7 +289,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -297,7 +297,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -305,7 +305,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -314,7 +314,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -322,7 +322,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -335,7 +335,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -359,7 +359,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -414,7 +414,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -422,7 +422,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether this Invariant is asserted to be false rather than true. @@ -451,7 +451,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -500,7 +500,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -508,7 +508,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -516,7 +516,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -526,7 +526,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -536,7 +536,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -544,7 +544,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -552,7 +552,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -560,7 +560,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -568,7 +568,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -576,7 +576,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -584,7 +584,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -592,7 +592,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -602,7 +602,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -610,7 +610,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -618,7 +618,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -626,7 +626,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -634,7 +634,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -642,7 +642,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -650,7 +650,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -658,7 +658,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -666,7 +666,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -674,7 +674,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -682,7 +682,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -690,7 +690,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -698,7 +698,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -706,7 +706,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -714,7 +714,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -723,7 +723,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -731,7 +731,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -739,7 +739,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -747,7 +747,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -755,7 +755,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -765,7 +765,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -773,7 +773,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -783,7 +783,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -792,7 +792,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -801,7 +801,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -811,7 +811,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -821,7 +821,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -829,7 +829,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -838,7 +838,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -846,7 +846,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -856,7 +856,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -866,7 +866,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -876,7 +876,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -886,7 +886,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -895,7 +895,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -904,7 +904,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -915,7 +915,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -924,7 +924,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -933,7 +933,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -951,7 +951,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -961,7 +961,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -971,7 +971,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -981,7 +981,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -990,7 +990,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -998,7 +998,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -1007,7 +1007,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1015,7 +1015,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1024,7 +1024,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1033,7 +1033,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1051,7 +1051,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1059,7 +1059,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1068,7 +1068,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1086,7 +1086,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? Predicate { get; internal set; } + public Guid? predicate { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1098,7 +1098,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -1118,7 +1118,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.RequiredConstraint")] - public List RequiredConstraint { get; internal set; } + public List requiredConstraint { get; internal set; } = []; /// /// The RequirementDefinition that is the single definition of this RequirementUsage. @@ -1126,7 +1126,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1583000408905_769743_1223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public Guid? RequirementDefinition { get; internal set; } + public Guid? requirementDefinition { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1137,7 +1137,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The RequirementUsage that is satisfied by the satisfyingSubject of this SatisfyRequirementUsage. It @@ -1147,7 +1147,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1583185037725_699150_2332", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1581045158665_239617_9458")] [Implements(implementation: "ISatisfyRequirementUsage.SatisfiedRequirement")] - public Guid SatisfiedRequirement { get; internal set; } + public Guid satisfiedRequirement { get; internal set; } /// /// The Feature that represents the actual subject that is asserted to satisfy the satisfiedRequirement. @@ -1155,7 +1155,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583378847285_929988_1396", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ISatisfyRequirementUsage.SatisfyingFeature")] - public Guid SatisfyingFeature { get; internal set; } + public Guid satisfyingFeature { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1165,7 +1165,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -1174,7 +1174,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.StakeholderParameter")] - public List StakeholderParameter { get; internal set; } + public List stakeholderParameter { get; internal set; } = []; /// /// The parameter of this RequirementUsage that represents its subject. @@ -1183,7 +1183,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from @@ -1191,7 +1191,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementUsage.Text")] - public List Text { get; internal set; } + public List text { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -1200,7 +1200,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1211,7 +1211,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1222,7 +1222,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1230,7 +1230,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1239,7 +1239,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1248,7 +1248,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/SelectExpression.cs b/SysML2.NET/Core/AutoGenDto/SelectExpression.cs index beaccb5d2..8f2e4d400 100644 --- a/SysML2.NET/Core/AutoGenDto/SelectExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/SelectExpression.cs @@ -61,7 +61,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List Argument { get; internal set; } + public List argument { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -70,7 +70,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,7 +82,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -92,7 +92,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -122,7 +122,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -131,7 +131,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -148,7 +148,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -164,7 +164,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -174,7 +174,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -182,7 +182,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -191,14 +191,14 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -208,7 +208,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -216,7 +216,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -224,7 +224,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -232,7 +232,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -241,7 +241,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -249,7 +249,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Type that is being instantiated. @@ -257,7 +257,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public Guid InstantiatedType { get; internal set; } + public Guid instantiatedType { get; internal set; } /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -270,7 +270,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -294,7 +294,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -341,7 +341,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -349,7 +349,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -399,7 +399,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -407,7 +407,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -417,7 +417,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -427,14 +427,14 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// [Property(xmiId: "_18_5_3_12e503d9_1559596728932_861031_29126", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "select")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528808100_646606_111674")] [Implements(implementation: "ISelectExpression.Operator")] - string ISelectExpression.Operator { get; set; } = "select"; + public string Operator { get; set; } = "select"; /// /// An operator symbol that names a corresponding Function from one of the standard packages from the @@ -451,7 +451,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -461,7 +461,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -470,7 +470,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -479,7 +479,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -489,7 +489,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -499,7 +499,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -507,7 +507,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -516,7 +516,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -524,7 +524,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -534,7 +534,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -544,7 +544,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -554,7 +554,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -564,7 +564,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -573,7 +573,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -582,7 +582,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -593,7 +593,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -602,7 +602,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -611,7 +611,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -629,7 +629,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -639,7 +639,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -649,7 +649,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -659,7 +659,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -668,7 +668,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -676,7 +676,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -684,7 +684,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -693,7 +693,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -702,7 +702,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -720,7 +720,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -729,7 +729,7 @@ public partial class SelectExpression : ISelectExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -741,7 +741,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -752,7 +752,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -762,7 +762,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -771,7 +771,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -781,7 +781,7 @@ public partial class SelectExpression : ISelectExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -792,7 +792,7 @@ public partial class SelectExpression : ISelectExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/SendActionUsage.cs b/SysML2.NET/Core/AutoGenDto/SendActionUsage.cs index 4ea97ddb4..9803653ce 100644 --- a/SysML2.NET/Core/AutoGenDto/SendActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/SendActionUsage.cs @@ -60,7 +60,7 @@ public partial class SendActionUsage : ISendActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -76,7 +76,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -88,7 +88,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -98,7 +98,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -126,7 +126,7 @@ public partial class SendActionUsage : ISendActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -139,7 +139,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -148,7 +148,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -157,7 +157,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -174,7 +174,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -190,7 +190,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -200,7 +200,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -208,7 +208,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -217,14 +217,14 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -234,7 +234,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -242,7 +242,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -250,7 +250,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -258,7 +258,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -267,7 +267,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -275,7 +275,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -288,7 +288,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -312,7 +312,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -367,7 +367,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -389,7 +389,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -438,7 +438,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -446,7 +446,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -454,7 +454,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -464,7 +464,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -474,7 +474,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -482,7 +482,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -490,7 +490,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -498,7 +498,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -506,7 +506,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -514,7 +514,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -522,7 +522,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -530,7 +530,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -540,7 +540,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -548,7 +548,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -556,7 +556,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -564,7 +564,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -572,7 +572,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -580,7 +580,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -588,7 +588,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -596,7 +596,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -604,7 +604,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -612,7 +612,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -620,7 +620,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -628,7 +628,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -636,7 +636,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -644,7 +644,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -652,7 +652,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -661,7 +661,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -669,7 +669,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -677,7 +677,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -685,7 +685,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -693,7 +693,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -704,7 +704,7 @@ public partial class SendActionUsage : ISendActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -712,7 +712,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -722,7 +722,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -731,7 +731,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -740,7 +740,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -750,7 +750,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -760,7 +760,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -768,7 +768,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -777,7 +777,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -785,7 +785,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -795,7 +795,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -805,7 +805,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -815,7 +815,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -825,7 +825,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -834,7 +834,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -843,7 +843,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -854,7 +854,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -863,7 +863,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -872,7 +872,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -890,7 +890,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -900,7 +900,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -910,7 +910,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -920,7 +920,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -929,7 +929,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -937,7 +937,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -946,7 +946,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -954,7 +954,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -963,7 +963,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -972,7 +972,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -990,7 +990,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -998,7 +998,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1007,14 +1007,14 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// An Expression whose result is bound to the payload input parameter of this SendActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1612814399422_336683_143", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ISendActionUsage.PayloadArgument")] - public Guid PayloadArgument { get; internal set; } + public Guid payloadArgument { get; internal set; } /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1035,21 +1035,21 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An Expression whose result is bound to the receiver input parameter of this SendActionUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1567742374932_10504_18141", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ISendActionUsage.ReceiverArgument")] - public Guid? ReceiverArgument { get; internal set; } + public Guid? receiverArgument { get; internal set; } /// /// An Expression whose result is bound to the sender input parameter of this SendActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1665504224536_894018_944", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ISendActionUsage.SenderArgument")] - public Guid? SenderArgument { get; internal set; } + public Guid? senderArgument { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1059,7 +1059,7 @@ public partial class SendActionUsage : ISendActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1068,7 +1068,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1079,7 +1079,7 @@ public partial class SendActionUsage : ISendActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1090,7 +1090,7 @@ public partial class SendActionUsage : ISendActionUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1098,7 +1098,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1107,7 +1107,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1116,7 +1116,7 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Specialization.cs b/SysML2.NET/Core/AutoGenDto/Specialization.cs index bd7f052a4..bbd1a3901 100644 --- a/SysML2.NET/Core/AutoGenDto/Specialization.cs +++ b/SysML2.NET/Core/AutoGenDto/Specialization.cs @@ -78,7 +78,7 @@ public partial class Specialization : ISpecialization [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -120,7 +120,7 @@ public partial class Specialization : ISpecialization /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -130,7 +130,7 @@ public partial class Specialization : ISpecialization /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -140,7 +140,7 @@ public partial class Specialization : ISpecialization [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -148,7 +148,7 @@ public partial class Specialization : ISpecialization /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -172,7 +172,7 @@ public partial class Specialization : ISpecialization /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -181,7 +181,7 @@ public partial class Specialization : ISpecialization [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -190,7 +190,7 @@ public partial class Specialization : ISpecialization [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -215,7 +215,7 @@ public partial class Specialization : ISpecialization [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -227,7 +227,7 @@ public partial class Specialization : ISpecialization /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -235,7 +235,7 @@ public partial class Specialization : ISpecialization /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -245,7 +245,7 @@ public partial class Specialization : ISpecialization /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -280,7 +280,7 @@ public partial class Specialization : ISpecialization [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/StakeholderMembership.cs b/SysML2.NET/Core/AutoGenDto/StakeholderMembership.cs index a9fe51ca1..05a4c074a 100644 --- a/SysML2.NET/Core/AutoGenDto/StakeholderMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/StakeholderMembership.cs @@ -79,7 +79,7 @@ public partial class StakeholderMembership : IStakeholderMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -113,7 +113,7 @@ public partial class StakeholderMembership : IStakeholderMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -130,7 +130,7 @@ public partial class StakeholderMembership : IStakeholderMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -149,7 +149,7 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -167,7 +167,7 @@ public partial class StakeholderMembership : IStakeholderMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -177,7 +177,7 @@ public partial class StakeholderMembership : IStakeholderMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -185,7 +185,7 @@ public partial class StakeholderMembership : IStakeholderMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -196,7 +196,7 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -204,7 +204,7 @@ public partial class StakeholderMembership : IStakeholderMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -214,7 +214,7 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -222,7 +222,7 @@ public partial class StakeholderMembership : IStakeholderMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The Feature that is identified as a parameter by this ParameterMembership. @@ -231,7 +231,7 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IStakeholderMembership.OwnedStakeholderParameter")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public Guid OwnedMemberParameter { get; internal set; } + public Guid ownedMemberParameter { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -239,7 +239,7 @@ public partial class StakeholderMembership : IStakeholderMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -263,7 +263,7 @@ public partial class StakeholderMembership : IStakeholderMembership [Property(xmiId: "_19_0_4_12e503d9_1624034451301_6622_40822", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528016548_548098_110830")] [Implements(implementation: "IStakeholderMembership.OwnedStakeholderParameter")] - public Guid OwnedStakeholderParameter { get; internal set; } + public Guid ownedStakeholderParameter { get; internal set; } /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -271,7 +271,7 @@ public partial class StakeholderMembership : IStakeholderMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -280,7 +280,7 @@ public partial class StakeholderMembership : IStakeholderMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -289,7 +289,7 @@ public partial class StakeholderMembership : IStakeholderMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -314,7 +314,7 @@ public partial class StakeholderMembership : IStakeholderMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -326,7 +326,7 @@ public partial class StakeholderMembership : IStakeholderMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -334,7 +334,7 @@ public partial class StakeholderMembership : IStakeholderMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -344,7 +344,7 @@ public partial class StakeholderMembership : IStakeholderMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -371,7 +371,7 @@ public partial class StakeholderMembership : IStakeholderMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -379,7 +379,7 @@ public partial class StakeholderMembership : IStakeholderMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/StateDefinition.cs b/SysML2.NET/Core/AutoGenDto/StateDefinition.cs index cae54baeb..5c229d1ad 100644 --- a/SysML2.NET/Core/AutoGenDto/StateDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/StateDefinition.cs @@ -56,7 +56,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List Action { get; internal set; } + public List action { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -93,7 +93,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -102,7 +102,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -111,7 +111,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The ActionUsage of this StateDefinition to be performed while in the state defined by the @@ -120,7 +120,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1582975916386_388324_339", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateDefinition.DoAction")] - public Guid? DoAction { get; internal set; } + public Guid? doAction { get; internal set; } /// /// The Documentation owned by this Element. @@ -129,7 +129,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -145,7 +145,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ActionUsage of this StateDefinition to be performed on entry to the state defined by the @@ -154,7 +154,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1582975902339_513804_312", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateDefinition.EntryAction")] - public Guid? EntryAction { get; internal set; } + public Guid? entryAction { get; internal set; } /// /// The ActionUsage of this StateDefinition to be performed on exit to the state defined by the @@ -163,7 +163,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1582975927011_696894_352", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateDefinition.ExitAction")] - public Guid? ExitAction { get; internal set; } + public Guid? exitAction { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -171,7 +171,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -180,7 +180,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -188,7 +188,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -196,7 +196,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -205,7 +205,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -213,7 +213,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -226,7 +226,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -241,7 +241,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -266,7 +266,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether the ownedStates of this StateDefinition are to all be performed in parallel. If true, none @@ -303,7 +303,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -311,7 +311,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -321,7 +321,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -331,7 +331,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -339,7 +339,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -347,7 +347,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -355,7 +355,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -363,7 +363,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -373,7 +373,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -381,7 +381,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -389,7 +389,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -397,7 +397,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -405,7 +405,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -414,7 +414,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -424,7 +424,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -432,7 +432,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -442,7 +442,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -452,7 +452,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -460,7 +460,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -469,7 +469,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -477,7 +477,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -485,7 +485,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -495,7 +495,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -503,7 +503,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -513,7 +513,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -521,7 +521,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -530,7 +530,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -538,7 +538,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -547,7 +547,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -558,7 +558,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -566,7 +566,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -574,7 +574,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -582,7 +582,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -590,7 +590,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -598,7 +598,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -614,7 +614,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -622,7 +622,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -632,7 +632,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -640,7 +640,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -649,7 +649,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -657,7 +657,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -666,7 +666,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -675,7 +675,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -683,7 +683,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -691,7 +691,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -699,7 +699,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -707,7 +707,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -715,7 +715,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -724,7 +724,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -733,7 +733,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -750,7 +750,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -762,7 +762,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -772,7 +772,7 @@ public partial class StateDefinition : IStateDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The StateUsages, which are actions in the StateDefinition, that specify the discrete states in the @@ -781,7 +781,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1575588190693_949879_1156", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [Implements(implementation: "IStateDefinition.State")] - public List State { get; internal set; } + public List state { get; internal set; } = []; /// /// The Steps that make up this Behavior. @@ -789,7 +789,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -798,7 +798,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -809,7 +809,7 @@ public partial class StateDefinition : IStateDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -817,7 +817,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -826,7 +826,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -836,7 +836,7 @@ public partial class StateDefinition : IStateDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/StateSubactionMembership.cs b/SysML2.NET/Core/AutoGenDto/StateSubactionMembership.cs index 8a35e2c02..051331e14 100644 --- a/SysML2.NET/Core/AutoGenDto/StateSubactionMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/StateSubactionMembership.cs @@ -54,7 +54,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [Property(xmiId: "_19_0_2_12e503d9_1582974847979_606181_96", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IStateSubactionMembership.Action")] - public Guid Action { get; internal set; } + public Guid action { get; internal set; } /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -87,7 +87,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -121,7 +121,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this StateSubactionMembership is for an entry, do or exit ActionUsage. @@ -145,7 +145,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -164,7 +164,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -182,7 +182,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -192,7 +192,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -200,7 +200,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -211,7 +211,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -219,7 +219,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -229,7 +229,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IStateSubactionMembership.Action")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -237,7 +237,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -245,7 +245,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -269,7 +269,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -278,7 +278,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -287,7 +287,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -312,7 +312,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -324,7 +324,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -332,7 +332,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -342,7 +342,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -369,7 +369,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -377,7 +377,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/StateUsage.cs b/SysML2.NET/Core/AutoGenDto/StateUsage.cs index e78fcf757..dbead7996 100644 --- a/SysML2.NET/Core/AutoGenDto/StateUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/StateUsage.cs @@ -60,7 +60,7 @@ public partial class StateUsage : IStateUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IStateUsage.StateDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -76,7 +76,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -88,7 +88,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -98,7 +98,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -126,7 +126,7 @@ public partial class StateUsage : IStateUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -139,7 +139,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -148,7 +148,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -157,7 +157,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -174,7 +174,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_2_12e503d9_1582976255473_203238_644", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateUsage.DoAction")] - public Guid? DoAction { get; internal set; } + public Guid? doAction { get; internal set; } /// /// The Documentation owned by this Element. @@ -183,7 +183,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -199,7 +199,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -209,7 +209,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ActionUsage of this StateUsage to be performed on entry to the state defined by the @@ -218,7 +218,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_2_12e503d9_1582976239200_979652_605", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateUsage.EntryAction")] - public Guid? EntryAction { get; internal set; } + public Guid? entryAction { get; internal set; } /// /// The ActionUsage of this StateUsage to be performed on exit to the state defined by the @@ -227,7 +227,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_2_12e503d9_1582976283940_998741_691", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateUsage.ExitAction")] - public Guid? ExitAction { get; internal set; } + public Guid? exitAction { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -235,7 +235,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -244,14 +244,14 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -261,7 +261,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -269,7 +269,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -277,7 +277,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -285,7 +285,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -294,7 +294,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -302,7 +302,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -315,7 +315,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -339,7 +339,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -394,7 +394,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -425,7 +425,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -474,7 +474,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -482,7 +482,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -490,7 +490,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -500,7 +500,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -510,7 +510,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -518,7 +518,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -526,7 +526,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -534,7 +534,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -542,7 +542,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -550,7 +550,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -558,7 +558,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -566,7 +566,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -576,7 +576,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -584,7 +584,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -592,7 +592,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -600,7 +600,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -608,7 +608,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -616,7 +616,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -624,7 +624,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -632,7 +632,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -640,7 +640,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -648,7 +648,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -656,7 +656,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -664,7 +664,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -672,7 +672,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -680,7 +680,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -688,7 +688,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -697,7 +697,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -705,7 +705,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -713,7 +713,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -721,7 +721,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -729,7 +729,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -740,7 +740,7 @@ public partial class StateUsage : IStateUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -748,7 +748,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -758,7 +758,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -767,7 +767,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -776,7 +776,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -786,7 +786,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -796,7 +796,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -804,7 +804,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -813,7 +813,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -821,7 +821,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -831,7 +831,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -841,7 +841,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -851,7 +851,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -861,7 +861,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -870,7 +870,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -879,7 +879,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -890,7 +890,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -899,7 +899,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -908,7 +908,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -926,7 +926,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -936,7 +936,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -946,7 +946,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -956,7 +956,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -965,7 +965,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -973,7 +973,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -982,7 +982,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -990,7 +990,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -999,7 +999,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1008,7 +1008,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1026,7 +1026,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1034,7 +1034,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1043,7 +1043,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1064,7 +1064,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1074,7 +1074,7 @@ public partial class StateUsage : IStateUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Behaviors that are the types of this StateUsage. Nominally, these would be StateDefinitions, but @@ -1083,7 +1083,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1575588456737_49200_1438", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [Implements(implementation: "IStateUsage.StateDefinition")] - public List StateDefinition { get; internal set; } + public List stateDefinition { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -1092,7 +1092,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1103,7 +1103,7 @@ public partial class StateUsage : IStateUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1114,7 +1114,7 @@ public partial class StateUsage : IStateUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1122,7 +1122,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1131,7 +1131,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1140,7 +1140,7 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Step.cs b/SysML2.NET/Core/AutoGenDto/Step.cs index 4abb8f3e9..bfb3e8324 100644 --- a/SysML2.NET/Core/AutoGenDto/Step.cs +++ b/SysML2.NET/Core/AutoGenDto/Step.cs @@ -62,7 +62,7 @@ public partial class Step : IStep [Property(xmiId: "_18_5_3_b9102da_1536346315176_954314_17388", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -74,7 +74,7 @@ public partial class Step : IStep /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -84,7 +84,7 @@ public partial class Step : IStep /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -114,7 +114,7 @@ public partial class Step : IStep /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -123,7 +123,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -140,7 +140,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -156,7 +156,7 @@ public partial class Step : IStep [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -166,7 +166,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -174,7 +174,7 @@ public partial class Step : IStep [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -183,14 +183,14 @@ public partial class Step : IStep /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -200,7 +200,7 @@ public partial class Step : IStep /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -208,7 +208,7 @@ public partial class Step : IStep [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -216,7 +216,7 @@ public partial class Step : IStep [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -225,7 +225,7 @@ public partial class Step : IStep [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -233,7 +233,7 @@ public partial class Step : IStep [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -246,7 +246,7 @@ public partial class Step : IStep /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -270,7 +270,7 @@ public partial class Step : IStep /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -317,7 +317,7 @@ public partial class Step : IStep /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -367,7 +367,7 @@ public partial class Step : IStep /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -375,7 +375,7 @@ public partial class Step : IStep /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -385,7 +385,7 @@ public partial class Step : IStep [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -395,7 +395,7 @@ public partial class Step : IStep /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -403,7 +403,7 @@ public partial class Step : IStep [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -413,7 +413,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -422,7 +422,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -431,7 +431,7 @@ public partial class Step : IStep [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -441,7 +441,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -451,7 +451,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -459,7 +459,7 @@ public partial class Step : IStep /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -468,7 +468,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -476,7 +476,7 @@ public partial class Step : IStep [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -486,7 +486,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -496,7 +496,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -506,7 +506,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -516,7 +516,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -525,7 +525,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -534,7 +534,7 @@ public partial class Step : IStep [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -545,7 +545,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -554,7 +554,7 @@ public partial class Step : IStep [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -563,7 +563,7 @@ public partial class Step : IStep [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -581,7 +581,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -591,7 +591,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -601,7 +601,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -611,7 +611,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -620,7 +620,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -628,7 +628,7 @@ public partial class Step : IStep /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -636,7 +636,7 @@ public partial class Step : IStep [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -645,7 +645,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -654,7 +654,7 @@ public partial class Step : IStep [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -672,7 +672,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -681,7 +681,7 @@ public partial class Step : IStep [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -693,7 +693,7 @@ public partial class Step : IStep /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -703,7 +703,7 @@ public partial class Step : IStep /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -712,7 +712,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -722,7 +722,7 @@ public partial class Step : IStep /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -733,7 +733,7 @@ public partial class Step : IStep /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Structure.cs b/SysML2.NET/Core/AutoGenDto/Structure.cs index c224c76b8..a9d397e17 100644 --- a/SysML2.NET/Core/AutoGenDto/Structure.cs +++ b/SysML2.NET/Core/AutoGenDto/Structure.cs @@ -82,7 +82,7 @@ public partial class Structure : IStructure /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -90,7 +90,7 @@ public partial class Structure : IStructure [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -99,7 +99,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -115,7 +115,7 @@ public partial class Structure : IStructure [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -123,7 +123,7 @@ public partial class Structure : IStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -132,7 +132,7 @@ public partial class Structure : IStructure /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -140,7 +140,7 @@ public partial class Structure : IStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -148,7 +148,7 @@ public partial class Structure : IStructure [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -157,7 +157,7 @@ public partial class Structure : IStructure [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -165,7 +165,7 @@ public partial class Structure : IStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -178,7 +178,7 @@ public partial class Structure : IStructure /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -193,7 +193,7 @@ public partial class Structure : IStructure /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -211,7 +211,7 @@ public partial class Structure : IStructure /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -231,7 +231,7 @@ public partial class Structure : IStructure /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -239,7 +239,7 @@ public partial class Structure : IStructure /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -249,7 +249,7 @@ public partial class Structure : IStructure [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -259,7 +259,7 @@ public partial class Structure : IStructure /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -267,7 +267,7 @@ public partial class Structure : IStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -277,7 +277,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -286,7 +286,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -296,7 +296,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -306,7 +306,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -314,7 +314,7 @@ public partial class Structure : IStructure /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -323,7 +323,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -331,7 +331,7 @@ public partial class Structure : IStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -341,7 +341,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -351,7 +351,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -360,7 +360,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -369,7 +369,7 @@ public partial class Structure : IStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -380,7 +380,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -398,7 +398,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -407,7 +407,7 @@ public partial class Structure : IStructure [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -416,7 +416,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -424,7 +424,7 @@ public partial class Structure : IStructure /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -433,7 +433,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -442,7 +442,7 @@ public partial class Structure : IStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -462,7 +462,7 @@ public partial class Structure : IStructure /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -472,7 +472,7 @@ public partial class Structure : IStructure /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -481,7 +481,7 @@ public partial class Structure : IStructure [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -492,7 +492,7 @@ public partial class Structure : IStructure /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Subclassification.cs b/SysML2.NET/Core/AutoGenDto/Subclassification.cs index 7af64d61c..13f80a547 100644 --- a/SysML2.NET/Core/AutoGenDto/Subclassification.cs +++ b/SysML2.NET/Core/AutoGenDto/Subclassification.cs @@ -77,7 +77,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -120,7 +120,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -130,7 +130,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -140,7 +140,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -148,7 +148,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -172,7 +172,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Classifier that owns this Subclassification relationship, which must also be its subclassifier. @@ -180,7 +180,7 @@ public partial class Subclassification : ISubclassification [Property(xmiId: "_18_5_3_12e503d9_1543189170642_857401_25506", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "ISubclassification.OwningClassifier")] - public Guid? OwningClassifier { get; internal set; } + public Guid? owningClassifier { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -189,7 +189,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -198,7 +198,7 @@ public partial class Subclassification : ISubclassification [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -224,7 +224,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubclassification.OwningClassifier")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -236,7 +236,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -244,7 +244,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -254,7 +254,7 @@ public partial class Subclassification : ISubclassification /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -306,7 +306,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/SubjectMembership.cs b/SysML2.NET/Core/AutoGenDto/SubjectMembership.cs index 23018c56d..680097b68 100644 --- a/SysML2.NET/Core/AutoGenDto/SubjectMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/SubjectMembership.cs @@ -79,7 +79,7 @@ public partial class SubjectMembership : ISubjectMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -113,7 +113,7 @@ public partial class SubjectMembership : ISubjectMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -130,7 +130,7 @@ public partial class SubjectMembership : ISubjectMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -149,7 +149,7 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -167,7 +167,7 @@ public partial class SubjectMembership : ISubjectMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -177,7 +177,7 @@ public partial class SubjectMembership : ISubjectMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -185,7 +185,7 @@ public partial class SubjectMembership : ISubjectMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -196,7 +196,7 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -204,7 +204,7 @@ public partial class SubjectMembership : ISubjectMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -214,7 +214,7 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -222,7 +222,7 @@ public partial class SubjectMembership : ISubjectMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The Feature that is identified as a parameter by this ParameterMembership. @@ -231,7 +231,7 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("ISubjectMembership.OwnedSubjectParameter")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public Guid OwnedMemberParameter { get; internal set; } + public Guid ownedMemberParameter { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -239,7 +239,7 @@ public partial class SubjectMembership : ISubjectMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -263,7 +263,7 @@ public partial class SubjectMembership : ISubjectMembership [Property(xmiId: "_19_0_2_59601fc_1590258781117_655788_845", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528016548_548098_110830")] [Implements(implementation: "ISubjectMembership.OwnedSubjectParameter")] - public Guid OwnedSubjectParameter { get; internal set; } + public Guid ownedSubjectParameter { get; internal set; } /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -271,7 +271,7 @@ public partial class SubjectMembership : ISubjectMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -280,7 +280,7 @@ public partial class SubjectMembership : ISubjectMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -289,7 +289,7 @@ public partial class SubjectMembership : ISubjectMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -314,7 +314,7 @@ public partial class SubjectMembership : ISubjectMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -326,7 +326,7 @@ public partial class SubjectMembership : ISubjectMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -334,7 +334,7 @@ public partial class SubjectMembership : ISubjectMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -344,7 +344,7 @@ public partial class SubjectMembership : ISubjectMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -371,7 +371,7 @@ public partial class SubjectMembership : ISubjectMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -379,7 +379,7 @@ public partial class SubjectMembership : ISubjectMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/Subsetting.cs b/SysML2.NET/Core/AutoGenDto/Subsetting.cs index de6d005e3..ceb3a374a 100644 --- a/SysML2.NET/Core/AutoGenDto/Subsetting.cs +++ b/SysML2.NET/Core/AutoGenDto/Subsetting.cs @@ -81,7 +81,7 @@ public partial class Subsetting : ISubsetting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -124,7 +124,7 @@ public partial class Subsetting : ISubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -134,7 +134,7 @@ public partial class Subsetting : ISubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -144,7 +144,7 @@ public partial class Subsetting : ISubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -152,7 +152,7 @@ public partial class Subsetting : ISubsetting /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -176,7 +176,7 @@ public partial class Subsetting : ISubsetting /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// A subsettingFeature that is also the owningRelatedElement of this Subsetting. @@ -185,7 +185,7 @@ public partial class Subsetting : ISubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "ISubsetting.OwningFeature")] - public Guid? OwningFeature { get; internal set; } + public Guid? owningFeature { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -194,7 +194,7 @@ public partial class Subsetting : ISubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -203,7 +203,7 @@ public partial class Subsetting : ISubsetting [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -229,7 +229,7 @@ public partial class Subsetting : ISubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -241,7 +241,7 @@ public partial class Subsetting : ISubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -249,7 +249,7 @@ public partial class Subsetting : ISubsetting /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -259,7 +259,7 @@ public partial class Subsetting : ISubsetting /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -311,7 +311,7 @@ public partial class Subsetting : ISubsetting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Succession.cs b/SysML2.NET/Core/AutoGenDto/Succession.cs index b69c69671..e7ac4cf09 100644 --- a/SysML2.NET/Core/AutoGenDto/Succession.cs +++ b/SysML2.NET/Core/AutoGenDto/Succession.cs @@ -58,7 +58,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674983_471497_43284", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IConnector.Association")] - public List Association { get; internal set; } + public List association { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -70,7 +70,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -80,7 +80,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List ConnectorEnd { get; internal set; } + public List connectorEnd { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -90,7 +90,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -116,7 +116,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public Guid? DefaultFeaturingType { get; internal set; } + public Guid? defaultFeaturingType { get; internal set; } /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -129,7 +129,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -137,7 +137,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -154,7 +154,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -171,7 +171,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -181,7 +181,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -189,7 +189,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -198,14 +198,14 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -215,7 +215,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -223,7 +223,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -231,7 +231,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -240,7 +240,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -248,7 +248,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -261,7 +261,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -285,7 +285,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -340,7 +340,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -390,7 +390,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -398,7 +398,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -408,7 +408,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -418,7 +418,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -426,7 +426,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -436,7 +436,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -445,7 +445,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -454,7 +454,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -464,7 +464,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -474,7 +474,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -482,7 +482,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -491,7 +491,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -499,7 +499,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -509,7 +509,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -519,7 +519,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -529,7 +529,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -539,7 +539,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -548,7 +548,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -557,7 +557,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -568,7 +568,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -577,7 +577,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -586,7 +586,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -612,7 +612,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -622,7 +622,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -632,7 +632,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -642,7 +642,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -651,7 +651,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -659,7 +659,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -667,7 +667,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -676,7 +676,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -685,7 +685,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -711,7 +711,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -723,7 +723,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -732,7 +732,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -741,7 +741,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List RelatedFeature { get; internal set; } + public List relatedFeature { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -751,7 +751,7 @@ public partial class Succession : ISuccession /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -769,7 +769,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public Guid? SourceFeature { get; internal set; } + public Guid? sourceFeature { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -788,7 +788,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List TargetFeature { get; internal set; } + public List targetFeature { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -797,7 +797,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -808,7 +808,7 @@ public partial class Succession : ISuccession [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -819,7 +819,7 @@ public partial class Succession : ISuccession /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/SuccessionAsUsage.cs b/SysML2.NET/Core/AutoGenDto/SuccessionAsUsage.cs index 7c0535c76..4f1273ccb 100644 --- a/SysML2.NET/Core/AutoGenDto/SuccessionAsUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/SuccessionAsUsage.cs @@ -59,7 +59,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674983_471497_43284", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IConnector.Association")] - public List Association { get; internal set; } + public List association { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -71,7 +71,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -81,7 +81,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List ConnectorEnd { get; internal set; } + public List connectorEnd { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -91,7 +91,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -117,7 +117,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public Guid? DefaultFeaturingType { get; internal set; } + public Guid? defaultFeaturingType { get; internal set; } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -127,7 +127,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -140,7 +140,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -148,7 +148,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -157,7 +157,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -174,7 +174,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -191,7 +191,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -201,7 +201,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -209,7 +209,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -218,14 +218,14 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -235,7 +235,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -243,7 +243,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -251,7 +251,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -260,7 +260,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -268,7 +268,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -281,7 +281,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -305,7 +305,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -360,7 +360,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -382,7 +382,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -431,7 +431,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -439,7 +439,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -447,7 +447,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -457,7 +457,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -467,7 +467,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -475,7 +475,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -483,7 +483,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -491,7 +491,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -499,7 +499,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -507,7 +507,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -515,7 +515,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -523,7 +523,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -533,7 +533,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -541,7 +541,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -549,7 +549,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -557,7 +557,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -565,7 +565,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -573,7 +573,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -581,7 +581,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -589,7 +589,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -597,7 +597,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -605,7 +605,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -613,7 +613,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -621,7 +621,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -629,7 +629,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -637,7 +637,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -645,7 +645,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -654,7 +654,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -662,7 +662,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -670,7 +670,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -678,7 +678,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -686,7 +686,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -694,7 +694,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -704,7 +704,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -713,7 +713,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -722,7 +722,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -732,7 +732,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -742,7 +742,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -750,7 +750,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -759,7 +759,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -767,7 +767,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -777,7 +777,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -787,7 +787,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -797,7 +797,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -807,7 +807,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -816,7 +816,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -825,7 +825,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -836,7 +836,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -845,7 +845,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -854,7 +854,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -880,7 +880,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -890,7 +890,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -900,7 +900,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -910,7 +910,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -919,7 +919,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -927,7 +927,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -936,7 +936,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -944,7 +944,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -953,7 +953,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -962,7 +962,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -988,7 +988,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -996,7 +996,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1008,7 +1008,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1017,7 +1017,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1026,7 +1026,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List RelatedFeature { get; internal set; } + public List relatedFeature { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1036,7 +1036,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1054,7 +1054,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public Guid? SourceFeature { get; internal set; } + public Guid? sourceFeature { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1073,7 +1073,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List TargetFeature { get; internal set; } + public List targetFeature { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -1082,7 +1082,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1093,7 +1093,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1104,7 +1104,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1112,7 +1112,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1121,7 +1121,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1130,7 +1130,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs b/SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs index ccf0bc468..1fc4600e9 100644 --- a/SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs +++ b/SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs @@ -62,7 +62,7 @@ public partial class SuccessionFlow : ISuccessionFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List Association { get; internal set; } + public List association { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -71,7 +71,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -83,7 +83,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -93,7 +93,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List ConnectorEnd { get; internal set; } + public List connectorEnd { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -103,7 +103,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -129,7 +129,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public Guid? DefaultFeaturingType { get; internal set; } + public Guid? defaultFeaturingType { get; internal set; } /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -142,7 +142,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -151,7 +151,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -168,7 +168,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -185,7 +185,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -195,7 +195,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -203,7 +203,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -212,14 +212,14 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -229,7 +229,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The connectorEnds of this Flow that are FlowEnds. @@ -237,7 +237,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] [Implements(implementation: "IFlow.FlowEnd")] - public List FlowEnd { get; internal set; } + public List flowEnd { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -245,7 +245,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -253,7 +253,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -262,7 +262,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -270,7 +270,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -280,7 +280,7 @@ public partial class SuccessionFlow : ISuccessionFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IFlow.Interaction")] - public List Interaction { get; internal set; } + public List interaction { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -293,7 +293,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -317,7 +317,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -372,7 +372,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -422,7 +422,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -430,7 +430,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -440,7 +440,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -450,7 +450,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -458,7 +458,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -468,7 +468,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -477,7 +477,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -486,7 +486,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -496,7 +496,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -506,7 +506,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -514,7 +514,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -523,7 +523,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -531,7 +531,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -541,7 +541,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -551,7 +551,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -561,7 +561,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -571,7 +571,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -580,7 +580,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -589,7 +589,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -600,7 +600,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -609,7 +609,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -618,7 +618,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -644,7 +644,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -654,7 +654,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -664,7 +664,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -674,7 +674,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -683,7 +683,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -691,7 +691,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -699,7 +699,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -708,7 +708,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -717,7 +717,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -743,7 +743,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -752,7 +752,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). @@ -760,14 +760,14 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IFlow.PayloadFeature")] - public Guid? PayloadFeature { get; internal set; } + public Guid? payloadFeature { get; internal set; } /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.PayloadType")] - public List PayloadType { get; internal set; } + public List payloadType { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -779,7 +779,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -788,7 +788,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -797,7 +797,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List RelatedFeature { get; internal set; } + public List relatedFeature { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -807,7 +807,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -825,7 +825,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public Guid? SourceFeature { get; internal set; } + public Guid? sourceFeature { get; internal set; } /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the @@ -833,7 +833,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.SourceOutputFeature")] - public Guid? SourceOutputFeature { get; internal set; } + public Guid? sourceOutputFeature { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -852,7 +852,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List TargetFeature { get; internal set; } + public List targetFeature { get; internal set; } = []; /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the @@ -860,7 +860,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.TargetInputFeature")] - public Guid? TargetInputFeature { get; internal set; } + public Guid? targetInputFeature { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -869,7 +869,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -880,7 +880,7 @@ public partial class SuccessionFlow : ISuccessionFlow [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -891,7 +891,7 @@ public partial class SuccessionFlow : ISuccessionFlow /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/SuccessionFlowUsage.cs b/SysML2.NET/Core/AutoGenDto/SuccessionFlowUsage.cs index e3fd18a63..d068cbc33 100644 --- a/SysML2.NET/Core/AutoGenDto/SuccessionFlowUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/SuccessionFlowUsage.cs @@ -57,7 +57,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -73,7 +73,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List Association { get; internal set; } + public List association { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -82,7 +82,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -94,7 +94,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -104,7 +104,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List ConnectorEnd { get; internal set; } + public List connectorEnd { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -114,7 +114,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -140,7 +140,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public Guid? DefaultFeaturingType { get; internal set; } + public Guid? defaultFeaturingType { get; internal set; } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -151,7 +151,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -164,7 +164,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -173,7 +173,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -182,7 +182,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -199,7 +199,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -216,7 +216,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -226,7 +226,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -234,7 +234,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -243,14 +243,14 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -260,7 +260,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Interactions that are the types of this FlowUsage. Nominally, these are FlowDefinitions, but @@ -271,7 +271,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1661900477937_518125_727")] [Implements(implementation: "IFlowUsage.FlowDefinition")] - public List FlowDefinition { get; internal set; } + public List flowDefinition { get; internal set; } = []; /// /// The connectorEnds of this Flow that are FlowEnds. @@ -279,7 +279,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] [Implements(implementation: "IFlow.FlowEnd")] - public List FlowEnd { get; internal set; } + public List flowEnd { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -287,7 +287,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -295,7 +295,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -303,7 +303,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -312,7 +312,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -320,7 +320,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -331,7 +331,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IFlow.Interaction")] - public List Interaction { get; internal set; } + public List interaction { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -344,7 +344,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -368,7 +368,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -431,7 +431,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -453,7 +453,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -502,7 +502,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -510,7 +510,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -518,7 +518,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -528,7 +528,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -538,7 +538,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -546,7 +546,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -554,7 +554,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -562,7 +562,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -570,7 +570,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -578,7 +578,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -586,7 +586,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -594,7 +594,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -604,7 +604,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -612,7 +612,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -620,7 +620,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -628,7 +628,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -636,7 +636,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -644,7 +644,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -652,7 +652,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -660,7 +660,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -668,7 +668,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -676,7 +676,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -684,7 +684,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -692,7 +692,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -700,7 +700,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -708,7 +708,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -716,7 +716,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -725,7 +725,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -733,7 +733,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -741,7 +741,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -749,7 +749,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -757,7 +757,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -768,7 +768,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -776,7 +776,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -786,7 +786,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -795,7 +795,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -804,7 +804,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -814,7 +814,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -824,7 +824,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -832,7 +832,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -841,7 +841,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -849,7 +849,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -859,7 +859,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -869,7 +869,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -879,7 +879,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -889,7 +889,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -898,7 +898,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -907,7 +907,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -918,7 +918,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -927,7 +927,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -936,7 +936,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -962,7 +962,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -972,7 +972,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -982,7 +982,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -992,7 +992,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1001,7 +1001,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1009,7 +1009,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -1018,7 +1018,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1026,7 +1026,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1035,7 +1035,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1044,7 +1044,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -1070,7 +1070,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1078,7 +1078,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1087,7 +1087,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). @@ -1095,14 +1095,14 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IFlow.PayloadFeature")] - public Guid? PayloadFeature { get; internal set; } + public Guid? payloadFeature { get; internal set; } /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.PayloadType")] - public List PayloadType { get; internal set; } + public List payloadType { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1123,7 +1123,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1132,7 +1132,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1141,7 +1141,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List RelatedFeature { get; internal set; } + public List relatedFeature { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1151,7 +1151,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1169,7 +1169,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public Guid? SourceFeature { get; internal set; } + public Guid? sourceFeature { get; internal set; } /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the @@ -1177,7 +1177,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.SourceOutputFeature")] - public Guid? SourceOutputFeature { get; internal set; } + public Guid? sourceOutputFeature { get; internal set; } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1196,7 +1196,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List TargetFeature { get; internal set; } + public List targetFeature { get; internal set; } = []; /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the @@ -1204,7 +1204,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.TargetInputFeature")] - public Guid? TargetInputFeature { get; internal set; } + public Guid? targetInputFeature { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1213,7 +1213,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1224,7 +1224,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1235,7 +1235,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1243,7 +1243,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1252,7 +1252,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1261,7 +1261,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/TerminateActionUsage.cs b/SysML2.NET/Core/AutoGenDto/TerminateActionUsage.cs index 908e9deee..eb23b0ab1 100644 --- a/SysML2.NET/Core/AutoGenDto/TerminateActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/TerminateActionUsage.cs @@ -59,7 +59,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -75,7 +75,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -87,7 +87,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -97,7 +97,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -125,7 +125,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -138,7 +138,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -147,7 +147,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -156,7 +156,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -173,7 +173,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -189,7 +189,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -199,7 +199,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -207,7 +207,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -216,14 +216,14 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -233,7 +233,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -241,7 +241,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -249,7 +249,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -257,7 +257,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -266,7 +266,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -274,7 +274,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -287,7 +287,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -311,7 +311,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -366,7 +366,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -388,7 +388,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -437,7 +437,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -445,7 +445,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -453,7 +453,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -463,7 +463,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -473,7 +473,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -481,7 +481,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -489,7 +489,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -497,7 +497,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -505,7 +505,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -513,7 +513,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -521,7 +521,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -529,7 +529,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -539,7 +539,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -547,7 +547,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -555,7 +555,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -563,7 +563,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -571,7 +571,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -579,7 +579,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -587,7 +587,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -595,7 +595,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -603,7 +603,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -611,7 +611,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -619,7 +619,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -627,7 +627,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -635,7 +635,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -643,7 +643,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -651,7 +651,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -660,7 +660,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -668,7 +668,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -676,7 +676,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -684,7 +684,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -692,7 +692,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -703,7 +703,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -711,7 +711,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -721,7 +721,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -730,7 +730,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -739,7 +739,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -749,7 +749,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -759,7 +759,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -767,7 +767,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -776,7 +776,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -784,7 +784,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -794,7 +794,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -804,7 +804,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -814,7 +814,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -824,7 +824,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -833,7 +833,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -842,7 +842,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -853,7 +853,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -862,7 +862,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -871,7 +871,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -889,7 +889,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -899,7 +899,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -909,7 +909,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -919,7 +919,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -928,7 +928,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -936,7 +936,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -945,7 +945,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -953,7 +953,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -962,7 +962,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -971,7 +971,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -989,7 +989,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -997,7 +997,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1006,7 +1006,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1027,7 +1027,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1037,7 +1037,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Expression that is the featureValue of the terminateOccurrence parameter of this @@ -1045,7 +1045,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [Property(xmiId: "_2022x_2_12e503d9_1724451750939_948290_107", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ITerminateActionUsage.TerminatedOccurrenceArgument")] - public Guid? TerminatedOccurrenceArgument { get; internal set; } + public Guid? terminatedOccurrenceArgument { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1054,7 +1054,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1065,7 +1065,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1076,7 +1076,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1084,7 +1084,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1093,7 +1093,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1102,7 +1102,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/TextualRepresentation.cs b/SysML2.NET/Core/AutoGenDto/TextualRepresentation.cs index fabac8d2d..a1228ab56 100644 --- a/SysML2.NET/Core/AutoGenDto/TextualRepresentation.cs +++ b/SysML2.NET/Core/AutoGenDto/TextualRepresentation.cs @@ -82,7 +82,7 @@ public partial class TextualRepresentation : ITextualRepresentation [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("ITextualRepresentation.RepresentedElement")] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List AnnotatedElement { get; internal set; } + public List annotatedElement { get; internal set; } = []; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -91,7 +91,7 @@ public partial class TextualRepresentation : ITextualRepresentation [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List Annotation { get; internal set; } + public List annotation { get; internal set; } = []; /// /// The textual representation of the representedElement in the given language. @@ -124,7 +124,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -150,7 +150,7 @@ public partial class TextualRepresentation : ITextualRepresentation /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The natural or artifical language in which the body text is written. @@ -167,7 +167,7 @@ public partial class TextualRepresentation : ITextualRepresentation /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -177,7 +177,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List OwnedAnnotatingRelationship { get; internal set; } + public List ownedAnnotatingRelationship { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -187,7 +187,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -195,7 +195,7 @@ public partial class TextualRepresentation : ITextualRepresentation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -211,7 +211,7 @@ public partial class TextualRepresentation : ITextualRepresentation /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -220,7 +220,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public Guid? OwningAnnotatingRelationship { get; internal set; } + public Guid? owningAnnotatingRelationship { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -229,7 +229,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -238,7 +238,7 @@ public partial class TextualRepresentation : ITextualRepresentation [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -258,7 +258,7 @@ public partial class TextualRepresentation : ITextualRepresentation /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Element that is represented by this TextualRepresentation. @@ -267,7 +267,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_744477_17277")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594145755058_99428_86")] [Implements(implementation: "ITextualRepresentation.RepresentedElement")] - public Guid RepresentedElement { get; internal set; } + public Guid representedElement { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -277,7 +277,7 @@ public partial class TextualRepresentation : ITextualRepresentation /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -286,7 +286,7 @@ public partial class TextualRepresentation : ITextualRepresentation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - List Root.Elements.IElement.TextualRepresentation { get; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/TransitionFeatureMembership.cs b/SysML2.NET/Core/AutoGenDto/TransitionFeatureMembership.cs index c7404dbff..cf67182e3 100644 --- a/SysML2.NET/Core/AutoGenDto/TransitionFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/TransitionFeatureMembership.cs @@ -80,7 +80,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -114,7 +114,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this TransitionFeatureMembership is for a trigger, guard or effect. @@ -138,7 +138,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -157,7 +157,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -175,7 +175,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -185,7 +185,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -193,7 +193,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -204,7 +204,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -212,7 +212,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -222,7 +222,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("ITransitionFeatureMembership.TransitionFeature")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -230,7 +230,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -238,7 +238,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -262,7 +262,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -271,7 +271,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -280,7 +280,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -305,7 +305,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -317,7 +317,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -325,7 +325,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -335,7 +335,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -362,7 +362,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The Step that is the ownedMemberFeature of this TransitionFeatureMembership. @@ -370,7 +370,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [Property(xmiId: "_19_0_2_12e503d9_1582975046568_736161_148", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "ITransitionFeatureMembership.TransitionFeature")] - public Guid TransitionFeature { get; internal set; } + public Guid transitionFeature { get; internal set; } /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -378,7 +378,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/TransitionUsage.cs b/SysML2.NET/Core/AutoGenDto/TransitionUsage.cs index 2528982ff..ab400e0bf 100644 --- a/SysML2.NET/Core/AutoGenDto/TransitionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/TransitionUsage.cs @@ -61,7 +61,7 @@ public partial class TransitionUsage : ITransitionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -77,7 +77,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -89,7 +89,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -99,7 +99,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -127,7 +127,7 @@ public partial class TransitionUsage : ITransitionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -140,7 +140,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -149,7 +149,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -158,7 +158,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -175,7 +175,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The ActionUsages that define the effects of this TransitionUsage, which are the ownedFeatures of the @@ -185,7 +185,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1581029782522_542070_6299", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "ITransitionUsage.EffectAction")] - public List EffectAction { get; internal set; } + public List effectAction { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -201,7 +201,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -211,7 +211,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -219,7 +219,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -228,14 +228,14 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -245,7 +245,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Expressions that define the guards of this TransitionUsage, which are the ownedFeatures of the @@ -255,7 +255,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1581029720824_747691_6254", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "ITransitionUsage.GuardExpression")] - public List GuardExpression { get; internal set; } + public List guardExpression { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -263,7 +263,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -271,7 +271,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -279,7 +279,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -288,7 +288,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -296,7 +296,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -309,7 +309,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -333,7 +333,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -388,7 +388,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -410,7 +410,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -459,7 +459,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -467,7 +467,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -475,7 +475,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -485,7 +485,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -495,7 +495,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -503,7 +503,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -511,7 +511,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -519,7 +519,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -527,7 +527,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -535,7 +535,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -543,7 +543,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -551,7 +551,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -561,7 +561,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -569,7 +569,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -577,7 +577,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -585,7 +585,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -593,7 +593,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -601,7 +601,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -609,7 +609,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -617,7 +617,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -625,7 +625,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -633,7 +633,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -641,7 +641,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -649,7 +649,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -657,7 +657,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -665,7 +665,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -673,7 +673,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -682,7 +682,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -690,7 +690,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -698,7 +698,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -706,7 +706,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -714,7 +714,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -725,7 +725,7 @@ public partial class TransitionUsage : ITransitionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -733,7 +733,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -743,7 +743,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -752,7 +752,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -761,7 +761,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -771,7 +771,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -781,7 +781,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -789,7 +789,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -798,7 +798,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -806,7 +806,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -816,7 +816,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -826,7 +826,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -836,7 +836,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -846,7 +846,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -855,7 +855,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -864,7 +864,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -875,7 +875,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -884,7 +884,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -893,7 +893,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -911,7 +911,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -921,7 +921,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -931,7 +931,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -941,7 +941,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -950,7 +950,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -958,7 +958,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -967,7 +967,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -975,7 +975,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -984,7 +984,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -993,7 +993,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1011,7 +1011,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1019,7 +1019,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1028,7 +1028,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1049,7 +1049,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1059,7 +1059,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The source ActionUsage of this TransitionUsage, which becomes the source of the succession for the @@ -1067,7 +1067,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1581029439311_947395_6114", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ITransitionUsage.Source")] - public Guid Source { get; internal set; } + public Guid source { get; internal set; } /// /// The Succession that is the ownedFeature of this TransitionUsage, which, if the TransitionUsage is @@ -1076,7 +1076,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1581030490131_304332_6364", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "ITransitionUsage.Succession")] - public Guid Succession { get; internal set; } + public Guid succession { get; internal set; } /// /// The target ActionUsage of this TransitionUsage, which is the targetFeature of the succession for the @@ -1084,7 +1084,7 @@ public partial class TransitionUsage : ITransitionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1581029493366_130491_6153", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ITransitionUsage.Target")] - public Guid Target { get; internal set; } + public Guid target { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1093,7 +1093,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The AcceptActionUsages that define the triggers of this TransitionUsage, which are the ownedFeatures @@ -1103,7 +1103,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1581029662256_985457_6209", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "ITransitionUsage.TriggerAction")] - public List TriggerAction { get; internal set; } + public List triggerAction { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1114,7 +1114,7 @@ public partial class TransitionUsage : ITransitionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1125,7 +1125,7 @@ public partial class TransitionUsage : ITransitionUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1133,7 +1133,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1142,7 +1142,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1151,7 +1151,7 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/TriggerInvocationExpression.cs b/SysML2.NET/Core/AutoGenDto/TriggerInvocationExpression.cs index d0cdb2ee6..446161b62 100644 --- a/SysML2.NET/Core/AutoGenDto/TriggerInvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/TriggerInvocationExpression.cs @@ -63,7 +63,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List Argument { get; internal set; } + public List argument { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -72,7 +72,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -84,7 +84,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -94,7 +94,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -124,7 +124,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -133,7 +133,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -150,7 +150,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -166,7 +166,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -176,7 +176,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -184,7 +184,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -193,14 +193,14 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -210,7 +210,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -218,7 +218,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -226,7 +226,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -234,7 +234,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -243,7 +243,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -251,7 +251,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The Type that is being instantiated. @@ -259,7 +259,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public Guid InstantiatedType { get; internal set; } + public Guid instantiatedType { get; internal set; } /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -272,7 +272,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -296,7 +296,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -343,7 +343,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -351,7 +351,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -409,7 +409,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -417,7 +417,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -427,7 +427,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -437,7 +437,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -445,7 +445,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -455,7 +455,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -464,7 +464,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -473,7 +473,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -483,7 +483,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -493,7 +493,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -501,7 +501,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -510,7 +510,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -518,7 +518,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -528,7 +528,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -538,7 +538,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -548,7 +548,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -558,7 +558,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -567,7 +567,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -576,7 +576,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -587,7 +587,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -596,7 +596,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -605,7 +605,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -623,7 +623,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -633,7 +633,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -643,7 +643,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -653,7 +653,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -662,7 +662,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -670,7 +670,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -678,7 +678,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -687,7 +687,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -696,7 +696,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -714,7 +714,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -723,7 +723,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -735,7 +735,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -746,7 +746,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -756,7 +756,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -765,7 +765,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -775,7 +775,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [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)] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -786,7 +786,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Type.cs b/SysML2.NET/Core/AutoGenDto/Type.cs index 32a7951e1..23d83e239 100644 --- a/SysML2.NET/Core/AutoGenDto/Type.cs +++ b/SysML2.NET/Core/AutoGenDto/Type.cs @@ -82,7 +82,7 @@ public partial class Type : IType /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -90,7 +90,7 @@ public partial class Type : IType [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -99,7 +99,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -115,7 +115,7 @@ public partial class Type : IType [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -123,7 +123,7 @@ public partial class Type : IType [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -132,7 +132,7 @@ public partial class Type : IType /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -140,7 +140,7 @@ public partial class Type : IType [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -148,7 +148,7 @@ public partial class Type : IType [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -157,7 +157,7 @@ public partial class Type : IType [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -165,7 +165,7 @@ public partial class Type : IType [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -178,7 +178,7 @@ public partial class Type : IType /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -193,7 +193,7 @@ public partial class Type : IType /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -211,7 +211,7 @@ public partial class Type : IType /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -231,7 +231,7 @@ public partial class Type : IType /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -239,7 +239,7 @@ public partial class Type : IType /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -249,7 +249,7 @@ public partial class Type : IType [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -259,7 +259,7 @@ public partial class Type : IType /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -267,7 +267,7 @@ public partial class Type : IType [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -277,7 +277,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -286,7 +286,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -296,7 +296,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -306,7 +306,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -314,7 +314,7 @@ public partial class Type : IType /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -323,7 +323,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -331,7 +331,7 @@ public partial class Type : IType [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -341,7 +341,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -351,7 +351,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -360,7 +360,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -369,7 +369,7 @@ public partial class Type : IType [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -380,7 +380,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -398,7 +398,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -407,7 +407,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -415,7 +415,7 @@ public partial class Type : IType /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -424,7 +424,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -433,7 +433,7 @@ public partial class Type : IType [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -453,7 +453,7 @@ public partial class Type : IType /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -463,7 +463,7 @@ public partial class Type : IType /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -472,7 +472,7 @@ public partial class Type : IType [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -483,7 +483,7 @@ public partial class Type : IType /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/TypeFeaturing.cs b/SysML2.NET/Core/AutoGenDto/TypeFeaturing.cs index ef64f32a5..2d1cd249b 100644 --- a/SysML2.NET/Core/AutoGenDto/TypeFeaturing.cs +++ b/SysML2.NET/Core/AutoGenDto/TypeFeaturing.cs @@ -77,7 +77,7 @@ public partial class TypeFeaturing : ITypeFeaturing [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -127,7 +127,7 @@ public partial class TypeFeaturing : ITypeFeaturing /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -137,7 +137,7 @@ public partial class TypeFeaturing : ITypeFeaturing /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -147,7 +147,7 @@ public partial class TypeFeaturing : ITypeFeaturing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -155,7 +155,7 @@ public partial class TypeFeaturing : ITypeFeaturing /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -179,7 +179,7 @@ public partial class TypeFeaturing : ITypeFeaturing /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// A featureOfType that is also the owningRelatedElement of this TypeFeaturing. @@ -188,7 +188,7 @@ public partial class TypeFeaturing : ITypeFeaturing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_912234_579")] [Implements(implementation: "ITypeFeaturing.OwningFeatureOfType")] - public Guid? OwningFeatureOfType { get; internal set; } + public Guid? owningFeatureOfType { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -197,7 +197,7 @@ public partial class TypeFeaturing : ITypeFeaturing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -206,7 +206,7 @@ public partial class TypeFeaturing : ITypeFeaturing [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -234,7 +234,7 @@ public partial class TypeFeaturing : ITypeFeaturing /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -242,7 +242,7 @@ public partial class TypeFeaturing : ITypeFeaturing /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -252,7 +252,7 @@ public partial class TypeFeaturing : ITypeFeaturing /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -279,7 +279,7 @@ public partial class TypeFeaturing : ITypeFeaturing [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/Unioning.cs b/SysML2.NET/Core/AutoGenDto/Unioning.cs index 0969efcc7..6a376cb07 100644 --- a/SysML2.NET/Core/AutoGenDto/Unioning.cs +++ b/SysML2.NET/Core/AutoGenDto/Unioning.cs @@ -76,7 +76,7 @@ public partial class Unioning : IUnioning [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -110,7 +110,7 @@ public partial class Unioning : IUnioning /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -120,7 +120,7 @@ public partial class Unioning : IUnioning /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -130,7 +130,7 @@ public partial class Unioning : IUnioning [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -138,7 +138,7 @@ public partial class Unioning : IUnioning /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -162,7 +162,7 @@ public partial class Unioning : IUnioning /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -171,7 +171,7 @@ public partial class Unioning : IUnioning [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -180,7 +180,7 @@ public partial class Unioning : IUnioning [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -208,7 +208,7 @@ public partial class Unioning : IUnioning /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -216,7 +216,7 @@ public partial class Unioning : IUnioning /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -226,7 +226,7 @@ public partial class Unioning : IUnioning /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -253,7 +253,7 @@ public partial class Unioning : IUnioning [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Type with interpretations partly determined by unioningType, as described in Type::unioningType. @@ -262,7 +262,7 @@ public partial class Unioning : IUnioning [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IUnioning.TypeUnioned")] - public Guid TypeUnioned { get; internal set; } + public Guid typeUnioned { get; internal set; } /// /// Type that partly determines interpretations of typeUnioned, as described in Type::unioningType. diff --git a/SysML2.NET/Core/AutoGenDto/Usage.cs b/SysML2.NET/Core/AutoGenDto/Usage.cs index e16623070..3667c740e 100644 --- a/SysML2.NET/Core/AutoGenDto/Usage.cs +++ b/SysML2.NET/Core/AutoGenDto/Usage.cs @@ -69,7 +69,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -79,7 +79,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -106,7 +106,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -119,7 +119,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -127,7 +127,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -136,7 +136,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -153,7 +153,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -169,7 +169,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -179,7 +179,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -187,7 +187,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -196,14 +196,14 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -213,7 +213,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -221,7 +221,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -229,7 +229,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -238,7 +238,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -246,7 +246,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -259,7 +259,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -283,7 +283,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -330,7 +330,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -352,7 +352,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -401,7 +401,7 @@ public partial class Usage : IUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -409,7 +409,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -417,7 +417,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -427,7 +427,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -437,7 +437,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -445,7 +445,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -453,7 +453,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -461,7 +461,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -469,7 +469,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -477,7 +477,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -485,7 +485,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -493,7 +493,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -503,7 +503,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -511,7 +511,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -519,7 +519,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -527,7 +527,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -535,7 +535,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -543,7 +543,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -551,7 +551,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -559,7 +559,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -567,7 +567,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -575,7 +575,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -583,7 +583,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -591,7 +591,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -599,7 +599,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -607,7 +607,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -615,7 +615,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -624,7 +624,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -632,7 +632,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -640,7 +640,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -648,7 +648,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -656,7 +656,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -664,7 +664,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -674,7 +674,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -683,7 +683,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -692,7 +692,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -702,7 +702,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -712,7 +712,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -720,7 +720,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -729,7 +729,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -737,7 +737,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -747,7 +747,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -757,7 +757,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -767,7 +767,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -777,7 +777,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -786,7 +786,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -795,7 +795,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -806,7 +806,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -815,7 +815,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -824,7 +824,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -842,7 +842,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -852,7 +852,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -862,7 +862,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -872,7 +872,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -881,7 +881,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -889,7 +889,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -898,7 +898,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -906,7 +906,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -915,7 +915,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -924,7 +924,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -942,7 +942,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -950,7 +950,7 @@ public partial class Usage : IUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -962,7 +962,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -972,7 +972,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -981,7 +981,7 @@ public partial class Usage : IUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -992,7 +992,7 @@ public partial class Usage : IUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1003,7 +1003,7 @@ public partial class Usage : IUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1011,7 +1011,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - List IUsage.Usage { get; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1020,7 +1020,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1029,7 +1029,7 @@ public partial class Usage : IUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/UseCaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/UseCaseDefinition.cs index 6d1f330ec..7f868a398 100644 --- a/SysML2.NET/Core/AutoGenDto/UseCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/UseCaseDefinition.cs @@ -55,7 +55,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List Action { get; internal set; } + public List action { get; internal set; } = []; /// /// The parameters of this CaseDefinition that represent actors involved in the case. @@ -64,7 +64,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -80,7 +80,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [Implements(implementation: "ICalculationDefinition.Calculation")] - public List Calculation { get; internal set; } + public List calculation { get; internal set; } = []; /// /// The declared name of this Element. @@ -110,7 +110,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -119,7 +119,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -128,7 +128,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -137,7 +137,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -153,7 +153,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -161,7 +161,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List Expression { get; internal set; } + public List expression { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -169,7 +169,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -178,7 +178,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -186,7 +186,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The UseCaseUsages that are included by this UseCaseDefinition, which are the useCaseIncludeds of the @@ -194,7 +194,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1621461043764_27_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUseCaseDefinition.IncludedUseCase")] - public List IncludedUseCase { get; internal set; } + public List includedUseCase { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -202,7 +202,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -211,7 +211,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -219,7 +219,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -232,7 +232,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -247,7 +247,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -272,7 +272,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -283,7 +283,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -311,7 +311,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -319,7 +319,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -329,7 +329,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -339,7 +339,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The RequirementUsage representing the objective of this CaseDefinition. @@ -347,7 +347,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_59601fc_1590259317710_27529_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ObjectiveRequirement")] - public Guid? ObjectiveRequirement { get; internal set; } + public Guid? objectiveRequirement { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -355,7 +355,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -363,7 +363,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -371,7 +371,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -379,7 +379,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -389,7 +389,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -397,7 +397,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -405,7 +405,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -413,7 +413,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -421,7 +421,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -430,7 +430,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -440,7 +440,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -448,7 +448,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -458,7 +458,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -468,7 +468,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -476,7 +476,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -485,7 +485,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -493,7 +493,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -501,7 +501,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -511,7 +511,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -519,7 +519,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -529,7 +529,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -537,7 +537,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -546,7 +546,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -554,7 +554,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -563,7 +563,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -574,7 +574,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -582,7 +582,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -590,7 +590,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -598,7 +598,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -606,7 +606,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -614,7 +614,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -630,7 +630,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -638,7 +638,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -648,7 +648,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -656,7 +656,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -665,7 +665,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -673,7 +673,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -682,7 +682,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -691,7 +691,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -699,7 +699,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -707,7 +707,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -715,7 +715,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -723,7 +723,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -731,7 +731,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -740,7 +740,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -749,7 +749,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -766,7 +766,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -778,7 +778,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The object or value that is the result of evaluating the Function. @@ -787,7 +787,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -797,7 +797,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Steps that make up this Behavior. @@ -805,7 +805,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The parameter of this CaseDefinition that represents its subject. @@ -814,7 +814,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -823,7 +823,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -834,7 +834,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -842,7 +842,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -851,7 +851,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -861,7 +861,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs index e7365200f..32bb7a17c 100644 --- a/SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs @@ -57,7 +57,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -66,7 +66,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -82,7 +82,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -94,7 +94,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public Guid? CalculationDefinition { get; internal set; } + public Guid? calculationDefinition { get; internal set; } /// /// The CaseDefinition that is the type of this CaseUsage. @@ -103,7 +103,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [RedefinedByProperty("IUseCaseUsage.UseCaseDefinition")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public Guid? CaseDefinition { get; internal set; } + public Guid? caseDefinition { get; internal set; } /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -115,7 +115,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -125,7 +125,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -153,7 +153,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -166,7 +166,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -175,7 +175,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -184,7 +184,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -201,7 +201,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -217,7 +217,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -227,7 +227,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -235,7 +235,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -244,14 +244,14 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -261,7 +261,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -270,7 +270,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -278,7 +278,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The UseCaseUsages that are included by this UseCaseUse, which are the useCaseIncludeds of the @@ -286,7 +286,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1621545989647_997634_1855", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUseCaseUsage.IncludedUseCase")] - public List IncludedUseCase { get; internal set; } + public List includedUseCase { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -294,7 +294,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -302,7 +302,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -311,7 +311,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -319,7 +319,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -332,7 +332,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -356,7 +356,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -411,7 +411,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -419,7 +419,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -441,7 +441,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -490,7 +490,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -498,7 +498,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -506,7 +506,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -516,7 +516,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -526,7 +526,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -534,7 +534,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -542,7 +542,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -550,7 +550,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -558,7 +558,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -566,7 +566,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -574,7 +574,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -582,7 +582,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -592,7 +592,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -600,7 +600,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -608,7 +608,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -616,7 +616,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -624,7 +624,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -632,7 +632,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -640,7 +640,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -648,7 +648,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -656,7 +656,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -664,7 +664,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -672,7 +672,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -680,7 +680,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -688,7 +688,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -696,7 +696,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -704,7 +704,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -713,7 +713,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -721,7 +721,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -729,7 +729,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -737,7 +737,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -745,7 +745,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The RequirementUsage representing the objective of this CaseUsage. @@ -753,7 +753,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591138794257_404044_2145", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ObjectiveRequirement")] - public Guid? ObjectiveRequirement { get; internal set; } + public Guid? objectiveRequirement { get; internal set; } /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -764,7 +764,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -772,7 +772,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -782,7 +782,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -791,7 +791,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -800,7 +800,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -810,7 +810,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -820,7 +820,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -828,7 +828,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -837,7 +837,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -845,7 +845,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -855,7 +855,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -865,7 +865,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -875,7 +875,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -885,7 +885,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -894,7 +894,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -903,7 +903,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -914,7 +914,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -923,7 +923,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -932,7 +932,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -950,7 +950,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -960,7 +960,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -970,7 +970,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -980,7 +980,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -989,7 +989,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -997,7 +997,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -1006,7 +1006,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1014,7 +1014,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1023,7 +1023,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1032,7 +1032,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1050,7 +1050,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1058,7 +1058,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1067,7 +1067,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1088,7 +1088,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1099,7 +1099,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1109,7 +1109,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The parameter of this CaseUsage that represents its subject. @@ -1118,7 +1118,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1127,7 +1127,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1138,7 +1138,7 @@ public partial class UseCaseUsage : IUseCaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1149,7 +1149,7 @@ public partial class UseCaseUsage : IUseCaseUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1157,7 +1157,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The UseCaseDefinition that is the definition of this UseCaseUsage. @@ -1165,7 +1165,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1621460964889_804779_881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] [Implements(implementation: "IUseCaseUsage.UseCaseDefinition")] - public Guid? UseCaseDefinition { get; internal set; } + public Guid? useCaseDefinition { get; internal set; } /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1174,7 +1174,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1183,7 +1183,7 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/VariantMembership.cs b/SysML2.NET/Core/AutoGenDto/VariantMembership.cs index 74a859352..38e3a90cf 100644 --- a/SysML2.NET/Core/AutoGenDto/VariantMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/VariantMembership.cs @@ -79,7 +79,7 @@ public partial class VariantMembership : IVariantMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -113,7 +113,7 @@ public partial class VariantMembership : IVariantMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -130,7 +130,7 @@ public partial class VariantMembership : IVariantMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -148,7 +148,7 @@ public partial class VariantMembership : IVariantMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -166,7 +166,7 @@ public partial class VariantMembership : IVariantMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -176,7 +176,7 @@ public partial class VariantMembership : IVariantMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -184,7 +184,7 @@ public partial class VariantMembership : IVariantMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -195,7 +195,7 @@ public partial class VariantMembership : IVariantMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IVariantMembership.OwnedVariantUsage")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -203,7 +203,7 @@ public partial class VariantMembership : IVariantMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The name of the ownedMemberElement. @@ -211,7 +211,7 @@ public partial class VariantMembership : IVariantMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -219,7 +219,7 @@ public partial class VariantMembership : IVariantMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -244,7 +244,7 @@ public partial class VariantMembership : IVariantMembership [Property(xmiId: "_19_0_2_12e503d9_1590978683452_645414_775", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [Implements(implementation: "IVariantMembership.OwnedVariantUsage")] - public Guid OwnedVariantUsage { get; internal set; } + public Guid ownedVariantUsage { get; internal set; } /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -252,7 +252,7 @@ public partial class VariantMembership : IVariantMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -261,7 +261,7 @@ public partial class VariantMembership : IVariantMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -270,7 +270,7 @@ public partial class VariantMembership : IVariantMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -298,7 +298,7 @@ public partial class VariantMembership : IVariantMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -306,7 +306,7 @@ public partial class VariantMembership : IVariantMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -316,7 +316,7 @@ public partial class VariantMembership : IVariantMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -343,7 +343,7 @@ public partial class VariantMembership : IVariantMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -351,7 +351,7 @@ public partial class VariantMembership : IVariantMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/VerificationCaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/VerificationCaseDefinition.cs index fd95c8893..118f9ea12 100644 --- a/SysML2.NET/Core/AutoGenDto/VerificationCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/VerificationCaseDefinition.cs @@ -54,7 +54,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List Action { get; internal set; } + public List action { get; internal set; } = []; /// /// The parameters of this CaseDefinition that represent actors involved in the case. @@ -63,7 +63,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -79,7 +79,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [Implements(implementation: "ICalculationDefinition.Calculation")] - public List Calculation { get; internal set; } + public List calculation { get; internal set; } = []; /// /// The declared name of this Element. @@ -109,7 +109,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -118,7 +118,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -127,7 +127,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -136,7 +136,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -152,7 +152,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -160,7 +160,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List Expression { get; internal set; } + public List expression { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -168,7 +168,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -177,7 +177,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -185,7 +185,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -193,7 +193,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -202,7 +202,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -210,7 +210,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -223,7 +223,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -238,7 +238,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -263,7 +263,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -274,7 +274,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -302,7 +302,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -310,7 +310,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -320,7 +320,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -330,7 +330,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The RequirementUsage representing the objective of this CaseDefinition. @@ -338,7 +338,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_59601fc_1590259317710_27529_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ObjectiveRequirement")] - public Guid? ObjectiveRequirement { get; internal set; } + public Guid? objectiveRequirement { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -346,7 +346,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -354,7 +354,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -362,7 +362,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -370,7 +370,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -380,7 +380,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -388,7 +388,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -396,7 +396,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -404,7 +404,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -412,7 +412,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -421,7 +421,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -431,7 +431,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -439,7 +439,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -449,7 +449,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -459,7 +459,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -467,7 +467,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -476,7 +476,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -484,7 +484,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -492,7 +492,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -502,7 +502,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -510,7 +510,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -520,7 +520,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -528,7 +528,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -537,7 +537,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -545,7 +545,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -554,7 +554,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -565,7 +565,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -573,7 +573,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -581,7 +581,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -589,7 +589,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -597,7 +597,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -605,7 +605,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -621,7 +621,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -629,7 +629,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -639,7 +639,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -647,7 +647,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -656,7 +656,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -664,7 +664,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -673,7 +673,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -682,7 +682,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -690,7 +690,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -698,7 +698,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -706,7 +706,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -714,7 +714,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -722,7 +722,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -731,7 +731,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -740,7 +740,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -757,7 +757,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -769,7 +769,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The object or value that is the result of evaluating the Function. @@ -778,7 +778,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -788,7 +788,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The Steps that make up this Behavior. @@ -796,7 +796,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The parameter of this CaseDefinition that represents its subject. @@ -805,7 +805,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -814,7 +814,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -825,7 +825,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -833,7 +833,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -842,7 +842,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -852,7 +852,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; /// /// The RequirementUsages verified by this VerificationCaseDefinition, which are the @@ -860,7 +860,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1603922371399_701592_338", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IVerificationCaseDefinition.VerifiedRequirement")] - public List VerifiedRequirement { get; internal set; } + public List verifiedRequirement { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/VerificationCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/VerificationCaseUsage.cs index 4893f76c1..1db7341a9 100644 --- a/SysML2.NET/Core/AutoGenDto/VerificationCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/VerificationCaseUsage.cs @@ -57,7 +57,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -66,7 +66,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -82,7 +82,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -94,7 +94,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public Guid? CalculationDefinition { get; internal set; } + public Guid? calculationDefinition { get; internal set; } /// /// The CaseDefinition that is the type of this CaseUsage. @@ -102,7 +102,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_59601fc_1590257465225_855208_512", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public Guid? CaseDefinition { get; internal set; } + public Guid? caseDefinition { get; internal set; } /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -114,7 +114,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -124,7 +124,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -152,7 +152,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -165,7 +165,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -174,7 +174,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -183,7 +183,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -200,7 +200,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -216,7 +216,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -226,7 +226,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -234,7 +234,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -243,14 +243,14 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -260,7 +260,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Function that types this Expression. @@ -269,7 +269,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -277,7 +277,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -285,7 +285,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -293,7 +293,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -302,7 +302,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -310,7 +310,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -323,7 +323,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -347,7 +347,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -402,7 +402,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -410,7 +410,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -432,7 +432,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -481,7 +481,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -489,7 +489,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -497,7 +497,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -507,7 +507,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -517,7 +517,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -525,7 +525,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -533,7 +533,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -541,7 +541,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -549,7 +549,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -557,7 +557,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -565,7 +565,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -573,7 +573,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -583,7 +583,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -591,7 +591,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -599,7 +599,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -607,7 +607,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -615,7 +615,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -623,7 +623,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -631,7 +631,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -639,7 +639,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -647,7 +647,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -655,7 +655,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -663,7 +663,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -671,7 +671,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -679,7 +679,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -687,7 +687,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -695,7 +695,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -704,7 +704,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -712,7 +712,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -720,7 +720,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -728,7 +728,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -736,7 +736,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The RequirementUsage representing the objective of this CaseUsage. @@ -744,7 +744,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591138794257_404044_2145", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ObjectiveRequirement")] - public Guid? ObjectiveRequirement { get; internal set; } + public Guid? objectiveRequirement { get; internal set; } /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -755,7 +755,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -763,7 +763,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -773,7 +773,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -782,7 +782,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -791,7 +791,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -801,7 +801,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -811,7 +811,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -819,7 +819,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -828,7 +828,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -836,7 +836,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -846,7 +846,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -856,7 +856,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -866,7 +866,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -876,7 +876,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -885,7 +885,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -894,7 +894,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -905,7 +905,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -914,7 +914,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -923,7 +923,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -941,7 +941,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -951,7 +951,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -961,7 +961,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -971,7 +971,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -980,7 +980,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -988,7 +988,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -997,7 +997,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1005,7 +1005,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1014,7 +1014,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1023,7 +1023,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1041,7 +1041,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1049,7 +1049,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1058,7 +1058,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1079,7 +1079,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1090,7 +1090,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1100,7 +1100,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The parameter of this CaseUsage that represents its subject. @@ -1109,7 +1109,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1118,7 +1118,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1129,7 +1129,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1140,7 +1140,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1148,7 +1148,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1157,7 +1157,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1166,7 +1166,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; /// /// The VerificationCase that is the definition of this VerificationCaseUsage. @@ -1174,7 +1174,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_19_0_2_12e503d9_1596821408366_748769_10316", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] [Implements(implementation: "IVerificationCaseUsage.VerificationCaseDefinition")] - public Guid? VerificationCaseDefinition { get; internal set; } + public Guid? verificationCaseDefinition { get; internal set; } /// /// The RequirementUsages verified by this VerificationCaseUsage, which are the verifiedRequirements of @@ -1182,7 +1182,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603922396599_812331_357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IVerificationCaseUsage.VerifiedRequirement")] - public List VerifiedRequirement { get; internal set; } + public List verifiedRequirement { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ViewDefinition.cs b/SysML2.NET/Core/AutoGenDto/ViewDefinition.cs index 75c7e46e5..dbe4a6cbd 100644 --- a/SysML2.NET/Core/AutoGenDto/ViewDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ViewDefinition.cs @@ -82,7 +82,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -90,7 +90,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -99,7 +99,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -108,7 +108,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -124,7 +124,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -132,7 +132,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -141,7 +141,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -149,7 +149,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -157,7 +157,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -166,7 +166,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -174,7 +174,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -187,7 +187,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -202,7 +202,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -227,7 +227,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -255,7 +255,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -263,7 +263,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -273,7 +273,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -283,7 +283,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -291,7 +291,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -299,7 +299,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -307,7 +307,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -315,7 +315,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -325,7 +325,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -333,7 +333,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -341,7 +341,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -349,7 +349,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -357,7 +357,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -366,7 +366,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -376,7 +376,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -384,7 +384,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -394,7 +394,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -404,7 +404,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -412,7 +412,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -421,7 +421,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -429,7 +429,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -437,7 +437,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -447,7 +447,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -455,7 +455,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -465,7 +465,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -473,7 +473,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -482,7 +482,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -490,7 +490,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -499,7 +499,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -510,7 +510,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -518,7 +518,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -526,7 +526,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -534,7 +534,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -542,7 +542,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -550,7 +550,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -566,7 +566,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -574,7 +574,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -584,7 +584,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -592,7 +592,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -601,7 +601,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -609,7 +609,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -618,7 +618,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -627,7 +627,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -635,7 +635,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -643,7 +643,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -651,7 +651,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -659,7 +659,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -667,7 +667,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -676,7 +676,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -685,7 +685,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -705,7 +705,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The composite ownedRequirements of this ViewDefinition that are ViewpointUsages for viewpoints @@ -714,7 +714,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1596645596183_374903_1209", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IViewDefinition.SatisfiedViewpoint")] - public List SatisfiedViewpoint { get; internal set; } + public List satisfiedViewpoint { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -724,7 +724,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -733,7 +733,7 @@ public partial class ViewDefinition : IViewDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -744,7 +744,7 @@ public partial class ViewDefinition : IViewDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -752,7 +752,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -761,7 +761,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -771,7 +771,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; /// /// The usages of this ViewDefinition that are ViewUsages. @@ -779,7 +779,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644452170_21813_753", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IViewDefinition.View")] - public List View { get; internal set; } + public List view { get; internal set; } = []; /// /// The Expressions related to this ViewDefinition by ElementFilterMemberships, which specify conditions @@ -788,7 +788,7 @@ public partial class ViewDefinition : IViewDefinition [Property(xmiId: "_19_0_4_12e503d9_1606938929077_183245_4796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IViewDefinition.ViewCondition")] - public List ViewCondition { get; internal set; } + public List viewCondition { get; internal set; } = []; /// /// The RenderingUsage to be used to render views defined by this ViewDefinition, which is the @@ -796,7 +796,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1596657187664_758418_4914", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IViewDefinition.ViewRendering")] - public Guid? ViewRendering { get; internal set; } + public Guid? viewRendering { get; internal set; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ViewRenderingMembership.cs b/SysML2.NET/Core/AutoGenDto/ViewRenderingMembership.cs index a9125d820..ef43726f2 100644 --- a/SysML2.NET/Core/AutoGenDto/ViewRenderingMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ViewRenderingMembership.cs @@ -78,7 +78,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -112,7 +112,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -129,7 +129,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string MemberElementId { get; internal set; } + public string memberElementId { get; internal set; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -148,7 +148,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid MembershipOwningNamespace { get; internal set; } + public Guid membershipOwningNamespace { get; internal set; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -166,7 +166,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -176,7 +176,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -184,7 +184,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -195,7 +195,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid OwnedMemberElement { get; internal set; } + public Guid ownedMemberElement { get; internal set; } /// /// The elementId of the ownedMemberElement. @@ -203,7 +203,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string OwnedMemberElementId { get; internal set; } + public string ownedMemberElementId { get; internal set; } /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -213,7 +213,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IViewRenderingMembership.OwnedRendering")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid OwnedMemberFeature { get; internal set; } + public Guid ownedMemberFeature { get; internal set; } /// /// The name of the ownedMemberElement. @@ -221,7 +221,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string OwnedMemberName { get; internal set; } + public string ownedMemberName { get; internal set; } /// /// The shortName of the ownedMemberElement. @@ -229,7 +229,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string OwnedMemberShortName { get; internal set; } + public string ownedMemberShortName { get; internal set; } /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -254,7 +254,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [Property(xmiId: "_19_0_4_12e503d9_1617134244546_130200_6000", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IViewRenderingMembership.OwnedRendering")] - public Guid OwnedRendering { get; internal set; } + public Guid ownedRendering { get; internal set; } /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -262,7 +262,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -271,7 +271,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -280,7 +280,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -305,7 +305,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public Guid OwningType { get; internal set; } + public Guid owningType { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -317,7 +317,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The RenderingUsage that is referenced through this ViewRenderingMembership. It is the @@ -326,7 +326,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617134300857_286392_6081", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IViewRenderingMembership.ReferencedRendering")] - public Guid ReferencedRendering { get; internal set; } + public Guid referencedRendering { get; internal set; } /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -334,7 +334,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List RelatedElement { get; internal set; } + public List relatedElement { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -344,7 +344,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The relatedElements from which this Relationship is considered to be directed. @@ -371,7 +371,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -379,7 +379,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenDto/ViewUsage.cs b/SysML2.NET/Core/AutoGenDto/ViewUsage.cs index 008f3ebe7..fa69ab6ad 100644 --- a/SysML2.NET/Core/AutoGenDto/ViewUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ViewUsage.cs @@ -66,7 +66,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -76,7 +76,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -104,7 +104,7 @@ public partial class ViewUsage : IViewUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -117,7 +117,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -125,7 +125,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -134,7 +134,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -151,7 +151,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -167,7 +167,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -177,7 +177,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The Elements that are exposed by this ViewUsage, which are those memberElements of the imported @@ -186,7 +186,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1596648681658_691767_2705", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IViewUsage.ExposedElement")] - public List ExposedElement { get; internal set; } + public List exposedElement { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -194,7 +194,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -203,14 +203,14 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -220,7 +220,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -228,7 +228,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -236,7 +236,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -244,7 +244,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -253,7 +253,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -261,7 +261,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -274,7 +274,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -298,7 +298,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -353,7 +353,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -375,7 +375,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -421,7 +421,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List ItemDefinition { get; internal set; } + public List itemDefinition { get; internal set; } = []; /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -434,7 +434,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -442,7 +442,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -450,7 +450,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -460,7 +460,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -470,7 +470,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -478,7 +478,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -486,7 +486,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -494,7 +494,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -502,7 +502,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -510,7 +510,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -518,7 +518,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -526,7 +526,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -536,7 +536,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -544,7 +544,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -552,7 +552,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -560,7 +560,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -568,7 +568,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -576,7 +576,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -584,7 +584,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -592,7 +592,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -600,7 +600,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -608,7 +608,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -616,7 +616,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -624,7 +624,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -632,7 +632,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -640,7 +640,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -648,7 +648,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -657,7 +657,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -665,7 +665,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -673,7 +673,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -681,7 +681,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -689,7 +689,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -699,7 +699,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -707,7 +707,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -717,7 +717,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -726,7 +726,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -735,7 +735,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -745,7 +745,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -755,7 +755,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -763,7 +763,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -772,7 +772,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -780,7 +780,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -790,7 +790,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -800,7 +800,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -810,7 +810,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -820,7 +820,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -829,7 +829,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -838,7 +838,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -849,7 +849,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -858,7 +858,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -867,7 +867,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -885,7 +885,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -895,7 +895,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -905,7 +905,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -915,7 +915,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -924,7 +924,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -932,7 +932,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -941,7 +941,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -949,7 +949,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -958,7 +958,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -967,7 +967,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -985,7 +985,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -993,7 +993,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The itemDefinitions of this PartUsage that are PartDefinitions. @@ -1002,7 +1002,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedByProperty("IViewUsage.ViewDefinition")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List PartDefinition { get; internal set; } + public List partDefinition { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1023,7 +1023,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The nestedRequirements of this ViewUsage that are ViewpointUsages for (additional) viewpoints @@ -1032,7 +1032,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1596645688987_502277_1282", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IViewUsage.SatisfiedViewpoint")] - public List SatisfiedViewpoint { get; internal set; } + public List satisfiedViewpoint { get; internal set; } = []; /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1042,7 +1042,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1051,7 +1051,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1062,7 +1062,7 @@ public partial class ViewUsage : IViewUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1073,7 +1073,7 @@ public partial class ViewUsage : IViewUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1081,7 +1081,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1090,7 +1090,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1099,7 +1099,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; /// /// The Expressions related to this ViewUsage by ElementFilterMemberships, which specify conditions on @@ -1108,7 +1108,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_4_12e503d9_1606938933668_437943_4809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IViewUsage.ViewCondition")] - public List ViewCondition { get; internal set; } + public List viewCondition { get; internal set; } = []; /// /// The ViewDefinition that is the definition of this ViewUsage. @@ -1116,7 +1116,7 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_19_0_2_12e503d9_1596644438889_580287_734", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591475180488_929065_121")] [Implements(implementation: "IViewUsage.ViewDefinition")] - public Guid? ViewDefinition { get; internal set; } + public Guid? viewDefinition { get; internal set; } /// /// The RenderingUsage to be used to render views defined by this ViewUsage, which is the @@ -1124,7 +1124,7 @@ public partial class ViewUsage : IViewUsage /// [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)] [Implements(implementation: "IViewUsage.ViewRendering")] - public Guid? ViewRendering { get; internal set; } + public Guid? viewRendering { get; internal set; } } } diff --git a/SysML2.NET/Core/AutoGenDto/ViewpointDefinition.cs b/SysML2.NET/Core/AutoGenDto/ViewpointDefinition.cs index d5f2d2243..bfa47b30f 100644 --- a/SysML2.NET/Core/AutoGenDto/ViewpointDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ViewpointDefinition.cs @@ -53,7 +53,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -70,7 +70,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1583376806647_629021_133", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementDefinition.AssumedConstraint")] - public List AssumedConstraint { get; internal set; } + public List assumedConstraint { get; internal set; } = []; /// /// The declared name of this Element. @@ -101,7 +101,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -110,7 +110,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Definition that are directedFeatures. @@ -119,7 +119,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// The Documentation owned by this Element. @@ -128,7 +128,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -144,7 +144,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -152,7 +152,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List Expression { get; internal set; } + public List expression { get; internal set; } = []; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -160,7 +160,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -169,7 +169,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The ConcernUsages framed by this RequirementDefinition, which are the ownedConcerns of all @@ -178,7 +178,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_4_12e503d9_1617116733499_587735_3242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583376932997_792124_158")] [Implements(implementation: "IRequirementDefinition.FramedConcern")] - public List FramedConcern { get; internal set; } + public List framedConcern { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -186,7 +186,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -194,7 +194,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -203,7 +203,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -211,7 +211,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -224,7 +224,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -239,7 +239,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -264,7 +264,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -275,7 +275,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -303,7 +303,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -311,7 +311,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -321,7 +321,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -331,7 +331,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -339,7 +339,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ActionUsages that are ownedUsages of this Definition. @@ -347,7 +347,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List OwnedAction { get; internal set; } + public List ownedAction { get; internal set; } = []; /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -355,7 +355,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List OwnedAllocation { get; internal set; } + public List ownedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -363,7 +363,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List OwnedAnalysisCase { get; internal set; } + public List ownedAnalysisCase { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -373,7 +373,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -381,7 +381,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List OwnedAttribute { get; internal set; } + public List ownedAttribute { get; internal set; } = []; /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -389,7 +389,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List OwnedCalculation { get; internal set; } + public List ownedCalculation { get; internal set; } = []; /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -397,7 +397,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List OwnedCase { get; internal set; } + public List ownedCase { get; internal set; } = []; /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -405,7 +405,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List OwnedConcern { get; internal set; } + public List ownedConcern { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -414,7 +414,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -424,7 +424,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List OwnedConnection { get; internal set; } + public List ownedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -432,7 +432,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List OwnedConstraint { get; internal set; } + public List ownedConstraint { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -442,7 +442,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -452,7 +452,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -460,7 +460,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -469,7 +469,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -477,7 +477,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List OwnedEnumeration { get; internal set; } + public List ownedEnumeration { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -485,7 +485,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -495,7 +495,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The FlowUsages that are ownedUsages of this Definition. @@ -503,7 +503,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List OwnedFlow { get; internal set; } + public List ownedFlow { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -513,7 +513,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -521,7 +521,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List OwnedInterface { get; internal set; } + public List ownedInterface { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -530,7 +530,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The ItemUsages that are ownedUsages of this Definition. @@ -538,7 +538,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List OwnedItem { get; internal set; } + public List ownedItem { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -547,7 +547,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -558,7 +558,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -566,7 +566,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List OwnedMetadata { get; internal set; } + public List ownedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -574,7 +574,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List OwnedOccurrence { get; internal set; } + public List ownedOccurrence { get; internal set; } = []; /// /// The PartUsages that are ownedUsages of this Definition. @@ -582,7 +582,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List OwnedPart { get; internal set; } + public List ownedPart { get; internal set; } = []; /// /// The PortUsages that are ownedUsages of this Definition. @@ -590,7 +590,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List OwnedPort { get; internal set; } + public List ownedPort { get; internal set; } = []; /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -598,7 +598,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List OwnedReference { get; internal set; } + public List ownedReference { get; internal set; } = []; /// /// The Relationships for which this Element is the owningRelatedElement. @@ -614,7 +614,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List OwnedRendering { get; internal set; } + public List ownedRendering { get; internal set; } = []; /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -622,7 +622,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List OwnedRequirement { get; internal set; } + public List ownedRequirement { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -632,7 +632,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The StateUsages that are ownedUsages of this Definition. @@ -640,7 +640,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List OwnedState { get; internal set; } + public List ownedState { get; internal set; } = []; /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -649,7 +649,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List OwnedSubclassification { get; internal set; } + public List ownedSubclassification { get; internal set; } = []; /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -657,7 +657,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List OwnedTransition { get; internal set; } + public List ownedTransition { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -666,7 +666,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Definition. @@ -675,7 +675,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List OwnedUsage { get; internal set; } + public List ownedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -683,7 +683,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List OwnedUseCase { get; internal set; } + public List ownedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -691,7 +691,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List OwnedVerificationCase { get; internal set; } + public List ownedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are ownedUsages of this Definition. @@ -699,7 +699,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List OwnedView { get; internal set; } + public List ownedView { get; internal set; } = []; /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -707,7 +707,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List OwnedViewpoint { get; internal set; } + public List ownedViewpoint { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -715,7 +715,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -724,7 +724,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -733,7 +733,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -750,7 +750,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -762,7 +762,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An optional modeler-specified identifier for this RequirementDefinition (used, e.g., to link it to @@ -782,7 +782,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1583376932997_792124_158", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementDefinition.RequiredConstraint")] - public List RequiredConstraint { get; internal set; } + public List requiredConstraint { get; internal set; } = []; /// /// The object or value that is the result of evaluating the Function. @@ -791,7 +791,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -801,7 +801,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The parameters of this RequirementDefinition that represent stakeholders for th requirement. @@ -810,7 +810,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.StakeholderParameter")] - public List StakeholderParameter { get; internal set; } + public List stakeholderParameter { get; internal set; } = []; /// /// The Steps that make up this Behavior. @@ -818,7 +818,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List Step { get; internal set; } + public List step { get; internal set; } = []; /// /// The parameter of this RequirementDefinition that represents its subject. @@ -827,7 +827,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// An optional textual statement of the requirement represented by this RequirementDefinition, derived @@ -835,7 +835,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1583376433122_189839_94", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementDefinition.Text")] - public List Text { get; internal set; } + public List text { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -844,7 +844,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -855,7 +855,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Definition (not necessarily owned). @@ -863,7 +863,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -872,7 +872,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -882,7 +882,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; /// /// The PartUsages that identify the stakeholders with concerns framed by this ViewpointDefinition, @@ -891,7 +891,7 @@ public partial class ViewpointDefinition : IViewpointDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617117194003_518610_3310", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IViewpointDefinition.ViewpointStakeholder")] - public List ViewpointStakeholder { get; internal set; } + public List viewpointStakeholder { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs b/SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs index f38198e1d..45e801de3 100644 --- a/SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs @@ -54,7 +54,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.ActorParameter")] - public List ActorParameter { get; internal set; } + public List actorParameter { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -71,7 +71,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.AssumedConstraint")] - public List AssumedConstraint { get; internal set; } + public List assumedConstraint { get; internal set; } = []; /// /// The Behaviors that type this Step. @@ -80,7 +80,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -92,7 +92,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -103,7 +103,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public Guid? ConstraintDefinition { get; internal set; } + public Guid? constraintDefinition { get; internal set; } /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -113,7 +113,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -142,7 +142,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -155,7 +155,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -164,7 +164,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -173,7 +173,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -190,7 +190,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -206,7 +206,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -216,7 +216,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -224,7 +224,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -233,14 +233,14 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -250,7 +250,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -259,7 +259,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] [Implements(implementation: "IRequirementUsage.FramedConcern")] - public List FramedConcern { get; internal set; } + public List framedConcern { get; internal set; } = []; /// /// The Function that types this Expression. @@ -268,7 +268,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? Function { get; internal set; } + public Guid? function { get; internal set; } /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -276,7 +276,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -284,7 +284,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -292,7 +292,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -301,7 +301,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -309,7 +309,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -322,7 +322,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -346,7 +346,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -401,7 +401,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -409,7 +409,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool IsModelLevelEvaluable { get; internal set; } + public bool isModelLevelEvaluable { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -431,7 +431,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -480,7 +480,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -488,7 +488,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -496,7 +496,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -506,7 +506,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -516,7 +516,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -524,7 +524,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -532,7 +532,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -540,7 +540,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -548,7 +548,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -556,7 +556,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -564,7 +564,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -572,7 +572,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -582,7 +582,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -590,7 +590,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -598,7 +598,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -606,7 +606,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -614,7 +614,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -622,7 +622,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -630,7 +630,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -638,7 +638,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -646,7 +646,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -654,7 +654,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -662,7 +662,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -670,7 +670,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -678,7 +678,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -686,7 +686,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -694,7 +694,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -703,7 +703,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -711,7 +711,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -719,7 +719,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -727,7 +727,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -735,7 +735,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -745,7 +745,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -753,7 +753,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -763,7 +763,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -772,7 +772,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -781,7 +781,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -791,7 +791,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -801,7 +801,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -809,7 +809,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -818,7 +818,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -826,7 +826,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -836,7 +836,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -846,7 +846,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -856,7 +856,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -866,7 +866,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -875,7 +875,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -884,7 +884,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -895,7 +895,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -904,7 +904,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -913,7 +913,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -931,7 +931,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -941,7 +941,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -951,7 +951,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -961,7 +961,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -970,7 +970,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -978,7 +978,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -987,7 +987,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -995,7 +995,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1004,7 +1004,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1013,7 +1013,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1031,7 +1031,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1039,7 +1039,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1048,7 +1048,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1066,7 +1066,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? Predicate { get; internal set; } + public Guid? predicate { get; internal set; } /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1078,7 +1078,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -1098,7 +1098,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.RequiredConstraint")] - public List RequiredConstraint { get; internal set; } + public List requiredConstraint { get; internal set; } = []; /// /// The RequirementDefinition that is the single definition of this RequirementUsage. @@ -1107,7 +1107,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [RedefinedByProperty("IViewpointUsage.ViewpointDefinition")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public Guid? RequirementDefinition { get; internal set; } + public Guid? requirementDefinition { get; internal set; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1118,7 +1118,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public Guid Result { get; internal set; } + public Guid result { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1128,7 +1128,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -1137,7 +1137,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.StakeholderParameter")] - public List StakeholderParameter { get; internal set; } + public List stakeholderParameter { get; internal set; } = []; /// /// The parameter of this RequirementUsage that represents its subject. @@ -1146,7 +1146,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.SubjectParameter")] - public Guid SubjectParameter { get; internal set; } + public Guid subjectParameter { get; internal set; } /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from @@ -1154,7 +1154,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementUsage.Text")] - public List Text { get; internal set; } + public List text { get; internal set; } = []; /// /// The TextualRepresentations that annotate this Element. @@ -1163,7 +1163,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1174,7 +1174,7 @@ public partial class ViewpointUsage : IViewpointUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1185,7 +1185,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1193,7 +1193,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1202,7 +1202,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1211,7 +1211,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; /// /// The ViewpointDefinition that is the definition of this ViewpointUsage. @@ -1219,7 +1219,7 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1596649684798_569222_3524", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1583000408905_769743_1223")] [Implements(implementation: "IViewpointUsage.ViewpointDefinition")] - public Guid? ViewpointDefinition { get; internal set; } + public Guid? viewpointDefinition { get; internal set; } /// /// The PartUsages that identify the stakeholders with concerns framed by this ViewpointUsage, which are @@ -1227,7 +1227,7 @@ public partial class ViewpointUsage : IViewpointUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617117200628_940407_3323", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IViewpointUsage.ViewpointStakeholder")] - public List ViewpointStakeholder { get; internal set; } + public List viewpointStakeholder { get; internal set; } = []; } } diff --git a/SysML2.NET/Core/AutoGenDto/WhileLoopActionUsage.cs b/SysML2.NET/Core/AutoGenDto/WhileLoopActionUsage.cs index 7a2d065ee..759c7a280 100644 --- a/SysML2.NET/Core/AutoGenDto/WhileLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/WhileLoopActionUsage.cs @@ -59,7 +59,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List ActionDefinition { get; internal set; } + public List actionDefinition { get; internal set; } = []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -75,7 +75,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List Behavior { get; internal set; } + public List behavior { get; internal set; } = []; /// /// The ActionUsage to be performed repeatedly by the LoopActionUsage. It is the second parameter of the @@ -83,7 +83,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624203902575_509097_3869", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ILoopActionUsage.BodyAction")] - public Guid BodyAction { get; internal set; } + public Guid bodyAction { get; internal set; } /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -95,7 +95,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List ChainingFeature { get; internal set; } + public List chainingFeature { get; internal set; } = []; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -105,7 +105,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public Guid? CrossFeature { get; internal set; } + public Guid? crossFeature { get; internal set; } /// /// The declared name of this Element. @@ -133,7 +133,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List Definition { get; internal set; } + public List definition { get; internal set; } = []; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -146,7 +146,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List DifferencingType { get; internal set; } + public List differencingType { get; internal set; } = []; /// /// The features of this Type that have a non-null direction. @@ -155,7 +155,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List DirectedFeature { get; internal set; } + public List directedFeature { get; internal set; } = []; /// /// The usages of this Usage that are directedFeatures. @@ -164,7 +164,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List DirectedUsage { get; internal set; } + public List directedUsage { get; internal set; } = []; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -181,7 +181,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List Documentation { get; internal set; } + public List documentation { get; internal set; } = []; /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -197,7 +197,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List EndFeature { get; internal set; } + public List endFeature { get; internal set; } = []; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -207,7 +207,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public Guid? EndOwningType { get; internal set; } + public Guid? endOwningType { get; internal set; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -215,7 +215,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List Feature { get; internal set; } + public List feature { get; internal set; } = []; /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -224,14 +224,14 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List FeatureMembership { get; internal set; } + public List featureMembership { get; internal set; } = []; /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public Guid FeatureTarget { get; internal set; } + public Guid featureTarget { get; internal set; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -241,7 +241,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List FeaturingType { get; internal set; } + public List featuringType { get; internal set; } = []; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -249,7 +249,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List ImportedMembership { get; internal set; } + public List importedMembership { get; internal set; } = []; /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -257,7 +257,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public Guid? IndividualDefinition { get; internal set; } + public Guid? individualDefinition { get; internal set; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -265,7 +265,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List InheritedFeature { get; internal set; } + public List inheritedFeature { get; internal set; } = []; /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -274,7 +274,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List InheritedMembership { get; internal set; } + public List inheritedMembership { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -282,7 +282,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List Input { get; internal set; } + public List input { get; internal set; } = []; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -295,7 +295,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List IntersectingType { get; internal set; } + public List intersectingType { get; internal set; } = []; /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -319,7 +319,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool IsConjugated { get; internal set; } + public bool isConjugated { get; internal set; } /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -374,7 +374,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool IsLibraryElement { get; internal set; } + public bool isLibraryElement { get; internal set; } /// /// Whether an order exists for the values of this Feature or not. @@ -396,7 +396,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool IsReference { get; internal set; } + public bool isReference { get; internal set; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -445,7 +445,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool MayTimeVary { get; internal set; } + public bool mayTimeVary { get; internal set; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -453,7 +453,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List Member { get; internal set; } + public List member { get; internal set; } = []; /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -461,7 +461,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List Membership { get; internal set; } + public List membership { get; internal set; } = []; /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -471,7 +471,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public Guid? Multiplicity { get; internal set; } + public Guid? multiplicity { get; internal set; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -481,7 +481,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string Name { get; internal set; } + public string name { get; internal set; } /// /// The ActionUsages that are nestedUsages of this Usage. @@ -489,7 +489,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List NestedAction { get; internal set; } + public List nestedAction { get; internal set; } = []; /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -497,7 +497,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List NestedAllocation { get; internal set; } + public List nestedAllocation { get; internal set; } = []; /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -505,7 +505,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List NestedAnalysisCase { get; internal set; } + public List nestedAnalysisCase { get; internal set; } = []; /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -513,7 +513,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List NestedAttribute { get; internal set; } + public List nestedAttribute { get; internal set; } = []; /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -521,7 +521,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List NestedCalculation { get; internal set; } + public List nestedCalculation { get; internal set; } = []; /// /// The CaseUsages that are nestedUsages of this Usage. @@ -529,7 +529,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List NestedCase { get; internal set; } + public List nestedCase { get; internal set; } = []; /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -537,7 +537,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List NestedConcern { get; internal set; } + public List nestedConcern { get; internal set; } = []; /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -547,7 +547,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List NestedConnection { get; internal set; } + public List nestedConnection { get; internal set; } = []; /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -555,7 +555,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List NestedConstraint { get; internal set; } + public List nestedConstraint { get; internal set; } = []; /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -563,7 +563,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List NestedEnumeration { get; internal set; } + public List nestedEnumeration { get; internal set; } = []; /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -571,7 +571,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List NestedFlow { get; internal set; } + public List nestedFlow { get; internal set; } = []; /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -579,7 +579,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List NestedInterface { get; internal set; } + public List nestedInterface { get; internal set; } = []; /// /// The ItemUsages that are nestedUsages of this Usage. @@ -587,7 +587,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List NestedItem { get; internal set; } + public List nestedItem { get; internal set; } = []; /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -595,7 +595,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List NestedMetadata { get; internal set; } + public List nestedMetadata { get; internal set; } = []; /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -603,7 +603,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List NestedOccurrence { get; internal set; } + public List nestedOccurrence { get; internal set; } = []; /// /// The PartUsages that are nestedUsages of this Usage. @@ -611,7 +611,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List NestedPart { get; internal set; } + public List nestedPart { get; internal set; } = []; /// /// The PortUsages that are nestedUsages of this Usage. @@ -619,7 +619,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List NestedPort { get; internal set; } + public List nestedPort { get; internal set; } = []; /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -627,7 +627,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List NestedReference { get; internal set; } + public List nestedReference { get; internal set; } = []; /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -635,7 +635,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List NestedRendering { get; internal set; } + public List nestedRendering { get; internal set; } = []; /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -643,7 +643,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List NestedRequirement { get; internal set; } + public List nestedRequirement { get; internal set; } = []; /// /// The StateUsages that are nestedUsages of this Usage. @@ -651,7 +651,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List NestedState { get; internal set; } + public List nestedState { get; internal set; } = []; /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -659,7 +659,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List NestedTransition { get; internal set; } + public List nestedTransition { get; internal set; } = []; /// /// The Usages that are ownedFeatures of this Usage. @@ -668,7 +668,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List NestedUsage { get; internal set; } + public List nestedUsage { get; internal set; } = []; /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -676,7 +676,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List NestedUseCase { get; internal set; } + public List nestedUseCase { get; internal set; } = []; /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -684,7 +684,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List NestedVerificationCase { get; internal set; } + public List nestedVerificationCase { get; internal set; } = []; /// /// The ViewUsages that are nestedUsages of this Usage. @@ -692,7 +692,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List NestedView { get; internal set; } + public List nestedView { get; internal set; } = []; /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -700,7 +700,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List NestedViewpoint { get; internal set; } + public List nestedViewpoint { get; internal set; } = []; /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -711,7 +711,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List OccurrenceDefinition { get; internal set; } + public List occurrenceDefinition { get; internal set; } = []; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -719,7 +719,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List Output { get; internal set; } + public List output { get; internal set; } = []; /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -729,7 +729,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List OwnedAnnotation { get; internal set; } + public List ownedAnnotation { get; internal set; } = []; /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -738,7 +738,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? OwnedConjugator { get; internal set; } + public Guid? ownedConjugator { get; internal set; } /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -747,7 +747,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public Guid? OwnedCrossSubsetting { get; internal set; } + public Guid? ownedCrossSubsetting { get; internal set; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -757,7 +757,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List OwnedDifferencing { get; internal set; } + public List ownedDifferencing { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -767,7 +767,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List OwnedDisjoining { get; internal set; } + public List ownedDisjoining { get; internal set; } = []; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -775,7 +775,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List OwnedElement { get; internal set; } + public List ownedElement { get; internal set; } = []; /// /// All endFeatures of this Type that are ownedFeatures. @@ -784,7 +784,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List OwnedEndFeature { get; internal set; } + public List ownedEndFeature { get; internal set; } = []; /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -792,7 +792,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List OwnedFeature { get; internal set; } + public List ownedFeature { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -802,7 +802,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List OwnedFeatureChaining { get; internal set; } + public List ownedFeatureChaining { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -812,7 +812,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List OwnedFeatureInverting { get; internal set; } + public List ownedFeatureInverting { get; internal set; } = []; /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -822,7 +822,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List OwnedFeatureMembership { get; internal set; } + public List ownedFeatureMembership { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -832,7 +832,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List OwnedImport { get; internal set; } + public List ownedImport { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -841,7 +841,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List OwnedIntersecting { get; internal set; } + public List ownedIntersecting { get; internal set; } = []; /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -850,7 +850,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List OwnedMember { get; internal set; } + public List ownedMember { get; internal set; } = []; /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -861,7 +861,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List OwnedMembership { get; internal set; } + public List ownedMembership { get; internal set; } = []; /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -870,7 +870,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List OwnedRedefinition { get; internal set; } + public List ownedRedefinition { get; internal set; } = []; /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -879,7 +879,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public Guid? OwnedReferenceSubsetting { get; internal set; } + public Guid? ownedReferenceSubsetting { get; internal set; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -897,7 +897,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List OwnedSpecialization { get; internal set; } + public List ownedSpecialization { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -907,7 +907,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List OwnedSubsetting { get; internal set; } + public List ownedSubsetting { get; internal set; } = []; /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -917,7 +917,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List OwnedTypeFeaturing { get; internal set; } + public List ownedTypeFeaturing { get; internal set; } = []; /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -927,7 +927,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List OwnedTyping { get; internal set; } + public List ownedTyping { get; internal set; } = []; /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -936,7 +936,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List OwnedUnioning { get; internal set; } + public List ownedUnioning { get; internal set; } = []; /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -944,7 +944,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public Guid? Owner { get; internal set; } + public Guid? owner { get; internal set; } /// /// The Definition that owns this Usage (if any). @@ -953,7 +953,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public Guid? OwningDefinition { get; internal set; } + public Guid? owningDefinition { get; internal set; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -961,7 +961,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public Guid? OwningFeatureMembership { get; internal set; } + public Guid? owningFeatureMembership { get; internal set; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -970,7 +970,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public Guid? OwningMembership { get; internal set; } + public Guid? owningMembership { get; internal set; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -979,7 +979,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? OwningNamespace { get; internal set; } + public Guid? owningNamespace { get; internal set; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -997,7 +997,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public Guid? OwningType { get; internal set; } + public Guid? owningType { get; internal set; } /// /// The Usage in which this Usage is nested (if any). @@ -1005,7 +1005,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public Guid? OwningUsage { get; internal set; } + public Guid? owningUsage { get; internal set; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1014,7 +1014,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List Parameter { get; internal set; } + public List parameter { get; internal set; } = []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1035,7 +1035,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QualifiedName { get; internal set; } + public string qualifiedName { get; internal set; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1045,7 +1045,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string ShortName { get; internal set; } + public string shortName { get; internal set; } /// /// The TextualRepresentations that annotate this Element. @@ -1054,7 +1054,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List TextualRepresentation { get; internal set; } + public List textualRepresentation { get; internal set; } = []; /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1065,7 +1065,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List Type { get; internal set; } + public List type { get; internal set; } = []; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1076,7 +1076,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [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)] [Implements(implementation: "IType.UnioningType")] - public List UnioningType { get; internal set; } + public List unioningType { get; internal set; } = []; /// /// The Expression whose result, if false, determines that the bodyAction should continue to be @@ -1084,7 +1084,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624290717721_449719_4195", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IWhileLoopActionUsage.UntilArgument")] - public Guid? UntilArgument { get; internal set; } + public Guid? untilArgument { get; internal set; } /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1092,7 +1092,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List Usage { get; internal set; } + public List usage { get; internal set; } = []; /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1101,7 +1101,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List Variant { get; internal set; } + public List variant { get; internal set; } = []; /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1110,7 +1110,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List VariantMembership { get; internal set; } + public List variantMembership { get; internal set; } = []; /// /// The Expression whose result, if true, determines that the bodyAction should continue to be @@ -1118,7 +1118,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624203871924_371126_3842", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IWhileLoopActionUsage.WhileArgument")] - public Guid WhileArgument { get; internal set; } + public Guid whileArgument { get; internal set; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/AcceptActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/AcceptActionUsage.cs index 5ce826599..dd43bedce 100644 --- a/SysML2.NET/Core/AutoGenPoco/AcceptActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AcceptActionUsage.cs @@ -89,10 +89,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -108,10 +105,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -123,10 +117,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -136,10 +127,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -167,10 +155,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -183,10 +168,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -195,10 +177,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -207,10 +186,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -227,10 +203,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -246,10 +219,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -259,10 +229,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -270,10 +237,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -282,20 +246,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -305,10 +263,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -316,10 +271,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -327,10 +279,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -338,10 +287,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -350,10 +296,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -361,10 +304,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -377,10 +317,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -404,10 +341,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -462,10 +396,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -487,10 +418,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -509,7 +437,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -539,10 +467,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -550,10 +475,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -561,10 +483,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -574,10 +493,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -587,10 +503,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -598,10 +511,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -609,10 +519,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -620,10 +527,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -631,10 +535,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -642,10 +543,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -653,10 +551,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -664,10 +559,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -677,10 +569,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -688,10 +577,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -699,10 +585,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -710,10 +593,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -721,10 +601,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -732,10 +609,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -743,10 +617,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -754,10 +625,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -765,10 +633,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -776,10 +641,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -787,10 +649,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -798,10 +657,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -809,10 +665,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -820,10 +673,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -831,10 +681,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -843,10 +690,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -854,10 +698,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -865,10 +706,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -876,10 +714,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -887,10 +722,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -901,10 +733,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -912,10 +741,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -925,10 +751,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -937,10 +760,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -949,10 +769,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -962,10 +779,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -975,10 +789,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -986,10 +797,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -998,10 +806,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1009,10 +814,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1022,10 +824,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1035,10 +834,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1048,10 +844,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1061,10 +854,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1073,10 +863,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1085,10 +872,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1099,10 +883,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1111,10 +892,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1123,10 +901,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1144,10 +919,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1157,10 +929,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1170,10 +939,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1183,10 +949,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1195,10 +958,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1206,10 +966,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1218,10 +975,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1229,10 +983,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1241,10 +992,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1253,10 +1001,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1274,10 +1019,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1285,10 +1027,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1297,10 +1036,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// An Expression whose result is bound to the payload parameter of this AcceptActionUsage. If provided, @@ -1308,10 +1044,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1642710978429_81558_4948", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAcceptActionUsage.PayloadArgument")] - public IExpression QueryPayloadArgument() - { - return this.ComputePayloadArgument(); - } + public IExpression payloadArgument => this.ComputePayloadArgument(); /// /// The nestedReference of this AcceptActionUsage that redefines the payload output parameter of the @@ -1321,10 +1054,7 @@ public IExpression QueryPayloadArgument() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591477541360_47573_933")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IAcceptActionUsage.PayloadParameter")] - public IReferenceUsage QueryPayloadParameter() - { - return this.ComputePayloadParameter(); - } + public IReferenceUsage payloadParameter => this.ComputePayloadParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1345,20 +1075,14 @@ public IReferenceUsage QueryPayloadParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An Expression whose result is bound to the receiver input parameter of this AcceptActionUsage. /// [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)] [Implements(implementation: "IAcceptActionUsage.ReceiverArgument")] - public IExpression QueryReceiverArgument() - { - return this.ComputeReceiverArgument(); - } + public IExpression receiverArgument => this.ComputeReceiverArgument(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1368,10 +1092,7 @@ public IExpression QueryReceiverArgument() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1380,10 +1101,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1394,10 +1112,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1408,10 +1123,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1419,10 +1131,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1431,10 +1140,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1443,10 +1149,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ActionDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ActionDefinition.cs index f32fdba73..933400d48 100644 --- a/SysML2.NET/Core/AutoGenPoco/ActionDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ActionDefinition.cs @@ -81,10 +81,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List QueryAction() - { - return this.ComputeAction(); - } + public List action => this.ComputeAction(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -121,10 +118,7 @@ public List QueryAction() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -133,10 +127,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -145,10 +136,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -157,10 +145,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -176,10 +161,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -187,10 +169,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -199,10 +178,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -210,10 +186,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -221,10 +194,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -233,10 +203,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -244,10 +211,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -260,10 +224,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -278,10 +239,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -306,10 +264,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -337,10 +292,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -348,10 +300,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -361,10 +310,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -374,10 +320,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -385,10 +328,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -396,10 +336,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -407,10 +344,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -418,10 +352,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -431,10 +362,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -442,10 +370,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -453,10 +378,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -464,10 +386,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -475,10 +394,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -487,10 +403,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -500,10 +413,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -511,10 +421,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -524,10 +431,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -537,10 +441,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -548,10 +449,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -560,10 +458,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -571,10 +466,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -582,10 +474,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -595,10 +484,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -606,10 +492,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -619,10 +502,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -630,10 +510,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -642,10 +519,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -653,10 +527,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -665,10 +536,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -679,10 +547,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -690,10 +555,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -701,10 +563,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -712,10 +571,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -723,10 +579,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -734,10 +587,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -753,10 +603,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -764,10 +611,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -777,10 +621,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -788,10 +629,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -800,10 +638,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -811,10 +646,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -823,10 +655,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -835,10 +664,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -846,10 +672,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -857,10 +680,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -868,10 +688,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -879,10 +696,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -890,10 +704,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -902,10 +713,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -914,10 +722,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -934,10 +739,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -949,10 +751,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -962,10 +761,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Steps that make up this Behavior. @@ -973,10 +769,7 @@ public string QueryShortName() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The TextualRepresentations that annotate this Element. @@ -985,10 +778,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -999,10 +789,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1010,10 +797,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1022,10 +806,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1035,10 +816,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ActionUsage.cs index 0c5ed44a4..41ee4f995 100644 --- a/SysML2.NET/Core/AutoGenPoco/ActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ActionUsage.cs @@ -87,10 +87,7 @@ public partial class ActionUsage : IActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -106,10 +103,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,10 +115,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -134,10 +125,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -165,10 +153,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -181,10 +166,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -193,10 +175,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -205,10 +184,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -225,10 +201,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -244,10 +217,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -257,10 +227,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -268,10 +235,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -280,20 +244,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -303,10 +261,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -314,10 +269,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -325,10 +277,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -336,10 +285,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -348,10 +294,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -359,10 +302,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -375,10 +315,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -402,10 +339,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -460,10 +394,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -485,10 +416,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -507,7 +435,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -537,10 +465,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -548,10 +473,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -559,10 +481,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -572,10 +491,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -585,10 +501,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -596,10 +509,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -607,10 +517,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -618,10 +525,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -629,10 +533,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -640,10 +541,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -651,10 +549,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -662,10 +557,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -675,10 +567,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -686,10 +575,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -697,10 +583,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -708,10 +591,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -719,10 +599,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -730,10 +607,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -741,10 +615,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -752,10 +623,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -763,10 +631,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -774,10 +639,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -785,10 +647,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -796,10 +655,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -807,10 +663,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -818,10 +671,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -829,10 +679,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -841,10 +688,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -852,10 +696,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -863,10 +704,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -874,10 +712,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -885,10 +720,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -899,10 +731,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -910,10 +739,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -923,10 +749,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -935,10 +758,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -947,10 +767,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -960,10 +777,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -973,10 +787,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -984,10 +795,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -996,10 +804,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1007,10 +812,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1020,10 +822,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1033,10 +832,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1046,10 +842,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1059,10 +852,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1071,10 +861,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1083,10 +870,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1097,10 +881,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1109,10 +890,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1121,10 +899,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1142,10 +917,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1155,10 +927,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1168,10 +937,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1181,10 +947,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1193,10 +956,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1204,10 +964,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1216,10 +973,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1227,10 +981,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1239,10 +990,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1251,10 +999,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1272,10 +1017,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1283,10 +1025,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1295,10 +1034,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1319,10 +1055,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1332,10 +1065,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1344,10 +1074,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1358,10 +1085,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1372,10 +1096,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1383,10 +1104,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1395,10 +1113,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1407,10 +1122,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ActorMembership.cs b/SysML2.NET/Core/AutoGenPoco/ActorMembership.cs index a04586edc..b665aec4d 100644 --- a/SysML2.NET/Core/AutoGenPoco/ActorMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ActorMembership.cs @@ -85,10 +85,7 @@ public partial class ActorMembership : IActorMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -122,10 +119,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -142,10 +136,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -164,10 +155,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -185,10 +173,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The PartUsage specifying the actor. @@ -196,10 +181,7 @@ public string QueryName() [Property(xmiId: "_19_0_4_12e503d9_1621464305451_983612_1421", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528016548_548098_110830")] [Implements(implementation: "IActorMembership.OwnedActorParameter")] - public IPartUsage QueryOwnedActorParameter() - { - return this.ComputeOwnedActorParameter(); - } + public IPartUsage ownedActorParameter => this.ComputeOwnedActorParameter(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -209,10 +191,7 @@ public IPartUsage QueryOwnedActorParameter() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -220,10 +199,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -234,10 +210,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -245,10 +218,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -258,10 +228,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -269,10 +236,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The Feature that is identified as a parameter by this ParameterMembership. @@ -281,10 +245,7 @@ public string QueryOwnedMemberName() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IActorMembership.OwnedActorParameter")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public IFeature QueryOwnedMemberParameter() - { - return this.ComputeOwnedMemberParameter(); - } + public IFeature ownedMemberParameter => this.ComputeOwnedMemberParameter(); /// /// The shortName of the ownedMemberElement. @@ -292,10 +253,7 @@ public IFeature QueryOwnedMemberParameter() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -319,10 +277,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -331,10 +286,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -343,10 +295,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -371,10 +320,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -386,10 +332,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -397,10 +340,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -410,10 +350,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -440,10 +377,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -451,7 +385,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/AllocationDefinition.cs b/SysML2.NET/Core/AutoGenPoco/AllocationDefinition.cs index 68bc1ee8c..9245adb10 100644 --- a/SysML2.NET/Core/AutoGenPoco/AllocationDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/AllocationDefinition.cs @@ -90,10 +90,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_19_0_4_12e503d9_1611430644481_402036_964", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IAllocationDefinition.Allocation")] - public List QueryAllocation() - { - return this.ComputeAllocation(); - } + public List allocation => this.ComputeAllocation(); /// /// The features of the Association that identify the things that can be related by it. A concrete @@ -104,10 +101,7 @@ public List QueryAllocation() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List QueryAssociationEnd() - { - return this.ComputeAssociationEnd(); - } + public List associationEnd => this.ComputeAssociationEnd(); /// /// The Usages that define the things related by the ConnectionDefinition. @@ -115,10 +109,7 @@ public List QueryAssociationEnd() [Property(xmiId: "_19_0_2_12e503d9_1591476421094_685440_682", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] [Implements(implementation: "IConnectionDefinition.ConnectionEnd")] - public List QueryConnectionEnd() - { - return this.ComputeConnectionEnd(); - } + public List connectionEnd => this.ComputeConnectionEnd(); /// /// The declared name of this Element. @@ -148,10 +139,7 @@ public List QueryConnectionEnd() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -159,10 +147,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -171,10 +156,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -183,10 +165,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -203,10 +182,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -214,10 +190,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -226,10 +199,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -237,10 +207,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -248,10 +215,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -260,10 +224,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -271,10 +232,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -287,10 +245,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -305,10 +260,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -341,10 +293,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// A ConnectionDefinition always has isSufficient = true. @@ -352,7 +301,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_2022x_2_12e503d9_1734734871008_462076_156", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1564072709069_937523_30797")] [Implements(implementation: "IConnectionDefinition.IsSufficient")] - bool Systems.Connections.IConnectionDefinition.IsSufficient { get; set; } + public bool IsSufficient { get; set; } = true; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -381,10 +330,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -392,10 +338,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -405,10 +348,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -418,10 +358,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -429,10 +366,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -440,10 +374,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -451,10 +382,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -462,10 +390,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -475,10 +400,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -486,10 +408,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -497,10 +416,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -508,10 +424,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -519,10 +432,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -531,10 +441,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -544,10 +451,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -555,10 +459,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -568,10 +469,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -581,10 +479,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -592,10 +487,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -604,10 +496,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -615,10 +504,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -626,10 +512,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -639,10 +522,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -650,10 +530,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -663,10 +540,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -674,10 +548,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -686,10 +557,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -697,10 +565,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -709,10 +574,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -723,10 +585,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -734,10 +593,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -745,10 +601,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -756,10 +609,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -767,10 +617,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -778,10 +625,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -805,10 +649,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -816,10 +657,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -829,10 +667,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -840,10 +675,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -852,10 +684,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -863,10 +692,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -875,10 +701,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -887,10 +710,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -898,10 +718,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -909,10 +726,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -920,10 +734,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -931,10 +742,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -942,10 +750,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -954,10 +759,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -966,10 +768,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -997,10 +796,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1009,10 +805,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -1021,10 +814,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List QueryRelatedType() - { - return this.ComputeRelatedType(); - } + public List relatedType => this.ComputeRelatedType(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1034,10 +824,7 @@ public List QueryRelatedType() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1055,10 +842,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public IType QuerySourceType() - { - return this.ComputeSourceType(); - } + public IType sourceType => this.ComputeSourceType(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1077,10 +861,7 @@ public IType QuerySourceType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List QueryTargetType() - { - return this.ComputeTargetType(); - } + public List targetType => this.ComputeTargetType(); /// /// The TextualRepresentations that annotate this Element. @@ -1089,10 +870,7 @@ public List QueryTargetType() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1103,10 +881,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1114,10 +889,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1126,10 +898,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1139,10 +908,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/AllocationUsage.cs b/SysML2.NET/Core/AutoGenPoco/AllocationUsage.cs index f862e9313..bf458dfec 100644 --- a/SysML2.NET/Core/AutoGenPoco/AllocationUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AllocationUsage.cs @@ -91,10 +91,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_19_0_4_12e503d9_1611430742949_241425_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594853499656_139435_802")] [Implements(implementation: "IAllocationUsage.AllocationDefinition")] - public List QueryAllocationDefinition() - { - return this.ComputeAllocationDefinition(); - } + public List allocationDefinition => this.ComputeAllocationDefinition(); /// /// The Associations that type the Connector. @@ -103,10 +100,7 @@ public List QueryAllocationDefinition() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -118,10 +112,7 @@ public List QueryAssociation() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The AssociationStructures that are the types of this ConnectionUsage. Nominally, these are , but @@ -133,10 +124,7 @@ public List QueryChainingFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedByProperty("IAllocationUsage.AllocationDefinition")] [Implements(implementation: "IConnectionUsage.ConnectionDefinition")] - public List QueryConnectionDefinition() - { - return this.ComputeConnectionDefinition(); - } + public List connectionDefinition => this.ComputeConnectionDefinition(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -146,10 +134,7 @@ public List QueryConnectionDefinition() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -159,10 +144,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -188,10 +170,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -202,10 +181,7 @@ public IType QueryDefaultFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -218,10 +194,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -229,10 +202,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -241,10 +211,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -261,10 +228,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -281,10 +245,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -294,10 +255,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -305,10 +263,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -317,20 +272,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -340,10 +289,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -351,10 +297,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -362,10 +305,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -373,10 +313,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -385,10 +322,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -396,10 +330,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -412,10 +343,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -439,10 +367,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -505,10 +430,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -530,10 +452,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -552,7 +471,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -579,10 +498,7 @@ public bool QueryIsReference() [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List QueryItemDefinition() - { - return this.ComputeItemDefinition(); - } + public List itemDefinition => this.ComputeItemDefinition(); /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -595,10 +511,7 @@ public List QueryItemDefinition() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -606,10 +519,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -617,10 +527,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -630,10 +537,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -643,10 +547,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -654,10 +555,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -665,10 +563,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -676,10 +571,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -687,10 +579,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -698,10 +587,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -709,10 +595,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -720,10 +603,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -733,10 +613,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -744,10 +621,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -755,10 +629,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -766,10 +637,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -777,10 +645,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -788,10 +653,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -799,10 +661,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -810,10 +669,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -821,10 +677,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -832,10 +685,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -843,10 +693,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -854,10 +701,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -865,10 +709,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -876,10 +717,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -887,10 +725,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -899,10 +734,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -910,10 +742,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -921,10 +750,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -932,10 +758,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -943,10 +766,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -956,10 +776,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -967,10 +784,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -980,10 +794,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -992,10 +803,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1004,10 +812,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1017,10 +822,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1030,10 +832,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1041,10 +840,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1053,10 +849,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1064,10 +857,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1077,10 +867,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1090,10 +877,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1103,10 +887,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1116,10 +897,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1128,10 +906,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1140,10 +915,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1154,10 +926,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1166,10 +935,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1178,10 +944,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -1207,10 +970,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1220,10 +980,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1233,10 +990,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1246,10 +1000,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1258,10 +1009,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1269,10 +1017,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1281,10 +1026,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1292,10 +1034,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1304,10 +1043,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1316,10 +1052,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -1345,10 +1078,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1356,10 +1086,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The itemDefinitions of this PartUsage that are PartDefinitions. @@ -1367,10 +1094,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1591475180488_929065_121", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List QueryPartDefinition() - { - return this.ComputePartDefinition(); - } + public List partDefinition => this.ComputePartDefinition(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1391,10 +1115,7 @@ public List QueryPartDefinition() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1403,10 +1124,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1415,10 +1133,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1428,10 +1143,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1449,10 +1161,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1471,10 +1180,7 @@ public IFeature QuerySourceFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -1483,10 +1189,7 @@ public List QueryTargetFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1497,10 +1200,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1511,10 +1211,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1522,10 +1219,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1534,10 +1228,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1546,10 +1237,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/AnalysisCaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/AnalysisCaseDefinition.cs index 8842b31b0..2f0e61acf 100644 --- a/SysML2.NET/Core/AutoGenPoco/AnalysisCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/AnalysisCaseDefinition.cs @@ -81,10 +81,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List QueryAction() - { - return this.ComputeAction(); - } + public List action => this.ComputeAction(); /// /// The parameters of this CaseDefinition that represent actors involved in the case. @@ -93,10 +90,7 @@ public List QueryAction() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -112,10 +106,7 @@ public List QueryActorParameter() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [Implements(implementation: "ICalculationDefinition.Calculation")] - public List QueryCalculation() - { - return this.ComputeCalculation(); - } + public List calculation => this.ComputeCalculation(); /// /// The declared name of this Element. @@ -145,10 +136,7 @@ public List QueryCalculation() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -157,10 +145,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -169,10 +154,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -181,10 +163,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -200,10 +179,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -211,10 +187,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List QueryExpression() - { - return this.ComputeExpression(); - } + public List expression => this.ComputeExpression(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -222,10 +195,7 @@ public List QueryExpression() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -234,10 +204,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -245,10 +212,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -256,10 +220,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -268,10 +229,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -279,10 +237,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -295,10 +250,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -313,10 +265,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -341,10 +290,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -355,10 +301,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -386,10 +329,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -397,10 +337,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -410,10 +347,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -423,10 +357,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The RequirementUsage representing the objective of this CaseDefinition. @@ -434,10 +365,7 @@ public string QueryName() [Property(xmiId: "_19_0_2_59601fc_1590259317710_27529_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ObjectiveRequirement")] - public IRequirementUsage QueryObjectiveRequirement() - { - return this.ComputeObjectiveRequirement(); - } + public IRequirementUsage objectiveRequirement => this.ComputeObjectiveRequirement(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -445,10 +373,7 @@ public IRequirementUsage QueryObjectiveRequirement() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -456,10 +381,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -467,10 +389,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -478,10 +397,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -491,10 +407,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -502,10 +415,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -513,10 +423,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -524,10 +431,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -535,10 +439,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -547,10 +448,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -560,10 +458,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -571,10 +466,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -584,10 +476,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -597,10 +486,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -608,10 +494,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -620,10 +503,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -631,10 +511,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -642,10 +519,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -655,10 +529,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -666,10 +537,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -679,10 +547,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -690,10 +555,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -702,10 +564,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -713,10 +572,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -725,10 +581,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -739,10 +592,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -750,10 +600,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -761,10 +608,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -772,10 +616,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -783,10 +624,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -794,10 +632,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -813,10 +648,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -824,10 +656,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -837,10 +666,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -848,10 +674,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -860,10 +683,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -871,10 +691,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -883,10 +700,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -895,10 +709,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -906,10 +717,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -917,10 +725,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -928,10 +733,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -939,10 +741,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -950,10 +749,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -962,10 +758,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -974,10 +767,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -994,10 +784,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1009,10 +796,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The object or value that is the result of evaluating the Function. @@ -1021,10 +805,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// An Expression used to compute the result of the AnalysisCaseDefinition, owned via a @@ -1034,10 +815,7 @@ public IFeature QueryResult() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IAnalysisCaseDefinition.ResultExpression")] - public IExpression QueryResultExpression() - { - return this.ComputeResultExpression(); - } + public IExpression resultExpression => this.ComputeResultExpression(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1047,10 +825,7 @@ public IExpression QueryResultExpression() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Steps that make up this Behavior. @@ -1058,10 +833,7 @@ public string QueryShortName() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The parameter of this CaseDefinition that represents its subject. @@ -1070,10 +842,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// The TextualRepresentations that annotate this Element. @@ -1082,10 +851,7 @@ public IUsage QuerySubjectParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1096,10 +862,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1107,10 +870,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1119,10 +879,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1132,10 +889,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/AnalysisCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/AnalysisCaseUsage.cs index 65ecefe83..83e400ae2 100644 --- a/SysML2.NET/Core/AutoGenPoco/AnalysisCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AnalysisCaseUsage.cs @@ -86,10 +86,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -98,10 +95,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -116,10 +110,7 @@ public List QueryActorParameter() [Property(xmiId: "_19_0_2_12e503d9_1591152217935_225164_2921", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] [Implements(implementation: "IAnalysisCaseUsage.AnalysisCaseDefinition")] - public IAnalysisCaseDefinition QueryAnalysisCaseDefinition() - { - return this.ComputeAnalysisCaseDefinition(); - } + public IAnalysisCaseDefinition analysisCaseDefinition => this.ComputeAnalysisCaseDefinition(); /// /// The Behaviors that type this Step. @@ -128,10 +119,7 @@ public IAnalysisCaseDefinition QueryAnalysisCaseDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -143,10 +131,7 @@ public List QueryBehavior() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public IFunction QueryCalculationDefinition() - { - return this.ComputeCalculationDefinition(); - } + public IFunction calculationDefinition => this.ComputeCalculationDefinition(); /// /// The CaseDefinition that is the type of this CaseUsage. @@ -155,10 +140,7 @@ public IFunction QueryCalculationDefinition() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [RedefinedByProperty("IAnalysisCaseUsage.AnalysisCaseDefinition")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public ICaseDefinition QueryCaseDefinition() - { - return this.ComputeCaseDefinition(); - } + public ICaseDefinition caseDefinition => this.ComputeCaseDefinition(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -170,10 +152,7 @@ public ICaseDefinition QueryCaseDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -183,10 +162,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -214,10 +190,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -230,10 +203,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -242,10 +212,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -254,10 +221,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -274,10 +238,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -293,10 +254,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -306,10 +264,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -317,10 +272,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -329,20 +281,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -352,10 +298,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -364,10 +307,7 @@ public List QueryFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -375,10 +315,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -386,10 +323,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -397,10 +331,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -409,10 +340,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -420,10 +348,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -436,10 +361,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -463,10 +385,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -521,10 +440,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -532,10 +448,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -557,10 +470,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -579,7 +489,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -609,10 +519,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -620,10 +527,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -631,10 +535,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -644,10 +545,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -657,10 +555,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -668,10 +563,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -679,10 +571,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -690,10 +579,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -701,10 +587,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -712,10 +595,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -723,10 +603,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -734,10 +611,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -747,10 +621,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -758,10 +629,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -769,10 +637,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -780,10 +645,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -791,10 +653,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -802,10 +661,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -813,10 +669,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -824,10 +677,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -835,10 +685,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -846,10 +693,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -857,10 +701,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -868,10 +709,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -879,10 +717,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -890,10 +725,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -901,10 +733,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -913,10 +742,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -924,10 +750,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -935,10 +758,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -946,10 +766,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -957,10 +774,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The RequirementUsage representing the objective of this CaseUsage. @@ -968,10 +782,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_2_12e503d9_1591138794257_404044_2145", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ObjectiveRequirement")] - public IRequirementUsage QueryObjectiveRequirement() - { - return this.ComputeObjectiveRequirement(); - } + public IRequirementUsage objectiveRequirement => this.ComputeObjectiveRequirement(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -982,10 +793,7 @@ public IRequirementUsage QueryObjectiveRequirement() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -993,10 +801,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -1006,10 +811,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -1018,10 +820,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1030,10 +829,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1043,10 +839,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1056,10 +849,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1067,10 +857,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1079,10 +866,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1090,10 +874,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1103,10 +884,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1116,10 +894,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1129,10 +904,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1142,10 +914,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1154,10 +923,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1166,10 +932,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1180,10 +943,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1192,10 +952,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1204,10 +961,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1225,10 +979,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1238,10 +989,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1251,10 +999,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1264,10 +1009,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1276,10 +1018,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1287,10 +1026,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1299,10 +1035,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1310,10 +1043,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1322,10 +1052,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1334,10 +1061,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1355,10 +1079,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1366,10 +1087,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1378,10 +1096,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1402,10 +1117,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1416,10 +1128,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// An Expression used to compute the result of the AnalysisCaseUsage, owned via a @@ -1428,10 +1137,7 @@ public IFeature QueryResult() [Property(xmiId: "_19_0_2_12e503d9_1591151453868_910052_2600", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IAnalysisCaseUsage.ResultExpression")] - public IExpression QueryResultExpression() - { - return this.ComputeResultExpression(); - } + public IExpression resultExpression => this.ComputeResultExpression(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1441,10 +1147,7 @@ public IExpression QueryResultExpression() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The parameter of this CaseUsage that represents its subject. @@ -1453,10 +1156,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// The TextualRepresentations that annotate this Element. @@ -1465,10 +1165,7 @@ public IUsage QuerySubjectParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1479,10 +1176,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1493,10 +1187,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1504,10 +1195,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1516,10 +1204,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1528,10 +1213,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/AnnotatingElement.cs b/SysML2.NET/Core/AutoGenPoco/AnnotatingElement.cs index c3efce522..817b69ea6 100644 --- a/SysML2.NET/Core/AutoGenPoco/AnnotatingElement.cs +++ b/SysML2.NET/Core/AutoGenPoco/AnnotatingElement.cs @@ -62,10 +62,7 @@ public partial class AnnotatingElement : IAnnotatingElement /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List QueryAnnotatedElement() - { - return this.ComputeAnnotatedElement(); - } + public List annotatedElement => this.ComputeAnnotatedElement(); /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -74,10 +71,7 @@ public List QueryAnnotatedElement() [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List QueryAnnotation() - { - return this.ComputeAnnotation(); - } + public List annotation => this.ComputeAnnotation(); /// /// The declared name of this Element. @@ -103,10 +97,7 @@ public List QueryAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -132,10 +123,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -145,10 +133,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -158,10 +143,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List QueryOwnedAnnotatingRelationship() - { - return this.ComputeOwnedAnnotatingRelationship(); - } + public List ownedAnnotatingRelationship => this.ComputeOwnedAnnotatingRelationship(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -171,10 +153,7 @@ public List QueryOwnedAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -182,10 +161,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -201,10 +177,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -213,10 +186,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public IAnnotation QueryOwningAnnotatingRelationship() - { - return this.ComputeOwningAnnotatingRelationship(); - } + public IAnnotation owningAnnotatingRelationship => this.ComputeOwningAnnotatingRelationship(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -225,10 +195,7 @@ public IAnnotation QueryOwningAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -237,10 +204,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -260,10 +224,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -273,10 +234,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -285,10 +243,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Annotation.cs b/SysML2.NET/Core/AutoGenPoco/Annotation.cs index e00112e56..ee9f13227 100644 --- a/SysML2.NET/Core/AutoGenPoco/Annotation.cs +++ b/SysML2.NET/Core/AutoGenPoco/Annotation.cs @@ -69,10 +69,7 @@ public partial class Annotation : IAnnotation [Property(xmiId: "_18_5_3_12e503d9_1543094212714_638255_18408", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAnnotation.AnnotatingElement")] - public IAnnotatingElement QueryAnnotatingElement() - { - return this.ComputeAnnotatingElement(); - } + public IAnnotatingElement annotatingElement => this.ComputeAnnotatingElement(); /// /// The declared name of this Element. @@ -98,10 +95,7 @@ public IAnnotatingElement QueryAnnotatingElement() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -135,10 +129,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -148,10 +139,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The annotatingElement of this Annotation, when it is an ownedRelatedElement. @@ -160,10 +148,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_638255_18408")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_59873_43302")] [Implements(implementation: "IAnnotation.OwnedAnnotatingElement")] - public IAnnotatingElement QueryOwnedAnnotatingElement() - { - return this.ComputeOwnedAnnotatingElement(); - } + public IAnnotatingElement ownedAnnotatingElement => this.ComputeOwnedAnnotatingElement(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -173,10 +158,7 @@ public IAnnotatingElement QueryOwnedAnnotatingElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -184,10 +166,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -211,10 +190,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The annotatedElement of this Annotation, when it is also the owningRelatedElement. @@ -223,10 +199,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_494140_18542")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [Implements(implementation: "IAnnotation.OwningAnnotatedElement")] - public IElement QueryOwningAnnotatedElement() - { - return this.ComputeOwningAnnotatedElement(); - } + public IElement owningAnnotatedElement => this.ComputeOwningAnnotatedElement(); /// /// The annotatingElement of this Annotation, when it is the owningRelatedElement. @@ -235,10 +208,7 @@ public IElement QueryOwningAnnotatedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_638255_18408")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [Implements(implementation: "IAnnotation.OwningAnnotatingElement")] - public IAnnotatingElement QueryOwningAnnotatingElement() - { - return this.ComputeOwningAnnotatingElement(); - } + public IAnnotatingElement owningAnnotatingElement => this.ComputeOwningAnnotatingElement(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -247,10 +217,7 @@ public IAnnotatingElement QueryOwningAnnotatingElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -259,10 +226,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -290,10 +254,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -301,10 +262,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -314,10 +272,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -344,10 +299,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/AssertConstraintUsage.cs b/SysML2.NET/Core/AutoGenPoco/AssertConstraintUsage.cs index 4afd24773..c8803c876 100644 --- a/SysML2.NET/Core/AutoGenPoco/AssertConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AssertConstraintUsage.cs @@ -92,10 +92,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage /// [Property(xmiId: "_19_0_2_12e503d9_1581045158665_239617_9458", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAssertConstraintUsage.AssertedConstraint")] - public IConstraintUsage QueryAssertedConstraint() - { - return this.ComputeAssertedConstraint(); - } + public IConstraintUsage assertedConstraint => this.ComputeAssertedConstraint(); /// /// The Behaviors that type this Step. @@ -104,10 +101,7 @@ public IConstraintUsage QueryAssertedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -119,10 +113,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -132,10 +123,7 @@ public List QueryChainingFeature() [Property(xmiId: "_19_0_2_12e503d9_1578067546711_751168_1745", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public IPredicate QueryConstraintDefinition() - { - return this.ComputeConstraintDefinition(); - } + public IPredicate constraintDefinition => this.ComputeConstraintDefinition(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -145,10 +133,7 @@ public IPredicate QueryConstraintDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -176,10 +161,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -192,10 +174,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -204,10 +183,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -216,10 +192,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -236,10 +209,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -255,10 +225,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -268,10 +235,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -279,10 +243,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -291,20 +252,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -314,10 +269,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -326,10 +278,7 @@ public List QueryFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -337,10 +286,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -348,10 +294,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -359,10 +302,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -371,10 +311,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -382,10 +319,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -398,10 +332,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -425,10 +356,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -483,10 +411,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -494,10 +419,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether this Invariant is asserted to be false rather than true. @@ -526,10 +448,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -548,7 +467,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -578,10 +497,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -589,10 +505,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -600,10 +513,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -613,10 +523,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -626,10 +533,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -637,10 +541,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -648,10 +549,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -659,10 +557,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -670,10 +565,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -681,10 +573,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -692,10 +581,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -703,10 +589,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -716,10 +599,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -727,10 +607,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -738,10 +615,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -749,10 +623,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -760,10 +631,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -771,10 +639,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -782,10 +647,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -793,10 +655,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -804,10 +663,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -815,10 +671,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -826,10 +679,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -837,10 +687,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -848,10 +695,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -859,10 +703,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -870,10 +711,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -882,10 +720,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -893,10 +728,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -904,10 +736,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -915,10 +744,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -926,10 +752,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -939,10 +762,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -950,10 +770,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -963,10 +780,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -975,10 +789,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -987,10 +798,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1000,10 +808,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1013,10 +818,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1024,10 +826,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1036,10 +835,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1047,10 +843,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1060,10 +853,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1073,10 +863,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1086,10 +873,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1099,10 +883,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1111,10 +892,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1123,10 +901,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1137,10 +912,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1149,10 +921,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1161,10 +930,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1182,10 +948,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1195,10 +958,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1208,10 +968,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1221,10 +978,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1233,10 +987,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1244,10 +995,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1256,10 +1004,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1267,10 +1012,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1279,10 +1021,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1291,10 +1030,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1312,10 +1048,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1323,10 +1056,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1335,10 +1065,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1356,10 +1083,7 @@ public List QueryParameter() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate QueryPredicate() - { - return this.ComputePredicate(); - } + public IPredicate predicate => this.ComputePredicate(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1371,10 +1095,7 @@ public IPredicate QueryPredicate() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1385,10 +1106,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1398,10 +1116,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1410,10 +1125,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1424,10 +1136,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1438,10 +1147,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1449,10 +1155,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1461,10 +1164,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1473,10 +1173,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/AssignmentActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/AssignmentActionUsage.cs index 38030d782..5e6b74090 100644 --- a/SysML2.NET/Core/AutoGenPoco/AssignmentActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AssignmentActionUsage.cs @@ -88,10 +88,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -107,10 +104,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -122,10 +116,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -135,10 +126,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -166,10 +154,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -182,10 +167,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -194,10 +176,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -206,10 +185,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -226,10 +202,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -245,10 +218,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -258,10 +228,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -269,10 +236,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -281,20 +245,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -304,10 +262,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -315,10 +270,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -326,10 +278,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -337,10 +286,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -349,10 +295,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -360,10 +303,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -376,10 +316,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -403,10 +340,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -461,10 +395,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -486,10 +417,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -508,7 +436,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -538,10 +466,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -549,10 +474,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -560,10 +482,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -573,10 +492,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -586,10 +502,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -597,10 +510,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -608,10 +518,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -619,10 +526,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -630,10 +534,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -641,10 +542,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -652,10 +550,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -663,10 +558,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -676,10 +568,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -687,10 +576,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -698,10 +584,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -709,10 +592,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -720,10 +600,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -731,10 +608,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -742,10 +616,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -753,10 +624,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -764,10 +632,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -775,10 +640,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -786,10 +648,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -797,10 +656,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -808,10 +664,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -819,10 +672,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -830,10 +680,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -842,10 +689,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -853,10 +697,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -864,10 +705,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -875,10 +713,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -886,10 +721,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -900,10 +732,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -911,10 +740,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -924,10 +750,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -936,10 +759,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -948,10 +768,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -961,10 +778,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -974,10 +788,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -985,10 +796,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -997,10 +805,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1008,10 +813,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1021,10 +823,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1034,10 +833,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1047,10 +843,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1060,10 +853,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1072,10 +862,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1084,10 +871,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1098,10 +882,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1110,10 +891,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1122,10 +900,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1143,10 +918,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1156,10 +928,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1169,10 +938,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1182,10 +948,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1194,10 +957,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1205,10 +965,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1217,10 +974,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1228,10 +982,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1240,10 +991,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1252,10 +1000,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1273,10 +1018,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1284,10 +1026,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1296,10 +1035,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1320,10 +1056,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Feature whose value is to be set. @@ -1331,10 +1064,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_4_12e503d9_1624202269076_561550_3109", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IAssignmentActionUsage.Referent")] - public IFeature QueryReferent() - { - return this.ComputeReferent(); - } + public IFeature referent => this.ComputeReferent(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1344,10 +1074,7 @@ public IFeature QueryReferent() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Expression whose value is an occurrence in the domain of the referent Feature, for which the @@ -1356,10 +1083,7 @@ public string QueryShortName() /// [Property(xmiId: "_19_0_4_12e503d9_1624201786354_844501_2835", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAssignmentActionUsage.TargetArgument")] - public IExpression QueryTargetArgument() - { - return this.ComputeTargetArgument(); - } + public IExpression targetArgument => this.ComputeTargetArgument(); /// /// The TextualRepresentations that annotate this Element. @@ -1368,10 +1092,7 @@ public IExpression QueryTargetArgument() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1382,10 +1103,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1396,10 +1114,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1407,20 +1122,14 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Expression whose result is to be assigned to the referent Feature. /// [Property(xmiId: "_19_0_4_12e503d9_1624201792996_104394_2856", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAssignmentActionUsage.ValueExpression")] - public IExpression QueryValueExpression() - { - return this.ComputeValueExpression(); - } + public IExpression valueExpression => this.ComputeValueExpression(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1429,10 +1138,7 @@ public IExpression QueryValueExpression() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1441,10 +1147,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Association.cs b/SysML2.NET/Core/AutoGenPoco/Association.cs index 25b8b61d8..89a236cf8 100644 --- a/SysML2.NET/Core/AutoGenPoco/Association.cs +++ b/SysML2.NET/Core/AutoGenPoco/Association.cs @@ -67,10 +67,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1562477648742_24204_22901", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List QueryAssociationEnd() - { - return this.ComputeAssociationEnd(); - } + public List associationEnd => this.ComputeAssociationEnd(); /// /// The declared name of this Element. @@ -100,10 +97,7 @@ public List QueryAssociationEnd() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -111,10 +105,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The Documentation owned by this Element. @@ -123,10 +114,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -143,10 +131,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -154,10 +139,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -166,10 +148,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -177,10 +156,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -188,10 +164,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -200,10 +173,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -211,10 +181,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -227,10 +194,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -245,10 +209,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -274,10 +235,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -297,10 +255,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -308,10 +263,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -321,10 +273,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -334,10 +283,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -345,10 +291,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -358,10 +301,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -370,10 +310,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -383,10 +320,7 @@ public IConjugation QueryOwnedConjugator() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -396,10 +330,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -407,10 +338,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -419,10 +347,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -430,10 +355,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -443,10 +365,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -456,10 +375,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -468,10 +384,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -480,10 +393,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -494,10 +404,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -523,10 +430,7 @@ public List QueryOwnedMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -535,10 +439,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -547,10 +448,7 @@ public List QueryOwnedSubclassification() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -558,10 +456,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -570,10 +465,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -582,10 +474,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -613,10 +502,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -625,10 +511,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -637,10 +520,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List QueryRelatedType() - { - return this.ComputeRelatedType(); - } + public List relatedType => this.ComputeRelatedType(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -650,10 +530,7 @@ public List QueryRelatedType() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -671,10 +548,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public IType QuerySourceType() - { - return this.ComputeSourceType(); - } + public IType sourceType => this.ComputeSourceType(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -693,10 +567,7 @@ public IType QuerySourceType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List QueryTargetType() - { - return this.ComputeTargetType(); - } + public List targetType => this.ComputeTargetType(); /// /// The TextualRepresentations that annotate this Element. @@ -705,10 +576,7 @@ public List QueryTargetType() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -719,10 +587,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/AssociationStructure.cs b/SysML2.NET/Core/AutoGenPoco/AssociationStructure.cs index 3379e3d26..21fb977d3 100644 --- a/SysML2.NET/Core/AutoGenPoco/AssociationStructure.cs +++ b/SysML2.NET/Core/AutoGenPoco/AssociationStructure.cs @@ -69,10 +69,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1562477648742_24204_22901", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List QueryAssociationEnd() - { - return this.ComputeAssociationEnd(); - } + public List associationEnd => this.ComputeAssociationEnd(); /// /// The declared name of this Element. @@ -102,10 +99,7 @@ public List QueryAssociationEnd() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -113,10 +107,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The Documentation owned by this Element. @@ -125,10 +116,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -145,10 +133,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -156,10 +141,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -168,10 +150,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -179,10 +158,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -190,10 +166,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -202,10 +175,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -213,10 +183,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -229,10 +196,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -247,10 +211,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -276,10 +237,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -299,10 +257,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -310,10 +265,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -323,10 +275,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -336,10 +285,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -347,10 +293,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -360,10 +303,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -372,10 +312,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -385,10 +322,7 @@ public IConjugation QueryOwnedConjugator() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -398,10 +332,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -409,10 +340,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -421,10 +349,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -432,10 +357,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -445,10 +367,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -458,10 +377,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -470,10 +386,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -482,10 +395,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -496,10 +406,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -525,10 +432,7 @@ public List QueryOwnedMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -537,10 +441,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -549,10 +450,7 @@ public List QueryOwnedSubclassification() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -560,10 +458,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -572,10 +467,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -584,10 +476,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -615,10 +504,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -627,10 +513,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -639,10 +522,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List QueryRelatedType() - { - return this.ComputeRelatedType(); - } + public List relatedType => this.ComputeRelatedType(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -652,10 +532,7 @@ public List QueryRelatedType() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -673,10 +550,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public IType QuerySourceType() - { - return this.ComputeSourceType(); - } + public IType sourceType => this.ComputeSourceType(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -695,10 +569,7 @@ public IType QuerySourceType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List QueryTargetType() - { - return this.ComputeTargetType(); - } + public List targetType => this.ComputeTargetType(); /// /// The TextualRepresentations that annotate this Element. @@ -707,10 +578,7 @@ public List QueryTargetType() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -721,10 +589,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/AttributeDefinition.cs b/SysML2.NET/Core/AutoGenPoco/AttributeDefinition.cs index 24234405c..237ab7792 100644 --- a/SysML2.NET/Core/AutoGenPoco/AttributeDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/AttributeDefinition.cs @@ -111,10 +111,7 @@ public partial class AttributeDefinition : IAttributeDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -122,10 +119,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -134,10 +128,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -146,10 +137,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -165,10 +153,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -176,10 +161,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -188,10 +170,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -199,10 +178,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -210,10 +186,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -222,10 +195,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -233,10 +203,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -249,10 +216,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -267,10 +231,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -288,10 +249,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -319,10 +277,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -330,10 +285,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -343,10 +295,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -356,10 +305,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -367,10 +313,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -378,10 +321,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -389,10 +329,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -400,10 +337,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -413,10 +347,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -424,10 +355,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -435,10 +363,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -446,10 +371,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -457,10 +379,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -469,10 +388,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -482,10 +398,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -493,10 +406,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -506,10 +416,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -519,10 +426,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -530,10 +434,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -542,10 +443,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -553,10 +451,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -564,10 +459,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -577,10 +469,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -588,10 +477,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -601,10 +487,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -612,10 +495,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -624,10 +504,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -635,10 +512,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -647,10 +521,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -661,10 +532,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -672,10 +540,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -683,10 +548,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -694,10 +556,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -705,10 +564,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -716,10 +572,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -735,10 +588,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -746,10 +596,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -759,10 +606,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -770,10 +614,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -782,10 +623,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -793,10 +631,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -805,10 +640,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -817,10 +649,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -828,10 +657,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -839,10 +665,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -850,10 +673,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -861,10 +681,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -872,10 +689,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -884,10 +698,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -896,10 +707,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -919,10 +727,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -932,10 +737,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -944,10 +746,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -958,10 +757,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -969,10 +765,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -981,10 +774,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -994,10 +784,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs b/SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs index 20803ee6b..9c8a9408b 100644 --- a/SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs @@ -93,10 +93,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_18_5_3_12e503d9_1565471811429_523492_20975", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IAttributeUsage.AttributeDefinition")] - public List QueryAttributeDefinition() - { - return this.ComputeAttributeDefinition(); - } + public List attributeDefinition => this.ComputeAttributeDefinition(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -108,10 +105,7 @@ public List QueryAttributeDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -121,10 +115,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -152,10 +143,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IAttributeUsage.AttributeDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -168,10 +156,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -179,10 +164,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -191,10 +173,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -211,10 +190,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -230,10 +206,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -243,10 +216,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -254,10 +224,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -266,20 +233,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -289,10 +250,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -300,10 +258,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -311,10 +266,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -323,10 +275,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -334,10 +283,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -350,10 +296,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -377,10 +320,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -427,10 +367,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -453,10 +390,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1624050661138_649455_27", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IAttributeUsage.IsReference")] - bool IAttributeUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether this Usage is a referential Usage, that is, it has isComposite = false. @@ -464,10 +398,7 @@ bool IAttributeUsage.QueryIsReference() [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IAttributeUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + bool Systems.DefinitionAndUsage.IUsage.isReference => throw new InvalidOperationException("Redefined by property IAttributeUsage.IsReference"); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -486,7 +417,7 @@ bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -516,10 +447,7 @@ bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -527,10 +455,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -538,10 +463,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -551,10 +473,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -564,10 +483,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -575,10 +491,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -586,10 +499,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -597,10 +507,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -608,10 +515,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -619,10 +523,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -630,10 +531,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -641,10 +539,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -654,10 +549,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -665,10 +557,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -676,10 +565,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -687,10 +573,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -698,10 +581,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -709,10 +589,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -720,10 +597,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -731,10 +605,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -742,10 +613,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -753,10 +621,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -764,10 +629,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -775,10 +637,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -786,10 +645,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -797,10 +653,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -808,10 +661,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -820,10 +670,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -831,10 +678,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -842,10 +686,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -853,10 +694,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -864,10 +702,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -875,10 +710,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -888,10 +720,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -900,10 +729,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -912,10 +738,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -925,10 +748,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -938,10 +758,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -949,10 +766,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -961,10 +775,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -972,10 +783,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -985,10 +793,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -998,10 +803,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1011,10 +813,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1024,10 +823,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1036,10 +832,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1048,10 +841,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1062,10 +852,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1074,10 +861,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1086,10 +870,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1107,10 +888,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1120,10 +898,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1133,10 +908,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1146,10 +918,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1158,10 +927,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1169,10 +935,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1181,10 +944,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1192,10 +952,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1204,10 +961,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1216,10 +970,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1237,10 +988,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1248,10 +996,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1263,10 +1008,7 @@ public IUsage QueryOwningUsage() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1276,10 +1018,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1288,10 +1027,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1302,10 +1038,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1316,10 +1049,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1327,10 +1057,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1339,10 +1066,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1351,10 +1075,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Behavior.cs b/SysML2.NET/Core/AutoGenPoco/Behavior.cs index eec33beac..504e1571e 100644 --- a/SysML2.NET/Core/AutoGenPoco/Behavior.cs +++ b/SysML2.NET/Core/AutoGenPoco/Behavior.cs @@ -87,10 +87,7 @@ public partial class Behavior : IBehavior /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -99,10 +96,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The Documentation owned by this Element. @@ -111,10 +105,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -130,10 +121,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -141,10 +129,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -153,10 +138,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -164,10 +146,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -175,10 +154,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -187,10 +163,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -198,10 +171,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -214,10 +184,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -232,10 +199,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -253,10 +217,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -276,10 +237,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -287,10 +245,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -300,10 +255,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -313,10 +265,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -324,10 +273,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -337,10 +283,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -349,10 +292,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -362,10 +302,7 @@ public IConjugation QueryOwnedConjugator() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -375,10 +312,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -386,10 +320,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -398,10 +329,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -409,10 +337,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -422,10 +347,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -435,10 +357,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -447,10 +366,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -459,10 +375,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -473,10 +386,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -494,10 +404,7 @@ public List QueryOwnedMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -506,10 +413,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -518,10 +422,7 @@ public List QueryOwnedSubclassification() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -529,10 +430,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -541,10 +439,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -553,10 +448,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -573,10 +465,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -588,10 +477,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -601,10 +487,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Steps that make up this Behavior. @@ -612,10 +495,7 @@ public string QueryShortName() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The TextualRepresentations that annotate this Element. @@ -624,10 +504,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -638,10 +515,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/BindingConnector.cs b/SysML2.NET/Core/AutoGenPoco/BindingConnector.cs index 7a3552722..e98f40f8d 100644 --- a/SysML2.NET/Core/AutoGenPoco/BindingConnector.cs +++ b/SysML2.NET/Core/AutoGenPoco/BindingConnector.cs @@ -65,10 +65,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674983_471497_43284", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -80,10 +77,7 @@ public List QueryAssociation() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -93,10 +87,7 @@ public List QueryChainingFeature() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -106,10 +97,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -135,10 +123,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -151,10 +136,7 @@ public IType QueryDefaultFeaturingType() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -162,10 +144,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -182,10 +161,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -202,10 +178,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -215,10 +188,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -226,10 +196,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -238,20 +205,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -261,10 +222,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -272,10 +230,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -283,10 +238,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -295,10 +247,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -306,10 +255,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -322,10 +268,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -349,10 +292,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -407,10 +347,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -444,7 +381,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -460,10 +397,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -471,10 +405,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -484,10 +415,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -497,10 +425,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -508,10 +433,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -521,10 +443,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -533,10 +452,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -545,10 +461,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -558,10 +471,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -571,10 +481,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -582,10 +489,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -594,10 +498,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -605,10 +506,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -618,10 +516,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -631,10 +526,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -644,10 +536,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -657,10 +546,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -669,10 +555,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -681,10 +564,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -695,10 +575,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -707,10 +584,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -719,10 +593,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -748,10 +619,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -761,10 +629,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -774,10 +639,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -787,10 +649,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -799,10 +658,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -810,10 +666,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -821,10 +674,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -833,10 +683,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -845,10 +692,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -874,10 +718,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -889,10 +730,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -901,10 +739,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -913,10 +748,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -926,10 +758,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -947,10 +776,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -969,10 +795,7 @@ public IFeature QuerySourceFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -981,10 +804,7 @@ public List QueryTargetFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -995,10 +815,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1009,10 +826,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/BindingConnectorAsUsage.cs b/SysML2.NET/Core/AutoGenPoco/BindingConnectorAsUsage.cs index 0585d5589..4314adb1a 100644 --- a/SysML2.NET/Core/AutoGenPoco/BindingConnectorAsUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/BindingConnectorAsUsage.cs @@ -87,10 +87,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674983_471497_43284", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -102,10 +99,7 @@ public List QueryAssociation() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -115,10 +109,7 @@ public List QueryChainingFeature() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -128,10 +119,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -157,10 +145,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -170,10 +155,7 @@ public IType QueryDefaultFeaturingType() [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -186,10 +168,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -197,10 +176,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -209,10 +185,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -229,10 +202,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -249,10 +219,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -262,10 +229,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -273,10 +237,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -285,20 +246,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -308,10 +263,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -319,10 +271,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -330,10 +279,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -342,10 +288,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -353,10 +296,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -369,10 +309,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -396,10 +333,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -454,10 +388,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -479,10 +410,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -501,7 +429,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -531,10 +459,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -542,10 +467,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -553,10 +475,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -566,10 +485,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -579,10 +495,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -590,10 +503,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -601,10 +511,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -612,10 +519,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -623,10 +527,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -634,10 +535,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -645,10 +543,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -656,10 +551,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -669,10 +561,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -680,10 +569,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -691,10 +577,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -702,10 +585,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -713,10 +593,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -724,10 +601,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -735,10 +609,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -746,10 +617,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -757,10 +625,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -768,10 +633,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -779,10 +641,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -790,10 +649,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -801,10 +657,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -812,10 +665,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -823,10 +673,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -835,10 +682,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -846,10 +690,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -857,10 +698,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -868,10 +706,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -879,10 +714,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -890,10 +722,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -903,10 +732,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -915,10 +741,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -927,10 +750,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -940,10 +760,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -953,10 +770,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -964,10 +778,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -976,10 +787,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -987,10 +795,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1000,10 +805,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1013,10 +815,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1026,10 +825,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1039,10 +835,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1051,10 +844,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1063,10 +853,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1077,10 +864,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1089,10 +873,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1101,10 +882,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -1130,10 +908,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1143,10 +918,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1156,10 +928,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1169,10 +938,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1181,10 +947,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1192,10 +955,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1204,10 +964,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1215,10 +972,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1227,10 +981,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1239,10 +990,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -1268,10 +1016,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1279,10 +1024,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1294,10 +1036,7 @@ public IUsage QueryOwningUsage() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1306,10 +1045,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1318,10 +1054,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1331,10 +1064,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1352,10 +1082,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1374,10 +1101,7 @@ public IFeature QuerySourceFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -1386,10 +1110,7 @@ public List QueryTargetFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1400,10 +1121,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1414,10 +1132,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1425,10 +1140,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1437,10 +1149,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1449,10 +1158,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/BooleanExpression.cs b/SysML2.NET/Core/AutoGenPoco/BooleanExpression.cs index 151aae4b6..24bf85141 100644 --- a/SysML2.NET/Core/AutoGenPoco/BooleanExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/BooleanExpression.cs @@ -66,10 +66,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -81,10 +78,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -94,10 +88,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -127,10 +118,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -139,10 +127,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -159,10 +144,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -178,10 +160,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -191,10 +170,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -202,10 +178,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -214,20 +187,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -237,10 +204,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -249,10 +213,7 @@ public List QueryFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -260,10 +221,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -271,10 +229,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -283,10 +238,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -294,10 +246,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -310,10 +259,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -337,10 +283,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -387,10 +330,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -398,10 +338,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -435,7 +372,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -451,10 +388,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -462,10 +396,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -475,10 +406,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -488,10 +416,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -499,10 +424,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -512,10 +434,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -524,10 +443,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -536,10 +452,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -549,10 +462,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -562,10 +472,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -573,10 +480,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -585,10 +489,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -596,10 +497,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -609,10 +507,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -622,10 +517,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -635,10 +527,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -648,10 +537,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -660,10 +546,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -672,10 +555,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -686,10 +566,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -698,10 +575,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -710,10 +584,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -731,10 +602,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -744,10 +612,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -757,10 +622,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -770,10 +632,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -782,10 +641,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -793,10 +649,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -804,10 +657,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -816,10 +666,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -828,10 +675,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -849,10 +693,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -861,10 +702,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The Predicate that types the Expression. @@ -872,10 +710,7 @@ public List QueryParameter() [Property(xmiId: "_19_0_2_12e503d9_1578025035149_386_969", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate QueryPredicate() - { - return this.ComputePredicate(); - } + public IPredicate predicate => this.ComputePredicate(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -887,10 +722,7 @@ public IPredicate QueryPredicate() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -901,10 +733,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -914,10 +743,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -926,10 +752,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -939,10 +762,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -953,10 +773,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/CalculationDefinition.cs b/SysML2.NET/Core/AutoGenPoco/CalculationDefinition.cs index bb9364dd3..fbad648d0 100644 --- a/SysML2.NET/Core/AutoGenPoco/CalculationDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/CalculationDefinition.cs @@ -82,10 +82,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List QueryAction() - { - return this.ComputeAction(); - } + public List action => this.ComputeAction(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -101,10 +98,7 @@ public List QueryAction() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [Implements(implementation: "ICalculationDefinition.Calculation")] - public List QueryCalculation() - { - return this.ComputeCalculation(); - } + public List calculation => this.ComputeCalculation(); /// /// The declared name of this Element. @@ -134,10 +128,7 @@ public List QueryCalculation() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -146,10 +137,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -158,10 +146,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -170,10 +155,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -189,10 +171,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -200,10 +179,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List QueryExpression() - { - return this.ComputeExpression(); - } + public List expression => this.ComputeExpression(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -211,10 +187,7 @@ public List QueryExpression() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -223,10 +196,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -234,10 +204,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -245,10 +212,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -257,10 +221,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -268,10 +229,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -284,10 +242,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -302,10 +257,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -330,10 +282,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -344,10 +293,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -375,10 +321,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -386,10 +329,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -399,10 +339,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -412,10 +349,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -423,10 +357,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -434,10 +365,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -445,10 +373,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -456,10 +381,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -469,10 +391,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -480,10 +399,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -491,10 +407,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -502,10 +415,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -513,10 +423,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -525,10 +432,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -538,10 +442,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -549,10 +450,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -562,10 +460,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -575,10 +470,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -586,10 +478,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -598,10 +487,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -609,10 +495,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -620,10 +503,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -633,10 +513,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -644,10 +521,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -657,10 +531,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -668,10 +539,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -680,10 +548,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -691,10 +556,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -703,10 +565,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -717,10 +576,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -728,10 +584,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -739,10 +592,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -750,10 +600,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -761,10 +608,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -772,10 +616,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -791,10 +632,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -802,10 +640,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -815,10 +650,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -826,10 +658,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -838,10 +667,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -849,10 +675,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -861,10 +684,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -873,10 +693,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -884,10 +701,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -895,10 +709,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -906,10 +717,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -917,10 +725,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -928,10 +733,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -940,10 +742,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -952,10 +751,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -972,10 +768,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -987,10 +780,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The object or value that is the result of evaluating the Function. @@ -999,10 +789,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1012,10 +799,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Steps that make up this Behavior. @@ -1023,10 +807,7 @@ public string QueryShortName() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The TextualRepresentations that annotate this Element. @@ -1035,10 +816,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1049,10 +827,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1060,10 +835,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1072,10 +844,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1085,10 +854,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/CalculationUsage.cs b/SysML2.NET/Core/AutoGenPoco/CalculationUsage.cs index 3e948e00a..07c550669 100644 --- a/SysML2.NET/Core/AutoGenPoco/CalculationUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/CalculationUsage.cs @@ -89,10 +89,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -108,10 +105,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -122,10 +116,7 @@ public List QueryBehavior() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public IFunction QueryCalculationDefinition() - { - return this.ComputeCalculationDefinition(); - } + public IFunction calculationDefinition => this.ComputeCalculationDefinition(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -137,10 +128,7 @@ public IFunction QueryCalculationDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -150,10 +138,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -181,10 +166,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -197,10 +179,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -209,10 +188,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -221,10 +197,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -241,10 +214,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -260,10 +230,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -273,10 +240,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -284,10 +248,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -296,20 +257,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -319,10 +274,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -331,10 +283,7 @@ public List QueryFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -342,10 +291,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -353,10 +299,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -364,10 +307,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -376,10 +316,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -387,10 +324,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -403,10 +337,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -430,10 +361,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -488,10 +416,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -499,10 +424,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -524,10 +446,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -546,7 +465,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -576,10 +495,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -587,10 +503,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -598,10 +511,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -611,10 +521,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -624,10 +531,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -635,10 +539,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -646,10 +547,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -657,10 +555,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -668,10 +563,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -679,10 +571,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -690,10 +579,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -701,10 +587,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -714,10 +597,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -725,10 +605,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -736,10 +613,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -747,10 +621,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -758,10 +629,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -769,10 +637,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -780,10 +645,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -791,10 +653,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -802,10 +661,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -813,10 +669,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -824,10 +677,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -835,10 +685,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -846,10 +693,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -857,10 +701,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -868,10 +709,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -880,10 +718,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -891,10 +726,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -902,10 +734,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -913,10 +742,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -924,10 +750,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -938,10 +761,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -949,10 +769,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -962,10 +779,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -974,10 +788,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -986,10 +797,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -999,10 +807,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1012,10 +817,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1023,10 +825,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1035,10 +834,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1046,10 +842,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1059,10 +852,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1072,10 +862,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1085,10 +872,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1098,10 +882,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1110,10 +891,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1122,10 +900,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1136,10 +911,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1148,10 +920,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1160,10 +929,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1181,10 +947,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1194,10 +957,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1207,10 +967,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1220,10 +977,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1232,10 +986,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1243,10 +994,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1255,10 +1003,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1266,10 +1011,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1278,10 +1020,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1290,10 +1029,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1311,10 +1047,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1322,10 +1055,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1334,10 +1064,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1358,10 +1085,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1372,10 +1096,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1385,10 +1106,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1397,10 +1115,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1411,10 +1126,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1425,10 +1137,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1436,10 +1145,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1448,10 +1154,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1460,10 +1163,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs index 694fac586..9e6286b54 100644 --- a/SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs @@ -83,10 +83,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List QueryAction() - { - return this.ComputeAction(); - } + public List action => this.ComputeAction(); /// /// The parameters of this CaseDefinition that represent actors involved in the case. @@ -95,10 +92,7 @@ public List QueryAction() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -114,10 +108,7 @@ public List QueryActorParameter() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [Implements(implementation: "ICalculationDefinition.Calculation")] - public List QueryCalculation() - { - return this.ComputeCalculation(); - } + public List calculation => this.ComputeCalculation(); /// /// The declared name of this Element. @@ -147,10 +138,7 @@ public List QueryCalculation() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -159,10 +147,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -171,10 +156,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -183,10 +165,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -202,10 +181,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -213,10 +189,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List QueryExpression() - { - return this.ComputeExpression(); - } + public List expression => this.ComputeExpression(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -224,10 +197,7 @@ public List QueryExpression() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -236,10 +206,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -247,10 +214,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -258,10 +222,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -270,10 +231,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -281,10 +239,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -297,10 +252,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -315,10 +267,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -343,10 +292,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -357,10 +303,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -388,10 +331,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -399,10 +339,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -412,10 +349,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -425,10 +359,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The RequirementUsage representing the objective of this CaseDefinition. @@ -436,10 +367,7 @@ public string QueryName() [Property(xmiId: "_19_0_2_59601fc_1590259317710_27529_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ObjectiveRequirement")] - public IRequirementUsage QueryObjectiveRequirement() - { - return this.ComputeObjectiveRequirement(); - } + public IRequirementUsage objectiveRequirement => this.ComputeObjectiveRequirement(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -447,10 +375,7 @@ public IRequirementUsage QueryObjectiveRequirement() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -458,10 +383,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -469,10 +391,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -480,10 +399,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -493,10 +409,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -504,10 +417,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -515,10 +425,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -526,10 +433,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -537,10 +441,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -549,10 +450,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -562,10 +460,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -573,10 +468,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -586,10 +478,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -599,10 +488,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -610,10 +496,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -622,10 +505,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -633,10 +513,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -644,10 +521,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -657,10 +531,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -668,10 +539,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -681,10 +549,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -692,10 +557,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -704,10 +566,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -715,10 +574,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -727,10 +583,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -741,10 +594,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -752,10 +602,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -763,10 +610,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -774,10 +618,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -785,10 +626,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -796,10 +634,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -815,10 +650,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -826,10 +658,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -839,10 +668,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -850,10 +676,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -862,10 +685,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -873,10 +693,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -885,10 +702,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -897,10 +711,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -908,10 +719,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -919,10 +727,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -930,10 +735,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -941,10 +743,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -952,10 +751,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -964,10 +760,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -976,10 +769,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -996,10 +786,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1011,10 +798,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The object or value that is the result of evaluating the Function. @@ -1023,10 +807,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1036,10 +817,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Steps that make up this Behavior. @@ -1047,10 +825,7 @@ public string QueryShortName() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The parameter of this CaseDefinition that represents its subject. @@ -1059,10 +834,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// The TextualRepresentations that annotate this Element. @@ -1071,10 +843,7 @@ public IUsage QuerySubjectParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1085,10 +854,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1096,10 +862,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1108,10 +871,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1121,10 +881,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/CaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/CaseUsage.cs index f0da5123d..302229b94 100644 --- a/SysML2.NET/Core/AutoGenPoco/CaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/CaseUsage.cs @@ -86,10 +86,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -98,10 +95,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -117,10 +111,7 @@ public List QueryActorParameter() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -132,10 +123,7 @@ public List QueryBehavior() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public IFunction QueryCalculationDefinition() - { - return this.ComputeCalculationDefinition(); - } + public IFunction calculationDefinition => this.ComputeCalculationDefinition(); /// /// The CaseDefinition that is the type of this CaseUsage. @@ -143,10 +131,7 @@ public IFunction QueryCalculationDefinition() [Property(xmiId: "_19_0_2_59601fc_1590257465225_855208_512", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public ICaseDefinition QueryCaseDefinition() - { - return this.ComputeCaseDefinition(); - } + public ICaseDefinition caseDefinition => this.ComputeCaseDefinition(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -158,10 +143,7 @@ public ICaseDefinition QueryCaseDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -171,10 +153,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -202,10 +181,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -218,10 +194,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -230,10 +203,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -242,10 +212,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -262,10 +229,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -281,10 +245,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -294,10 +255,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -305,10 +263,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -317,20 +272,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -340,10 +289,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -352,10 +298,7 @@ public List QueryFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -363,10 +306,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -374,10 +314,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -385,10 +322,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -397,10 +331,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -408,10 +339,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -424,10 +352,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -451,10 +376,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -509,10 +431,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -520,10 +439,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -545,10 +461,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -567,7 +480,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -597,10 +510,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -608,10 +518,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -619,10 +526,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -632,10 +536,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -645,10 +546,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -656,10 +554,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -667,10 +562,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -678,10 +570,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -689,10 +578,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -700,10 +586,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -711,10 +594,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -722,10 +602,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -735,10 +612,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -746,10 +620,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -757,10 +628,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -768,10 +636,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -779,10 +644,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -790,10 +652,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -801,10 +660,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -812,10 +668,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -823,10 +676,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -834,10 +684,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -845,10 +692,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -856,10 +700,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -867,10 +708,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -878,10 +716,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -889,10 +724,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -901,10 +733,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -912,10 +741,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -923,10 +749,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -934,10 +757,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -945,10 +765,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The RequirementUsage representing the objective of this CaseUsage. @@ -956,10 +773,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_2_12e503d9_1591138794257_404044_2145", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ObjectiveRequirement")] - public IRequirementUsage QueryObjectiveRequirement() - { - return this.ComputeObjectiveRequirement(); - } + public IRequirementUsage objectiveRequirement => this.ComputeObjectiveRequirement(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -970,10 +784,7 @@ public IRequirementUsage QueryObjectiveRequirement() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -981,10 +792,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -994,10 +802,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -1006,10 +811,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1018,10 +820,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1031,10 +830,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1044,10 +840,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1055,10 +848,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1067,10 +857,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1078,10 +865,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1091,10 +875,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1104,10 +885,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1117,10 +895,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1130,10 +905,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1142,10 +914,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1154,10 +923,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1168,10 +934,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1180,10 +943,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1192,10 +952,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1213,10 +970,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1226,10 +980,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1239,10 +990,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1252,10 +1000,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1264,10 +1009,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1275,10 +1017,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1287,10 +1026,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1298,10 +1034,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1310,10 +1043,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1322,10 +1052,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1343,10 +1070,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1354,10 +1078,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1366,10 +1087,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1390,10 +1108,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1404,10 +1119,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1417,10 +1129,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The parameter of this CaseUsage that represents its subject. @@ -1429,10 +1138,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// The TextualRepresentations that annotate this Element. @@ -1441,10 +1147,7 @@ public IUsage QuerySubjectParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1455,10 +1158,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1469,10 +1169,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1480,10 +1177,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1492,10 +1186,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1504,10 +1195,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Class.cs b/SysML2.NET/Core/AutoGenPoco/Class.cs index 696490d06..8d2ca956b 100644 --- a/SysML2.NET/Core/AutoGenPoco/Class.cs +++ b/SysML2.NET/Core/AutoGenPoco/Class.cs @@ -87,10 +87,7 @@ public partial class Class : IClass /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -98,10 +95,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The Documentation owned by this Element. @@ -110,10 +104,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -129,10 +120,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -140,10 +128,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -152,10 +137,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -163,10 +145,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -174,10 +153,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -186,10 +162,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -197,10 +170,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -213,10 +183,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -231,10 +198,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -252,10 +216,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -275,10 +236,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -286,10 +244,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -299,10 +254,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -312,10 +264,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -323,10 +272,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -336,10 +282,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -348,10 +291,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -361,10 +301,7 @@ public IConjugation QueryOwnedConjugator() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -374,10 +311,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -385,10 +319,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -397,10 +328,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -408,10 +336,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -421,10 +346,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -434,10 +356,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -446,10 +365,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -458,10 +374,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -472,10 +385,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -493,10 +403,7 @@ public List QueryOwnedMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -505,10 +412,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -517,10 +421,7 @@ public List QueryOwnedSubclassification() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -528,10 +429,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -540,10 +438,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -552,10 +447,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -575,10 +467,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -588,10 +477,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -600,10 +486,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -614,10 +497,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Classifier.cs b/SysML2.NET/Core/AutoGenPoco/Classifier.cs index 988f30ba9..bec9e7cc9 100644 --- a/SysML2.NET/Core/AutoGenPoco/Classifier.cs +++ b/SysML2.NET/Core/AutoGenPoco/Classifier.cs @@ -89,10 +89,7 @@ public partial class Classifier : IClassifier /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -100,10 +97,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The Documentation owned by this Element. @@ -112,10 +106,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -131,10 +122,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -142,10 +130,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -154,10 +139,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -165,10 +147,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -176,10 +155,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -188,10 +164,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -199,10 +172,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -215,10 +185,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -233,10 +200,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -254,10 +218,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -277,10 +238,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -288,10 +246,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -301,10 +256,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -314,10 +266,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -325,10 +274,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -338,10 +284,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -350,10 +293,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -363,10 +303,7 @@ public IConjugation QueryOwnedConjugator() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -376,10 +313,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -387,10 +321,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -399,10 +330,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -410,10 +338,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -423,10 +348,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -436,10 +358,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -448,10 +367,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -460,10 +376,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -474,10 +387,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -495,10 +405,7 @@ public List QueryOwnedMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -507,10 +414,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -519,10 +423,7 @@ public List QueryOwnedSubclassification() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -530,10 +431,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -542,10 +440,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -554,10 +449,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -577,10 +469,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -590,10 +479,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -602,10 +488,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -616,10 +499,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/CollectExpression.cs b/SysML2.NET/Core/AutoGenPoco/CollectExpression.cs index 944c561ed..75cd6abfb 100644 --- a/SysML2.NET/Core/AutoGenPoco/CollectExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/CollectExpression.cs @@ -68,10 +68,7 @@ public partial class CollectExpression : ICollectExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List QueryArgument() - { - return this.ComputeArgument(); - } + public List argument => this.ComputeArgument(); /// /// The Behaviors that type this Step. @@ -80,10 +77,7 @@ public List QueryArgument() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -95,10 +89,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -108,10 +99,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -141,10 +129,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -153,10 +138,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -173,10 +155,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -192,10 +171,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -205,10 +181,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -216,10 +189,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -228,20 +198,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -251,10 +215,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -262,10 +223,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -273,10 +231,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -284,10 +239,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -296,10 +248,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -307,10 +256,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Type that is being instantiated. @@ -318,10 +264,7 @@ public List QueryInput() [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public IType QueryInstantiatedType() - { - return this.ComputeInstantiatedType(); - } + public IType instantiatedType => this.ComputeInstantiatedType(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -334,10 +277,7 @@ public IType QueryInstantiatedType() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -361,10 +301,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -411,10 +348,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -422,10 +356,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -459,7 +390,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -475,10 +406,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -486,10 +414,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -499,10 +424,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -512,17 +434,14 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// [Property(xmiId: "_18_5_3_12e503d9_1559596670531_992404_29068", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "collect")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528808100_646606_111674")] [Implements(implementation: "ICollectExpression.Operator")] - string ICollectExpression.Operator { get; set; } + public string Operator { get; set; } = "collect"; /// /// An operator symbol that names a corresponding Function from one of the standard packages from the @@ -539,10 +458,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -552,10 +468,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -564,10 +477,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -576,10 +486,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -589,10 +496,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -602,10 +506,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -613,10 +514,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -625,10 +523,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -636,10 +531,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -649,10 +541,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -662,10 +551,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -675,10 +561,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -688,10 +571,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -700,10 +580,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -712,10 +589,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -726,10 +600,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -738,10 +609,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -750,10 +618,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -771,10 +636,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -784,10 +646,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -797,10 +656,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -810,10 +666,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -822,10 +675,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -833,10 +683,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -844,10 +691,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -856,10 +700,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -868,10 +709,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -889,10 +727,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -901,10 +736,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -916,10 +748,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -930,10 +759,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -943,10 +769,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -955,10 +778,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -968,10 +788,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -982,10 +799,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Comment.cs b/SysML2.NET/Core/AutoGenPoco/Comment.cs index eca54c1b7..c5e4722b6 100644 --- a/SysML2.NET/Core/AutoGenPoco/Comment.cs +++ b/SysML2.NET/Core/AutoGenPoco/Comment.cs @@ -60,10 +60,7 @@ public partial class Comment : IComment /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List QueryAnnotatedElement() - { - return this.ComputeAnnotatedElement(); - } + public List annotatedElement => this.ComputeAnnotatedElement(); /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -72,10 +69,7 @@ public List QueryAnnotatedElement() [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List QueryAnnotation() - { - return this.ComputeAnnotation(); - } + public List annotation => this.ComputeAnnotation(); /// /// The annotation text for the Comment. @@ -108,10 +102,7 @@ public List QueryAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -137,10 +128,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Identification of the language of the body text and, optionally, the region and/or encoding. The @@ -159,10 +147,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -172,10 +157,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List QueryOwnedAnnotatingRelationship() - { - return this.ComputeOwnedAnnotatingRelationship(); - } + public List ownedAnnotatingRelationship => this.ComputeOwnedAnnotatingRelationship(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -185,10 +167,7 @@ public List QueryOwnedAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -196,10 +175,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -215,10 +191,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -227,10 +200,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public IAnnotation QueryOwningAnnotatingRelationship() - { - return this.ComputeOwningAnnotatingRelationship(); - } + public IAnnotation owningAnnotatingRelationship => this.ComputeOwningAnnotatingRelationship(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -239,10 +209,7 @@ public IAnnotation QueryOwningAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -251,10 +218,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -274,10 +238,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -287,10 +248,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -299,10 +257,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ConcernDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ConcernDefinition.cs index cd303fb7e..178bd236e 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConcernDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConcernDefinition.cs @@ -82,10 +82,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -102,10 +99,7 @@ public List QueryActorParameter() [Property(xmiId: "_19_0_2_12e503d9_1583376806647_629021_133", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementDefinition.AssumedConstraint")] - public List QueryAssumedConstraint() - { - return this.ComputeAssumedConstraint(); - } + public List assumedConstraint => this.ComputeAssumedConstraint(); /// /// The declared name of this Element. @@ -136,10 +130,7 @@ public List QueryAssumedConstraint() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -148,10 +139,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -160,10 +148,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -172,10 +157,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -191,10 +173,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -202,10 +181,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List QueryExpression() - { - return this.ComputeExpression(); - } + public List expression => this.ComputeExpression(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -213,10 +189,7 @@ public List QueryExpression() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -225,10 +198,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The ConcernUsages framed by this RequirementDefinition, which are the ownedConcerns of all @@ -237,10 +207,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1617116733499_587735_3242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583376932997_792124_158")] [Implements(implementation: "IRequirementDefinition.FramedConcern")] - public List QueryFramedConcern() - { - return this.ComputeFramedConcern(); - } + public List framedConcern => this.ComputeFramedConcern(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -248,10 +215,7 @@ public List QueryFramedConcern() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -259,10 +223,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -271,10 +232,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -282,10 +240,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -298,10 +253,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -316,10 +268,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -344,10 +293,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -358,10 +304,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -389,10 +332,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -400,10 +340,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -413,10 +350,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -426,10 +360,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -437,10 +368,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -448,10 +376,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -459,10 +384,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -470,10 +392,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -483,10 +402,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -494,10 +410,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -505,10 +418,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -516,10 +426,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -527,10 +434,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -539,10 +443,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -552,10 +453,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -563,10 +461,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -576,10 +471,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -589,10 +481,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -600,10 +489,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -612,10 +498,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -623,10 +506,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -634,10 +514,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -647,10 +524,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -658,10 +532,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -671,10 +542,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -682,10 +550,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -694,10 +559,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -705,10 +567,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -717,10 +576,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -731,10 +587,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -742,10 +595,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -753,10 +603,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -764,10 +611,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -775,10 +619,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -786,10 +627,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -805,10 +643,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -816,10 +651,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -829,10 +661,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -840,10 +669,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -852,10 +678,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -863,10 +686,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -875,10 +695,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -887,10 +704,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -898,10 +712,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -909,10 +720,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -920,10 +728,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -931,10 +736,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -942,10 +744,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -954,10 +753,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -966,10 +762,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -986,10 +779,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1001,10 +791,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An optional modeler-specified identifier for this RequirementDefinition (used, e.g., to link it to @@ -1024,10 +811,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_2_12e503d9_1583376932997_792124_158", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementDefinition.RequiredConstraint")] - public List QueryRequiredConstraint() - { - return this.ComputeRequiredConstraint(); - } + public List requiredConstraint => this.ComputeRequiredConstraint(); /// /// The object or value that is the result of evaluating the Function. @@ -1036,10 +820,7 @@ public List QueryRequiredConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1049,10 +830,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The parameters of this RequirementDefinition that represent stakeholders for th requirement. @@ -1061,10 +839,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.StakeholderParameter")] - public List QueryStakeholderParameter() - { - return this.ComputeStakeholderParameter(); - } + public List stakeholderParameter => this.ComputeStakeholderParameter(); /// /// The Steps that make up this Behavior. @@ -1072,10 +847,7 @@ public List QueryStakeholderParameter() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The parameter of this RequirementDefinition that represents its subject. @@ -1084,10 +856,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// An optional textual statement of the requirement represented by this RequirementDefinition, derived @@ -1095,10 +864,7 @@ public IUsage QuerySubjectParameter() /// [Property(xmiId: "_19_0_2_12e503d9_1583376433122_189839_94", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementDefinition.Text")] - public List QueryText() - { - return this.ComputeText(); - } + public List text => this.ComputeText(); /// /// The TextualRepresentations that annotate this Element. @@ -1107,10 +873,7 @@ public List QueryText() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1121,10 +884,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1132,10 +892,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1144,10 +901,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1157,10 +911,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs b/SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs index 70e3d3228..c98b8f789 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs @@ -86,10 +86,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -106,10 +103,7 @@ public List QueryActorParameter() [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.AssumedConstraint")] - public List QueryAssumedConstraint() - { - return this.ComputeAssumedConstraint(); - } + public List assumedConstraint => this.ComputeAssumedConstraint(); /// /// The Behaviors that type this Step. @@ -118,10 +112,7 @@ public List QueryAssumedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -133,10 +124,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The ConcernDefinition that is the single type of this ConcernUsage. @@ -144,10 +132,7 @@ public List QueryChainingFeature() [Property(xmiId: "_19_0_4_12e503d9_1617052514912_780627_2256", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1583000408905_769743_1223")] [Implements(implementation: "IConcernUsage.ConcernDefinition")] - public IConcernDefinition QueryConcernDefinition() - { - return this.ComputeConcernDefinition(); - } + public IConcernDefinition concernDefinition => this.ComputeConcernDefinition(); /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -158,10 +143,7 @@ public IConcernDefinition QueryConcernDefinition() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public IPredicate QueryConstraintDefinition() - { - return this.ComputeConstraintDefinition(); - } + public IPredicate constraintDefinition => this.ComputeConstraintDefinition(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -171,10 +153,7 @@ public IPredicate QueryConstraintDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -203,10 +182,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -219,10 +195,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -231,10 +204,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -243,10 +213,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -263,10 +230,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -282,10 +246,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -295,10 +256,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -306,10 +264,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -318,20 +273,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -341,10 +290,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -353,10 +299,7 @@ public List QueryFeaturingType() [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] [Implements(implementation: "IRequirementUsage.FramedConcern")] - public List QueryFramedConcern() - { - return this.ComputeFramedConcern(); - } + public List framedConcern => this.ComputeFramedConcern(); /// /// The Function that types this Expression. @@ -365,10 +308,7 @@ public List QueryFramedConcern() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -376,10 +316,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -387,10 +324,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -398,10 +332,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -410,10 +341,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -421,10 +349,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -437,10 +362,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -464,10 +386,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -522,10 +441,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -533,10 +449,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -558,10 +471,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -580,7 +490,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -610,10 +520,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -621,10 +528,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -632,10 +536,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -645,10 +546,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -658,10 +556,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -669,10 +564,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -680,10 +572,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -691,10 +580,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -702,10 +588,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -713,10 +596,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -724,10 +604,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -735,10 +612,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -748,10 +622,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -759,10 +630,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -770,10 +638,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -781,10 +646,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -792,10 +654,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -803,10 +662,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -814,10 +670,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -825,10 +678,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -836,10 +686,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -847,10 +694,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -858,10 +702,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -869,10 +710,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -880,10 +718,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -891,10 +726,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -902,10 +734,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -914,10 +743,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -925,10 +751,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -936,10 +759,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -947,10 +767,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -958,10 +775,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -971,10 +785,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -982,10 +793,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -995,10 +803,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -1007,10 +812,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1019,10 +821,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1032,10 +831,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1045,10 +841,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1056,10 +849,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1068,10 +858,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1079,10 +866,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1092,10 +876,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1105,10 +886,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1118,10 +896,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1131,10 +906,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1143,10 +915,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1155,10 +924,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1169,10 +935,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1181,10 +944,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1193,10 +953,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1214,10 +971,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1227,10 +981,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1240,10 +991,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1253,10 +1001,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1265,10 +1010,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1276,10 +1018,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1288,10 +1027,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1299,10 +1035,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1311,10 +1044,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1323,10 +1053,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1344,10 +1071,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1355,10 +1079,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1367,10 +1088,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1388,10 +1106,7 @@ public List QueryParameter() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate QueryPredicate() - { - return this.ComputePredicate(); - } + public IPredicate predicate => this.ComputePredicate(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1403,10 +1118,7 @@ public IPredicate QueryPredicate() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -1426,10 +1138,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.RequiredConstraint")] - public List QueryRequiredConstraint() - { - return this.ComputeRequiredConstraint(); - } + public List requiredConstraint => this.ComputeRequiredConstraint(); /// /// The RequirementDefinition that is the single definition of this RequirementUsage. @@ -1438,10 +1147,7 @@ public List QueryRequiredConstraint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [RedefinedByProperty("IConcernUsage.ConcernDefinition")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public IRequirementDefinition QueryRequirementDefinition() - { - return this.ComputeRequirementDefinition(); - } + public IRequirementDefinition requirementDefinition => this.ComputeRequirementDefinition(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1452,10 +1158,7 @@ public IRequirementDefinition QueryRequirementDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1465,10 +1168,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -1477,10 +1177,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.StakeholderParameter")] - public List QueryStakeholderParameter() - { - return this.ComputeStakeholderParameter(); - } + public List stakeholderParameter => this.ComputeStakeholderParameter(); /// /// The parameter of this RequirementUsage that represents its subject. @@ -1489,10 +1186,7 @@ public List QueryStakeholderParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from @@ -1500,10 +1194,7 @@ public IUsage QuerySubjectParameter() /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementUsage.Text")] - public List QueryText() - { - return this.ComputeText(); - } + public List text => this.ComputeText(); /// /// The TextualRepresentations that annotate this Element. @@ -1512,10 +1203,7 @@ public List QueryText() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1526,10 +1214,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1540,10 +1225,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1551,10 +1233,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1563,10 +1242,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1575,10 +1251,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ConjugatedPortDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ConjugatedPortDefinition.cs index aad35060a..ab373190c 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConjugatedPortDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConjugatedPortDefinition.cs @@ -90,10 +90,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1575484364015_206236_989", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IPortDefinition.ConjugatedPortDefinition")] - public IConjugatedPortDefinition QueryConjugatedPortDefinition() - { - return this.ComputeConjugatedPortDefinition(); - } + public IConjugatedPortDefinition conjugatedPortDefinition => this.ComputeConjugatedPortDefinition(); /// /// The declared name of this Element. @@ -123,10 +120,7 @@ public IConjugatedPortDefinition QueryConjugatedPortDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -134,10 +128,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -146,10 +137,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -158,10 +146,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -177,10 +162,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -188,10 +170,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -200,10 +179,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -211,10 +187,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -222,10 +195,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -234,10 +204,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -245,10 +212,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -261,10 +225,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -279,10 +240,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -307,10 +265,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -338,10 +293,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -349,10 +301,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -362,10 +311,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -375,10 +321,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The original PortDefinition for this ConjugatedPortDefinition, which is the owningNamespace of the @@ -387,10 +330,7 @@ public string QueryName() [Property(xmiId: "_19_0_2_12e503d9_1575484364017_387810_990", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [Implements(implementation: "IConjugatedPortDefinition.OriginalPortDefinition")] - public IPortDefinition QueryOriginalPortDefinition() - { - return this.ComputeOriginalPortDefinition(); - } + public IPortDefinition originalPortDefinition => this.ComputeOriginalPortDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -398,10 +338,7 @@ public IPortDefinition QueryOriginalPortDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -409,10 +346,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -420,10 +354,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -431,10 +362,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -444,10 +372,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -455,10 +380,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -466,10 +388,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -477,10 +396,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -488,10 +404,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -501,10 +414,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [RedefinedByProperty("IConjugatedPortDefinition.OwnedPortConjugator")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -514,10 +424,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -525,10 +432,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -538,10 +442,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -551,10 +452,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -562,10 +460,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -574,10 +469,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -585,10 +477,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -596,10 +485,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -609,10 +495,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -620,10 +503,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -633,10 +513,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -644,10 +521,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -656,10 +530,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -667,10 +538,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -679,10 +547,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -693,10 +558,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -704,10 +566,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -715,10 +574,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -726,10 +582,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -737,10 +590,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The PortConjugation that is the ownedConjugator of this ConjugatedPortDefinition, linking it to its @@ -749,10 +599,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1575484344901_850046_947", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1575482646809_280165_440")] [Implements(implementation: "IConjugatedPortDefinition.OwnedPortConjugator")] - public IPortConjugation QueryOwnedPortConjugator() - { - return this.ComputeOwnedPortConjugator(); - } + public IPortConjugation ownedPortConjugator => this.ComputeOwnedPortConjugator(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -760,10 +607,7 @@ public IPortConjugation QueryOwnedPortConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -779,10 +623,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -790,10 +631,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -803,10 +641,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -814,10 +649,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -826,10 +658,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -837,10 +666,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -849,10 +675,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -861,10 +684,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -872,10 +692,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -883,10 +700,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -894,10 +708,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -905,10 +716,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -916,10 +724,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -928,10 +733,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -941,10 +743,7 @@ public IOwningMembership QueryOwningMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [RedefinedByProperty("IConjugatedPortDefinition.OriginalPortDefinition")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -964,10 +763,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -977,10 +773,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -989,10 +782,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1003,10 +793,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1014,10 +801,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1026,10 +810,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1039,10 +820,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ConjugatedPortTyping.cs b/SysML2.NET/Core/AutoGenPoco/ConjugatedPortTyping.cs index 5f95a9818..84d925aec 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConjugatedPortTyping.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConjugatedPortTyping.cs @@ -91,10 +91,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -137,10 +134,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -150,10 +144,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -163,10 +154,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -174,10 +162,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -201,10 +186,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// A typedFeature that is also the owningRelatedElement of this FeatureTyping. @@ -213,10 +195,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_13273_21101")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "IFeatureTyping.OwningFeature")] - public IFeature QueryOwningFeature() - { - return this.ComputeOwningFeature(); - } + public IFeature owningFeature => this.ComputeOwningFeature(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -225,10 +204,7 @@ public IFeature QueryOwningFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -237,10 +213,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -266,20 +239,14 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IFeatureTyping.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The originalPortDefinition of the conjugatedPortDefinition of this ConjugatedPortTyping. /// [Property(xmiId: "_19_0_2_12e503d9_1577915013583_787601_133", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConjugatedPortTyping.PortDefinition")] - public IPortDefinition QueryPortDefinition() - { - return this.ComputePortDefinition(); - } + public IPortDefinition portDefinition => this.ComputePortDefinition(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -291,10 +258,7 @@ public IPortDefinition QueryPortDefinition() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -302,10 +266,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -315,10 +276,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -354,10 +312,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The Type that is being applied by this FeatureTyping. diff --git a/SysML2.NET/Core/AutoGenPoco/Conjugation.cs b/SysML2.NET/Core/AutoGenPoco/Conjugation.cs index 2f6f524e9..9453174bc 100644 --- a/SysML2.NET/Core/AutoGenPoco/Conjugation.cs +++ b/SysML2.NET/Core/AutoGenPoco/Conjugation.cs @@ -93,10 +93,7 @@ public partial class Conjugation : IConjugation [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -130,10 +127,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -143,10 +137,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The Type to be conjugated. @@ -164,10 +155,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -175,10 +163,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -202,10 +187,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -214,10 +196,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -226,10 +205,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -254,10 +230,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490143_721644_299")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [Implements(implementation: "IConjugation.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -269,10 +242,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -280,10 +250,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -293,10 +260,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -323,10 +287,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ConnectionDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ConnectionDefinition.cs index af42ec03c..4dfda296b 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConnectionDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConnectionDefinition.cs @@ -89,10 +89,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List QueryAssociationEnd() - { - return this.ComputeAssociationEnd(); - } + public List associationEnd => this.ComputeAssociationEnd(); /// /// The Usages that define the things related by the ConnectionDefinition. @@ -100,10 +97,7 @@ public List QueryAssociationEnd() [Property(xmiId: "_19_0_2_12e503d9_1591476421094_685440_682", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] [Implements(implementation: "IConnectionDefinition.ConnectionEnd")] - public List QueryConnectionEnd() - { - return this.ComputeConnectionEnd(); - } + public List connectionEnd => this.ComputeConnectionEnd(); /// /// The declared name of this Element. @@ -133,10 +127,7 @@ public List QueryConnectionEnd() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -144,10 +135,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -156,10 +144,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -168,10 +153,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -188,10 +170,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -199,10 +178,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -211,10 +187,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -222,10 +195,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -233,10 +203,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -245,10 +212,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -256,10 +220,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -272,10 +233,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -290,10 +248,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -326,10 +281,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// A ConnectionDefinition always has isSufficient = true. @@ -337,7 +289,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_2022x_2_12e503d9_1734734871008_462076_156", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1564072709069_937523_30797")] [Implements(implementation: "IConnectionDefinition.IsSufficient")] - bool IConnectionDefinition.IsSufficient { get; set; } + public bool IsSufficient { get; set; } = true; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -366,10 +318,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -377,10 +326,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -390,10 +336,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -403,10 +346,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -414,10 +354,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -425,10 +362,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -436,10 +370,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -447,10 +378,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -460,10 +388,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -471,10 +396,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -482,10 +404,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -493,10 +412,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -504,10 +420,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -516,10 +429,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -529,10 +439,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -540,10 +447,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -553,10 +457,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -566,10 +467,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -577,10 +475,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -589,10 +484,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -600,10 +492,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -611,10 +500,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -624,10 +510,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -635,10 +518,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -648,10 +528,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -659,10 +536,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -671,10 +545,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -682,10 +553,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -694,10 +562,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -708,10 +573,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -719,10 +581,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -730,10 +589,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -741,10 +597,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -752,10 +605,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -763,10 +613,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -790,10 +637,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -801,10 +645,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -814,10 +655,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -825,10 +663,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -837,10 +672,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -848,10 +680,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -860,10 +689,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -872,10 +698,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -883,10 +706,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -894,10 +714,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -905,10 +722,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -916,10 +730,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -927,10 +738,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -939,10 +747,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -951,10 +756,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -982,10 +784,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -994,10 +793,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -1006,10 +802,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List QueryRelatedType() - { - return this.ComputeRelatedType(); - } + public List relatedType => this.ComputeRelatedType(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1019,10 +812,7 @@ public List QueryRelatedType() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1040,10 +830,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public IType QuerySourceType() - { - return this.ComputeSourceType(); - } + public IType sourceType => this.ComputeSourceType(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1062,10 +849,7 @@ public IType QuerySourceType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List QueryTargetType() - { - return this.ComputeTargetType(); - } + public List targetType => this.ComputeTargetType(); /// /// The TextualRepresentations that annotate this Element. @@ -1074,10 +858,7 @@ public List QueryTargetType() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1088,10 +869,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1099,10 +877,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1111,10 +886,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1124,10 +896,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ConnectionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ConnectionUsage.cs index 9ead82034..1dc88a318 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConnectionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConnectionUsage.cs @@ -94,10 +94,7 @@ public partial class ConnectionUsage : IConnectionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -109,10 +106,7 @@ public List QueryAssociation() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The AssociationStructures that are the types of this ConnectionUsage. Nominally, these are , but @@ -123,10 +117,7 @@ public List QueryChainingFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [Implements(implementation: "IConnectionUsage.ConnectionDefinition")] - public List QueryConnectionDefinition() - { - return this.ComputeConnectionDefinition(); - } + public List connectionDefinition => this.ComputeConnectionDefinition(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -136,10 +127,7 @@ public List QueryConnectionDefinition() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -149,10 +137,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -178,10 +163,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -192,10 +174,7 @@ public IType QueryDefaultFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -208,10 +187,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -219,10 +195,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -231,10 +204,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -251,10 +221,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -271,10 +238,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -284,10 +248,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -295,10 +256,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -307,20 +265,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -330,10 +282,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -341,10 +290,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -352,10 +298,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -363,10 +306,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -375,10 +315,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -386,10 +323,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -402,10 +336,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -429,10 +360,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -495,10 +423,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -520,10 +445,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -542,7 +464,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -569,10 +491,7 @@ public bool QueryIsReference() [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List QueryItemDefinition() - { - return this.ComputeItemDefinition(); - } + public List itemDefinition => this.ComputeItemDefinition(); /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -585,10 +504,7 @@ public List QueryItemDefinition() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -596,10 +512,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -607,10 +520,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -620,10 +530,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -633,10 +540,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -644,10 +548,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -655,10 +556,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -666,10 +564,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -677,10 +572,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -688,10 +580,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -699,10 +588,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -710,10 +596,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -723,10 +606,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -734,10 +614,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -745,10 +622,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -756,10 +630,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -767,10 +638,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -778,10 +646,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -789,10 +654,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -800,10 +662,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -811,10 +670,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -822,10 +678,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -833,10 +686,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -844,10 +694,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -855,10 +702,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -866,10 +710,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -877,10 +718,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -889,10 +727,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -900,10 +735,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -911,10 +743,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -922,10 +751,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -933,10 +759,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -946,10 +769,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -957,10 +777,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -970,10 +787,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -982,10 +796,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -994,10 +805,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1007,10 +815,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1020,10 +825,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1031,10 +833,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1043,10 +842,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1054,10 +850,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1067,10 +860,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1080,10 +870,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1093,10 +880,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1106,10 +890,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1118,10 +899,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1130,10 +908,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1144,10 +919,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1156,10 +928,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1168,10 +937,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -1197,10 +963,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1210,10 +973,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1223,10 +983,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1236,10 +993,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1248,10 +1002,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1259,10 +1010,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1271,10 +1019,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1282,10 +1027,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1294,10 +1036,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1306,10 +1045,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -1335,10 +1071,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1346,10 +1079,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The itemDefinitions of this PartUsage that are PartDefinitions. @@ -1357,10 +1087,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1591475180488_929065_121", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List QueryPartDefinition() - { - return this.ComputePartDefinition(); - } + public List partDefinition => this.ComputePartDefinition(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1381,10 +1108,7 @@ public List QueryPartDefinition() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1393,10 +1117,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1405,10 +1126,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1418,10 +1136,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1439,10 +1154,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1461,10 +1173,7 @@ public IFeature QuerySourceFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -1473,10 +1182,7 @@ public List QueryTargetFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1487,10 +1193,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1501,10 +1204,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1512,10 +1212,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1524,10 +1221,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1536,10 +1230,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Connector.cs b/SysML2.NET/Core/AutoGenPoco/Connector.cs index 3b8847fdd..56ef5b881 100644 --- a/SysML2.NET/Core/AutoGenPoco/Connector.cs +++ b/SysML2.NET/Core/AutoGenPoco/Connector.cs @@ -67,10 +67,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674983_471497_43284", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,10 +79,7 @@ public List QueryAssociation() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -95,10 +89,7 @@ public List QueryChainingFeature() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -108,10 +99,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -137,10 +125,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -153,10 +138,7 @@ public IType QueryDefaultFeaturingType() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -164,10 +146,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -184,10 +163,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -204,10 +180,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -217,10 +190,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -228,10 +198,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -240,20 +207,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -263,10 +224,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -274,10 +232,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -285,10 +240,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -297,10 +249,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -308,10 +257,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -324,10 +270,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -351,10 +294,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -409,10 +349,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -446,7 +383,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -462,10 +399,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -473,10 +407,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -486,10 +417,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -499,10 +427,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -510,10 +435,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -523,10 +445,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -535,10 +454,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -547,10 +463,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -560,10 +473,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -573,10 +483,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -584,10 +491,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -596,10 +500,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -607,10 +508,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -620,10 +518,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -633,10 +528,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -646,10 +538,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -659,10 +548,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -671,10 +557,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -683,10 +566,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -697,10 +577,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -709,10 +586,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -721,10 +595,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -750,10 +621,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -763,10 +631,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -776,10 +641,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -789,10 +651,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -801,10 +660,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -812,10 +668,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -823,10 +676,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -835,10 +685,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -847,10 +694,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -876,10 +720,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -891,10 +732,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -903,10 +741,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -915,10 +750,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -928,10 +760,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -949,10 +778,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -971,10 +797,7 @@ public IFeature QuerySourceFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -983,10 +806,7 @@ public List QueryTargetFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -997,10 +817,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1011,10 +828,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ConnectorAsUsage.cs b/SysML2.NET/Core/AutoGenPoco/ConnectorAsUsage.cs index d7371883e..8c5430957 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConnectorAsUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConnectorAsUsage.cs @@ -89,10 +89,7 @@ public partial class ConnectorAsUsage : IConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674983_471497_43284", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -104,10 +101,7 @@ public List QueryAssociation() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -117,10 +111,7 @@ public List QueryChainingFeature() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -130,10 +121,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -159,10 +147,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -172,10 +157,7 @@ public IType QueryDefaultFeaturingType() [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -188,10 +170,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -199,10 +178,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -211,10 +187,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -231,10 +204,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -251,10 +221,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -264,10 +231,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -275,10 +239,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -287,20 +248,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -310,10 +265,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -321,10 +273,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -332,10 +281,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -344,10 +290,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -355,10 +298,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -371,10 +311,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -398,10 +335,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -456,10 +390,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -481,10 +412,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -503,7 +431,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -533,10 +461,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -544,10 +469,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -555,10 +477,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -568,10 +487,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -581,10 +497,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -592,10 +505,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -603,10 +513,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -614,10 +521,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -625,10 +529,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -636,10 +537,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -647,10 +545,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -658,10 +553,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -671,10 +563,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -682,10 +571,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -693,10 +579,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -704,10 +587,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -715,10 +595,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -726,10 +603,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -737,10 +611,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -748,10 +619,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -759,10 +627,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -770,10 +635,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -781,10 +643,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -792,10 +651,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -803,10 +659,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -814,10 +667,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -825,10 +675,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -837,10 +684,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -848,10 +692,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -859,10 +700,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -870,10 +708,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -881,10 +716,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -892,10 +724,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -905,10 +734,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -917,10 +743,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -929,10 +752,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -942,10 +762,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -955,10 +772,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -966,10 +780,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -978,10 +789,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -989,10 +797,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1002,10 +807,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1015,10 +817,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1028,10 +827,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1041,10 +837,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1053,10 +846,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1065,10 +855,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1079,10 +866,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1091,10 +875,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1103,10 +884,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -1132,10 +910,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1145,10 +920,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1158,10 +930,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1171,10 +940,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1183,10 +949,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1194,10 +957,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1206,10 +966,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1217,10 +974,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1229,10 +983,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1241,10 +992,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -1270,10 +1018,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1281,10 +1026,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1296,10 +1038,7 @@ public IUsage QueryOwningUsage() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1308,10 +1047,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1320,10 +1056,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1333,10 +1066,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1354,10 +1084,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1376,10 +1103,7 @@ public IFeature QuerySourceFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -1388,10 +1112,7 @@ public List QueryTargetFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1402,10 +1123,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1416,10 +1134,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1427,10 +1142,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1439,10 +1151,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1451,10 +1160,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ConstraintDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ConstraintDefinition.cs index 6d8aafa96..73646cb27 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConstraintDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConstraintDefinition.cs @@ -109,10 +109,7 @@ public partial class ConstraintDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -121,10 +118,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -133,10 +127,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -145,10 +136,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -164,10 +152,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -175,10 +160,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List QueryExpression() - { - return this.ComputeExpression(); - } + public List expression => this.ComputeExpression(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -186,10 +168,7 @@ public List QueryExpression() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -198,10 +177,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -209,10 +185,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -220,10 +193,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -232,10 +202,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -243,10 +210,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -259,10 +223,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -277,10 +238,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -305,10 +263,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -319,10 +274,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -350,10 +302,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -361,10 +310,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -374,10 +320,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -387,10 +330,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -398,10 +338,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -409,10 +346,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -420,10 +354,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -431,10 +362,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -444,10 +372,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -455,10 +380,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -466,10 +388,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -477,10 +396,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -488,10 +404,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -500,10 +413,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -513,10 +423,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -524,10 +431,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -537,10 +441,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -550,10 +451,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -561,10 +459,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -573,10 +468,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -584,10 +476,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -595,10 +484,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -608,10 +494,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -619,10 +502,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -632,10 +512,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -643,10 +520,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -655,10 +529,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -666,10 +537,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -678,10 +546,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -692,10 +557,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -703,10 +565,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -714,10 +573,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -725,10 +581,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -736,10 +589,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -747,10 +597,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -766,10 +613,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -777,10 +621,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -790,10 +631,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -801,10 +639,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -813,10 +648,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -824,10 +656,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -836,10 +665,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -848,10 +674,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -859,10 +682,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -870,10 +690,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -881,10 +698,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -892,10 +706,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -903,10 +714,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -915,10 +723,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -927,10 +732,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -947,10 +749,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -962,10 +761,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The object or value that is the result of evaluating the Function. @@ -974,10 +770,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -987,10 +780,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Steps that make up this Behavior. @@ -998,10 +788,7 @@ public string QueryShortName() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The TextualRepresentations that annotate this Element. @@ -1010,10 +797,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1024,10 +808,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1035,10 +816,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1047,10 +825,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1060,10 +835,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ConstraintUsage.cs b/SysML2.NET/Core/AutoGenPoco/ConstraintUsage.cs index 9929a8574..21e08c98f 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConstraintUsage.cs @@ -93,10 +93,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -108,10 +105,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -121,10 +115,7 @@ public List QueryChainingFeature() [Property(xmiId: "_19_0_2_12e503d9_1578067546711_751168_1745", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public IPredicate QueryConstraintDefinition() - { - return this.ComputeConstraintDefinition(); - } + public IPredicate constraintDefinition => this.ComputeConstraintDefinition(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -134,10 +125,7 @@ public IPredicate QueryConstraintDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -165,10 +153,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -181,10 +166,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -193,10 +175,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -205,10 +184,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -225,10 +201,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -244,10 +217,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -257,10 +227,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -268,10 +235,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -280,20 +244,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -303,10 +261,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -315,10 +270,7 @@ public List QueryFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -326,10 +278,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -337,10 +286,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -348,10 +294,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -360,10 +303,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -371,10 +311,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -387,10 +324,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -414,10 +348,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -472,10 +403,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -483,10 +411,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -508,10 +433,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -530,7 +452,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -560,10 +482,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -571,10 +490,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -582,10 +498,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -595,10 +508,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -608,10 +518,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -619,10 +526,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -630,10 +534,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -641,10 +542,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -652,10 +550,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -663,10 +558,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -674,10 +566,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -685,10 +574,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -698,10 +584,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -709,10 +592,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -720,10 +600,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -731,10 +608,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -742,10 +616,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -753,10 +624,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -764,10 +632,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -775,10 +640,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -786,10 +648,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -797,10 +656,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -808,10 +664,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -819,10 +672,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -830,10 +680,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -841,10 +688,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -852,10 +696,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -864,10 +705,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -875,10 +713,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -886,10 +721,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -897,10 +729,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -908,10 +737,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -921,10 +747,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -932,10 +755,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -945,10 +765,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -957,10 +774,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -969,10 +783,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -982,10 +793,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -995,10 +803,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1006,10 +811,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1018,10 +820,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1029,10 +828,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1042,10 +838,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1055,10 +848,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1068,10 +858,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1081,10 +868,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1093,10 +877,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1105,10 +886,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1119,10 +897,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1131,10 +906,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1143,10 +915,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1164,10 +933,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1177,10 +943,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1190,10 +953,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1203,10 +963,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1215,10 +972,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1226,10 +980,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1238,10 +989,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1249,10 +997,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1261,10 +1006,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1273,10 +1015,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1294,10 +1033,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1305,10 +1041,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1317,10 +1050,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1338,10 +1068,7 @@ public List QueryParameter() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate QueryPredicate() - { - return this.ComputePredicate(); - } + public IPredicate predicate => this.ComputePredicate(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1353,10 +1080,7 @@ public IPredicate QueryPredicate() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1367,10 +1091,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1380,10 +1101,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1392,10 +1110,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1406,10 +1121,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1420,10 +1132,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1431,10 +1140,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1443,10 +1149,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1455,10 +1158,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ConstructorExpression.cs b/SysML2.NET/Core/AutoGenPoco/ConstructorExpression.cs index 3e0134e42..cd759f10e 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConstructorExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConstructorExpression.cs @@ -69,10 +69,7 @@ public partial class ConstructorExpression : IConstructorExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List QueryArgument() - { - return this.ComputeArgument(); - } + public List argument => this.ComputeArgument(); /// /// The Behaviors that type this Step. @@ -81,10 +78,7 @@ public List QueryArgument() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -96,10 +90,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -109,10 +100,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -142,10 +130,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -154,10 +139,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -174,10 +156,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -193,10 +172,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -206,10 +182,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -217,10 +190,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -229,20 +199,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -252,10 +216,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -263,10 +224,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -274,10 +232,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -285,10 +240,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -297,10 +249,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -308,10 +257,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Type that is being instantiated. @@ -319,10 +265,7 @@ public List QueryInput() [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public IType QueryInstantiatedType() - { - return this.ComputeInstantiatedType(); - } + public IType instantiatedType => this.ComputeInstantiatedType(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -335,10 +278,7 @@ public IType QueryInstantiatedType() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -362,10 +302,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -412,10 +349,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -423,10 +357,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -460,7 +391,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -476,10 +407,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -487,10 +415,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -500,10 +425,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -513,10 +435,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -524,10 +443,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -537,10 +453,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -549,10 +462,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -561,10 +471,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -574,10 +481,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -587,10 +491,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -598,10 +499,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -610,10 +508,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -621,10 +516,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -634,10 +526,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -647,10 +536,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -660,10 +546,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -673,10 +556,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -685,10 +565,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -697,10 +574,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -711,10 +585,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -723,10 +594,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -735,10 +603,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -756,10 +621,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -769,10 +631,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -782,10 +641,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -795,10 +651,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -807,10 +660,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -818,10 +668,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -829,10 +676,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -841,10 +685,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -853,10 +694,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -874,10 +712,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -886,10 +721,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -901,10 +733,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -915,10 +744,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -928,10 +754,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -940,10 +763,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -953,10 +773,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -967,10 +784,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ControlNode.cs b/SysML2.NET/Core/AutoGenPoco/ControlNode.cs index 99756c7dc..ac4bdfa09 100644 --- a/SysML2.NET/Core/AutoGenPoco/ControlNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/ControlNode.cs @@ -86,10 +86,7 @@ public partial class ControlNode : IControlNode [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -105,10 +102,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -120,10 +114,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -133,10 +124,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -164,10 +152,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -180,10 +165,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -192,10 +174,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -204,10 +183,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -224,10 +200,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -243,10 +216,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -256,10 +226,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -267,10 +234,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -279,20 +243,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -302,10 +260,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -313,10 +268,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -324,10 +276,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -335,10 +284,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -347,10 +293,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -358,10 +301,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -374,10 +314,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -401,10 +338,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -459,10 +393,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -484,10 +415,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -506,7 +434,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -536,10 +464,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -547,10 +472,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -558,10 +480,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -571,10 +490,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -584,10 +500,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -595,10 +508,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -606,10 +516,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -617,10 +524,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -628,10 +532,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -639,10 +540,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -650,10 +548,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -661,10 +556,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -674,10 +566,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -685,10 +574,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -696,10 +582,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -707,10 +590,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -718,10 +598,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -729,10 +606,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -740,10 +614,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -751,10 +622,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -762,10 +630,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -773,10 +638,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -784,10 +646,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -795,10 +654,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -806,10 +662,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -817,10 +670,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -828,10 +678,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -840,10 +687,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -851,10 +695,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -862,10 +703,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -873,10 +711,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -884,10 +719,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -898,10 +730,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -909,10 +738,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -922,10 +748,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -934,10 +757,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -946,10 +766,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -959,10 +776,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -972,10 +786,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -983,10 +794,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -995,10 +803,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1006,10 +811,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1019,10 +821,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1032,10 +831,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1045,10 +841,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1058,10 +851,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1070,10 +860,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1082,10 +869,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1096,10 +880,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1108,10 +889,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1120,10 +898,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1141,10 +916,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1154,10 +926,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1167,10 +936,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1180,10 +946,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1192,10 +955,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1203,10 +963,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1215,10 +972,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1226,10 +980,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1238,10 +989,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1250,10 +998,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1271,10 +1016,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1282,10 +1024,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1294,10 +1033,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1318,10 +1054,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1331,10 +1064,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1343,10 +1073,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1357,10 +1084,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1371,10 +1095,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1382,10 +1103,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1394,10 +1112,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1406,10 +1121,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/CrossSubsetting.cs b/SysML2.NET/Core/AutoGenPoco/CrossSubsetting.cs index 8c56d0b01..8cd53bb2e 100644 --- a/SysML2.NET/Core/AutoGenPoco/CrossSubsetting.cs +++ b/SysML2.NET/Core/AutoGenPoco/CrossSubsetting.cs @@ -83,10 +83,7 @@ public partial class CrossSubsetting : ICrossSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_236250_43311")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] [Implements(implementation: "ICrossSubsetting.CrossingFeature")] - public IFeature QueryCrossingFeature() - { - return this.ComputeCrossingFeature(); - } + public IFeature crossingFeature => this.ComputeCrossingFeature(); /// /// The declared name of this Element. @@ -112,10 +109,7 @@ public IFeature QueryCrossingFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -158,10 +152,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -171,10 +162,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -184,10 +172,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -195,10 +180,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -222,10 +204,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// A subsettingFeature that is also the owningRelatedElement of this Subsetting. @@ -235,10 +214,7 @@ public IElement QueryOwner() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [RedefinedByProperty("ICrossSubsetting.CrossingFeature")] [Implements(implementation: "ISubsetting.OwningFeature")] - public IFeature QueryOwningFeature() - { - return this.ComputeOwningFeature(); - } + public IFeature owningFeature => this.ComputeOwningFeature(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -247,10 +223,7 @@ public IFeature QueryOwningFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -259,10 +232,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -288,10 +258,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -303,10 +270,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -314,10 +278,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -327,10 +288,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -384,10 +342,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/DataType.cs b/SysML2.NET/Core/AutoGenPoco/DataType.cs index fc19e0e7d..60451784d 100644 --- a/SysML2.NET/Core/AutoGenPoco/DataType.cs +++ b/SysML2.NET/Core/AutoGenPoco/DataType.cs @@ -90,10 +90,7 @@ public partial class DataType : IDataType /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -101,10 +98,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The Documentation owned by this Element. @@ -113,10 +107,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -132,10 +123,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -143,10 +131,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -155,10 +140,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -166,10 +148,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -177,10 +156,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -189,10 +165,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -200,10 +173,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -216,10 +186,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -234,10 +201,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -255,10 +219,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -278,10 +239,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -289,10 +247,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -302,10 +257,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -315,10 +267,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -326,10 +275,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -339,10 +285,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -351,10 +294,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -364,10 +304,7 @@ public IConjugation QueryOwnedConjugator() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -377,10 +314,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -388,10 +322,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -400,10 +331,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -411,10 +339,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -424,10 +349,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -437,10 +359,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -449,10 +368,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -461,10 +377,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -475,10 +388,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -496,10 +406,7 @@ public List QueryOwnedMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -508,10 +415,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -520,10 +424,7 @@ public List QueryOwnedSubclassification() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -531,10 +432,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -543,10 +441,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -555,10 +450,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -578,10 +470,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -591,10 +480,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -603,10 +489,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -617,10 +500,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/DecisionNode.cs b/SysML2.NET/Core/AutoGenPoco/DecisionNode.cs index c16dd0f1c..c7086398e 100644 --- a/SysML2.NET/Core/AutoGenPoco/DecisionNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/DecisionNode.cs @@ -84,10 +84,7 @@ public partial class DecisionNode : IDecisionNode [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -103,10 +100,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -118,10 +112,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -131,10 +122,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -162,10 +150,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -178,10 +163,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -190,10 +172,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -202,10 +181,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -222,10 +198,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -241,10 +214,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -254,10 +224,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -265,10 +232,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -277,20 +241,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -300,10 +258,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -311,10 +266,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -322,10 +274,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -333,10 +282,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -345,10 +291,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -356,10 +299,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -372,10 +312,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -399,10 +336,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -457,10 +391,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -482,10 +413,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -504,7 +432,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -534,10 +462,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -545,10 +470,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -556,10 +478,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -569,10 +488,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -582,10 +498,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -593,10 +506,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -604,10 +514,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -615,10 +522,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -626,10 +530,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -637,10 +538,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -648,10 +546,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -659,10 +554,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -672,10 +564,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -683,10 +572,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -694,10 +580,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -705,10 +588,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -716,10 +596,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -727,10 +604,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -738,10 +612,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -749,10 +620,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -760,10 +628,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -771,10 +636,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -782,10 +644,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -793,10 +652,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -804,10 +660,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -815,10 +668,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -826,10 +676,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -838,10 +685,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -849,10 +693,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -860,10 +701,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -871,10 +709,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -882,10 +717,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -896,10 +728,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -907,10 +736,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -920,10 +746,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -932,10 +755,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -944,10 +764,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -957,10 +774,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -970,10 +784,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -981,10 +792,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -993,10 +801,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1004,10 +809,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1017,10 +819,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1030,10 +829,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1043,10 +839,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1056,10 +849,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1068,10 +858,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1080,10 +867,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1094,10 +878,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1106,10 +887,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1118,10 +896,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1139,10 +914,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1152,10 +924,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1165,10 +934,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1178,10 +944,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1190,10 +953,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1201,10 +961,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1213,10 +970,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1224,10 +978,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1236,10 +987,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1248,10 +996,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1269,10 +1014,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1280,10 +1022,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1292,10 +1031,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1316,10 +1052,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1329,10 +1062,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1341,10 +1071,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1355,10 +1082,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1369,10 +1093,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1380,10 +1101,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1392,10 +1110,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1404,10 +1119,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Definition.cs b/SysML2.NET/Core/AutoGenPoco/Definition.cs index f1bbdf56b..0c0191939 100644 --- a/SysML2.NET/Core/AutoGenPoco/Definition.cs +++ b/SysML2.NET/Core/AutoGenPoco/Definition.cs @@ -115,10 +115,7 @@ public partial class Definition : IDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -126,10 +123,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -138,10 +132,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -150,10 +141,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -169,10 +157,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -180,10 +165,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -192,10 +174,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -203,10 +182,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -214,10 +190,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -226,10 +199,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -237,10 +207,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -253,10 +220,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -271,10 +235,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -292,10 +253,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -323,10 +281,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -334,10 +289,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -347,10 +299,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -360,10 +309,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -371,10 +317,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -382,10 +325,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -393,10 +333,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -404,10 +341,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -417,10 +351,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -428,10 +359,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -439,10 +367,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -450,10 +375,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -461,10 +383,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -473,10 +392,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -486,10 +402,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -497,10 +410,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -510,10 +420,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -523,10 +430,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -534,10 +438,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -546,10 +447,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -557,10 +455,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -568,10 +463,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -581,10 +473,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -592,10 +481,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -605,10 +491,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -616,10 +499,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -628,10 +508,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -639,10 +516,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -651,10 +525,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -665,10 +536,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -676,10 +544,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -687,10 +552,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -698,10 +560,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -709,10 +568,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -720,10 +576,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -739,10 +592,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -750,10 +600,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -763,10 +610,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -774,10 +618,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -786,10 +627,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -797,10 +635,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -809,10 +644,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -821,10 +653,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -832,10 +661,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -843,10 +669,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -854,10 +677,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -865,10 +685,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -876,10 +693,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -888,10 +702,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -900,10 +711,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -923,10 +731,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -936,10 +741,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -948,10 +750,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -962,10 +761,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -973,10 +769,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -985,10 +778,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -998,10 +788,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Dependency.cs b/SysML2.NET/Core/AutoGenPoco/Dependency.cs index 945478055..62f20b6c5 100644 --- a/SysML2.NET/Core/AutoGenPoco/Dependency.cs +++ b/SysML2.NET/Core/AutoGenPoco/Dependency.cs @@ -89,10 +89,7 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -126,10 +123,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -139,10 +133,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -152,10 +143,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -163,10 +151,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -190,10 +175,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -202,10 +184,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -214,10 +193,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -245,10 +221,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -256,10 +229,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -269,10 +239,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -307,10 +274,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Differencing.cs b/SysML2.NET/Core/AutoGenPoco/Differencing.cs index 10db74b16..86de35d1f 100644 --- a/SysML2.NET/Core/AutoGenPoco/Differencing.cs +++ b/SysML2.NET/Core/AutoGenPoco/Differencing.cs @@ -88,10 +88,7 @@ public partial class Differencing : IDifferencing [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -125,10 +122,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -138,10 +132,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -151,10 +142,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -162,10 +150,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -189,10 +174,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -201,10 +183,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -213,10 +192,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -244,10 +220,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -255,10 +228,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -268,10 +238,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -298,10 +265,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Type with interpretations partly determined by differencingType, as described in @@ -311,10 +275,7 @@ public List QueryTextualRepresentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IDifferencing.TypeDifferenced")] - public IType QueryTypeDifferenced() - { - return this.ComputeTypeDifferenced(); - } + public IType typeDifferenced => this.ComputeTypeDifferenced(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Disjoining.cs b/SysML2.NET/Core/AutoGenPoco/Disjoining.cs index 8a2c4e45e..61aa173a5 100644 --- a/SysML2.NET/Core/AutoGenPoco/Disjoining.cs +++ b/SysML2.NET/Core/AutoGenPoco/Disjoining.cs @@ -89,10 +89,7 @@ public partial class Disjoining : IDisjoining [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -126,10 +123,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -139,10 +133,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -152,10 +143,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -163,10 +151,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -190,10 +175,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -202,10 +184,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -214,10 +193,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -242,10 +218,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_955906_617")] [Implements(implementation: "IDisjoining.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -257,10 +230,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -268,10 +238,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -281,10 +248,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -311,10 +275,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Type asserted to be disjoint with the disjoiningType. diff --git a/SysML2.NET/Core/AutoGenPoco/Documentation.cs b/SysML2.NET/Core/AutoGenPoco/Documentation.cs index 1c4ee55f3..7d83ea570 100644 --- a/SysML2.NET/Core/AutoGenPoco/Documentation.cs +++ b/SysML2.NET/Core/AutoGenPoco/Documentation.cs @@ -61,10 +61,7 @@ public partial class Documentation : IDocumentation [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IDocumentation.DocumentedElement")] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List QueryAnnotatedElement() - { - return this.ComputeAnnotatedElement(); - } + public List annotatedElement => this.ComputeAnnotatedElement(); /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -73,10 +70,7 @@ public List QueryAnnotatedElement() [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List QueryAnnotation() - { - return this.ComputeAnnotation(); - } + public List annotation => this.ComputeAnnotation(); /// /// The annotation text for the Comment. @@ -109,10 +103,7 @@ public List QueryAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The Element that is documented by this Documentation. @@ -121,10 +112,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_744477_17277")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594145755058_99428_86")] [Implements(implementation: "IDocumentation.DocumentedElement")] - public IElement QueryDocumentedElement() - { - return this.ComputeDocumentedElement(); - } + public IElement documentedElement => this.ComputeDocumentedElement(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -150,10 +138,7 @@ public IElement QueryDocumentedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Identification of the language of the body text and, optionally, the region and/or encoding. The @@ -172,10 +157,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -185,10 +167,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List QueryOwnedAnnotatingRelationship() - { - return this.ComputeOwnedAnnotatingRelationship(); - } + public List ownedAnnotatingRelationship => this.ComputeOwnedAnnotatingRelationship(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -198,10 +177,7 @@ public List QueryOwnedAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -209,10 +185,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -228,10 +201,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -240,10 +210,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public IAnnotation QueryOwningAnnotatingRelationship() - { - return this.ComputeOwningAnnotatingRelationship(); - } + public IAnnotation owningAnnotatingRelationship => this.ComputeOwningAnnotatingRelationship(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -252,10 +219,7 @@ public IAnnotation QueryOwningAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -264,10 +228,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -287,10 +248,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -300,10 +258,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -312,10 +267,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Element.cs b/SysML2.NET/Core/AutoGenPoco/Element.cs index 3b87d105d..bf3fb98f2 100644 --- a/SysML2.NET/Core/AutoGenPoco/Element.cs +++ b/SysML2.NET/Core/AutoGenPoco/Element.cs @@ -80,10 +80,7 @@ public partial class Element : IElement [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -109,10 +106,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -122,10 +116,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -135,10 +126,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -146,10 +134,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -165,10 +150,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -177,10 +159,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -189,10 +168,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -212,10 +188,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -225,10 +198,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -237,10 +207,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ElementFilterMembership.cs b/SysML2.NET/Core/AutoGenPoco/ElementFilterMembership.cs index 2a495cdb4..c5c7aacb5 100644 --- a/SysML2.NET/Core/AutoGenPoco/ElementFilterMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ElementFilterMembership.cs @@ -66,10 +66,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [Property(xmiId: "_19_0_4_12e503d9_1605762464250_876969_157", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [Implements(implementation: "IElementFilterMembership.Condition")] - public IExpression QueryCondition() - { - return this.ComputeCondition(); - } + public IExpression condition => this.ComputeCondition(); /// /// The declared name of this Element. @@ -95,10 +92,7 @@ public IExpression QueryCondition() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -132,10 +126,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -152,10 +143,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -173,10 +161,7 @@ public string QueryMemberElementId() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -194,10 +179,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -207,10 +189,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -218,10 +197,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -232,10 +208,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IElementFilterMembership.Condition")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -243,10 +216,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The name of the ownedMemberElement. @@ -254,10 +224,7 @@ public string QueryOwnedMemberElementId() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -265,10 +232,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -292,10 +256,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -304,10 +265,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -316,10 +274,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -347,10 +302,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -358,10 +310,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -371,10 +320,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -401,10 +347,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -412,7 +355,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/EndFeatureMembership.cs b/SysML2.NET/Core/AutoGenPoco/EndFeatureMembership.cs index e8327a1a6..c49910ffa 100644 --- a/SysML2.NET/Core/AutoGenPoco/EndFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/EndFeatureMembership.cs @@ -81,10 +81,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -118,10 +115,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -138,10 +132,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -160,10 +151,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -181,10 +169,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -194,10 +179,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -205,10 +187,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -219,10 +198,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -230,20 +206,14 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// [Property(xmiId: "_19_0_4_12e503d9_1625459277304_568293_5526", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IEndFeatureMembership.OwnedMemberFeature")] - IFeature IEndFeatureMembership.QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -253,10 +223,7 @@ IFeature IEndFeatureMembership.QueryOwnedMemberFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IEndFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - IFeature Core.Types.IFeatureMembership.QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => throw new InvalidOperationException("Redefined by property IEndFeatureMembership.OwnedMemberFeature"); /// /// The name of the ownedMemberElement. @@ -264,10 +231,7 @@ IFeature Core.Types.IFeatureMembership.QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -275,10 +239,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -302,10 +263,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -314,10 +272,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -326,10 +281,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -354,10 +306,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -369,10 +318,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -380,10 +326,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -393,10 +336,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -423,10 +363,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -434,7 +371,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/EnumerationDefinition.cs b/SysML2.NET/Core/AutoGenPoco/EnumerationDefinition.cs index d808e6f36..665b78417 100644 --- a/SysML2.NET/Core/AutoGenPoco/EnumerationDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/EnumerationDefinition.cs @@ -108,10 +108,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -119,10 +116,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -131,10 +125,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -143,10 +134,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -162,10 +150,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// EnumerationUsages of this EnumerationDefinitionthat have distinct, fixed values. Each @@ -174,10 +159,7 @@ public List QueryEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946634788_959145_265", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1590979457191_746167_951")] [Implements(implementation: "IEnumerationDefinition.EnumeratedValue")] - public List QueryEnumeratedValue() - { - return this.ComputeEnumeratedValue(); - } + public List enumeratedValue => this.ComputeEnumeratedValue(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -185,10 +167,7 @@ public List QueryEnumeratedValue() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -197,10 +176,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -208,10 +184,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -219,10 +192,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -231,10 +201,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -242,10 +209,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -258,10 +222,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -276,10 +237,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -297,10 +255,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -321,7 +276,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1606946783667_895456_287", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1590978283180_265362_419")] [Implements(implementation: "IEnumerationDefinition.IsVariation")] - bool IEnumerationDefinition.IsVariation { get; set; } + public bool IsVariation { get; set; } = true; /// /// Whether this Definition is for a variation point or not. If true, then all the memberships of the @@ -338,10 +293,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -349,10 +301,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -362,10 +311,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -375,10 +321,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -386,10 +329,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -397,10 +337,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -408,10 +345,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -419,10 +353,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -432,10 +363,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -443,10 +371,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -454,10 +379,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -465,10 +387,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -476,10 +395,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -488,10 +404,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -501,10 +414,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -512,10 +422,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -525,10 +432,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -538,10 +442,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -549,10 +450,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -561,10 +459,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -572,10 +467,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -583,10 +475,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -596,10 +485,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -607,10 +493,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -620,10 +503,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -631,10 +511,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -643,10 +520,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -654,10 +528,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -666,10 +537,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -680,10 +548,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -691,10 +556,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -702,10 +564,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -713,10 +572,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -724,10 +580,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -735,10 +588,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -754,10 +604,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -765,10 +612,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -778,10 +622,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -789,10 +630,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -801,10 +639,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -812,10 +647,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -824,10 +656,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -836,10 +665,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -847,10 +673,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -858,10 +681,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -869,10 +689,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -880,10 +697,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -891,10 +705,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -903,10 +714,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -915,10 +723,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -938,10 +743,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -951,10 +753,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -963,10 +762,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -977,10 +773,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -988,10 +781,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1001,10 +791,7 @@ public List QueryUsage() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [RedefinedByProperty("IEnumerationDefinition.EnumeratedValue")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1014,10 +801,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/EnumerationUsage.cs b/SysML2.NET/Core/AutoGenPoco/EnumerationUsage.cs index 7a0d2cf26..1019e256b 100644 --- a/SysML2.NET/Core/AutoGenPoco/EnumerationUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/EnumerationUsage.cs @@ -89,10 +89,7 @@ public partial class EnumerationUsage : IEnumerationUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IEnumerationUsage.EnumerationDefinition")] [Implements(implementation: "IAttributeUsage.AttributeDefinition")] - public List QueryAttributeDefinition() - { - return this.ComputeAttributeDefinition(); - } + public List attributeDefinition => this.ComputeAttributeDefinition(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -104,10 +101,7 @@ public List QueryAttributeDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -117,10 +111,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -148,10 +139,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IAttributeUsage.AttributeDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -164,10 +152,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -175,10 +160,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -187,10 +169,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -207,10 +186,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -226,10 +202,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -239,10 +212,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The single EnumerationDefinition that is the type of this EnumerationUsage. @@ -250,10 +220,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_19_0_4_12e503d9_1606946962858_570633_331", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565471811429_523492_20975")] [Implements(implementation: "IEnumerationUsage.EnumerationDefinition")] - public IEnumerationDefinition QueryEnumerationDefinition() - { - return this.ComputeEnumerationDefinition(); - } + public IEnumerationDefinition enumerationDefinition => this.ComputeEnumerationDefinition(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -261,10 +228,7 @@ public IEnumerationDefinition QueryEnumerationDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -273,20 +237,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -296,10 +254,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -307,10 +262,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -318,10 +270,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -330,10 +279,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -341,10 +287,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -357,10 +300,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -384,10 +324,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -434,10 +371,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -460,10 +394,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1624050661138_649455_27", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IAttributeUsage.IsReference")] - bool Systems.Attributes.IAttributeUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether this Usage is a referential Usage, that is, it has isComposite = false. @@ -471,10 +402,7 @@ bool Systems.Attributes.IAttributeUsage.QueryIsReference() [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IAttributeUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + bool Systems.DefinitionAndUsage.IUsage.isReference => throw new InvalidOperationException("Redefined by property IAttributeUsage.IsReference"); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -493,7 +421,7 @@ bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -523,10 +451,7 @@ bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -534,10 +459,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -545,10 +467,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -558,10 +477,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -571,10 +487,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -582,10 +495,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -593,10 +503,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -604,10 +511,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -615,10 +519,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -626,10 +527,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -637,10 +535,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -648,10 +543,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -661,10 +553,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -672,10 +561,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -683,10 +569,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -694,10 +577,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -705,10 +585,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -716,10 +593,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -727,10 +601,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -738,10 +609,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -749,10 +617,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -760,10 +625,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -771,10 +633,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -782,10 +641,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -793,10 +649,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -804,10 +657,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -815,10 +665,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -827,10 +674,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -838,10 +682,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -849,10 +690,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -860,10 +698,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -871,10 +706,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -882,10 +714,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -895,10 +724,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -907,10 +733,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -919,10 +742,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -932,10 +752,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -945,10 +762,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -956,10 +770,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -968,10 +779,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -979,10 +787,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -992,10 +797,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1005,10 +807,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1018,10 +817,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1031,10 +827,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1043,10 +836,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1055,10 +845,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1069,10 +856,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1081,10 +865,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1093,10 +874,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1114,10 +892,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1127,10 +902,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1140,10 +912,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1153,10 +922,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1165,10 +931,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1176,10 +939,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1188,10 +948,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1199,10 +956,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1211,10 +965,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1223,10 +974,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1244,10 +992,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1255,10 +1000,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1270,10 +1012,7 @@ public IUsage QueryOwningUsage() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1283,10 +1022,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1295,10 +1031,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1309,10 +1042,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1323,10 +1053,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1334,10 +1061,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1346,10 +1070,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1358,10 +1079,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/EventOccurrenceUsage.cs b/SysML2.NET/Core/AutoGenPoco/EventOccurrenceUsage.cs index b54279bc5..a16a765f7 100644 --- a/SysML2.NET/Core/AutoGenPoco/EventOccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/EventOccurrenceUsage.cs @@ -96,10 +96,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -109,10 +106,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -140,10 +134,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -156,10 +147,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -167,10 +155,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -179,10 +164,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -199,10 +181,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -218,10 +197,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -231,10 +207,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The OccurrenceUsage referenced as an event by this EventOccurrenceUsage. It is the referenceFeature @@ -243,10 +216,7 @@ public IType QueryEndOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public IOccurrenceUsage QueryEventOccurrence() - { - return this.ComputeEventOccurrence(); - } + public IOccurrenceUsage eventOccurrence => this.ComputeEventOccurrence(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -254,10 +224,7 @@ public IOccurrenceUsage QueryEventOccurrence() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -266,20 +233,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -289,10 +250,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -300,10 +258,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -311,10 +266,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -322,10 +274,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -334,10 +283,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -345,10 +291,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -361,10 +304,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -388,10 +328,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -446,10 +383,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -472,10 +406,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1672526906017_786343_306", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IEventOccurrenceUsage.IsReference")] - bool IEventOccurrenceUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether this Usage is a referential Usage, that is, it has isComposite = false. @@ -483,10 +414,7 @@ bool IEventOccurrenceUsage.QueryIsReference() [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + bool Systems.DefinitionAndUsage.IUsage.isReference => throw new InvalidOperationException("Redefined by property IEventOccurrenceUsage.IsReference"); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -505,7 +433,7 @@ bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -535,10 +463,7 @@ bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -546,10 +471,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -557,10 +479,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -570,10 +489,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -583,10 +499,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -594,10 +507,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -605,10 +515,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -616,10 +523,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -627,10 +531,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -638,10 +539,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -649,10 +547,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -660,10 +555,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -673,10 +565,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -684,10 +573,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -695,10 +581,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -706,10 +589,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -717,10 +597,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -728,10 +605,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -739,10 +613,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -750,10 +621,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -761,10 +629,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -772,10 +637,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -783,10 +645,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -794,10 +653,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -805,10 +661,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -816,10 +669,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -827,10 +677,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -839,10 +686,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -850,10 +694,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -861,10 +702,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -872,10 +710,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -883,10 +718,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -896,10 +728,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -907,10 +736,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -920,10 +746,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -932,10 +755,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -944,10 +764,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -957,10 +774,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -970,10 +784,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -981,10 +792,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -993,10 +801,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1004,10 +809,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1017,10 +819,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1030,10 +829,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1043,10 +839,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1056,10 +849,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1068,10 +858,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1080,10 +867,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1094,10 +878,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1106,10 +887,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1118,10 +896,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1139,10 +914,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1152,10 +924,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1165,10 +934,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1178,10 +944,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1190,10 +953,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1201,10 +961,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1213,10 +970,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1224,10 +978,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1236,10 +987,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1248,10 +996,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1269,10 +1014,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1280,10 +1022,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1304,10 +1043,7 @@ public IUsage QueryOwningUsage() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1317,10 +1053,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1329,10 +1062,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1343,10 +1073,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1357,10 +1084,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1368,10 +1092,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1380,10 +1101,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1392,10 +1110,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ExhibitStateUsage.cs b/SysML2.NET/Core/AutoGenPoco/ExhibitStateUsage.cs index 0b1d72901..e0a097749 100644 --- a/SysML2.NET/Core/AutoGenPoco/ExhibitStateUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ExhibitStateUsage.cs @@ -88,10 +88,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IStateUsage.StateDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -107,10 +104,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -122,10 +116,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -135,10 +126,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -166,10 +154,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -182,10 +167,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -194,10 +176,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -206,10 +185,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -226,10 +202,7 @@ public List QueryDirectedUsage() /// [Property(xmiId: "_19_0_2_12e503d9_1582976255473_203238_644", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateUsage.DoAction")] - public IActionUsage QueryDoAction() - { - return this.ComputeDoAction(); - } + public IActionUsage doAction => this.ComputeDoAction(); /// /// The Documentation owned by this Element. @@ -238,10 +211,7 @@ public IActionUsage QueryDoAction() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -257,10 +227,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -270,10 +237,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ActionUsage of this StateUsage to be performed on entry to the state defined by the @@ -282,10 +246,7 @@ public IType QueryEndOwningType() /// [Property(xmiId: "_19_0_2_12e503d9_1582976239200_979652_605", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateUsage.EntryAction")] - public IActionUsage QueryEntryAction() - { - return this.ComputeEntryAction(); - } + public IActionUsage entryAction => this.ComputeEntryAction(); /// /// The OccurrenceUsage referenced as an event by this EventOccurrenceUsage. It is the referenceFeature @@ -295,10 +256,7 @@ public IActionUsage QueryEntryAction() [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IPerformActionUsage.PerformedAction")] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public IOccurrenceUsage QueryEventOccurrence() - { - return this.ComputeEventOccurrence(); - } + public IOccurrenceUsage eventOccurrence => this.ComputeEventOccurrence(); /// /// The StateUsage to be exhibited by the ExhibitStateUsage. It is the performedAction of the @@ -307,10 +265,7 @@ public IOccurrenceUsage QueryEventOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1577070999039_688794_260", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1567740791820_867719_18017")] [Implements(implementation: "IExhibitStateUsage.ExhibitedState")] - public IStateUsage QueryExhibitedState() - { - return this.ComputeExhibitedState(); - } + public IStateUsage exhibitedState => this.ComputeExhibitedState(); /// /// The ActionUsage of this StateUsage to be performed on exit to the state defined by the @@ -319,10 +274,7 @@ public IStateUsage QueryExhibitedState() /// [Property(xmiId: "_19_0_2_12e503d9_1582976283940_998741_691", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateUsage.ExitAction")] - public IActionUsage QueryExitAction() - { - return this.ComputeExitAction(); - } + public IActionUsage exitAction => this.ComputeExitAction(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -330,10 +282,7 @@ public IActionUsage QueryExitAction() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -342,20 +291,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -365,10 +308,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -376,10 +316,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -387,10 +324,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -398,10 +332,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -410,10 +341,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -421,10 +349,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -437,10 +362,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -464,10 +386,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -522,10 +441,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -557,10 +473,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + bool Systems.DefinitionAndUsage.IUsage.isReference => throw new InvalidOperationException("Redefined by property IEventOccurrenceUsage.IsReference"); /// /// Always true for an EventOccurrenceUsage. @@ -568,10 +481,7 @@ bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() [Property(xmiId: "_19_0_4_12e503d9_1672526906017_786343_306", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IEventOccurrenceUsage.IsReference")] - bool Systems.Occurrences.IEventOccurrenceUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -590,7 +500,7 @@ bool Systems.Occurrences.IEventOccurrenceUsage.QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -620,10 +530,7 @@ bool Systems.Occurrences.IEventOccurrenceUsage.QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -631,10 +538,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -642,10 +546,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -655,10 +556,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -668,10 +566,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -679,10 +574,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -690,10 +582,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -701,10 +590,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -712,10 +598,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -723,10 +606,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -734,10 +614,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -745,10 +622,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -758,10 +632,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -769,10 +640,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -780,10 +648,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -791,10 +656,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -802,10 +664,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -813,10 +672,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -824,10 +680,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -835,10 +688,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -846,10 +696,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -857,10 +704,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -868,10 +712,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -879,10 +720,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -890,10 +728,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -901,10 +736,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -912,10 +744,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -924,10 +753,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -935,10 +761,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -946,10 +769,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -957,10 +777,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -968,10 +785,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -982,10 +796,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -993,10 +804,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -1006,10 +814,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -1018,10 +823,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1030,10 +832,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1043,10 +842,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1056,10 +852,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1067,10 +860,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1079,10 +869,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1090,10 +877,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1103,10 +887,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1116,10 +897,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1129,10 +907,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1142,10 +917,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1154,10 +926,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1166,10 +935,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1180,10 +946,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1192,10 +955,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1204,10 +964,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1225,10 +982,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1238,10 +992,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1251,10 +1002,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1264,10 +1012,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1276,10 +1021,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1287,10 +1029,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1299,10 +1038,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1310,10 +1046,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1322,10 +1055,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1334,10 +1064,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1355,10 +1082,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1366,10 +1090,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1378,10 +1099,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The ActionUsage to be performed by this PerformedActionUsage. It is the eventOccurrence of the @@ -1391,10 +1109,7 @@ public List QueryParameter() [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622831790393_676695_195")] [RedefinedByProperty("IExhibitStateUsage.ExhibitedState")] [Implements(implementation: "IPerformActionUsage.PerformedAction")] - public IActionUsage QueryPerformedAction() - { - return this.ComputePerformedAction(); - } + public IActionUsage performedAction => this.ComputePerformedAction(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1415,10 +1130,7 @@ public IActionUsage QueryPerformedAction() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1428,10 +1140,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Behaviors that are the types of this StateUsage. Nominally, these would be StateDefinitions, but @@ -1440,10 +1149,7 @@ public string QueryShortName() [Property(xmiId: "_19_0_2_12e503d9_1575588456737_49200_1438", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [Implements(implementation: "IStateUsage.StateDefinition")] - public List QueryStateDefinition() - { - return this.ComputeStateDefinition(); - } + public List stateDefinition => this.ComputeStateDefinition(); /// /// The TextualRepresentations that annotate this Element. @@ -1452,10 +1158,7 @@ public List QueryStateDefinition() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1466,10 +1169,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1480,10 +1180,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1491,10 +1188,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1503,10 +1197,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1515,10 +1206,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Expose.cs b/SysML2.NET/Core/AutoGenPoco/Expose.cs index d191cd1b7..d2c3169d9 100644 --- a/SysML2.NET/Core/AutoGenPoco/Expose.cs +++ b/SysML2.NET/Core/AutoGenPoco/Expose.cs @@ -80,10 +80,7 @@ public partial class Expose : IExpose [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -99,10 +96,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1668801846848_909736_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IImport.ImportedElement")] - public IElement QueryImportedElement() - { - return this.ComputeImportedElement(); - } + public IElement importedElement => this.ComputeImportedElement(); /// /// The Namespace into which Memberships are imported by this Import, which must be the @@ -112,10 +106,7 @@ public IElement QueryImportedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IImport.ImportOwningNamespace")] - public INamespace QueryImportOwningNamespace() - { - return this.ComputeImportOwningNamespace(); - } + public INamespace importOwningNamespace => this.ComputeImportOwningNamespace(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -142,7 +133,7 @@ public INamespace QueryImportOwningNamespace() [Property(xmiId: "_19_0_4_12e503d9_1622578615027_762161_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622577942205_869984_64")] [Implements(implementation: "IExpose.IsImportAll")] - bool IExpose.IsImportAll { get; set; } + public bool IsImportAll { get; set; } = true; /// /// Whether to import memberships without regard to declared visibility. @@ -157,10 +148,7 @@ public INamespace QueryImportOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether to recursively import Memberships from visible, owned sub-Namespaces. @@ -177,10 +165,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -190,10 +175,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -201,10 +183,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -228,10 +207,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -240,10 +216,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -252,10 +225,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -283,10 +253,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -294,10 +261,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -307,10 +271,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -336,10 +297,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// An Expose always has protected visibility. @@ -347,7 +305,7 @@ public List QueryTextualRepresentation() [Property(xmiId: "_2022x_2_12e503d9_1720469034555_222060_1140", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "protected")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674976_798509_43257")] [Implements(implementation: "IExpose.Visibility")] - VisibilityKind IExpose.Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Protected; /// /// The visibility level of the imported members from this Import relative to the importOwningNamespace. @@ -356,7 +314,7 @@ public List QueryTextualRepresentation() [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")] [RedefinedByProperty("IExpose.Visibility")] [Implements(implementation: "IImport.Visibility")] - VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } + VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } = VisibilityKind.Private; } } diff --git a/SysML2.NET/Core/AutoGenPoco/Expression.cs b/SysML2.NET/Core/AutoGenPoco/Expression.cs index ee5b940ef..cf07a2b80 100644 --- a/SysML2.NET/Core/AutoGenPoco/Expression.cs +++ b/SysML2.NET/Core/AutoGenPoco/Expression.cs @@ -69,10 +69,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -84,10 +81,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -97,10 +91,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -130,10 +121,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -142,10 +130,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -162,10 +147,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -181,10 +163,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -194,10 +173,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -205,10 +181,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -217,20 +190,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -240,10 +207,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -251,10 +215,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -262,10 +223,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -273,10 +231,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -285,10 +240,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -296,10 +248,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -312,10 +261,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -339,10 +285,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -389,10 +332,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -400,10 +340,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -437,7 +374,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -453,10 +390,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -464,10 +398,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -477,10 +408,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -490,10 +418,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -501,10 +426,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -514,10 +436,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -526,10 +445,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -538,10 +454,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -551,10 +464,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -564,10 +474,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -575,10 +482,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -587,10 +491,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -598,10 +499,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -611,10 +509,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -624,10 +519,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -637,10 +529,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -650,10 +539,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -662,10 +548,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -674,10 +557,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -688,10 +568,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -700,10 +577,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -712,10 +586,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -733,10 +604,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -746,10 +614,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -759,10 +624,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -772,10 +634,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -784,10 +643,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -795,10 +651,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -806,10 +659,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -818,10 +668,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -830,10 +677,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -851,10 +695,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -863,10 +704,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -878,10 +716,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -892,10 +727,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -905,10 +737,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -917,10 +746,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -930,10 +756,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -944,10 +767,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Feature.cs b/SysML2.NET/Core/AutoGenPoco/Feature.cs index b4be6d9f1..21af5f794 100644 --- a/SysML2.NET/Core/AutoGenPoco/Feature.cs +++ b/SysML2.NET/Core/AutoGenPoco/Feature.cs @@ -80,10 +80,7 @@ public partial class Feature : IFeature /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -93,10 +90,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -126,10 +120,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -137,10 +128,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -157,10 +145,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -176,10 +161,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -189,10 +171,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -200,10 +179,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -212,20 +188,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -235,10 +205,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -246,10 +213,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -257,10 +221,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -269,10 +230,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -280,10 +238,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -296,10 +251,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -323,10 +275,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -373,10 +322,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -410,7 +356,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -426,10 +372,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -437,10 +380,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -450,10 +390,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -463,10 +400,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -474,10 +408,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -487,10 +418,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -499,10 +427,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -511,10 +436,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -524,10 +446,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -537,10 +456,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -548,10 +464,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -560,10 +473,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -571,10 +481,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -584,10 +491,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -597,10 +501,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -610,10 +511,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -623,10 +521,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -635,10 +530,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -647,10 +539,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -661,10 +550,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -673,10 +559,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -685,10 +568,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -706,10 +586,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -719,10 +596,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -732,10 +606,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -745,10 +616,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -757,10 +625,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -768,10 +633,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -779,10 +641,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -791,10 +650,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -803,10 +659,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -824,10 +677,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -839,10 +689,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -852,10 +699,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -864,10 +708,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -877,10 +718,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -891,10 +729,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureChainExpression.cs b/SysML2.NET/Core/AutoGenPoco/FeatureChainExpression.cs index 2329dd11e..79590d70b 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureChainExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureChainExpression.cs @@ -69,10 +69,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List QueryArgument() - { - return this.ComputeArgument(); - } + public List argument => this.ComputeArgument(); /// /// The Behaviors that type this Step. @@ -81,10 +78,7 @@ public List QueryArgument() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -96,10 +90,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -109,10 +100,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -142,10 +130,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -154,10 +139,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -174,10 +156,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -193,10 +172,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -206,10 +182,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -217,10 +190,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -229,20 +199,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -252,10 +216,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -263,10 +224,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -274,10 +232,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -285,10 +240,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -297,10 +249,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -308,10 +257,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Type that is being instantiated. @@ -319,10 +265,7 @@ public List QueryInput() [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public IType QueryInstantiatedType() - { - return this.ComputeInstantiatedType(); - } + public IType instantiatedType => this.ComputeInstantiatedType(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -335,10 +278,7 @@ public IType QueryInstantiatedType() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -362,10 +302,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -412,10 +349,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -423,10 +357,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -460,7 +391,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -476,10 +407,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -487,10 +415,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -500,10 +425,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -513,17 +435,14 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// [Property(xmiId: "_19_0_4_12e503d9_1645049784007_509459_41", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: ".")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528808100_646606_111674")] [Implements(implementation: "IFeatureChainExpression.Operator")] - string IFeatureChainExpression.Operator { get; set; } + public string Operator { get; set; } = "."; /// /// An operator symbol that names a corresponding Function from one of the standard packages from the @@ -540,10 +459,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -553,10 +469,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -565,10 +478,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -577,10 +487,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -590,10 +497,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -603,10 +507,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -614,10 +515,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -626,10 +524,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -637,10 +532,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -650,10 +542,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -663,10 +552,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -676,10 +562,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -689,10 +572,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -701,10 +581,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -713,10 +590,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -727,10 +601,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -739,10 +610,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -751,10 +619,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -772,10 +637,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -785,10 +647,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -798,10 +657,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -811,10 +667,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -823,10 +676,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -834,10 +684,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -845,10 +692,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -857,10 +701,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -869,10 +710,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -890,10 +728,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -902,10 +737,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -917,10 +749,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -931,10 +760,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -944,10 +770,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Feature that is accessed by this FeatureChainExpression, which is its first non-parameter @@ -956,10 +779,7 @@ public string QueryShortName() [Property(xmiId: "_19_0_4_12e503d9_1645049897369_762611_49", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IFeatureChainExpression.TargetFeature")] - public IFeature QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public IFeature targetFeature => this.ComputeTargetFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -968,10 +788,7 @@ public IFeature QueryTargetFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -981,10 +798,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -995,10 +809,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureChaining.cs b/SysML2.NET/Core/AutoGenPoco/FeatureChaining.cs index a3463fe70..51724df41 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureChaining.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureChaining.cs @@ -88,10 +88,7 @@ public partial class FeatureChaining : IFeatureChaining [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -109,10 +106,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IFeatureChaining.FeatureChained")] - public IFeature QueryFeatureChained() - { - return this.ComputeFeatureChained(); - } + public IFeature featureChained => this.ComputeFeatureChained(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -138,10 +132,7 @@ public IFeature QueryFeatureChained() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -151,10 +142,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -164,10 +152,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -175,10 +160,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -202,10 +184,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -214,10 +193,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -226,10 +202,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -257,10 +230,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -268,10 +238,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -281,10 +248,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -311,10 +275,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureInverting.cs b/SysML2.NET/Core/AutoGenPoco/FeatureInverting.cs index 8ea3cdd5d..c2a48b828 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureInverting.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureInverting.cs @@ -82,10 +82,7 @@ public partial class FeatureInverting : IFeatureInverting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -135,10 +132,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -148,10 +142,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -161,10 +152,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -172,10 +160,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -199,10 +184,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// A featureInverted that is also the owningRelatedElement of this FeatureInverting. @@ -211,10 +193,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838862_842173_146")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [Implements(implementation: "IFeatureInverting.OwningFeature")] - public IFeature QueryOwningFeature() - { - return this.ComputeOwningFeature(); - } + public IFeature owningFeature => this.ComputeOwningFeature(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -223,10 +202,7 @@ public IFeature QueryOwningFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -235,10 +211,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -266,10 +239,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -277,10 +247,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -290,10 +257,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -320,10 +284,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureMembership.cs b/SysML2.NET/Core/AutoGenPoco/FeatureMembership.cs index 912a6588f..2317d07ff 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureMembership.cs @@ -84,10 +84,7 @@ public partial class FeatureMembership : IFeatureMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -121,10 +118,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -141,10 +135,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -163,10 +154,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -184,10 +172,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -197,10 +182,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -208,10 +190,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -222,10 +201,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -233,10 +209,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -245,10 +218,7 @@ public string QueryOwnedMemberElementId() [Property(xmiId: "_18_5_3_12e503d9_1533160674993_898044_43344", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -256,10 +226,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -267,10 +234,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -294,10 +258,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -306,10 +267,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -318,10 +276,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -346,10 +301,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -361,10 +313,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -372,10 +321,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -385,10 +331,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -415,10 +358,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -426,7 +366,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureReferenceExpression.cs b/SysML2.NET/Core/AutoGenPoco/FeatureReferenceExpression.cs index 057434180..e72319a8b 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureReferenceExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureReferenceExpression.cs @@ -66,10 +66,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -81,10 +78,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -94,10 +88,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -127,10 +118,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -139,10 +127,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -159,10 +144,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -178,10 +160,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -191,10 +170,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -202,10 +178,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -214,20 +187,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -237,10 +204,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -248,10 +212,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -259,10 +220,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -270,10 +228,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -282,10 +237,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -293,10 +245,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -309,10 +258,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -336,10 +282,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -386,10 +329,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -397,10 +337,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -434,7 +371,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -450,10 +387,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -461,10 +395,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -474,10 +405,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -487,10 +415,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -498,10 +423,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -511,10 +433,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -523,10 +442,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -535,10 +451,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -548,10 +461,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -561,10 +471,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -572,10 +479,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -584,10 +488,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -595,10 +496,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -608,10 +506,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -621,10 +516,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -634,10 +526,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -647,10 +536,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -659,10 +545,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -671,10 +554,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -685,10 +565,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -697,10 +574,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -709,10 +583,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -730,10 +601,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -743,10 +611,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -756,10 +621,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -769,10 +631,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -781,10 +640,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -792,10 +648,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -803,10 +656,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -815,10 +665,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -827,10 +674,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -848,10 +692,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -860,10 +701,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -875,10 +713,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Feature that is referenced by this FeatureReferenceExpression, which is its first non-parameter @@ -887,10 +722,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674962_848357_43185", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IFeatureReferenceExpression.Referent")] - public IFeature QueryReferent() - { - return this.ComputeReferent(); - } + public IFeature referent => this.ComputeReferent(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -901,10 +733,7 @@ public IFeature QueryReferent() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -914,10 +743,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -926,10 +752,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -939,10 +762,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -953,10 +773,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs b/SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs index 7991faf74..5bbe1305f 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs @@ -82,10 +82,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -128,10 +125,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -141,10 +135,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -154,10 +145,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -165,10 +153,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -192,10 +177,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// A typedFeature that is also the owningRelatedElement of this FeatureTyping. @@ -204,10 +186,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_13273_21101")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "IFeatureTyping.OwningFeature")] - public IFeature QueryOwningFeature() - { - return this.ComputeOwningFeature(); - } + public IFeature owningFeature => this.ComputeOwningFeature(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -216,10 +195,7 @@ public IFeature QueryOwningFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -228,10 +204,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -257,10 +230,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IFeatureTyping.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -272,10 +242,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -283,10 +250,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -296,10 +260,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -335,10 +296,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The Type that is being applied by this FeatureTyping. diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureValue.cs b/SysML2.NET/Core/AutoGenPoco/FeatureValue.cs index 4dd96e8d8..4d7ebbbad 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureValue.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureValue.cs @@ -90,10 +90,7 @@ public partial class FeatureValue : IFeatureValue [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -109,10 +106,7 @@ public List QueryDocumentation() [Property(xmiId: "_19_0_2_12e503d9_1573079011690_119762_1724", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureValue.FeatureWithValue")] - public IFeature QueryFeatureWithValue() - { - return this.ComputeFeatureWithValue(); - } + public IFeature featureWithValue => this.ComputeFeatureWithValue(); /// /// Whether this FeatureValue is a concrete specification of the bound or initial value of the @@ -153,10 +147,7 @@ public IFeature QueryFeatureWithValue() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -173,10 +164,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -194,10 +182,7 @@ public string QueryMemberElementId() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -215,10 +200,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -228,10 +210,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -239,10 +218,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -253,10 +229,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureValue.Value")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -264,10 +237,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The name of the ownedMemberElement. @@ -275,10 +245,7 @@ public string QueryOwnedMemberElementId() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -286,10 +253,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -313,10 +277,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -325,10 +286,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -337,10 +295,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -368,10 +323,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -379,10 +331,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -392,10 +341,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -422,10 +368,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The Expression that provides the value as a result. @@ -433,10 +376,7 @@ public List QueryTextualRepresentation() [Property(xmiId: "_19_0_2_12e503d9_1573081851611_231043_3236", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [Implements(implementation: "IFeatureValue.Value")] - public IExpression QueryValue() - { - return this.ComputeValue(); - } + public IExpression value => this.ComputeValue(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -444,7 +384,7 @@ public IExpression QueryValue() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/Flow.cs b/SysML2.NET/Core/AutoGenPoco/Flow.cs index cb201d757..80a56b088 100644 --- a/SysML2.NET/Core/AutoGenPoco/Flow.cs +++ b/SysML2.NET/Core/AutoGenPoco/Flow.cs @@ -69,10 +69,7 @@ public partial class Flow : IFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Behaviors that type this Step. @@ -81,10 +78,7 @@ public List QueryAssociation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -96,10 +90,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -109,10 +100,7 @@ public List QueryChainingFeature() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -122,10 +110,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -151,10 +136,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -167,10 +149,7 @@ public IType QueryDefaultFeaturingType() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -179,10 +158,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -199,10 +175,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -219,10 +192,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -232,10 +202,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -243,10 +210,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -255,20 +219,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -278,10 +236,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The connectorEnds of this Flow that are FlowEnds. @@ -289,10 +244,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] [Implements(implementation: "IFlow.FlowEnd")] - public List QueryFlowEnd() - { - return this.ComputeFlowEnd(); - } + public List flowEnd => this.ComputeFlowEnd(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -300,10 +252,7 @@ public List QueryFlowEnd() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -311,10 +260,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -323,10 +269,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -334,10 +277,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -347,10 +287,7 @@ public List QueryInput() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IFlow.Interaction")] - public List QueryInteraction() - { - return this.ComputeInteraction(); - } + public List interaction => this.ComputeInteraction(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -363,10 +300,7 @@ public List QueryInteraction() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -390,10 +324,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -448,10 +379,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -485,7 +413,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -501,10 +429,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -512,10 +437,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -525,10 +447,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -538,10 +457,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -549,10 +465,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -562,10 +475,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -574,10 +484,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -586,10 +493,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -599,10 +503,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -612,10 +513,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -623,10 +521,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -635,10 +530,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -646,10 +538,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -659,10 +548,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -672,10 +558,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -685,10 +568,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -698,10 +578,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -710,10 +587,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -722,10 +596,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -736,10 +607,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -748,10 +616,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -760,10 +625,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -789,10 +651,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -802,10 +661,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -815,10 +671,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -828,10 +681,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -840,10 +690,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -851,10 +698,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -862,10 +706,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -874,10 +715,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -886,10 +724,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -915,10 +750,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -927,10 +759,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). @@ -938,20 +767,14 @@ public List QueryParameter() [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IFlow.PayloadFeature")] - public IPayloadFeature QueryPayloadFeature() - { - return this.ComputePayloadFeature(); - } + public IPayloadFeature payloadFeature => this.ComputePayloadFeature(); /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.PayloadType")] - public List QueryPayloadType() - { - return this.ComputePayloadType(); - } + public List payloadType => this.ComputePayloadType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -963,10 +786,7 @@ public List QueryPayloadType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -975,10 +795,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -987,10 +804,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1000,10 +814,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1021,10 +832,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the @@ -1032,10 +840,7 @@ public IFeature QuerySourceFeature() /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.SourceOutputFeature")] - public IFeature QuerySourceOutputFeature() - { - return this.ComputeSourceOutputFeature(); - } + public IFeature sourceOutputFeature => this.ComputeSourceOutputFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1054,10 +859,7 @@ public IFeature QuerySourceOutputFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the @@ -1065,10 +867,7 @@ public List QueryTargetFeature() /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.TargetInputFeature")] - public IFeature QueryTargetInputFeature() - { - return this.ComputeTargetInputFeature(); - } + public IFeature targetInputFeature => this.ComputeTargetInputFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -1077,10 +876,7 @@ public IFeature QueryTargetInputFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1091,10 +887,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1105,10 +898,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs b/SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs index 19504caef..8ad6df492 100644 --- a/SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs @@ -83,10 +83,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List QueryAction() - { - return this.ComputeAction(); - } + public List action => this.ComputeAction(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -104,10 +101,7 @@ public List QueryAction() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IFlowDefinition.FlowEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List QueryAssociationEnd() - { - return this.ComputeAssociationEnd(); - } + public List associationEnd => this.ComputeAssociationEnd(); /// /// The declared name of this Element. @@ -137,10 +131,7 @@ public List QueryAssociationEnd() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -149,10 +140,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -161,10 +149,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -173,10 +158,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -193,10 +175,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -204,10 +183,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -216,10 +192,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Usages that define the things related by the FlowDefinition. @@ -227,10 +200,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_2022x_2_12e503d9_1733008492358_136366_19515", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] [Implements(implementation: "IFlowDefinition.FlowEnd")] - public List QueryFlowEnd() - { - return this.ComputeFlowEnd(); - } + public List flowEnd => this.ComputeFlowEnd(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -238,10 +208,7 @@ public List QueryFlowEnd() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -249,10 +216,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -261,10 +225,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -272,10 +233,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -288,10 +246,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -306,10 +261,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -342,10 +294,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -373,10 +322,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -384,10 +330,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -397,10 +340,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -410,10 +350,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -421,10 +358,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -432,10 +366,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -443,10 +374,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -454,10 +382,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -467,10 +392,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -478,10 +400,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -489,10 +408,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -500,10 +416,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -511,10 +424,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -523,10 +433,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -536,10 +443,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -547,10 +451,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -560,10 +461,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -573,10 +471,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -584,10 +479,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -596,10 +488,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -607,10 +496,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -618,10 +504,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -631,10 +514,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -642,10 +522,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -655,10 +532,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -666,10 +540,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -678,10 +549,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -689,10 +557,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -701,10 +566,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -715,10 +577,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -726,10 +585,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -737,10 +593,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -748,10 +601,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -759,10 +609,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -770,10 +617,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -797,10 +641,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -808,10 +649,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -821,10 +659,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -832,10 +667,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -844,10 +676,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -855,10 +684,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -867,10 +693,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -879,10 +702,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -890,10 +710,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -901,10 +718,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -912,10 +726,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -923,10 +734,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -934,10 +742,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -946,10 +751,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -958,10 +760,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -986,10 +785,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1001,10 +797,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1013,10 +806,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -1025,10 +815,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List QueryRelatedType() - { - return this.ComputeRelatedType(); - } + public List relatedType => this.ComputeRelatedType(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1038,10 +825,7 @@ public List QueryRelatedType() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1059,10 +843,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public IType QuerySourceType() - { - return this.ComputeSourceType(); - } + public IType sourceType => this.ComputeSourceType(); /// /// The Steps that make up this Behavior. @@ -1070,10 +851,7 @@ public IType QuerySourceType() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1092,10 +870,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List QueryTargetType() - { - return this.ComputeTargetType(); - } + public List targetType => this.ComputeTargetType(); /// /// The TextualRepresentations that annotate this Element. @@ -1104,10 +879,7 @@ public List QueryTargetType() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1118,10 +890,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1129,10 +898,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1141,10 +907,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1154,10 +917,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/FlowEnd.cs b/SysML2.NET/Core/AutoGenPoco/FlowEnd.cs index c9a863eba..f34461132 100644 --- a/SysML2.NET/Core/AutoGenPoco/FlowEnd.cs +++ b/SysML2.NET/Core/AutoGenPoco/FlowEnd.cs @@ -70,10 +70,7 @@ public partial class FlowEnd : IFlowEnd /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -83,10 +80,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -116,10 +110,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -127,10 +118,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -147,10 +135,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -166,10 +151,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -179,10 +161,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -190,10 +169,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -202,20 +178,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -225,10 +195,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -236,10 +203,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -247,10 +211,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -259,10 +220,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -270,10 +228,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -286,10 +241,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -313,10 +265,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -363,10 +312,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -400,7 +346,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -416,10 +362,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -427,10 +370,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -440,10 +380,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -453,10 +390,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -464,10 +398,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -477,10 +408,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -489,10 +417,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -501,10 +426,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -514,10 +436,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -527,10 +446,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -538,10 +454,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -550,10 +463,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -561,10 +471,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -574,10 +481,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -587,10 +491,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -600,10 +501,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -613,10 +511,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -625,10 +520,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -637,10 +529,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -651,10 +540,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -663,10 +549,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -675,10 +558,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -696,10 +576,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -709,10 +586,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -722,10 +596,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -735,10 +606,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -747,10 +615,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -758,10 +623,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -769,10 +631,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -781,10 +640,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -793,10 +649,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -814,10 +667,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -829,10 +679,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -842,10 +689,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -854,10 +698,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -867,10 +708,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -881,10 +719,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/FlowUsage.cs b/SysML2.NET/Core/AutoGenPoco/FlowUsage.cs index 400bf7924..3bd4543a4 100644 --- a/SysML2.NET/Core/AutoGenPoco/FlowUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/FlowUsage.cs @@ -88,10 +88,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -107,10 +104,7 @@ public List QueryActionDefinition() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Behaviors that type this Step. @@ -119,10 +113,7 @@ public List QueryAssociation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -134,10 +125,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -147,10 +135,7 @@ public List QueryChainingFeature() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -160,10 +145,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -189,10 +171,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -203,10 +182,7 @@ public IType QueryDefaultFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -219,10 +195,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -231,10 +204,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -243,10 +213,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -263,10 +230,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -283,10 +247,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -296,10 +257,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -307,10 +265,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -319,20 +274,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -342,10 +291,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Interactions that are the types of this FlowUsage. Nominally, these are FlowDefinitions, but @@ -356,10 +302,7 @@ public List QueryFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1661900477937_518125_727")] [Implements(implementation: "IFlowUsage.FlowDefinition")] - public List QueryFlowDefinition() - { - return this.ComputeFlowDefinition(); - } + public List flowDefinition => this.ComputeFlowDefinition(); /// /// The connectorEnds of this Flow that are FlowEnds. @@ -367,10 +310,7 @@ public List QueryFlowDefinition() [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] [Implements(implementation: "IFlow.FlowEnd")] - public List QueryFlowEnd() - { - return this.ComputeFlowEnd(); - } + public List flowEnd => this.ComputeFlowEnd(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -378,10 +318,7 @@ public List QueryFlowEnd() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -389,10 +326,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -400,10 +334,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -412,10 +343,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -423,10 +351,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -437,10 +362,7 @@ public List QueryInput() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IFlow.Interaction")] - public List QueryInteraction() - { - return this.ComputeInteraction(); - } + public List interaction => this.ComputeInteraction(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -453,10 +375,7 @@ public List QueryInteraction() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -480,10 +399,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -546,10 +462,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -571,10 +484,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -593,7 +503,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -623,10 +533,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -634,10 +541,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -645,10 +549,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -658,10 +559,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -671,10 +569,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -682,10 +577,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -693,10 +585,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -704,10 +593,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -715,10 +601,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -726,10 +609,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -737,10 +617,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -748,10 +625,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -761,10 +635,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -772,10 +643,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -783,10 +651,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -794,10 +659,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -805,10 +667,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -816,10 +675,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -827,10 +683,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -838,10 +691,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -849,10 +699,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -860,10 +707,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -871,10 +715,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -882,10 +723,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -893,10 +731,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -904,10 +739,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -915,10 +747,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -927,10 +756,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -938,10 +764,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -949,10 +772,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -960,10 +780,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -971,10 +788,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -985,10 +799,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -996,10 +807,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -1009,10 +817,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -1021,10 +826,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1033,10 +835,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1046,10 +845,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1059,10 +855,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1070,10 +863,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1082,10 +872,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1093,10 +880,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1106,10 +890,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1119,10 +900,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1132,10 +910,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1145,10 +920,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1157,10 +929,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1169,10 +938,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1183,10 +949,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1195,10 +958,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1207,10 +967,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -1236,10 +993,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1249,10 +1003,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1262,10 +1013,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1275,10 +1023,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1287,10 +1032,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1298,10 +1040,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1310,10 +1049,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1321,10 +1057,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1333,10 +1066,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1345,10 +1075,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -1374,10 +1101,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1385,10 +1109,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1397,10 +1118,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). @@ -1408,20 +1126,14 @@ public List QueryParameter() [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IFlow.PayloadFeature")] - public IPayloadFeature QueryPayloadFeature() - { - return this.ComputePayloadFeature(); - } + public IPayloadFeature payloadFeature => this.ComputePayloadFeature(); /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.PayloadType")] - public List QueryPayloadType() - { - return this.ComputePayloadType(); - } + public List payloadType => this.ComputePayloadType(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1442,10 +1154,7 @@ public List QueryPayloadType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1454,10 +1163,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1466,10 +1172,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1479,10 +1182,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1500,10 +1200,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the @@ -1511,10 +1208,7 @@ public IFeature QuerySourceFeature() /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.SourceOutputFeature")] - public IFeature QuerySourceOutputFeature() - { - return this.ComputeSourceOutputFeature(); - } + public IFeature sourceOutputFeature => this.ComputeSourceOutputFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1533,10 +1227,7 @@ public IFeature QuerySourceOutputFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the @@ -1544,10 +1235,7 @@ public List QueryTargetFeature() /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.TargetInputFeature")] - public IFeature QueryTargetInputFeature() - { - return this.ComputeTargetInputFeature(); - } + public IFeature targetInputFeature => this.ComputeTargetInputFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -1556,10 +1244,7 @@ public IFeature QueryTargetInputFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1570,10 +1255,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1584,10 +1266,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1595,10 +1274,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1607,10 +1283,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1619,10 +1292,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ForLoopActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ForLoopActionUsage.cs index 29f8e4636..e8d90729e 100644 --- a/SysML2.NET/Core/AutoGenPoco/ForLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ForLoopActionUsage.cs @@ -87,10 +87,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -106,10 +103,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The ActionUsage to be performed repeatedly by the LoopActionUsage. It is the second parameter of the @@ -117,10 +111,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_12e503d9_1624203902575_509097_3869", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ILoopActionUsage.BodyAction")] - public IActionUsage QueryBodyAction() - { - return this.ComputeBodyAction(); - } + public IActionUsage bodyAction => this.ComputeBodyAction(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -132,10 +123,7 @@ public IActionUsage QueryBodyAction() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -145,10 +133,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -176,10 +161,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -192,10 +174,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -204,10 +183,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -216,10 +192,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -236,10 +209,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -255,10 +225,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -268,10 +235,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -279,10 +243,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -291,20 +252,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -314,10 +269,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -325,10 +277,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -336,10 +285,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -347,10 +293,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -359,10 +302,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -370,10 +310,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -386,10 +323,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -413,10 +347,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -471,10 +402,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -496,10 +424,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -518,7 +443,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -544,10 +469,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_19_0_4_12e503d9_1640325378400_227367_3662", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IForLoopActionUsage.LoopVariable")] - public IReferenceUsage QueryLoopVariable() - { - return this.ComputeLoopVariable(); - } + public IReferenceUsage loopVariable => this.ComputeLoopVariable(); /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -560,10 +482,7 @@ public IReferenceUsage QueryLoopVariable() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -571,10 +490,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -582,10 +498,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -595,10 +508,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -608,10 +518,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -619,10 +526,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -630,10 +534,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -641,10 +542,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -652,10 +550,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -663,10 +558,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -674,10 +566,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -685,10 +574,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -698,10 +584,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -709,10 +592,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -720,10 +600,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -731,10 +608,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -742,10 +616,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -753,10 +624,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -764,10 +632,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -775,10 +640,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -786,10 +648,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -797,10 +656,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -808,10 +664,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -819,10 +672,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -830,10 +680,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -841,10 +688,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -852,10 +696,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -864,10 +705,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -875,10 +713,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -886,10 +721,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -897,10 +729,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -908,10 +737,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -922,10 +748,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -933,10 +756,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -946,10 +766,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -958,10 +775,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -970,10 +784,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -983,10 +794,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -996,10 +804,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1007,10 +812,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1019,10 +821,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1030,10 +829,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1043,10 +839,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1056,10 +849,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1069,10 +859,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1082,10 +869,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1094,10 +878,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1106,10 +887,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1120,10 +898,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1132,10 +907,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1144,10 +916,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1165,10 +934,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1178,10 +944,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1191,10 +954,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1204,10 +964,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1216,10 +973,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1227,10 +981,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1239,10 +990,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1250,10 +998,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1262,10 +1007,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1274,10 +1016,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1295,10 +1034,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1306,10 +1042,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1318,10 +1051,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1342,10 +1072,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Expression whose result provides the sequence of values to which the loopVariable is set for @@ -1354,10 +1081,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1624306920911_355291_5769", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IForLoopActionUsage.SeqArgument")] - public IExpression QuerySeqArgument() - { - return this.ComputeSeqArgument(); - } + public IExpression seqArgument => this.ComputeSeqArgument(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1367,10 +1091,7 @@ public IExpression QuerySeqArgument() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1379,10 +1100,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1393,10 +1111,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1407,10 +1122,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1418,10 +1130,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1430,10 +1139,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1442,10 +1148,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ForkNode.cs b/SysML2.NET/Core/AutoGenPoco/ForkNode.cs index 3e2931f98..87c92e29e 100644 --- a/SysML2.NET/Core/AutoGenPoco/ForkNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/ForkNode.cs @@ -85,10 +85,7 @@ public partial class ForkNode : IForkNode [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -104,10 +101,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -119,10 +113,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -132,10 +123,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -163,10 +151,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -179,10 +164,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -191,10 +173,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -203,10 +182,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -223,10 +199,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -242,10 +215,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -255,10 +225,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -266,10 +233,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -278,20 +242,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -301,10 +259,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -312,10 +267,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -323,10 +275,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -334,10 +283,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -346,10 +292,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -357,10 +300,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -373,10 +313,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -400,10 +337,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -458,10 +392,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -483,10 +414,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -505,7 +433,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -535,10 +463,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -546,10 +471,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -557,10 +479,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -570,10 +489,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -583,10 +499,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -594,10 +507,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -605,10 +515,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -616,10 +523,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -627,10 +531,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -638,10 +539,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -649,10 +547,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -660,10 +555,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -673,10 +565,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -684,10 +573,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -695,10 +581,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -706,10 +589,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -717,10 +597,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -728,10 +605,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -739,10 +613,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -750,10 +621,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -761,10 +629,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -772,10 +637,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -783,10 +645,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -794,10 +653,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -805,10 +661,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -816,10 +669,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -827,10 +677,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -839,10 +686,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -850,10 +694,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -861,10 +702,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -872,10 +710,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -883,10 +718,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -897,10 +729,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -908,10 +737,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -921,10 +747,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -933,10 +756,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -945,10 +765,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -958,10 +775,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -971,10 +785,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -982,10 +793,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -994,10 +802,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1005,10 +810,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1018,10 +820,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1031,10 +830,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1044,10 +840,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1057,10 +850,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1069,10 +859,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1081,10 +868,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1095,10 +879,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1107,10 +888,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1119,10 +897,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1140,10 +915,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1153,10 +925,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1166,10 +935,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1179,10 +945,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1191,10 +954,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1202,10 +962,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1214,10 +971,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1225,10 +979,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1237,10 +988,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1249,10 +997,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1270,10 +1015,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1281,10 +1023,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1293,10 +1032,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1317,10 +1053,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1330,10 +1063,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1342,10 +1072,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1356,10 +1083,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1370,10 +1094,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1381,10 +1102,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1393,10 +1111,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1405,10 +1120,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/FramedConcernMembership.cs b/SysML2.NET/Core/AutoGenPoco/FramedConcernMembership.cs index bc5766a76..51144276f 100644 --- a/SysML2.NET/Core/AutoGenPoco/FramedConcernMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/FramedConcernMembership.cs @@ -84,10 +84,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -121,10 +118,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The kind of an FramedConcernMembership must be requirement. @@ -132,7 +126,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1617120451812_644221_3690", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "requirement")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048161309_821854_390")] [Implements(implementation: "IFramedConcernMembership.Kind")] - RequirementConstraintKind IFramedConcernMembership.Kind { get; set; } + public RequirementConstraintKind Kind { get; set; } = RequirementConstraintKind.Requirement; /// /// Whether the RequirementConstraintMembership is for an assumed or required ConstraintUsage. @@ -157,10 +151,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -179,10 +170,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -200,10 +188,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -213,10 +198,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The ConcernUsage that is the ownedConstraint of this FramedConcernMembership. @@ -224,10 +206,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_4_12e503d9_1617120590170_490370_3748", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048366950_985767_426")] [Implements(implementation: "IFramedConcernMembership.OwnedConcern")] - public IConcernUsage QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public IConcernUsage ownedConcern => this.ComputeOwnedConcern(); /// /// The ConstraintUsage that is the ownedMemberFeature of this RequirementConstraintMembership. @@ -236,10 +215,7 @@ public IConcernUsage QueryOwnedConcern() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IFramedConcernMembership.OwnedConcern")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public IConstraintUsage QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public IConstraintUsage ownedConstraint => this.ComputeOwnedConstraint(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -247,10 +223,7 @@ public IConstraintUsage QueryOwnedConstraint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -261,10 +234,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -272,10 +242,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -285,10 +252,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -296,10 +260,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -307,10 +268,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -334,10 +292,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -346,10 +301,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -358,10 +310,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -386,10 +335,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -401,10 +347,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The ConcernUsage that is referenced through this FramedConcernMembership. It is the @@ -414,10 +357,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_4_12e503d9_1617120658044_92083_3773", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1617118807597_77864_3544")] [Implements(implementation: "IFramedConcernMembership.ReferencedConcern")] - public IConcernUsage QueryReferencedConcern() - { - return this.ComputeReferencedConcern(); - } + public IConcernUsage referencedConcern => this.ComputeReferencedConcern(); /// /// The ConstraintUsage that is referenced through this RequirementConstraintMembership. It is the @@ -427,10 +367,7 @@ public IConcernUsage QueryReferencedConcern() [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IFramedConcernMembership.ReferencedConcern")] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public IConstraintUsage QueryReferencedConstraint() - { - return this.ComputeReferencedConstraint(); - } + public IConstraintUsage referencedConstraint => this.ComputeReferencedConstraint(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -438,10 +375,7 @@ public IConstraintUsage QueryReferencedConstraint() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -451,10 +385,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -481,10 +412,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -492,7 +420,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/Function.cs b/SysML2.NET/Core/AutoGenPoco/Function.cs index 551213279..026ab6d0c 100644 --- a/SysML2.NET/Core/AutoGenPoco/Function.cs +++ b/SysML2.NET/Core/AutoGenPoco/Function.cs @@ -88,10 +88,7 @@ public partial class Function : IFunction /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -100,10 +97,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The Documentation owned by this Element. @@ -112,10 +106,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -131,10 +122,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -142,10 +130,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List QueryExpression() - { - return this.ComputeExpression(); - } + public List expression => this.ComputeExpression(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -153,10 +138,7 @@ public List QueryExpression() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -165,10 +147,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -176,10 +155,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -187,10 +163,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -199,10 +172,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -210,10 +180,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -226,10 +193,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -244,10 +208,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -265,10 +226,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -279,10 +237,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -302,10 +257,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -313,10 +265,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -326,10 +275,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -339,10 +285,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -350,10 +293,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -363,10 +303,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -375,10 +312,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -388,10 +322,7 @@ public IConjugation QueryOwnedConjugator() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -401,10 +332,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -412,10 +340,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -424,10 +349,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -435,10 +357,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -448,10 +367,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -461,10 +377,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -473,10 +386,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -485,10 +395,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -499,10 +406,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -520,10 +424,7 @@ public List QueryOwnedMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -532,10 +433,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -544,10 +442,7 @@ public List QueryOwnedSubclassification() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -555,10 +450,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -567,10 +459,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -579,10 +468,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -599,10 +485,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -614,10 +497,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The object or value that is the result of evaluating the Function. @@ -626,10 +506,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -639,10 +516,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Steps that make up this Behavior. @@ -650,10 +524,7 @@ public string QueryShortName() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The TextualRepresentations that annotate this Element. @@ -662,10 +533,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -676,10 +544,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IAcceptActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IAcceptActionUsage.cs index db7a71f37..a27e1e971 100644 --- a/SysML2.NET/Core/AutoGenPoco/IAcceptActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IAcceptActionUsage.cs @@ -78,7 +78,7 @@ public partial interface IAcceptActionUsage : IActionUsage /// the AcceptActionUsage will only accept a Transfer with exactly this payload. /// [Property(xmiId: "_19_0_4_12e503d9_1642710978429_81558_4948", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IExpression QueryPayloadArgument(); + IExpression payloadArgument { get; } /// /// The nestedReference of this AcceptActionUsage that redefines the payload output parameter of the @@ -87,13 +87,13 @@ public partial interface IAcceptActionUsage : IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1642701018287_478584_4462", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591477541360_47573_933")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] - IReferenceUsage QueryPayloadParameter(); + IReferenceUsage payloadParameter { get; } /// /// An Expression whose result is bound to the receiver input parameter of this AcceptActionUsage. /// [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 QueryReceiverArgument(); + IExpression receiverArgument { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IActionDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IActionDefinition.cs index 38199d539..d5547590e 100644 --- a/SysML2.NET/Core/AutoGenPoco/IActionDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IActionDefinition.cs @@ -73,7 +73,7 @@ public partial interface IActionDefinition : IBehavior, IOccurrenceDefinition [Property(xmiId: "_18_5_3_12e503d9_1565500809065_170841_30688", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List QueryAction(); + List action { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IActionUsage.cs index b15398214..bc964e32a 100644 --- a/SysML2.NET/Core/AutoGenPoco/IActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IActionUsage.cs @@ -79,7 +79,7 @@ public partial interface IActionUsage : IStep, IOccurrenceUsage [Property(xmiId: "_18_5_3_12e503d9_1565500905804_589845_30779", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] - List QueryActionDefinition(); + List actionDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IActorMembership.cs b/SysML2.NET/Core/AutoGenPoco/IActorMembership.cs index 9c44e8fc2..bb5f6e1df 100644 --- a/SysML2.NET/Core/AutoGenPoco/IActorMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IActorMembership.cs @@ -52,7 +52,7 @@ public partial interface IActorMembership : IParameterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1621464305451_983612_1421", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528016548_548098_110830")] - IPartUsage QueryOwnedActorParameter(); + IPartUsage ownedActorParameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IAllocationDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IAllocationDefinition.cs index df87b7aec..6772b89b6 100644 --- a/SysML2.NET/Core/AutoGenPoco/IAllocationDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IAllocationDefinition.cs @@ -75,7 +75,7 @@ public partial interface IAllocationDefinition : IConnectionDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1611430644481_402036_964", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List QueryAllocation(); + List allocation { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IAllocationUsage.cs b/SysML2.NET/Core/AutoGenPoco/IAllocationUsage.cs index 7522dcb64..6558baef5 100644 --- a/SysML2.NET/Core/AutoGenPoco/IAllocationUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IAllocationUsage.cs @@ -76,7 +76,7 @@ public partial interface IAllocationUsage : IConnectionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1611430742949_241425_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594853499656_139435_802")] - List QueryAllocationDefinition(); + List allocationDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IAnalysisCaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IAnalysisCaseDefinition.cs index 3c52f551c..ffc3d671d 100644 --- a/SysML2.NET/Core/AutoGenPoco/IAnalysisCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IAnalysisCaseDefinition.cs @@ -73,7 +73,7 @@ public partial interface IAnalysisCaseDefinition : ICaseDefinition [Property(xmiId: "_19_0_2_59601fc_1590945152798_315308_221", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - IExpression QueryResultExpression(); + IExpression resultExpression { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IAnalysisCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/IAnalysisCaseUsage.cs index e49f1290b..c58027b35 100644 --- a/SysML2.NET/Core/AutoGenPoco/IAnalysisCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IAnalysisCaseUsage.cs @@ -74,7 +74,7 @@ public partial interface IAnalysisCaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_2_12e503d9_1591152217935_225164_2921", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] - IAnalysisCaseDefinition QueryAnalysisCaseDefinition(); + IAnalysisCaseDefinition analysisCaseDefinition { get; } /// /// An Expression used to compute the result of the AnalysisCaseUsage, owned via a @@ -82,7 +82,7 @@ public partial interface IAnalysisCaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_2_12e503d9_1591151453868_910052_2600", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - IExpression QueryResultExpression(); + IExpression resultExpression { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IAnnotatingElement.cs b/SysML2.NET/Core/AutoGenPoco/IAnnotatingElement.cs index 676a0b8f9..93b7df893 100644 --- a/SysML2.NET/Core/AutoGenPoco/IAnnotatingElement.cs +++ b/SysML2.NET/Core/AutoGenPoco/IAnnotatingElement.cs @@ -47,7 +47,7 @@ public partial interface IAnnotatingElement : IElement /// AnnotatingElement. /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryAnnotatedElement(); + List annotatedElement { get; } /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -55,7 +55,7 @@ public partial interface IAnnotatingElement : IElement /// [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] - List QueryAnnotation(); + List annotation { get; } /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -64,7 +64,7 @@ public partial interface IAnnotatingElement : IElement [Property(xmiId: "_19_0_4_12e503d9_1703019570915_375100_18", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List QueryOwnedAnnotatingRelationship(); + List ownedAnnotatingRelationship { get; } /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -72,7 +72,7 @@ public partial interface IAnnotatingElement : IElement [Property(xmiId: "_2022x_2_12e503d9_1735188506571_308678_376", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] - IAnnotation QueryOwningAnnotatingRelationship(); + IAnnotation owningAnnotatingRelationship { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IAnnotation.cs b/SysML2.NET/Core/AutoGenPoco/IAnnotation.cs index 2c40f1d61..6cc10d339 100644 --- a/SysML2.NET/Core/AutoGenPoco/IAnnotation.cs +++ b/SysML2.NET/Core/AutoGenPoco/IAnnotation.cs @@ -53,7 +53,7 @@ public partial interface IAnnotation : IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1543094212714_638255_18408", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - IAnnotatingElement QueryAnnotatingElement(); + IAnnotatingElement annotatingElement { get; } /// /// The annotatingElement of this Annotation, when it is an ownedRelatedElement. @@ -61,7 +61,7 @@ public partial interface IAnnotation : IRelationship [Property(xmiId: "_2022x_2_12e503d9_1735188506571_384269_375", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_638255_18408")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_59873_43302")] - IAnnotatingElement QueryOwnedAnnotatingElement(); + IAnnotatingElement ownedAnnotatingElement { get; } /// /// The annotatedElement of this Annotation, when it is also the owningRelatedElement. @@ -69,7 +69,7 @@ public partial interface IAnnotation : IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594152527165_104456_2501", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_494140_18542")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] - IElement QueryOwningAnnotatedElement(); + IElement owningAnnotatedElement { get; } /// /// The annotatingElement of this Annotation, when it is the owningRelatedElement. @@ -77,7 +77,7 @@ public partial interface IAnnotation : IRelationship [Property(xmiId: "_19_0_4_12e503d9_1703019570939_266622_19", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_638255_18408")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] - IAnnotatingElement QueryOwningAnnotatingElement(); + IAnnotatingElement owningAnnotatingElement { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IAssertConstraintUsage.cs b/SysML2.NET/Core/AutoGenPoco/IAssertConstraintUsage.cs index f39b1f60d..86cf6280d 100644 --- a/SysML2.NET/Core/AutoGenPoco/IAssertConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IAssertConstraintUsage.cs @@ -77,7 +77,7 @@ public partial interface IAssertConstraintUsage : IConstraintUsage, IInvariant /// AssertConstraintUsage itself. /// [Property(xmiId: "_19_0_2_12e503d9_1581045158665_239617_9458", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IConstraintUsage QueryAssertedConstraint(); + IConstraintUsage assertedConstraint { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IAssignmentActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IAssignmentActionUsage.cs index 533d48149..6edf1136a 100644 --- a/SysML2.NET/Core/AutoGenPoco/IAssignmentActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IAssignmentActionUsage.cs @@ -77,7 +77,7 @@ public partial interface IAssignmentActionUsage : IActionUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624202269076_561550_3109", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - IFeature QueryReferent(); + IFeature referent { get; } /// /// The Expression whose value is an occurrence in the domain of the referent Feature, for which the @@ -85,13 +85,13 @@ public partial interface IAssignmentActionUsage : IActionUsage /// AssignmentActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624201786354_844501_2835", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IExpression QueryTargetArgument(); + IExpression targetArgument { get; } /// /// The Expression whose result is to be assigned to the referent Feature. /// [Property(xmiId: "_19_0_4_12e503d9_1624201792996_104394_2856", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IExpression QueryValueExpression(); + IExpression valueExpression { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IAssociation.cs b/SysML2.NET/Core/AutoGenPoco/IAssociation.cs index 5adb661f5..380b61fa3 100644 --- a/SysML2.NET/Core/AutoGenPoco/IAssociation.cs +++ b/SysML2.NET/Core/AutoGenPoco/IAssociation.cs @@ -52,7 +52,7 @@ public partial interface IAssociation : IClassifier, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1562477648742_24204_22901", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] - List QueryAssociationEnd(); + List associationEnd { get; } /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -60,7 +60,7 @@ public partial interface IAssociation : IClassifier, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] - List QueryRelatedType(); + List relatedType { get; } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -68,7 +68,7 @@ public partial interface IAssociation : IClassifier, IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594939013292_377668_3566", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - IType QuerySourceType(); + IType sourceType { get; } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the @@ -77,7 +77,7 @@ public partial interface IAssociation : IClassifier, IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594939237325_861933_3707", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] - List QueryTargetType(); + List targetType { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IAttributeUsage.cs b/SysML2.NET/Core/AutoGenPoco/IAttributeUsage.cs index 245fad1dc..fedf4a942 100644 --- a/SysML2.NET/Core/AutoGenPoco/IAttributeUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IAttributeUsage.cs @@ -78,14 +78,14 @@ public partial interface IAttributeUsage : IUsage /// [Property(xmiId: "_18_5_3_12e503d9_1565471811429_523492_20975", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] - List QueryAttributeDefinition(); + List attributeDefinition { get; } /// /// Always true for an AttributeUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624050661138_649455_27", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] - new bool QueryIsReference(); + new bool isReference { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IBehavior.cs b/SysML2.NET/Core/AutoGenPoco/IBehavior.cs index 71f4f3c49..ac5aa2328 100644 --- a/SysML2.NET/Core/AutoGenPoco/IBehavior.cs +++ b/SysML2.NET/Core/AutoGenPoco/IBehavior.cs @@ -51,14 +51,14 @@ public partial interface IBehavior : IClass /// [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] - List QueryParameter(); + List parameter { get; } /// /// The Steps that make up this Behavior. /// [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List QueryStep(); + List step { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IBooleanExpression.cs b/SysML2.NET/Core/AutoGenPoco/IBooleanExpression.cs index 4590b037a..a4490e926 100644 --- a/SysML2.NET/Core/AutoGenPoco/IBooleanExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IBooleanExpression.cs @@ -50,7 +50,7 @@ public partial interface IBooleanExpression : IExpression /// [Property(xmiId: "_19_0_2_12e503d9_1578025035149_386_969", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] - IPredicate QueryPredicate(); + IPredicate predicate { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ICalculationDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ICalculationDefinition.cs index 2fb907837..370453107 100644 --- a/SysML2.NET/Core/AutoGenPoco/ICalculationDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ICalculationDefinition.cs @@ -73,7 +73,7 @@ public partial interface ICalculationDefinition : IFunction, IActionDefinition [Property(xmiId: "_19_0_2_12e503d9_1588214479224_101961_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] - List QueryCalculation(); + List calculation { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ICalculationUsage.cs b/SysML2.NET/Core/AutoGenPoco/ICalculationUsage.cs index 5c499d5bc..98acbe7b4 100644 --- a/SysML2.NET/Core/AutoGenPoco/ICalculationUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ICalculationUsage.cs @@ -80,7 +80,7 @@ public partial interface ICalculationUsage : IExpression, IActionUsage [Property(xmiId: "_19_0_2_12e503d9_1588213526305_899324_302", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] - IFunction QueryCalculationDefinition(); + IFunction calculationDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ICaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ICaseDefinition.cs index 1f4c87309..56aa88908 100644 --- a/SysML2.NET/Core/AutoGenPoco/ICaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ICaseDefinition.cs @@ -74,14 +74,14 @@ public partial interface ICaseDefinition : ICalculationDefinition [Property(xmiId: "_19_0_4_12e503d9_1621464609772_382176_1612", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List QueryActorParameter(); + List actorParameter { get; } /// /// The RequirementUsage representing the objective of this CaseDefinition. /// [Property(xmiId: "_19_0_2_59601fc_1590259317710_27529_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - IRequirementUsage QueryObjectiveRequirement(); + IRequirementUsage objectiveRequirement { get; } /// /// The parameter of this CaseDefinition that represents its subject. @@ -89,7 +89,7 @@ public partial interface ICaseDefinition : ICalculationDefinition [Property(xmiId: "_19_0_2_12e503d9_1595189932946_106647_973", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - IUsage QuerySubjectParameter(); + IUsage subjectParameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ICaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/ICaseUsage.cs index 55a92dc96..034044dfe 100644 --- a/SysML2.NET/Core/AutoGenPoco/ICaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ICaseUsage.cs @@ -75,21 +75,21 @@ public partial interface ICaseUsage : ICalculationUsage [Property(xmiId: "_19_0_4_12e503d9_1621464633171_380461_1655", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List QueryActorParameter(); + List actorParameter { get; } /// /// The CaseDefinition that is the type of this CaseUsage. /// [Property(xmiId: "_19_0_2_59601fc_1590257465225_855208_512", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] - ICaseDefinition QueryCaseDefinition(); + ICaseDefinition caseDefinition { get; } /// /// The RequirementUsage representing the objective of this CaseUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1591138794257_404044_2145", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - IRequirementUsage QueryObjectiveRequirement(); + IRequirementUsage objectiveRequirement { get; } /// /// The parameter of this CaseUsage that represents its subject. @@ -97,7 +97,7 @@ public partial interface ICaseUsage : ICalculationUsage [Property(xmiId: "_19_0_2_12e503d9_1595190279083_51021_1128", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - IUsage QuerySubjectParameter(); + IUsage subjectParameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IClassifier.cs b/SysML2.NET/Core/AutoGenPoco/IClassifier.cs index 18432927e..4845a1903 100644 --- a/SysML2.NET/Core/AutoGenPoco/IClassifier.cs +++ b/SysML2.NET/Core/AutoGenPoco/IClassifier.cs @@ -53,7 +53,7 @@ public partial interface IClassifier : IType /// [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] - List QueryOwnedSubclassification(); + List ownedSubclassification { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IConcernUsage.cs b/SysML2.NET/Core/AutoGenPoco/IConcernUsage.cs index fecc5473e..f625d7d25 100644 --- a/SysML2.NET/Core/AutoGenPoco/IConcernUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IConcernUsage.cs @@ -77,7 +77,7 @@ public partial interface IConcernUsage : IRequirementUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617052514912_780627_2256", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1583000408905_769743_1223")] - IConcernDefinition QueryConcernDefinition(); + IConcernDefinition concernDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IConjugatedPortDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IConjugatedPortDefinition.cs index b0db19b0f..495d4b6af 100644 --- a/SysML2.NET/Core/AutoGenPoco/IConjugatedPortDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IConjugatedPortDefinition.cs @@ -76,7 +76,7 @@ public partial interface IConjugatedPortDefinition : IPortDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575484364017_387810_990", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] - IPortDefinition QueryOriginalPortDefinition(); + IPortDefinition originalPortDefinition { get; } /// /// The PortConjugation that is the ownedConjugator of this ConjugatedPortDefinition, linking it to its @@ -84,7 +84,7 @@ public partial interface IConjugatedPortDefinition : IPortDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575484344901_850046_947", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1575482646809_280165_440")] - IPortConjugation QueryOwnedPortConjugator(); + IPortConjugation ownedPortConjugator { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IConjugatedPortTyping.cs b/SysML2.NET/Core/AutoGenPoco/IConjugatedPortTyping.cs index bfdb210aa..81b0ebd2d 100644 --- a/SysML2.NET/Core/AutoGenPoco/IConjugatedPortTyping.cs +++ b/SysML2.NET/Core/AutoGenPoco/IConjugatedPortTyping.cs @@ -56,7 +56,7 @@ public partial interface IConjugatedPortTyping : IFeatureTyping /// The originalPortDefinition of the conjugatedPortDefinition of this ConjugatedPortTyping. /// [Property(xmiId: "_19_0_2_12e503d9_1577915013583_787601_133", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IPortDefinition QueryPortDefinition(); + IPortDefinition portDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IConjugation.cs b/SysML2.NET/Core/AutoGenPoco/IConjugation.cs index c83ffd73c..71dcf1b83 100644 --- a/SysML2.NET/Core/AutoGenPoco/IConjugation.cs +++ b/SysML2.NET/Core/AutoGenPoco/IConjugation.cs @@ -67,7 +67,7 @@ public partial interface IConjugation : IRelationship [Property(xmiId: "_19_0_2_12e503d9_1575482646809_778895_441", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490143_721644_299")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] - IType QueryOwningType(); + IType owningType { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IConnectionDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IConnectionDefinition.cs index 28d4eab4f..620f374d3 100644 --- a/SysML2.NET/Core/AutoGenPoco/IConnectionDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IConnectionDefinition.cs @@ -71,7 +71,7 @@ public partial interface IConnectionDefinition : IAssociationStructure, IPartDef /// [Property(xmiId: "_19_0_2_12e503d9_1591476421094_685440_682", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] - List QueryConnectionEnd(); + List connectionEnd { get; } /// /// A ConnectionDefinition always has isSufficient = true. diff --git a/SysML2.NET/Core/AutoGenPoco/IConnectionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IConnectionUsage.cs index a0a0b2b3a..9cb7ec337 100644 --- a/SysML2.NET/Core/AutoGenPoco/IConnectionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IConnectionUsage.cs @@ -81,7 +81,7 @@ public partial interface IConnectionUsage : IConnectorAsUsage, IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1594853499656_139435_802", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] - List QueryConnectionDefinition(); + List connectionDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IConnector.cs b/SysML2.NET/Core/AutoGenPoco/IConnector.cs index 3a0ecd1a8..ce70d5e2a 100644 --- a/SysML2.NET/Core/AutoGenPoco/IConnector.cs +++ b/SysML2.NET/Core/AutoGenPoco/IConnector.cs @@ -52,7 +52,7 @@ public partial interface IConnector : IFeature, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1533160674983_471497_43284", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] - List QueryAssociation(); + List association { get; } /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -61,7 +61,7 @@ public partial interface IConnector : IFeature, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] - List QueryConnectorEnd(); + List connectorEnd { get; } /// /// The innermost Type that is a common direct or indirect featuringType of the relatedFeatures, such @@ -69,7 +69,7 @@ public partial interface IConnector : IFeature, IRelationship /// checkConnectorTypeFeaturing constraint. /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IType QueryDefaultFeaturingType(); + IType defaultFeaturingType { get; } /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -77,7 +77,7 @@ public partial interface IConnector : IFeature, IRelationship /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] - List QueryRelatedFeature(); + List relatedFeature { get; } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -85,7 +85,7 @@ public partial interface IConnector : IFeature, IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594953058873_558253_3897", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - IFeature QuerySourceFeature(); + IFeature sourceFeature { get; } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -94,7 +94,7 @@ public partial interface IConnector : IFeature, IRelationship [Property(xmiId: "_19_0_2_12e503d9_1594953128207_991867_3946", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] - List QueryTargetFeature(); + List targetFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IConstraintUsage.cs b/SysML2.NET/Core/AutoGenPoco/IConstraintUsage.cs index 591c40070..661ac00b9 100644 --- a/SysML2.NET/Core/AutoGenPoco/IConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IConstraintUsage.cs @@ -79,7 +79,7 @@ public partial interface IConstraintUsage : IBooleanExpression, IOccurrenceUsage /// [Property(xmiId: "_19_0_2_12e503d9_1578067546711_751168_1745", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] - IPredicate QueryConstraintDefinition(); + IPredicate constraintDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ICrossSubsetting.cs b/SysML2.NET/Core/AutoGenPoco/ICrossSubsetting.cs index eabe2f47a..ec61188d7 100644 --- a/SysML2.NET/Core/AutoGenPoco/ICrossSubsetting.cs +++ b/SysML2.NET/Core/AutoGenPoco/ICrossSubsetting.cs @@ -67,7 +67,7 @@ public partial interface ICrossSubsetting : ISubsetting [Property(xmiId: "_19_0_4_b9102da_1689616916594_477020_278", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_236250_43311")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] - IFeature QueryCrossingFeature(); + IFeature crossingFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IDefinition.cs index 370dd4d71..ddb717bc8 100644 --- a/SysML2.NET/Core/AutoGenPoco/IDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IDefinition.cs @@ -79,7 +79,7 @@ public partial interface IDefinition : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1565495064714_974634_26150", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List QueryDirectedUsage(); + List directedUsage { get; } /// /// Whether this Definition is for a variation point or not. If true, then all the memberships of the @@ -93,49 +93,49 @@ public partial interface IDefinition : IClassifier /// [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] - List QueryOwnedAction(); + List ownedAction { get; } /// /// The AllocationUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] - List QueryOwnedAllocation(); + List ownedAllocation { get; } /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] - List QueryOwnedAnalysisCase(); + List ownedAnalysisCase { get; } /// /// The AttributeUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] - List QueryOwnedAttribute(); + List ownedAttribute { get; } /// /// The CalculationUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] - List QueryOwnedCalculation(); + List ownedCalculation { get; } /// /// The code>CaseUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] - List QueryOwnedCase(); + List ownedCase { get; } /// /// The ConcernUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] - List QueryOwnedConcern(); + List ownedConcern { get; } /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -144,105 +144,105 @@ public partial interface IDefinition : IClassifier /// [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] - List QueryOwnedConnection(); + List ownedConnection { get; } /// /// The ConstraintUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] - List QueryOwnedConstraint(); + List ownedConstraint { get; } /// /// The EnumerationUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] - List QueryOwnedEnumeration(); + List ownedEnumeration { get; } /// /// The FlowUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] - List QueryOwnedFlow(); + List ownedFlow { get; } /// /// The InterfaceUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] - List QueryOwnedInterface(); + List ownedInterface { get; } /// /// The ItemUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] - List QueryOwnedItem(); + List ownedItem { get; } /// /// The MetadataUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] - List QueryOwnedMetadata(); + List ownedMetadata { get; } /// /// The OccurrenceUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] - List QueryOwnedOccurrence(); + List ownedOccurrence { get; } /// /// The PartUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] - List QueryOwnedPart(); + List ownedPart { get; } /// /// The PortUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] - List QueryOwnedPort(); + List ownedPort { get; } /// /// The ReferenceUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] - List QueryOwnedReference(); + List ownedReference { get; } /// /// The RenderingUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] - List QueryOwnedRendering(); + List ownedRendering { get; } /// /// The RequirementUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] - List QueryOwnedRequirement(); + List ownedRequirement { get; } /// /// The StateUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] - List QueryOwnedState(); + List ownedState { get; } /// /// The TransitionUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] - List QueryOwnedTransition(); + List ownedTransition { get; } /// /// The Usages that are ownedFeatures of this Definition. @@ -250,42 +250,42 @@ public partial interface IDefinition : IClassifier [Property(xmiId: "_18_5_3_12e503d9_1565479686637_967933_23236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List QueryOwnedUsage(); + List ownedUsage { get; } /// /// The UseCaseUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] - List QueryOwnedUseCase(); + List ownedUseCase { get; } /// /// The VerificationCaseUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] - List QueryOwnedVerificationCase(); + List ownedVerificationCase { get; } /// /// The ViewUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] - List QueryOwnedView(); + List ownedView { get; } /// /// The ViewpointUsages that are ownedUsages of this Definition. /// [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] - List QueryOwnedViewpoint(); + List ownedViewpoint { get; } /// /// The Usages that are features of this Definition (not necessarily owned). /// [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List QueryUsage(); + List usage { get; } /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -293,7 +293,7 @@ public partial interface IDefinition : IClassifier /// [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List QueryVariant(); + List variant { get; } /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -302,7 +302,7 @@ public partial interface IDefinition : IClassifier /// [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] - List QueryVariantMembership(); + List variantMembership { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IDifferencing.cs b/SysML2.NET/Core/AutoGenPoco/IDifferencing.cs index 6bb262581..9494cdf9f 100644 --- a/SysML2.NET/Core/AutoGenPoco/IDifferencing.cs +++ b/SysML2.NET/Core/AutoGenPoco/IDifferencing.cs @@ -56,7 +56,7 @@ public partial interface IDifferencing : IRelationship [Property(xmiId: "_19_0_4_b9102da_1661871168453_175911_796", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - IType QueryTypeDifferenced(); + IType typeDifferenced { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IDisjoining.cs b/SysML2.NET/Core/AutoGenPoco/IDisjoining.cs index 3acc9d47a..1de5a4268 100644 --- a/SysML2.NET/Core/AutoGenPoco/IDisjoining.cs +++ b/SysML2.NET/Core/AutoGenPoco/IDisjoining.cs @@ -56,7 +56,7 @@ public partial interface IDisjoining : IRelationship [Property(xmiId: "_19_0_4_12e503d9_1627447519614_499771_371", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_955906_617")] - IType QueryOwningType(); + IType owningType { get; } /// /// Type asserted to be disjoint with the disjoiningType. diff --git a/SysML2.NET/Core/AutoGenPoco/IDocumentation.cs b/SysML2.NET/Core/AutoGenPoco/IDocumentation.cs index 9309c0554..4cddb8353 100644 --- a/SysML2.NET/Core/AutoGenPoco/IDocumentation.cs +++ b/SysML2.NET/Core/AutoGenPoco/IDocumentation.cs @@ -45,7 +45,7 @@ public partial interface IDocumentation : IComment [Property(xmiId: "_19_0_2_12e503d9_1594150061166_948466_1622", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_744477_17277")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594145755058_99428_86")] - IElement QueryDocumentedElement(); + IElement documentedElement { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IElement.cs b/SysML2.NET/Core/AutoGenPoco/IElement.cs index 60c6f7a70..f961d941a 100644 --- a/SysML2.NET/Core/AutoGenPoco/IElement.cs +++ b/SysML2.NET/Core/AutoGenPoco/IElement.cs @@ -69,7 +69,7 @@ public partial interface IElement [Property(xmiId: "_19_0_2_12e503d9_1594150061166_345630_1621", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] - List QueryDocumentation(); + List documentation { get; } /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -92,7 +92,7 @@ public partial interface IElement /// Whether this Element is contained in the ownership tree of a library model. /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool QueryIsLibraryElement(); + bool isLibraryElement { get; } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -101,7 +101,7 @@ public partial interface IElement /// null. /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string QueryName(); + string name { get; } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -110,14 +110,14 @@ public partial interface IElement [Property(xmiId: "_19_0_2_12e503d9_1594152527165_702130_2500", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] - List QueryOwnedAnnotation(); + List ownedAnnotation { get; } /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of /// this Element. /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryOwnedElement(); + List ownedElement { get; } /// /// The Relationships for which this Element is the owningRelatedElement. @@ -131,7 +131,7 @@ public partial interface IElement /// Element, if any. /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IElement QueryOwner(); + IElement owner { get; } /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -139,7 +139,7 @@ public partial interface IElement [Property(xmiId: "_18_5_3_12e503d9_1533160674972_622493_43236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] - IOwningMembership QueryOwningMembership(); + IOwningMembership owningMembership { get; } /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -147,7 +147,7 @@ public partial interface IElement /// [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] - INamespace QueryOwningNamespace(); + INamespace owningNamespace { get; } /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -165,7 +165,7 @@ public partial interface IElement /// then the qualifiedName is null for all such Elements other than the first. /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string QueryQualifiedName(); + string qualifiedName { get; } /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -174,7 +174,7 @@ public partial interface IElement /// when the declaredName is null. /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string QueryShortName(); + string shortName { get; } /// /// The TextualRepresentations that annotate this Element. @@ -182,7 +182,7 @@ public partial interface IElement [Property(xmiId: "_19_0_2_12e503d9_1594154758493_640290_3388", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] - List QueryTextualRepresentation(); + List textualRepresentation { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IElementFilterMembership.cs b/SysML2.NET/Core/AutoGenPoco/IElementFilterMembership.cs index ada6912fe..bf32e4f6f 100644 --- a/SysML2.NET/Core/AutoGenPoco/IElementFilterMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IElementFilterMembership.cs @@ -51,7 +51,7 @@ public partial interface IElementFilterMembership : IOwningMembership /// [Property(xmiId: "_19_0_4_12e503d9_1605762464250_876969_157", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] - IExpression QueryCondition(); + IExpression condition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IEndFeatureMembership.cs b/SysML2.NET/Core/AutoGenPoco/IEndFeatureMembership.cs index e463b8b8c..5b0a3834d 100644 --- a/SysML2.NET/Core/AutoGenPoco/IEndFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IEndFeatureMembership.cs @@ -47,7 +47,7 @@ public partial interface IEndFeatureMembership : IFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1625459277304_568293_5526", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - new IFeature QueryOwnedMemberFeature(); + new IFeature ownedMemberFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IEnumerationDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IEnumerationDefinition.cs index 04d7f90c5..418f0bb4a 100644 --- a/SysML2.NET/Core/AutoGenPoco/IEnumerationDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IEnumerationDefinition.cs @@ -72,7 +72,7 @@ public partial interface IEnumerationDefinition : IAttributeDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1606946634788_959145_265", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1590979457191_746167_951")] - List QueryEnumeratedValue(); + List enumeratedValue { get; } /// /// An EnumerationDefinition is considered semantically to be a variation whose allowed variants are its diff --git a/SysML2.NET/Core/AutoGenPoco/IEnumerationUsage.cs b/SysML2.NET/Core/AutoGenPoco/IEnumerationUsage.cs index fc6229252..3e31069cd 100644 --- a/SysML2.NET/Core/AutoGenPoco/IEnumerationUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IEnumerationUsage.cs @@ -71,7 +71,7 @@ public partial interface IEnumerationUsage : IAttributeUsage /// [Property(xmiId: "_19_0_4_12e503d9_1606946962858_570633_331", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565471811429_523492_20975")] - IEnumerationDefinition QueryEnumerationDefinition(); + IEnumerationDefinition enumerationDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IEventOccurrenceUsage.cs b/SysML2.NET/Core/AutoGenPoco/IEventOccurrenceUsage.cs index 9569a5a75..7e306afa5 100644 --- a/SysML2.NET/Core/AutoGenPoco/IEventOccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IEventOccurrenceUsage.cs @@ -78,14 +78,14 @@ public partial interface IEventOccurrenceUsage : IOccurrenceUsage /// EventOccurrenceUsage itself. /// [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IOccurrenceUsage QueryEventOccurrence(); + IOccurrenceUsage eventOccurrence { get; } /// /// Always true for an EventOccurrenceUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1672526906017_786343_306", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] - new bool QueryIsReference(); + new bool isReference { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IExhibitStateUsage.cs b/SysML2.NET/Core/AutoGenPoco/IExhibitStateUsage.cs index 1e0715cbd..044cd6104 100644 --- a/SysML2.NET/Core/AutoGenPoco/IExhibitStateUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IExhibitStateUsage.cs @@ -77,7 +77,7 @@ public partial interface IExhibitStateUsage : IStateUsage, IPerformActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1577070999039_688794_260", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1567740791820_867719_18017")] - IStateUsage QueryExhibitedState(); + IStateUsage exhibitedState { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IExpression.cs b/SysML2.NET/Core/AutoGenPoco/IExpression.cs index a14fdd309..77a7c7e64 100644 --- a/SysML2.NET/Core/AutoGenPoco/IExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IExpression.cs @@ -53,14 +53,14 @@ public partial interface IExpression : IStep /// [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] - IFunction QueryFunction(); + IFunction function { get; } /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, /// using metadata within the model. /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool QueryIsModelLevelEvaluable(); + bool isModelLevelEvaluable { get; } /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -70,7 +70,7 @@ public partial interface IExpression : IStep [Property(xmiId: "_19_0_2_12e503d9_1595188071574_902060_363", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] - IFeature QueryResult(); + IFeature result { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFeature.cs b/SysML2.NET/Core/AutoGenPoco/IFeature.cs index 4523e92b1..e736fa634 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFeature.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFeature.cs @@ -65,7 +65,7 @@ public partial interface IFeature : IType /// Feature in chainingFeatures, and so on, to values of the last Feature. /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - List QueryChainingFeature(); + List chainingFeature { get; } /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -74,7 +74,7 @@ public partial interface IFeature : IType /// owningType. /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IFeature QueryCrossFeature(); + IFeature crossFeature { get; } /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -90,13 +90,13 @@ public partial interface IFeature : IType [Property(xmiId: "_18_5_3_12e503d9_1563834516279_920295_20653", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] - IType QueryEndOwningType(); + IType endOwningType { get; } /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IFeature QueryFeatureTarget(); + IFeature featureTarget { get; } /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -105,7 +105,7 @@ public partial interface IFeature : IType /// featuringTypes of the chained Feature. /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryFeaturingType(); + List featuringType { get; } /// /// Whether the Feature is a composite feature of its featuringType. If so, the values of the Feature @@ -173,7 +173,7 @@ public partial interface IFeature : IType /// [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] - ICrossSubsetting QueryOwnedCrossSubsetting(); + ICrossSubsetting ownedCrossSubsetting { get; } /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -182,7 +182,7 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_4_b9102da_1622125589880_791465_72", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] - List QueryOwnedFeatureChaining(); + List ownedFeatureChaining { get; } /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -191,7 +191,7 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_4_b9102da_1653567738671_359235_43", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List QueryOwnedFeatureInverting(); + List ownedFeatureInverting { get; } /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -199,7 +199,7 @@ public partial interface IFeature : IType /// [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] - List QueryOwnedRedefinition(); + List ownedRedefinition { get; } /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -207,7 +207,7 @@ public partial interface IFeature : IType /// [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] - IReferenceSubsetting QueryOwnedReferenceSubsetting(); + IReferenceSubsetting ownedReferenceSubsetting { get; } /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -216,7 +216,7 @@ public partial interface IFeature : IType [Property(xmiId: "_18_5_3_12e503d9_1533160674970_472382_43221", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] - List QueryOwnedSubsetting(); + List ownedSubsetting { get; } /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -225,7 +225,7 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_4_12e503d9_1603905673975_310948_762", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List QueryOwnedTypeFeaturing(); + List ownedTypeFeaturing { get; } /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -234,14 +234,14 @@ public partial interface IFeature : IType [Property(xmiId: "_19_0_2_12e503d9_1596597427751_965862_42", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] - List QueryOwnedTyping(); + List ownedTyping { get; } /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] - IFeatureMembership QueryOwningFeatureMembership(); + IFeatureMembership owningFeatureMembership { get; } /// /// The Type that is the owningType of the owningFeatureMembership of this Feature. @@ -250,7 +250,7 @@ public partial interface IFeature : IType [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_297074_43308")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] - IType QueryOwningType(); + IType owningType { get; } /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -259,7 +259,7 @@ public partial interface IFeature : IType /// Feature. /// [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 QueryType(); + List type { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFeatureChainExpression.cs b/SysML2.NET/Core/AutoGenPoco/IFeatureChainExpression.cs index be369d927..654686c08 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFeatureChainExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFeatureChainExpression.cs @@ -59,7 +59,7 @@ public partial interface IFeatureChainExpression : IOperatorExpression /// [Property(xmiId: "_19_0_4_12e503d9_1645049897369_762611_49", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - IFeature QueryTargetFeature(); + IFeature targetFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFeatureChaining.cs b/SysML2.NET/Core/AutoGenPoco/IFeatureChaining.cs index 0ef11cd6a..4c64223cd 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFeatureChaining.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFeatureChaining.cs @@ -56,7 +56,7 @@ public partial interface IFeatureChaining : IRelationship [Property(xmiId: "_19_0_4_b9102da_1622125589880_897608_73", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - IFeature QueryFeatureChained(); + IFeature featureChained { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFeatureInverting.cs b/SysML2.NET/Core/AutoGenPoco/IFeatureInverting.cs index 9631195f1..3739211cc 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFeatureInverting.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFeatureInverting.cs @@ -64,7 +64,7 @@ public partial interface IFeatureInverting : IRelationship [Property(xmiId: "_19_0_4_b9102da_1653567738671_122613_44", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838862_842173_146")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] - IFeature QueryOwningFeature(); + IFeature owningFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFeatureMembership.cs b/SysML2.NET/Core/AutoGenPoco/IFeatureMembership.cs index 4ee9b4018..effbc9bea 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFeatureMembership.cs @@ -52,7 +52,7 @@ public partial interface IFeatureMembership : IOwningMembership /// [Property(xmiId: "_18_5_3_12e503d9_1533160674993_898044_43344", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] - IFeature QueryOwnedMemberFeature(); + IFeature ownedMemberFeature { get; } /// /// The Type that owns this FeatureMembership. @@ -60,7 +60,7 @@ public partial interface IFeatureMembership : IOwningMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674992_418504_43339", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] - IType QueryOwningType(); + IType owningType { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFeatureReferenceExpression.cs b/SysML2.NET/Core/AutoGenPoco/IFeatureReferenceExpression.cs index 610bc5abf..9b601bec7 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFeatureReferenceExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFeatureReferenceExpression.cs @@ -51,7 +51,7 @@ public partial interface IFeatureReferenceExpression : IExpression /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_848357_43185", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - IFeature QueryReferent(); + IFeature referent { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFeatureTyping.cs b/SysML2.NET/Core/AutoGenPoco/IFeatureTyping.cs index 7f0b0c26b..5e51ce4b2 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFeatureTyping.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFeatureTyping.cs @@ -50,7 +50,7 @@ public partial interface IFeatureTyping : ISpecialization [Property(xmiId: "_19_0_2_12e503d9_1596597427753_801746_43", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_13273_21101")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] - IFeature QueryOwningFeature(); + IFeature owningFeature { get; } /// /// The Type that is being applied by this FeatureTyping. diff --git a/SysML2.NET/Core/AutoGenPoco/IFeatureValue.cs b/SysML2.NET/Core/AutoGenPoco/IFeatureValue.cs index c74eebd49..02e084459 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFeatureValue.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFeatureValue.cs @@ -57,7 +57,7 @@ public partial interface IFeatureValue : IOwningMembership /// [Property(xmiId: "_19_0_2_12e503d9_1573079011690_119762_1724", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] - IFeature QueryFeatureWithValue(); + IFeature featureWithValue { get; } /// /// Whether this FeatureValue is a concrete specification of the bound or initial value of the @@ -77,7 +77,7 @@ public partial interface IFeatureValue : IOwningMembership /// [Property(xmiId: "_19_0_2_12e503d9_1573081851611_231043_3236", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] - IExpression QueryValue(); + IExpression value { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFlow.cs b/SysML2.NET/Core/AutoGenPoco/IFlow.cs index ea83f1bc0..7eeeaf1b9 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFlow.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFlow.cs @@ -53,7 +53,7 @@ public partial interface IFlow : IConnector, IStep /// [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] - List QueryFlowEnd(); + List flowEnd { get; } /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -62,34 +62,34 @@ public partial interface IFlow : IConnector, IStep [Property(xmiId: "_19_0_4_12e503d9_1661900477937_518125_727", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] - List QueryInteraction(); + List interaction { get; } /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). /// [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - IPayloadFeature QueryPayloadFeature(); + IPayloadFeature payloadFeature { get; } /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - List QueryPayloadType(); + List payloadType { get; } /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the /// Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - IFeature QuerySourceOutputFeature(); + IFeature sourceOutputFeature { get; } /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the /// Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - IFeature QueryTargetInputFeature(); + IFeature targetInputFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFlowDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IFlowDefinition.cs index 8c040b674..694372cc6 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFlowDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFlowDefinition.cs @@ -73,7 +73,7 @@ public partial interface IFlowDefinition : IInteraction, IActionDefinition /// [Property(xmiId: "_2022x_2_12e503d9_1733008492358_136366_19515", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] - List QueryFlowEnd(); + List flowEnd { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFlowUsage.cs b/SysML2.NET/Core/AutoGenPoco/IFlowUsage.cs index e5e0f6ced..7262bf7bf 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFlowUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFlowUsage.cs @@ -79,7 +79,7 @@ public partial interface IFlowUsage : IConnectorAsUsage, IFlow, IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1661892878973_977062_185", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1661900477937_518125_727")] - List QueryFlowDefinition(); + List flowDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IForLoopActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IForLoopActionUsage.cs index 1231caa65..49b09551e 100644 --- a/SysML2.NET/Core/AutoGenPoco/IForLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IForLoopActionUsage.cs @@ -77,7 +77,7 @@ public partial interface IForLoopActionUsage : ILoopActionUsage /// ForLoopAction::var. /// [Property(xmiId: "_19_0_4_12e503d9_1640325378400_227367_3662", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IReferenceUsage QueryLoopVariable(); + IReferenceUsage loopVariable { get; } /// /// The Expression whose result provides the sequence of values to which the loopVariable is set for @@ -85,7 +85,7 @@ public partial interface IForLoopActionUsage : ILoopActionUsage /// input parameter of this ForLoopActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624306920911_355291_5769", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IExpression QuerySeqArgument(); + IExpression seqArgument { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFramedConcernMembership.cs b/SysML2.NET/Core/AutoGenPoco/IFramedConcernMembership.cs index 25d07a837..b7cdbd8da 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFramedConcernMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFramedConcernMembership.cs @@ -58,7 +58,7 @@ public partial interface IFramedConcernMembership : IRequirementConstraintMember /// [Property(xmiId: "_19_0_4_12e503d9_1617120590170_490370_3748", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048366950_985767_426")] - IConcernUsage QueryOwnedConcern(); + IConcernUsage ownedConcern { get; } /// /// The ConcernUsage that is referenced through this FramedConcernMembership. It is the @@ -67,7 +67,7 @@ public partial interface IFramedConcernMembership : IRequirementConstraintMember /// [Property(xmiId: "_19_0_4_12e503d9_1617120658044_92083_3773", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1617118807597_77864_3544")] - IConcernUsage QueryReferencedConcern(); + IConcernUsage referencedConcern { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFunction.cs b/SysML2.NET/Core/AutoGenPoco/IFunction.cs index 455d74d90..ba58db06c 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFunction.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFunction.cs @@ -51,7 +51,7 @@ public partial interface IFunction : IBehavior /// [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] - List QueryExpression(); + List expression { get; } /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -61,7 +61,7 @@ public partial interface IFunction : IBehavior /// model-level evaluable. /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool QueryIsModelLevelEvaluable(); + bool isModelLevelEvaluable { get; } /// /// The object or value that is the result of evaluating the Function. @@ -69,7 +69,7 @@ public partial interface IFunction : IBehavior [Property(xmiId: "_18_5_3_12e503d9_1543948912268_88159_21323", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] - IFeature QueryResult(); + IFeature result { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IIfActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IIfActionUsage.cs index e5f637ae0..2947d01c2 100644 --- a/SysML2.NET/Core/AutoGenPoco/IIfActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IIfActionUsage.cs @@ -76,21 +76,21 @@ public partial interface IIfActionUsage : IActionUsage /// (optional) third parameter of the IfActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624203816178_273125_3723", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IActionUsage QueryElseAction(); + IActionUsage elseAction { get; } /// /// The Expression whose result determines whether the thenAction or (optionally) the elseAction is /// performed. It is the first parameter of the IfActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624203866872_328861_3821", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IExpression QueryIfArgument(); + IExpression ifArgument { get; } /// /// The ActionUsage that is to be performed if the result of the ifArgument is true. It is the second /// parameter of the IfActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624203835062_413118_3748", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IActionUsage QueryThenAction(); + IActionUsage thenAction { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IImport.cs b/SysML2.NET/Core/AutoGenPoco/IImport.cs index 7a4d9dd22..ad7fb55e9 100644 --- a/SysML2.NET/Core/AutoGenPoco/IImport.cs +++ b/SysML2.NET/Core/AutoGenPoco/IImport.cs @@ -51,7 +51,7 @@ public partial interface IImport : IRelationship /// of the importedMembership. For a NamespaceImport, it is the importedNamespace. /// [Property(xmiId: "_19_0_4_12e503d9_1668801846848_909736_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IElement QueryImportedElement(); + IElement importedElement { get; } /// /// The Namespace into which Memberships are imported by this Import, which must be the @@ -60,7 +60,7 @@ public partial interface IImport : IRelationship [Property(xmiId: "_18_5_3_12e503d9_1533160674974_548878_43248", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - INamespace QueryImportOwningNamespace(); + INamespace importOwningNamespace { get; } /// /// Whether to import memberships without regard to declared visibility. diff --git a/SysML2.NET/Core/AutoGenPoco/IIncludeUseCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/IIncludeUseCaseUsage.cs index 58ca14d5a..b48d25142 100644 --- a/SysML2.NET/Core/AutoGenPoco/IIncludeUseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IIncludeUseCaseUsage.cs @@ -78,7 +78,7 @@ public partial interface IIncludeUseCaseUsage : IUseCaseUsage, IPerformActionUsa /// [Property(xmiId: "_19_0_4_12e503d9_1621532149711_865323_1172", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1567740791820_867719_18017")] - IUseCaseUsage QueryUseCaseIncluded(); + IUseCaseUsage useCaseIncluded { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IInstantiationExpression.cs b/SysML2.NET/Core/AutoGenPoco/IInstantiationExpression.cs index 143352903..0b0fdc9c5 100644 --- a/SysML2.NET/Core/AutoGenPoco/IInstantiationExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IInstantiationExpression.cs @@ -54,14 +54,14 @@ public partial interface IInstantiationExpression : IExpression /// InstantiationExpression. /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryArgument(); + List argument { get; } /// /// The Type that is being instantiated. /// [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - IType QueryInstantiatedType(); + IType instantiatedType { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IInterfaceDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IInterfaceDefinition.cs index 1368bb60b..489d1b9e5 100644 --- a/SysML2.NET/Core/AutoGenPoco/IInterfaceDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IInterfaceDefinition.cs @@ -71,7 +71,7 @@ public partial interface IInterfaceDefinition : IConnectionDefinition /// [Property(xmiId: "_18_5_3_12e503d9_1565496234915_779221_26664", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591476421094_685440_682")] - List QueryInterfaceEnd(); + List interfaceEnd { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IInterfaceUsage.cs b/SysML2.NET/Core/AutoGenPoco/IInterfaceUsage.cs index fa88db87a..fb0230cd7 100644 --- a/SysML2.NET/Core/AutoGenPoco/IInterfaceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IInterfaceUsage.cs @@ -76,7 +76,7 @@ public partial interface IInterfaceUsage : IConnectionUsage /// [Property(xmiId: "_18_5_3_12e503d9_1565499418349_431355_28798", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594853499656_139435_802")] - List QueryInterfaceDefinition(); + List interfaceDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IIntersecting.cs b/SysML2.NET/Core/AutoGenPoco/IIntersecting.cs index 34434d134..af088c867 100644 --- a/SysML2.NET/Core/AutoGenPoco/IIntersecting.cs +++ b/SysML2.NET/Core/AutoGenPoco/IIntersecting.cs @@ -56,7 +56,7 @@ public partial interface IIntersecting : IRelationship [Property(xmiId: "_19_0_4_b9102da_1623242552145_149730_525", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - IType QueryTypeIntersected(); + IType typeIntersected { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IItemUsage.cs b/SysML2.NET/Core/AutoGenPoco/IItemUsage.cs index a39d43168..49afad723 100644 --- a/SysML2.NET/Core/AutoGenPoco/IItemUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IItemUsage.cs @@ -78,7 +78,7 @@ public partial interface IItemUsage : IOccurrenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] - List QueryItemDefinition(); + List itemDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ILoopActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ILoopActionUsage.cs index bfaa2eb88..3607212cd 100644 --- a/SysML2.NET/Core/AutoGenPoco/ILoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ILoopActionUsage.cs @@ -75,7 +75,7 @@ public partial interface ILoopActionUsage : IActionUsage /// LoopActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624203902575_509097_3869", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IActionUsage QueryBodyAction(); + IActionUsage bodyAction { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IMembership.cs b/SysML2.NET/Core/AutoGenPoco/IMembership.cs index 3bf8e58cf..b6ad92e6c 100644 --- a/SysML2.NET/Core/AutoGenPoco/IMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IMembership.cs @@ -57,7 +57,7 @@ public partial interface IMembership : IRelationship /// The elementId of the memberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - string QueryMemberElementId(); + string memberElementId { get; } /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -72,7 +72,7 @@ public partial interface IMembership : IRelationship [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_531296_43182")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - INamespace QueryMembershipOwningNamespace(); + INamespace membershipOwningNamespace { get; } /// /// The short name of the memberElement relative to the membershipOwningNamespace. diff --git a/SysML2.NET/Core/AutoGenPoco/IMetadataAccessExpression.cs b/SysML2.NET/Core/AutoGenPoco/IMetadataAccessExpression.cs index a56b86d4e..397f08faa 100644 --- a/SysML2.NET/Core/AutoGenPoco/IMetadataAccessExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IMetadataAccessExpression.cs @@ -53,7 +53,7 @@ public partial interface IMetadataAccessExpression : IExpression /// [Property(xmiId: "_19_0_4_12e503d9_1665514131655_247232_1341", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - IElement QueryReferencedElement(); + IElement referencedElement { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IMetadataFeature.cs b/SysML2.NET/Core/AutoGenPoco/IMetadataFeature.cs index 43d97b362..61ac14e82 100644 --- a/SysML2.NET/Core/AutoGenPoco/IMetadataFeature.cs +++ b/SysML2.NET/Core/AutoGenPoco/IMetadataFeature.cs @@ -50,7 +50,7 @@ public partial interface IMetadataFeature : IAnnotatingElement, IFeature /// [Property(xmiId: "_19_0_4_12e503d9_1606345564958_925589_327", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] - IMetaclass QueryMetaclass(); + IMetaclass metaclass { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IMetadataUsage.cs b/SysML2.NET/Core/AutoGenPoco/IMetadataUsage.cs index d964ac9d7..9ac4e630d 100644 --- a/SysML2.NET/Core/AutoGenPoco/IMetadataUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IMetadataUsage.cs @@ -78,7 +78,7 @@ public partial interface IMetadataUsage : IItemUsage, IMetadataFeature [Property(xmiId: "_19_0_4_12e503d9_1647727047674_847094_2563", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1606345564958_925589_327")] - IMetaclass QueryMetadataDefinition(); + IMetaclass metadataDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IMultiplicityRange.cs b/SysML2.NET/Core/AutoGenPoco/IMultiplicityRange.cs index 1a7c20163..de23b8dae 100644 --- a/SysML2.NET/Core/AutoGenPoco/IMultiplicityRange.cs +++ b/SysML2.NET/Core/AutoGenPoco/IMultiplicityRange.cs @@ -56,7 +56,7 @@ public partial interface IMultiplicityRange : IMultiplicity /// [Property(xmiId: "_19_0_2_12e503d9_1573095221994_519580_5095", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List QueryBound(); + List bound { get; } /// /// The Expression whose result provides the lower bound of the MultiplicityRange. If no lowerBound @@ -65,14 +65,14 @@ public partial interface IMultiplicityRange : IMultiplicity /// [Property(xmiId: "_19_0_2_12e503d9_1573094905677_801324_4744", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] - IExpression QueryLowerBound(); + IExpression lowerBound { get; } /// /// The Expression whose result is the upper bound of the MultiplicityRange. /// [Property(xmiId: "_19_0_2_12e503d9_1573094947427_797440_4796", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] - IExpression QueryUpperBound(); + IExpression upperBound { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/INamespace.cs b/SysML2.NET/Core/AutoGenPoco/INamespace.cs index b41c09b30..dd855bb26 100644 --- a/SysML2.NET/Core/AutoGenPoco/INamespace.cs +++ b/SysML2.NET/Core/AutoGenPoco/INamespace.cs @@ -52,21 +52,21 @@ public partial interface INamespace : IElement /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] - List QueryImportedMembership(); + List importedMembership { get; } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of /// the Namespace. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryMember(); + List member { get; } /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and /// importedMemberships. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] - List QueryMembership(); + List membership { get; } /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -75,7 +75,7 @@ public partial interface INamespace : IElement [Property(xmiId: "_18_5_3_12e503d9_1533160674974_746786_43247", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] - List QueryOwnedImport(); + List ownedImport { get; } /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -83,7 +83,7 @@ public partial interface INamespace : IElement /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - List QueryOwnedMember(); + List ownedMember { get; } /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -93,7 +93,7 @@ public partial interface INamespace : IElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List QueryOwnedMembership(); + List ownedMembership { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IObjectiveMembership.cs b/SysML2.NET/Core/AutoGenPoco/IObjectiveMembership.cs index 7d38ae188..bfa5347ba 100644 --- a/SysML2.NET/Core/AutoGenPoco/IObjectiveMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IObjectiveMembership.cs @@ -50,7 +50,7 @@ public partial interface IObjectiveMembership : IFeatureMembership /// [Property(xmiId: "_19_0_2_59601fc_1590258776804_538578_832", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - IRequirementUsage QueryOwnedObjectiveRequirement(); + IRequirementUsage ownedObjectiveRequirement { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IOccurrenceUsage.cs b/SysML2.NET/Core/AutoGenPoco/IOccurrenceUsage.cs index 67b597341..0ffda3c9e 100644 --- a/SysML2.NET/Core/AutoGenPoco/IOccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IOccurrenceUsage.cs @@ -75,7 +75,7 @@ public partial interface IOccurrenceUsage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] - IOccurrenceDefinition QueryIndividualDefinition(); + IOccurrenceDefinition individualDefinition { get; } /// /// Whether this OccurrenceUsage represents the usage of the specific individual represented by its @@ -91,7 +91,7 @@ public partial interface IOccurrenceUsage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] - List QueryOccurrenceDefinition(); + List occurrenceDefinition { get; } /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If diff --git a/SysML2.NET/Core/AutoGenPoco/IOwningMembership.cs b/SysML2.NET/Core/AutoGenPoco/IOwningMembership.cs index 89b5279e6..fb021341e 100644 --- a/SysML2.NET/Core/AutoGenPoco/IOwningMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IOwningMembership.cs @@ -48,28 +48,28 @@ public partial interface IOwningMembership : IMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674965_501750_43196", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_59873_43302")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] - IElement QueryOwnedMemberElement(); + IElement ownedMemberElement { get; } /// /// The elementId of the ownedMemberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] - string QueryOwnedMemberElementId(); + string ownedMemberElementId { get; } /// /// The name of the ownedMemberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] - string QueryOwnedMemberName(); + string ownedMemberName { get; } /// /// The shortName of the ownedMemberElement. /// [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] - string QueryOwnedMemberShortName(); + string ownedMemberShortName { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IPackage.cs b/SysML2.NET/Core/AutoGenPoco/IPackage.cs index e0b5d8b0b..d87d681da 100644 --- a/SysML2.NET/Core/AutoGenPoco/IPackage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IPackage.cs @@ -49,7 +49,7 @@ public partial interface IPackage : INamespace /// [Property(xmiId: "_19_0_4_12e503d9_1607033896050_867332_6206", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List QueryFilterCondition(); + List filterCondition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IParameterMembership.cs b/SysML2.NET/Core/AutoGenPoco/IParameterMembership.cs index 36e744e4c..8f747260d 100644 --- a/SysML2.NET/Core/AutoGenPoco/IParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IParameterMembership.cs @@ -50,7 +50,7 @@ public partial interface IParameterMembership : IFeatureMembership /// [Property(xmiId: "_18_5_3_12e503d9_1557528016548_548098_110830", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - IFeature QueryOwnedMemberParameter(); + IFeature ownedMemberParameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IPartUsage.cs b/SysML2.NET/Core/AutoGenPoco/IPartUsage.cs index f2528af30..ca0904a67 100644 --- a/SysML2.NET/Core/AutoGenPoco/IPartUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IPartUsage.cs @@ -75,7 +75,7 @@ public partial interface IPartUsage : IItemUsage /// [Property(xmiId: "_19_0_2_12e503d9_1591475180488_929065_121", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] - List QueryPartDefinition(); + List partDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IPerformActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IPerformActionUsage.cs index 80a45ad25..a4ab1cd6f 100644 --- a/SysML2.NET/Core/AutoGenPoco/IPerformActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IPerformActionUsage.cs @@ -77,7 +77,7 @@ public partial interface IPerformActionUsage : IActionUsage, IEventOccurrenceUsa /// [Property(xmiId: "_19_0_2_12e503d9_1567740791820_867719_18017", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622831790393_676695_195")] - IActionUsage QueryPerformedAction(); + IActionUsage performedAction { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IPortConjugation.cs b/SysML2.NET/Core/AutoGenPoco/IPortConjugation.cs index 55f72ede0..6a20e5600 100644 --- a/SysML2.NET/Core/AutoGenPoco/IPortConjugation.cs +++ b/SysML2.NET/Core/AutoGenPoco/IPortConjugation.cs @@ -50,7 +50,7 @@ public partial interface IPortConjugation : IConjugation /// [Property(xmiId: "_19_0_2_12e503d9_1575484344899_880331_946", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1575482646809_778895_441")] - IConjugatedPortDefinition QueryConjugatedPortDefinition(); + IConjugatedPortDefinition conjugatedPortDefinition { get; } /// /// The PortDefinition being conjugated. diff --git a/SysML2.NET/Core/AutoGenPoco/IPortDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IPortDefinition.cs index 6baff0598..aefec5e2e 100644 --- a/SysML2.NET/Core/AutoGenPoco/IPortDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IPortDefinition.cs @@ -72,7 +72,7 @@ public partial interface IPortDefinition : IOccurrenceDefinition, IStructure /// [Property(xmiId: "_19_0_2_12e503d9_1575484364015_206236_989", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - IConjugatedPortDefinition QueryConjugatedPortDefinition(); + IConjugatedPortDefinition conjugatedPortDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IPortUsage.cs b/SysML2.NET/Core/AutoGenPoco/IPortUsage.cs index b3636417c..481b570d4 100644 --- a/SysML2.NET/Core/AutoGenPoco/IPortUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IPortUsage.cs @@ -73,7 +73,7 @@ public partial interface IPortUsage : IOccurrenceUsage /// [Property(xmiId: "_18_5_3_12e503d9_1565492740124_880100_25026", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] - List QueryPortDefinition(); + List portDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IReferenceSubsetting.cs b/SysML2.NET/Core/AutoGenPoco/IReferenceSubsetting.cs index 0830c2f33..4987db673 100644 --- a/SysML2.NET/Core/AutoGenPoco/IReferenceSubsetting.cs +++ b/SysML2.NET/Core/AutoGenPoco/IReferenceSubsetting.cs @@ -59,7 +59,7 @@ public partial interface IReferenceSubsetting : ISubsetting [Property(xmiId: "_19_0_4_12e503d9_1661555161575_539076_256", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_236250_43311")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] - IFeature QueryReferencingFeature(); + IFeature referencingFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IReferenceUsage.cs b/SysML2.NET/Core/AutoGenPoco/IReferenceUsage.cs index b890dff69..cfda3e24b 100644 --- a/SysML2.NET/Core/AutoGenPoco/IReferenceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IReferenceUsage.cs @@ -74,7 +74,7 @@ public partial interface IReferenceUsage : IUsage /// [Property(xmiId: "_19_0_4_12e503d9_1624035133434_200283_41434", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] - new bool QueryIsReference(); + new bool isReference { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IRelationship.cs b/SysML2.NET/Core/AutoGenPoco/IRelationship.cs index ac6be62a5..35316a4ee 100644 --- a/SysML2.NET/Core/AutoGenPoco/IRelationship.cs +++ b/SysML2.NET/Core/AutoGenPoco/IRelationship.cs @@ -76,7 +76,7 @@ public partial interface IRelationship : IElement /// Elements of the Relationship. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] - List QueryRelatedElement(); + List relatedElement { get; } /// /// The relatedElements from which this Relationship is considered to be directed. diff --git a/SysML2.NET/Core/AutoGenPoco/IRenderingDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IRenderingDefinition.cs index ab308ac8e..8aec217f3 100644 --- a/SysML2.NET/Core/AutoGenPoco/IRenderingDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IRenderingDefinition.cs @@ -70,7 +70,7 @@ public partial interface IRenderingDefinition : IPartDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1596741367270_249607_6373", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List QueryRendering(); + List rendering { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IRenderingUsage.cs b/SysML2.NET/Core/AutoGenPoco/IRenderingUsage.cs index 9594d3bbb..cdbe13a8f 100644 --- a/SysML2.NET/Core/AutoGenPoco/IRenderingUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IRenderingUsage.cs @@ -74,7 +74,7 @@ public partial interface IRenderingUsage : IPartUsage /// [Property(xmiId: "_19_0_2_12e503d9_1596741320785_268295_6306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591475180488_929065_121")] - IRenderingDefinition QueryRenderingDefinition(); + IRenderingDefinition renderingDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IRequirementConstraintMembership.cs b/SysML2.NET/Core/AutoGenPoco/IRequirementConstraintMembership.cs index 14c45116b..198ac06b1 100644 --- a/SysML2.NET/Core/AutoGenPoco/IRequirementConstraintMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IRequirementConstraintMembership.cs @@ -57,7 +57,7 @@ public partial interface IRequirementConstraintMembership : IFeatureMembership /// [Property(xmiId: "_19_0_2_12e503d9_1584048366950_985767_426", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - IConstraintUsage QueryOwnedConstraint(); + IConstraintUsage ownedConstraint { get; } /// /// The ConstraintUsage that is referenced through this RequirementConstraintMembership. It is the @@ -65,7 +65,7 @@ public partial interface IRequirementConstraintMembership : IFeatureMembership /// otherwise, the ownedConstraint itself. /// [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IConstraintUsage QueryReferencedConstraint(); + IConstraintUsage referencedConstraint { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IRequirementDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IRequirementDefinition.cs index bb38d9834..98a6231e2 100644 --- a/SysML2.NET/Core/AutoGenPoco/IRequirementDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IRequirementDefinition.cs @@ -74,7 +74,7 @@ public partial interface IRequirementDefinition : IConstraintDefinition [Property(xmiId: "_19_0_4_12e503d9_1621564041941_652319_2722", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List QueryActorParameter(); + List actorParameter { get; } /// /// The owned ConstraintUsages that represent assumptions of this RequirementDefinition, which are the @@ -83,7 +83,7 @@ public partial interface IRequirementDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1583376806647_629021_133", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List QueryAssumedConstraint(); + List assumedConstraint { get; } /// /// The ConcernUsages framed by this RequirementDefinition, which are the ownedConcerns of all @@ -91,7 +91,7 @@ public partial interface IRequirementDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1617116733499_587735_3242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583376932997_792124_158")] - List QueryFramedConcern(); + List framedConcern { get; } /// /// An optional modeler-specified identifier for this RequirementDefinition (used, e.g., to link it to @@ -109,7 +109,7 @@ public partial interface IRequirementDefinition : IConstraintDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1583376932997_792124_158", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List QueryRequiredConstraint(); + List requiredConstraint { get; } /// /// The parameters of this RequirementDefinition that represent stakeholders for th requirement. @@ -117,7 +117,7 @@ public partial interface IRequirementDefinition : IConstraintDefinition [Property(xmiId: "_19_0_4_12e503d9_1624033010374_29375_40166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List QueryStakeholderParameter(); + List stakeholderParameter { get; } /// /// The parameter of this RequirementDefinition that represents its subject. @@ -125,14 +125,14 @@ public partial interface IRequirementDefinition : IConstraintDefinition [Property(xmiId: "_19_0_2_12e503d9_1595189007408_784255_586", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - IUsage QuerySubjectParameter(); + IUsage subjectParameter { get; } /// /// An optional textual statement of the requirement represented by this RequirementDefinition, derived /// from the bodies of the documentation of the RequirementDefinition. /// [Property(xmiId: "_19_0_2_12e503d9_1583376433122_189839_94", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryText(); + List text { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IRequirementUsage.cs b/SysML2.NET/Core/AutoGenPoco/IRequirementUsage.cs index 404659630..9ae8835df 100644 --- a/SysML2.NET/Core/AutoGenPoco/IRequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IRequirementUsage.cs @@ -75,7 +75,7 @@ public partial interface IRequirementUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1621564075474_350859_2735", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List QueryActorParameter(); + List actorParameter { get; } /// /// The owned ConstraintUsages that represent assumptions of this RequirementUsage, derived as the @@ -84,7 +84,7 @@ public partial interface IRequirementUsage : IConstraintUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List QueryAssumedConstraint(); + List assumedConstraint { get; } /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -92,7 +92,7 @@ public partial interface IRequirementUsage : IConstraintUsage /// [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] - List QueryFramedConcern(); + List framedConcern { get; } /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -110,14 +110,14 @@ public partial interface IRequirementUsage : IConstraintUsage /// [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List QueryRequiredConstraint(); + List requiredConstraint { get; } /// /// The RequirementDefinition that is the single definition of this RequirementUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1583000408905_769743_1223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] - IRequirementDefinition QueryRequirementDefinition(); + IRequirementDefinition requirementDefinition { get; } /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -125,7 +125,7 @@ public partial interface IRequirementUsage : IConstraintUsage [Property(xmiId: "_19_0_4_12e503d9_1624032823963_328647_40107", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List QueryStakeholderParameter(); + List stakeholderParameter { get; } /// /// The parameter of this RequirementUsage that represents its subject. @@ -133,14 +133,14 @@ public partial interface IRequirementUsage : IConstraintUsage [Property(xmiId: "_19_0_2_12e503d9_1595189397261_941898_844", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - IUsage QuerySubjectParameter(); + IUsage subjectParameter { get; } /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from /// the bodies of the documentation of the RequirementUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryText(); + List text { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IRequirementVerificationMembership.cs b/SysML2.NET/Core/AutoGenPoco/IRequirementVerificationMembership.cs index 8332fa19f..5e024a449 100644 --- a/SysML2.NET/Core/AutoGenPoco/IRequirementVerificationMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IRequirementVerificationMembership.cs @@ -61,7 +61,7 @@ public partial interface IRequirementVerificationMembership : IRequirementConstr /// [Property(xmiId: "_19_0_4_12e503d9_1603921329650_612380_147", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048366950_985767_426")] - IRequirementUsage QueryOwnedRequirement(); + IRequirementUsage ownedRequirement { get; } /// /// The RequirementUsage that is identified as being verified. It is the referencedConstraint of the @@ -70,7 +70,7 @@ public partial interface IRequirementVerificationMembership : IRequirementConstr /// [Property(xmiId: "_19_0_4_12e503d9_1603921870169_98378_309", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1617118807597_77864_3544")] - IRequirementUsage QueryVerifiedRequirement(); + IRequirementUsage verifiedRequirement { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IResultExpressionMembership.cs b/SysML2.NET/Core/AutoGenPoco/IResultExpressionMembership.cs index 08c12b93c..1d14b4618 100644 --- a/SysML2.NET/Core/AutoGenPoco/IResultExpressionMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IResultExpressionMembership.cs @@ -51,7 +51,7 @@ public partial interface IResultExpressionMembership : IFeatureMembership /// [Property(xmiId: "_19_0_2_12e503d9_1594868945944_989058_2545", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - IExpression QueryOwnedResultExpression(); + IExpression ownedResultExpression { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ISatisfyRequirementUsage.cs b/SysML2.NET/Core/AutoGenPoco/ISatisfyRequirementUsage.cs index 081d03695..058aac03a 100644 --- a/SysML2.NET/Core/AutoGenPoco/ISatisfyRequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ISatisfyRequirementUsage.cs @@ -79,14 +79,14 @@ public partial interface ISatisfyRequirementUsage : IRequirementUsage, IAssertCo /// [Property(xmiId: "_19_0_2_12e503d9_1583185037725_699150_2332", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1581045158665_239617_9458")] - IRequirementUsage QuerySatisfiedRequirement(); + IRequirementUsage satisfiedRequirement { get; } /// /// The Feature that represents the actual subject that is asserted to satisfy the satisfiedRequirement. /// The satisfyingFeature is bound to the subjectParameter of the SatisfyRequirementUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1583378847285_929988_1396", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IFeature QuerySatisfyingFeature(); + IFeature satisfyingFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ISendActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ISendActionUsage.cs index 597205463..3d51c6ff6 100644 --- a/SysML2.NET/Core/AutoGenPoco/ISendActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ISendActionUsage.cs @@ -78,19 +78,19 @@ public partial interface ISendActionUsage : IActionUsage /// An Expression whose result is bound to the payload input parameter of this SendActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1612814399422_336683_143", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IExpression QueryPayloadArgument(); + IExpression payloadArgument { get; } /// /// An Expression whose result is bound to the receiver input parameter of this SendActionUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1567742374932_10504_18141", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IExpression QueryReceiverArgument(); + IExpression receiverArgument { get; } /// /// An Expression whose result is bound to the sender input parameter of this SendActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1665504224536_894018_944", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IExpression QuerySenderArgument(); + IExpression senderArgument { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ISpecialization.cs b/SysML2.NET/Core/AutoGenPoco/ISpecialization.cs index acd45ff98..308660add 100644 --- a/SysML2.NET/Core/AutoGenPoco/ISpecialization.cs +++ b/SysML2.NET/Core/AutoGenPoco/ISpecialization.cs @@ -55,7 +55,7 @@ public partial interface ISpecialization : IRelationship [Property(xmiId: "_18_5_3_12e503d9_1533160674971_573157_43226", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] - IType QueryOwningType(); + IType owningType { get; } /// /// A Type with a subset of all instances of the general Type, which might be the same set. diff --git a/SysML2.NET/Core/AutoGenPoco/IStakeholderMembership.cs b/SysML2.NET/Core/AutoGenPoco/IStakeholderMembership.cs index c02b05da6..d1851328a 100644 --- a/SysML2.NET/Core/AutoGenPoco/IStakeholderMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IStakeholderMembership.cs @@ -52,7 +52,7 @@ public partial interface IStakeholderMembership : IParameterMembership /// [Property(xmiId: "_19_0_4_12e503d9_1624034451301_6622_40822", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528016548_548098_110830")] - IPartUsage QueryOwnedStakeholderParameter(); + IPartUsage ownedStakeholderParameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IStateDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IStateDefinition.cs index e5a51eadf..7116477ee 100644 --- a/SysML2.NET/Core/AutoGenPoco/IStateDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IStateDefinition.cs @@ -74,7 +74,7 @@ public partial interface IStateDefinition : IActionDefinition /// StateSubactionMembership with kind = do. /// [Property(xmiId: "_19_0_2_12e503d9_1582975916386_388324_339", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IActionUsage QueryDoAction(); + IActionUsage doAction { get; } /// /// The ActionUsage of this StateDefinition to be performed on entry to the state defined by the @@ -82,7 +82,7 @@ public partial interface IStateDefinition : IActionDefinition /// StateSubactionMembership with kind = entry. /// [Property(xmiId: "_19_0_2_12e503d9_1582975902339_513804_312", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IActionUsage QueryEntryAction(); + IActionUsage entryAction { get; } /// /// The ActionUsage of this StateDefinition to be performed on exit to the state defined by the @@ -90,7 +90,7 @@ public partial interface IStateDefinition : IActionDefinition /// StateSubactionMembership with kind = exit. /// [Property(xmiId: "_19_0_2_12e503d9_1582975927011_696894_352", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IActionUsage QueryExitAction(); + IActionUsage exitAction { get; } /// /// Whether the ownedStates of this StateDefinition are to all be performed in parallel. If true, none @@ -106,7 +106,7 @@ public partial interface IStateDefinition : IActionDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1575588190693_949879_1156", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] - List QueryState(); + List state { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IStateSubactionMembership.cs b/SysML2.NET/Core/AutoGenPoco/IStateSubactionMembership.cs index 85142e1ab..e02f0f39a 100644 --- a/SysML2.NET/Core/AutoGenPoco/IStateSubactionMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IStateSubactionMembership.cs @@ -51,7 +51,7 @@ public partial interface IStateSubactionMembership : IFeatureMembership /// [Property(xmiId: "_19_0_2_12e503d9_1582974847979_606181_96", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - IActionUsage QueryAction(); + IActionUsage action { get; } /// /// Whether this StateSubactionMembership is for an entry, do or exit ActionUsage. diff --git a/SysML2.NET/Core/AutoGenPoco/IStateUsage.cs b/SysML2.NET/Core/AutoGenPoco/IStateUsage.cs index d0ac5dcab..f30b16702 100644 --- a/SysML2.NET/Core/AutoGenPoco/IStateUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IStateUsage.cs @@ -77,7 +77,7 @@ public partial interface IStateUsage : IActionUsage /// with kind = do. /// [Property(xmiId: "_19_0_2_12e503d9_1582976255473_203238_644", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IActionUsage QueryDoAction(); + IActionUsage doAction { get; } /// /// The ActionUsage of this StateUsage to be performed on entry to the state defined by the @@ -85,7 +85,7 @@ public partial interface IStateUsage : IActionUsage /// with kind = entry. /// [Property(xmiId: "_19_0_2_12e503d9_1582976239200_979652_605", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IActionUsage QueryEntryAction(); + IActionUsage entryAction { get; } /// /// The ActionUsage of this StateUsage to be performed on exit to the state defined by the @@ -93,7 +93,7 @@ public partial interface IStateUsage : IActionUsage /// with kind = exit. /// [Property(xmiId: "_19_0_2_12e503d9_1582976283940_998741_691", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IActionUsage QueryExitAction(); + IActionUsage exitAction { get; } /// /// Whether the nestedStates of this StateUsage are to all be performed in parallel. If true, none of @@ -109,7 +109,7 @@ public partial interface IStateUsage : IActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1575588456737_49200_1438", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] - List QueryStateDefinition(); + List stateDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IStep.cs b/SysML2.NET/Core/AutoGenPoco/IStep.cs index 61119e8d0..888a555b5 100644 --- a/SysML2.NET/Core/AutoGenPoco/IStep.cs +++ b/SysML2.NET/Core/AutoGenPoco/IStep.cs @@ -51,7 +51,7 @@ public partial interface IStep : IFeature /// [Property(xmiId: "_18_5_3_b9102da_1536346315176_954314_17388", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] - List QueryBehavior(); + List behavior { get; } /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -59,7 +59,7 @@ public partial interface IStep : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] - List QueryParameter(); + List parameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ISubclassification.cs b/SysML2.NET/Core/AutoGenPoco/ISubclassification.cs index 3485c7513..010c26727 100644 --- a/SysML2.NET/Core/AutoGenPoco/ISubclassification.cs +++ b/SysML2.NET/Core/AutoGenPoco/ISubclassification.cs @@ -47,7 +47,7 @@ public partial interface ISubclassification : ISpecialization /// [Property(xmiId: "_18_5_3_12e503d9_1543189170642_857401_25506", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] - IClassifier QueryOwningClassifier(); + IClassifier owningClassifier { get; } /// /// The more specific Classifier in this Subclassification. diff --git a/SysML2.NET/Core/AutoGenPoco/ISubjectMembership.cs b/SysML2.NET/Core/AutoGenPoco/ISubjectMembership.cs index 21d98f4b9..bac55bb68 100644 --- a/SysML2.NET/Core/AutoGenPoco/ISubjectMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ISubjectMembership.cs @@ -52,7 +52,7 @@ public partial interface ISubjectMembership : IParameterMembership /// [Property(xmiId: "_19_0_2_59601fc_1590258781117_655788_845", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528016548_548098_110830")] - IUsage QueryOwnedSubjectParameter(); + IUsage ownedSubjectParameter { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ISubsetting.cs b/SysML2.NET/Core/AutoGenPoco/ISubsetting.cs index c3317097c..06971a7e5 100644 --- a/SysML2.NET/Core/AutoGenPoco/ISubsetting.cs +++ b/SysML2.NET/Core/AutoGenPoco/ISubsetting.cs @@ -52,7 +52,7 @@ public partial interface ISubsetting : ISpecialization [Property(xmiId: "_18_5_3_12e503d9_1533160674987_236250_43311", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] - IFeature QueryOwningFeature(); + IFeature owningFeature { get; } /// /// The Feature that is subsetted by the subsettingFeature of this Subsetting. diff --git a/SysML2.NET/Core/AutoGenPoco/ITerminateActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ITerminateActionUsage.cs index d5659bd9c..d4a72a8f1 100644 --- a/SysML2.NET/Core/AutoGenPoco/ITerminateActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ITerminateActionUsage.cs @@ -78,7 +78,7 @@ public partial interface ITerminateActionUsage : IActionUsage /// TerminateActionUsage. /// [Property(xmiId: "_2022x_2_12e503d9_1724451750939_948290_107", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IExpression QueryTerminatedOccurrenceArgument(); + IExpression terminatedOccurrenceArgument { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ITextualRepresentation.cs b/SysML2.NET/Core/AutoGenPoco/ITextualRepresentation.cs index d5d83c9ac..216f19d6a 100644 --- a/SysML2.NET/Core/AutoGenPoco/ITextualRepresentation.cs +++ b/SysML2.NET/Core/AutoGenPoco/ITextualRepresentation.cs @@ -80,7 +80,7 @@ public partial interface ITextualRepresentation : IAnnotatingElement [Property(xmiId: "_19_0_2_12e503d9_1594154758494_414887_3389", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_744477_17277")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594145755058_99428_86")] - IElement QueryRepresentedElement(); + IElement representedElement { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ITransitionFeatureMembership.cs b/SysML2.NET/Core/AutoGenPoco/ITransitionFeatureMembership.cs index f6c9ec69a..e29816a39 100644 --- a/SysML2.NET/Core/AutoGenPoco/ITransitionFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ITransitionFeatureMembership.cs @@ -58,7 +58,7 @@ public partial interface ITransitionFeatureMembership : IFeatureMembership /// [Property(xmiId: "_19_0_2_12e503d9_1582975046568_736161_148", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - IStep QueryTransitionFeature(); + IStep transitionFeature { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ITransitionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ITransitionUsage.cs index 5ccec36c7..5d64bbd4d 100644 --- a/SysML2.NET/Core/AutoGenPoco/ITransitionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ITransitionUsage.cs @@ -82,7 +82,7 @@ public partial interface ITransitionUsage : IActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1581029782522_542070_6299", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List QueryEffectAction(); + List effectAction { get; } /// /// The Expressions that define the guards of this TransitionUsage, which are the ownedFeatures of the @@ -91,14 +91,14 @@ public partial interface ITransitionUsage : IActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1581029720824_747691_6254", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List QueryGuardExpression(); + List guardExpression { get; } /// /// The source ActionUsage of this TransitionUsage, which becomes the source of the succession for the /// TransitionUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1581029439311_947395_6114", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IActionUsage QuerySource(); + IActionUsage source { get; } /// /// The Succession that is the ownedFeature of this TransitionUsage, which, if the TransitionUsage is @@ -106,14 +106,14 @@ public partial interface ITransitionUsage : IActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1581030490131_304332_6364", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - ISuccession QuerySuccession(); + ISuccession succession { get; } /// /// The target ActionUsage of this TransitionUsage, which is the targetFeature of the succession for the /// TransitionUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1581029493366_130491_6153", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IActionUsage QueryTarget(); + IActionUsage target { get; } /// /// The AcceptActionUsages that define the triggers of this TransitionUsage, which are the ownedFeatures @@ -122,7 +122,7 @@ public partial interface ITransitionUsage : IActionUsage /// [Property(xmiId: "_19_0_2_12e503d9_1581029662256_985457_6209", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List QueryTriggerAction(); + List triggerAction { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IType.cs b/SysML2.NET/Core/AutoGenPoco/IType.cs index 70f0029c3..6c77afefa 100644 --- a/SysML2.NET/Core/AutoGenPoco/IType.cs +++ b/SysML2.NET/Core/AutoGenPoco/IType.cs @@ -53,28 +53,28 @@ public partial interface IType : INamespace /// those of that sex are also interpretations of the Classifier for that sex). /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryDifferencingType(); + List differencingType { get; } /// /// The features of this Type that have a non-null direction. /// [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List QueryDirectedFeature(); + List directedFeature { get; } /// /// All features of this Type with isEnd = true. /// [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List QueryEndFeature(); + List endFeature { get; } /// /// The ownedMemberFeatures of the featureMemberships of this Type. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - List QueryFeature(); + List feature { get; } /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -82,14 +82,14 @@ public partial interface IType : INamespace /// importedMemberships). /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryFeatureMembership(); + List featureMembership { get; } /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. /// [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List QueryInheritedFeature(); + List inheritedFeature { get; } /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -97,14 +97,14 @@ public partial interface IType : INamespace /// [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] - List QueryInheritedMembership(); + List inheritedMembership { get; } /// /// All features related to this Type by FeatureMemberships that have direction in or inout. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] - List QueryInput(); + List input { get; } /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -116,7 +116,7 @@ public partial interface IType : INamespace /// also interpretations of the Classifier for that sex). /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryIntersectingType(); + List intersectingType { get; } /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -129,7 +129,7 @@ public partial interface IType : INamespace /// Indicates whether this Type has an ownedConjugator. /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool QueryIsConjugated(); + bool isConjugated { get; } /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -149,14 +149,14 @@ public partial interface IType : INamespace /// [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - IMultiplicity QueryMultiplicity(); + IMultiplicity multiplicity { get; } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] - List QueryOutput(); + List output { get; } /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -164,7 +164,7 @@ public partial interface IType : INamespace [Property(xmiId: "_19_0_2_12e503d9_1575482646809_280165_440", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - IConjugation QueryOwnedConjugator(); + IConjugation ownedConjugator { get; } /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -173,7 +173,7 @@ public partial interface IType : INamespace [Property(xmiId: "_19_0_4_b9102da_1661871168454_98082_797", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List QueryOwnedDifferencing(); + List ownedDifferencing { get; } /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -182,7 +182,7 @@ public partial interface IType : INamespace [Property(xmiId: "_19_0_4_12e503d9_1627447519613_145554_370", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] - List QueryOwnedDisjoining(); + List ownedDisjoining { get; } /// /// All endFeatures of this Type that are ownedFeatures. @@ -190,14 +190,14 @@ public partial interface IType : INamespace [Property(xmiId: "_18_5_3_12e503d9_1563834516278_687758_20652", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] - List QueryOwnedEndFeature(); + List ownedEndFeature { get; } /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. /// [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List QueryOwnedFeature(); + List ownedFeature { get; } /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -206,7 +206,7 @@ public partial interface IType : INamespace [Property(xmiId: "_18_5_3_12e503d9_1533160674960_868417_43171", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] - List QueryOwnedFeatureMembership(); + List ownedFeatureMembership { get; } /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -214,7 +214,7 @@ public partial interface IType : INamespace [Property(xmiId: "_19_0_4_b9102da_1623242552144_910757_524", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] - List QueryOwnedIntersecting(); + List ownedIntersecting { get; } /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -223,7 +223,7 @@ public partial interface IType : INamespace [Property(xmiId: "_18_5_3_12e503d9_1533160674959_579676_43168", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] - List QueryOwnedSpecialization(); + List ownedSpecialization { get; } /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -231,7 +231,7 @@ public partial interface IType : INamespace [Property(xmiId: "_19_0_4_b9102da_1661869978505_968809_460", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] - List QueryOwnedUnioning(); + List ownedUnioning { get; } /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -241,7 +241,7 @@ public partial interface IType : INamespace /// same ways as people in general. /// [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 QueryUnioningType(); + List unioningType { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/ITypeFeaturing.cs b/SysML2.NET/Core/AutoGenPoco/ITypeFeaturing.cs index 66f9f843c..3b8b16dd2 100644 --- a/SysML2.NET/Core/AutoGenPoco/ITypeFeaturing.cs +++ b/SysML2.NET/Core/AutoGenPoco/ITypeFeaturing.cs @@ -62,7 +62,7 @@ public partial interface ITypeFeaturing : IRelationship [Property(xmiId: "_19_0_4_12e503d9_1603905673976_689994_763", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_912234_579")] - IFeature QueryOwningFeatureOfType(); + IFeature owningFeatureOfType { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IUnioning.cs b/SysML2.NET/Core/AutoGenPoco/IUnioning.cs index 046d3e8b7..ec0a43bcb 100644 --- a/SysML2.NET/Core/AutoGenPoco/IUnioning.cs +++ b/SysML2.NET/Core/AutoGenPoco/IUnioning.cs @@ -46,7 +46,7 @@ public partial interface IUnioning : IRelationship [Property(xmiId: "_19_0_4_b9102da_1661869978504_423347_459", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] - IType QueryTypeUnioned(); + IType typeUnioned { get; } /// /// Type that partly determines interpretations of typeUnioned, as described in Type::unioningType. diff --git a/SysML2.NET/Core/AutoGenPoco/IUsage.cs b/SysML2.NET/Core/AutoGenPoco/IUsage.cs index d037170b6..3ccdb0917 100644 --- a/SysML2.NET/Core/AutoGenPoco/IUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IUsage.cs @@ -78,7 +78,7 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] - List QueryDefinition(); + List definition { get; } /// /// The usages of this Usage that are directedFeatures. @@ -86,13 +86,13 @@ public partial interface IUsage : IFeature [Property(xmiId: "_19_0_2_12e503d9_1591217699198_66279_508", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List QueryDirectedUsage(); + List directedUsage { get; } /// /// Whether this Usage is a referential Usage, that is, it has isComposite = false. /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - bool QueryIsReference(); + bool isReference { get; } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -111,56 +111,56 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] - bool QueryMayTimeVary(); + bool mayTimeVary { get; } /// /// The ActionUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] - List QueryNestedAction(); + List nestedAction { get; } /// /// The AllocationUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] - List QueryNestedAllocation(); + List nestedAllocation { get; } /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] - List QueryNestedAnalysisCase(); + List nestedAnalysisCase { get; } /// /// The code>AttributeUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List QueryNestedAttribute(); + List nestedAttribute { get; } /// /// The CalculationUsage that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] - List QueryNestedCalculation(); + List nestedCalculation { get; } /// /// The CaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] - List QueryNestedCase(); + List nestedCase { get; } /// /// The ConcernUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] - List QueryNestedConcern(); + List nestedConcern { get; } /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -169,105 +169,105 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List QueryNestedConnection(); + List nestedConnection { get; } /// /// The ConstraintUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] - List QueryNestedConstraint(); + List nestedConstraint { get; } /// /// The code>EnumerationUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] - List QueryNestedEnumeration(); + List nestedEnumeration { get; } /// /// The code>FlowUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] - List QueryNestedFlow(); + List nestedFlow { get; } /// /// The InterfaceUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] - List QueryNestedInterface(); + List nestedInterface { get; } /// /// The ItemUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] - List QueryNestedItem(); + List nestedItem { get; } /// /// The MetadataUsages that are nestedUsages of this of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] - List QueryNestedMetadata(); + List nestedMetadata { get; } /// /// The OccurrenceUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List QueryNestedOccurrence(); + List nestedOccurrence { get; } /// /// The PartUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] - List QueryNestedPart(); + List nestedPart { get; } /// /// The PortUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List QueryNestedPort(); + List nestedPort { get; } /// /// The ReferenceUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List QueryNestedReference(); + List nestedReference { get; } /// /// The RenderingUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] - List QueryNestedRendering(); + List nestedRendering { get; } /// /// The RequirementUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] - List QueryNestedRequirement(); + List nestedRequirement { get; } /// /// The StateUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] - List QueryNestedState(); + List nestedState { get; } /// /// The TransitionUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] - List QueryNestedTransition(); + List nestedTransition { get; } /// /// The Usages that are ownedFeatures of this Usage. @@ -275,35 +275,35 @@ public partial interface IUsage : IFeature [Property(xmiId: "_18_5_3_12e503d9_1565472757327_162097_21259", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] - List QueryNestedUsage(); + List nestedUsage { get; } /// /// The UseCaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] - List QueryNestedUseCase(); + List nestedUseCase { get; } /// /// The VerificationCaseUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] - List QueryNestedVerificationCase(); + List nestedVerificationCase { get; } /// /// The ViewUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] - List QueryNestedView(); + List nestedView { get; } /// /// The ViewpointUsages that are nestedUsages of this Usage. /// [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] - List QueryNestedViewpoint(); + List nestedViewpoint { get; } /// /// The Definition that owns this Usage (if any). @@ -311,21 +311,21 @@ public partial interface IUsage : IFeature [Property(xmiId: "_18_5_3_12e503d9_1565479686638_420576_23237", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] - IDefinition QueryOwningDefinition(); + IDefinition owningDefinition { get; } /// /// The Usage in which this Usage is nested (if any). /// [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] - IUsage QueryOwningUsage(); + IUsage owningUsage { get; } /// /// The Usages that are features of this Usage (not necessarily owned). /// [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] - List QueryUsage(); + List usage { get; } /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -333,7 +333,7 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List QueryVariant(); + List variant { get; } /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -341,7 +341,7 @@ public partial interface IUsage : IFeature /// [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] - List QueryVariantMembership(); + List variantMembership { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IUseCaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IUseCaseDefinition.cs index e5028f87d..94cb35379 100644 --- a/SysML2.NET/Core/AutoGenPoco/IUseCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IUseCaseDefinition.cs @@ -73,7 +73,7 @@ public partial interface IUseCaseDefinition : ICaseDefinition /// IncludeUseCaseUsages owned by this UseCaseDefinition. /// [Property(xmiId: "_19_0_4_12e503d9_1621461043764_27_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryIncludedUseCase(); + List includedUseCase { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IUseCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/IUseCaseUsage.cs index f21c8b827..ed4a46b3e 100644 --- a/SysML2.NET/Core/AutoGenPoco/IUseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IUseCaseUsage.cs @@ -74,14 +74,14 @@ public partial interface IUseCaseUsage : ICaseUsage /// IncludeUseCaseUsages owned by this UseCaseUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1621545989647_997634_1855", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryIncludedUseCase(); + List includedUseCase { get; } /// /// The UseCaseDefinition that is the definition of this UseCaseUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1621460964889_804779_881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] - IUseCaseDefinition QueryUseCaseDefinition(); + IUseCaseDefinition useCaseDefinition { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IVariantMembership.cs b/SysML2.NET/Core/AutoGenPoco/IVariantMembership.cs index 97c00cb57..b9a7778e4 100644 --- a/SysML2.NET/Core/AutoGenPoco/IVariantMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IVariantMembership.cs @@ -49,7 +49,7 @@ public partial interface IVariantMembership : IOwningMembership /// [Property(xmiId: "_19_0_2_12e503d9_1590978683452_645414_775", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] - IUsage QueryOwnedVariantUsage(); + IUsage ownedVariantUsage { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IVerificationCaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IVerificationCaseDefinition.cs index 05d479541..b0114c34a 100644 --- a/SysML2.NET/Core/AutoGenPoco/IVerificationCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IVerificationCaseDefinition.cs @@ -72,7 +72,7 @@ public partial interface IVerificationCaseDefinition : ICaseDefinition /// verifiedRequirements of all RequirementVerificationMemberships of the objectiveRequirement. /// [Property(xmiId: "_19_0_4_12e503d9_1603922371399_701592_338", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryVerifiedRequirement(); + List verifiedRequirement { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IVerificationCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/IVerificationCaseUsage.cs index 1882816b8..50eed750c 100644 --- a/SysML2.NET/Core/AutoGenPoco/IVerificationCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IVerificationCaseUsage.cs @@ -74,14 +74,14 @@ public partial interface IVerificationCaseUsage : ICaseUsage /// [Property(xmiId: "_19_0_2_12e503d9_1596821408366_748769_10316", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] - IVerificationCaseDefinition QueryVerificationCaseDefinition(); + IVerificationCaseDefinition verificationCaseDefinition { get; } /// /// The RequirementUsages verified by this VerificationCaseUsage, which are the verifiedRequirements of /// all RequirementVerificationMemberships of the objectiveRequirement. /// [Property(xmiId: "_19_0_4_12e503d9_1603922396599_812331_357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryVerifiedRequirement(); + List verifiedRequirement { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IViewDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IViewDefinition.cs index ee9421945..a91554633 100644 --- a/SysML2.NET/Core/AutoGenPoco/IViewDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IViewDefinition.cs @@ -73,14 +73,14 @@ public partial interface IViewDefinition : IPartDefinition /// [Property(xmiId: "_19_0_2_12e503d9_1596645596183_374903_1209", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] - List QuerySatisfiedViewpoint(); + List satisfiedViewpoint { get; } /// /// The usages of this ViewDefinition that are ViewUsages. /// [Property(xmiId: "_19_0_2_12e503d9_1596644452170_21813_753", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] - List QueryView(); + List view { get; } /// /// The Expressions related to this ViewDefinition by ElementFilterMemberships, which specify conditions @@ -88,14 +88,14 @@ public partial interface IViewDefinition : IPartDefinition /// [Property(xmiId: "_19_0_4_12e503d9_1606938929077_183245_4796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List QueryViewCondition(); + List viewCondition { get; } /// /// The RenderingUsage to be used to render views defined by this ViewDefinition, which is the /// referencedRendering of the ViewRenderingMembership of the ViewDefinition. /// [Property(xmiId: "_19_0_2_12e503d9_1596657187664_758418_4914", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IRenderingUsage QueryViewRendering(); + IRenderingUsage viewRendering { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IViewRenderingMembership.cs b/SysML2.NET/Core/AutoGenPoco/IViewRenderingMembership.cs index 9df5cfe37..7f30350a7 100644 --- a/SysML2.NET/Core/AutoGenPoco/IViewRenderingMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IViewRenderingMembership.cs @@ -50,7 +50,7 @@ public partial interface IViewRenderingMembership : IFeatureMembership /// [Property(xmiId: "_19_0_4_12e503d9_1617134244546_130200_6000", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] - IRenderingUsage QueryOwnedRendering(); + IRenderingUsage ownedRendering { get; } /// /// The RenderingUsage that is referenced through this ViewRenderingMembership. It is the @@ -58,7 +58,7 @@ public partial interface IViewRenderingMembership : IFeatureMembership /// otherwise, the ownedRendering itself. /// [Property(xmiId: "_19_0_4_12e503d9_1617134300857_286392_6081", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IRenderingUsage QueryReferencedRendering(); + IRenderingUsage referencedRendering { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IViewUsage.cs b/SysML2.NET/Core/AutoGenPoco/IViewUsage.cs index 9f38cc426..3d1fa9d37 100644 --- a/SysML2.NET/Core/AutoGenPoco/IViewUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IViewUsage.cs @@ -77,7 +77,7 @@ public partial interface IViewUsage : IPartUsage /// [Property(xmiId: "_19_0_2_12e503d9_1596648681658_691767_2705", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] - List QueryExposedElement(); + List exposedElement { get; } /// /// The nestedRequirements of this ViewUsage that are ViewpointUsages for (additional) viewpoints @@ -85,7 +85,7 @@ public partial interface IViewUsage : IPartUsage /// [Property(xmiId: "_19_0_2_12e503d9_1596645688987_502277_1282", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] - List QuerySatisfiedViewpoint(); + List satisfiedViewpoint { get; } /// /// The Expressions related to this ViewUsage by ElementFilterMemberships, which specify conditions on @@ -93,21 +93,21 @@ public partial interface IViewUsage : IPartUsage /// [Property(xmiId: "_19_0_4_12e503d9_1606938933668_437943_4809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] - List QueryViewCondition(); + List viewCondition { get; } /// /// The ViewDefinition that is the definition of this ViewUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1596644438889_580287_734", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591475180488_929065_121")] - IViewDefinition QueryViewDefinition(); + IViewDefinition viewDefinition { get; } /// /// The RenderingUsage to be used to render views defined by this ViewUsage, which is the /// referencedRendering of the ViewRenderingMembership of the ViewUsage. /// [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 QueryViewRendering(); + IRenderingUsage viewRendering { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IViewpointDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IViewpointDefinition.cs index 05f0be3cd..0db613c9f 100644 --- a/SysML2.NET/Core/AutoGenPoco/IViewpointDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IViewpointDefinition.cs @@ -73,7 +73,7 @@ public partial interface IViewpointDefinition : IRequirementDefinition /// ViewpointDefinition. /// [Property(xmiId: "_19_0_4_12e503d9_1617117194003_518610_3310", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryViewpointStakeholder(); + List viewpointStakeholder { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IViewpointUsage.cs b/SysML2.NET/Core/AutoGenPoco/IViewpointUsage.cs index 70ba82d2e..4d2ad6220 100644 --- a/SysML2.NET/Core/AutoGenPoco/IViewpointUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IViewpointUsage.cs @@ -74,14 +74,14 @@ public partial interface IViewpointUsage : IRequirementUsage /// [Property(xmiId: "_19_0_2_12e503d9_1596649684798_569222_3524", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1583000408905_769743_1223")] - IViewpointDefinition QueryViewpointDefinition(); + IViewpointDefinition viewpointDefinition { get; } /// /// The PartUsages that identify the stakeholders with concerns framed by this ViewpointUsage, which are /// the owned and inherited stakeholderParameters of the framedConcerns of this ViewpointUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1617117200628_940407_3323", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - List QueryViewpointStakeholder(); + List viewpointStakeholder { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IWhileLoopActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IWhileLoopActionUsage.cs index 0d305ce8b..48b4fdfc3 100644 --- a/SysML2.NET/Core/AutoGenPoco/IWhileLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IWhileLoopActionUsage.cs @@ -78,14 +78,14 @@ public partial interface IWhileLoopActionUsage : ILoopActionUsage /// performed. It is the (optional) third owned parameter of the WhileLoopActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624290717721_449719_4195", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IExpression QueryUntilArgument(); + IExpression untilArgument { get; } /// /// The Expression whose result, if true, determines that the bodyAction should continue to be /// performed. It is the first owned parameter of the WhileLoopActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1624203871924_371126_3842", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] - IExpression QueryWhileArgument(); + IExpression whileArgument { get; } } } diff --git a/SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs index 133f27678..1a11fcddf 100644 --- a/SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs @@ -87,10 +87,7 @@ public partial class IfActionUsage : IIfActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -106,10 +103,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,10 +115,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -134,10 +125,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -165,10 +153,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -181,10 +166,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -193,10 +175,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -205,10 +184,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -225,10 +201,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -244,10 +217,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1624203816178_273125_3723", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IIfActionUsage.ElseAction")] - public IActionUsage QueryElseAction() - { - return this.ComputeElseAction(); - } + public IActionUsage elseAction => this.ComputeElseAction(); /// /// All features of this Type with isEnd = true. @@ -255,10 +225,7 @@ public IActionUsage QueryElseAction() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -268,10 +235,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -279,10 +243,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -291,20 +252,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -314,10 +269,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Expression whose result determines whether the thenAction or (optionally) the elseAction is @@ -325,10 +277,7 @@ public List QueryFeaturingType() /// [Property(xmiId: "_19_0_4_12e503d9_1624203866872_328861_3821", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IIfActionUsage.IfArgument")] - public IExpression QueryIfArgument() - { - return this.ComputeIfArgument(); - } + public IExpression ifArgument => this.ComputeIfArgument(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -336,10 +285,7 @@ public IExpression QueryIfArgument() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -347,10 +293,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -358,10 +301,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -370,10 +310,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -381,10 +318,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -397,10 +331,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -424,10 +355,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -482,10 +410,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -507,10 +432,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -529,7 +451,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -559,10 +481,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -570,10 +489,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -581,10 +497,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -594,10 +507,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -607,10 +517,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -618,10 +525,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -629,10 +533,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -640,10 +541,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -651,10 +549,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -662,10 +557,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -673,10 +565,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -684,10 +573,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -697,10 +583,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -708,10 +591,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -719,10 +599,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -730,10 +607,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -741,10 +615,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -752,10 +623,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -763,10 +631,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -774,10 +639,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -785,10 +647,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -796,10 +655,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -807,10 +663,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -818,10 +671,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -829,10 +679,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -840,10 +687,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -851,10 +695,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -863,10 +704,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -874,10 +712,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -885,10 +720,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -896,10 +728,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -907,10 +736,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -921,10 +747,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -932,10 +755,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -945,10 +765,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -957,10 +774,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -969,10 +783,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -982,10 +793,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -995,10 +803,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1006,10 +811,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1018,10 +820,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1029,10 +828,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1042,10 +838,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1055,10 +848,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1068,10 +858,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1081,10 +868,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1093,10 +877,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1105,10 +886,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1119,10 +897,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1131,10 +906,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1143,10 +915,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1164,10 +933,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1177,10 +943,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1190,10 +953,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1203,10 +963,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1215,10 +972,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1226,10 +980,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1238,10 +989,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1249,10 +997,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1261,10 +1006,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1273,10 +1015,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1294,10 +1033,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1305,10 +1041,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1317,10 +1050,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1341,10 +1071,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1354,10 +1081,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1366,10 +1090,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The ActionUsage that is to be performed if the result of the ifArgument is true. It is the second @@ -1377,10 +1098,7 @@ public List QueryTextualRepresentation() /// [Property(xmiId: "_19_0_4_12e503d9_1624203835062_413118_3748", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IIfActionUsage.ThenAction")] - public IActionUsage QueryThenAction() - { - return this.ComputeThenAction(); - } + public IActionUsage thenAction => this.ComputeThenAction(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1391,10 +1109,7 @@ public IActionUsage QueryThenAction() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1405,10 +1120,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1416,10 +1128,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1428,10 +1137,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1440,10 +1146,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Import.cs b/SysML2.NET/Core/AutoGenPoco/Import.cs index 36809361a..79b268262 100644 --- a/SysML2.NET/Core/AutoGenPoco/Import.cs +++ b/SysML2.NET/Core/AutoGenPoco/Import.cs @@ -84,10 +84,7 @@ public partial class Import : IImport [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -103,10 +100,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1668801846848_909736_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IImport.ImportedElement")] - public IElement QueryImportedElement() - { - return this.ComputeImportedElement(); - } + public IElement importedElement => this.ComputeImportedElement(); /// /// The Namespace into which Memberships are imported by this Import, which must be the @@ -116,10 +110,7 @@ public IElement QueryImportedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IImport.ImportOwningNamespace")] - public INamespace QueryImportOwningNamespace() - { - return this.ComputeImportOwningNamespace(); - } + public INamespace importOwningNamespace => this.ComputeImportOwningNamespace(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -152,10 +143,7 @@ public INamespace QueryImportOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether to recursively import Memberships from visible, owned sub-Namespaces. @@ -172,10 +160,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -185,10 +170,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -196,10 +178,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -223,10 +202,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -235,10 +211,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -247,10 +220,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -278,10 +248,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -289,10 +256,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -302,10 +266,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -331,10 +292,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The visibility level of the imported members from this Import relative to the importOwningNamespace. @@ -342,7 +300,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IImport.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Private; } } diff --git a/SysML2.NET/Core/AutoGenPoco/IncludeUseCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/IncludeUseCaseUsage.cs index bdf4c9df0..8aaf38061 100644 --- a/SysML2.NET/Core/AutoGenPoco/IncludeUseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IncludeUseCaseUsage.cs @@ -89,10 +89,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -101,10 +98,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -120,10 +114,7 @@ public List QueryActorParameter() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -135,10 +126,7 @@ public List QueryBehavior() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public IFunction QueryCalculationDefinition() - { - return this.ComputeCalculationDefinition(); - } + public IFunction calculationDefinition => this.ComputeCalculationDefinition(); /// /// The CaseDefinition that is the type of this CaseUsage. @@ -147,10 +135,7 @@ public IFunction QueryCalculationDefinition() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [RedefinedByProperty("IUseCaseUsage.UseCaseDefinition")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public ICaseDefinition QueryCaseDefinition() - { - return this.ComputeCaseDefinition(); - } + public ICaseDefinition caseDefinition => this.ComputeCaseDefinition(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -162,10 +147,7 @@ public ICaseDefinition QueryCaseDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -175,10 +157,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -206,10 +185,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -222,10 +198,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -234,10 +207,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -246,10 +216,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -266,10 +233,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -285,10 +249,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -298,10 +259,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The OccurrenceUsage referenced as an event by this EventOccurrenceUsage. It is the referenceFeature @@ -311,10 +269,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IPerformActionUsage.PerformedAction")] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public IOccurrenceUsage QueryEventOccurrence() - { - return this.ComputeEventOccurrence(); - } + public IOccurrenceUsage eventOccurrence => this.ComputeEventOccurrence(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -322,10 +277,7 @@ public IOccurrenceUsage QueryEventOccurrence() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -334,20 +286,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -357,10 +303,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -369,10 +312,7 @@ public List QueryFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -380,10 +320,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The UseCaseUsages that are included by this UseCaseUse, which are the useCaseIncludeds of the @@ -391,10 +328,7 @@ public List QueryImportedMembership() /// [Property(xmiId: "_19_0_4_12e503d9_1621545989647_997634_1855", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUseCaseUsage.IncludedUseCase")] - public List QueryIncludedUseCase() - { - return this.ComputeIncludedUseCase(); - } + public List includedUseCase => this.ComputeIncludedUseCase(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -402,10 +336,7 @@ public List QueryIncludedUseCase() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -413,10 +344,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -425,10 +353,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -436,10 +361,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -452,10 +374,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -479,10 +398,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -537,10 +453,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -548,10 +461,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -574,10 +484,7 @@ public bool QueryIsModelLevelEvaluable() [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + bool Systems.DefinitionAndUsage.IUsage.isReference => throw new InvalidOperationException("Redefined by property IEventOccurrenceUsage.IsReference"); /// /// Always true for an EventOccurrenceUsage. @@ -585,10 +492,7 @@ bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() [Property(xmiId: "_19_0_4_12e503d9_1672526906017_786343_306", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IEventOccurrenceUsage.IsReference")] - bool Systems.Occurrences.IEventOccurrenceUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -607,7 +511,7 @@ bool Systems.Occurrences.IEventOccurrenceUsage.QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -637,10 +541,7 @@ bool Systems.Occurrences.IEventOccurrenceUsage.QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -648,10 +549,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -659,10 +557,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -672,10 +567,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -685,10 +577,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -696,10 +585,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -707,10 +593,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -718,10 +601,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -729,10 +609,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -740,10 +617,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -751,10 +625,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -762,10 +633,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -775,10 +643,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -786,10 +651,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -797,10 +659,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -808,10 +667,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -819,10 +675,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -830,10 +683,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -841,10 +691,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -852,10 +699,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -863,10 +707,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -874,10 +715,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -885,10 +723,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -896,10 +731,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -907,10 +739,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -918,10 +747,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -929,10 +755,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -941,10 +764,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -952,10 +772,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -963,10 +780,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -974,10 +788,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -985,10 +796,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The RequirementUsage representing the objective of this CaseUsage. @@ -996,10 +804,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_2_12e503d9_1591138794257_404044_2145", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ObjectiveRequirement")] - public IRequirementUsage QueryObjectiveRequirement() - { - return this.ComputeObjectiveRequirement(); - } + public IRequirementUsage objectiveRequirement => this.ComputeObjectiveRequirement(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -1010,10 +815,7 @@ public IRequirementUsage QueryObjectiveRequirement() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1021,10 +823,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -1034,10 +833,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -1046,10 +842,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1058,10 +851,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1071,10 +861,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1084,10 +871,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1095,10 +879,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1107,10 +888,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1118,10 +896,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1131,10 +906,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1144,10 +916,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1157,10 +926,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1170,10 +936,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1182,10 +945,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1194,10 +954,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1208,10 +965,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1220,10 +974,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1232,10 +983,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1253,10 +1001,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1266,10 +1011,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1279,10 +1021,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1292,10 +1031,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1304,10 +1040,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1315,10 +1048,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1327,10 +1057,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1338,10 +1065,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1350,10 +1074,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1362,10 +1083,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1383,10 +1101,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1394,10 +1109,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1406,10 +1118,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The ActionUsage to be performed by this PerformedActionUsage. It is the eventOccurrence of the @@ -1419,10 +1128,7 @@ public List QueryParameter() [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622831790393_676695_195")] [RedefinedByProperty("IIncludeUseCaseUsage.UseCaseIncluded")] [Implements(implementation: "IPerformActionUsage.PerformedAction")] - public IActionUsage QueryPerformedAction() - { - return this.ComputePerformedAction(); - } + public IActionUsage performedAction => this.ComputePerformedAction(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1443,10 +1149,7 @@ public IActionUsage QueryPerformedAction() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1457,10 +1160,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1470,10 +1170,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The parameter of this CaseUsage that represents its subject. @@ -1482,10 +1179,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// The TextualRepresentations that annotate this Element. @@ -1494,10 +1188,7 @@ public IUsage QuerySubjectParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1508,10 +1199,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1522,10 +1210,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1533,10 +1218,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The UseCaseDefinition that is the definition of this UseCaseUsage. @@ -1544,10 +1226,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_4_12e503d9_1621460964889_804779_881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] [Implements(implementation: "IUseCaseUsage.UseCaseDefinition")] - public IUseCaseDefinition QueryUseCaseDefinition() - { - return this.ComputeUseCaseDefinition(); - } + public IUseCaseDefinition useCaseDefinition => this.ComputeUseCaseDefinition(); /// /// The UseCaseUsage to be included by this IncludeUseCaseUsage. It is the performedAction of the @@ -1556,10 +1235,7 @@ public IUseCaseDefinition QueryUseCaseDefinition() [Property(xmiId: "_19_0_4_12e503d9_1621532149711_865323_1172", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1567740791820_867719_18017")] [Implements(implementation: "IIncludeUseCaseUsage.UseCaseIncluded")] - public IUseCaseUsage QueryUseCaseIncluded() - { - return this.ComputeUseCaseIncluded(); - } + public IUseCaseUsage useCaseIncluded => this.ComputeUseCaseIncluded(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1568,10 +1244,7 @@ public IUseCaseUsage QueryUseCaseIncluded() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1580,10 +1253,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IndexExpression.cs b/SysML2.NET/Core/AutoGenPoco/IndexExpression.cs index 0a7eb999e..435f0e09a 100644 --- a/SysML2.NET/Core/AutoGenPoco/IndexExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IndexExpression.cs @@ -68,10 +68,7 @@ public partial class IndexExpression : IIndexExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List QueryArgument() - { - return this.ComputeArgument(); - } + public List argument => this.ComputeArgument(); /// /// The Behaviors that type this Step. @@ -80,10 +77,7 @@ public List QueryArgument() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -95,10 +89,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -108,10 +99,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -141,10 +129,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -153,10 +138,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -173,10 +155,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -192,10 +171,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -205,10 +181,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -216,10 +189,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -228,20 +198,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -251,10 +215,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -262,10 +223,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -273,10 +231,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -284,10 +239,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -296,10 +248,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -307,10 +256,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Type that is being instantiated. @@ -318,10 +264,7 @@ public List QueryInput() [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public IType QueryInstantiatedType() - { - return this.ComputeInstantiatedType(); - } + public IType instantiatedType => this.ComputeInstantiatedType(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -334,10 +277,7 @@ public IType QueryInstantiatedType() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -361,10 +301,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -411,10 +348,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -422,10 +356,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -459,7 +390,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -475,10 +406,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -486,10 +414,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -499,10 +424,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -512,17 +434,14 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// [Property(xmiId: "_2022x_2_12e503d9_1735075421526_442091_324", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "#")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528808100_646606_111674")] [Implements(implementation: "IIndexExpression.Operator")] - string IIndexExpression.Operator { get; set; } + public string Operator { get; set; } = "#"; /// /// An operator symbol that names a corresponding Function from one of the standard packages from the @@ -539,10 +458,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -552,10 +468,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -564,10 +477,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -576,10 +486,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -589,10 +496,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -602,10 +506,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -613,10 +514,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -625,10 +523,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -636,10 +531,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -649,10 +541,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -662,10 +551,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -675,10 +561,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -688,10 +571,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -700,10 +580,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -712,10 +589,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -726,10 +600,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -738,10 +609,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -750,10 +618,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -771,10 +636,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -784,10 +646,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -797,10 +656,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -810,10 +666,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -822,10 +675,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -833,10 +683,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -844,10 +691,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -856,10 +700,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -868,10 +709,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -889,10 +727,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -901,10 +736,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -916,10 +748,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -930,10 +759,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -943,10 +769,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -955,10 +778,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -968,10 +788,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -982,10 +799,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/InstantiationExpression.cs b/SysML2.NET/Core/AutoGenPoco/InstantiationExpression.cs index dee48d620..9f6717e90 100644 --- a/SysML2.NET/Core/AutoGenPoco/InstantiationExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/InstantiationExpression.cs @@ -69,10 +69,7 @@ public partial class InstantiationExpression : IInstantiationExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List QueryArgument() - { - return this.ComputeArgument(); - } + public List argument => this.ComputeArgument(); /// /// The Behaviors that type this Step. @@ -81,10 +78,7 @@ public List QueryArgument() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -96,10 +90,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -109,10 +100,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -142,10 +130,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -154,10 +139,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -174,10 +156,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -193,10 +172,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -206,10 +182,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -217,10 +190,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -229,20 +199,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -252,10 +216,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -263,10 +224,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -274,10 +232,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -285,10 +240,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -297,10 +249,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -308,10 +257,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Type that is being instantiated. @@ -319,10 +265,7 @@ public List QueryInput() [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public IType QueryInstantiatedType() - { - return this.ComputeInstantiatedType(); - } + public IType instantiatedType => this.ComputeInstantiatedType(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -335,10 +278,7 @@ public IType QueryInstantiatedType() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -362,10 +302,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -412,10 +349,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -423,10 +357,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -460,7 +391,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -476,10 +407,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -487,10 +415,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -500,10 +425,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -513,10 +435,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -524,10 +443,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -537,10 +453,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -549,10 +462,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -561,10 +471,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -574,10 +481,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -587,10 +491,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -598,10 +499,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -610,10 +508,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -621,10 +516,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -634,10 +526,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -647,10 +536,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -660,10 +546,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -673,10 +556,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -685,10 +565,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -697,10 +574,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -711,10 +585,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -723,10 +594,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -735,10 +603,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -756,10 +621,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -769,10 +631,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -782,10 +641,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -795,10 +651,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -807,10 +660,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -818,10 +668,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -829,10 +676,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -841,10 +685,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -853,10 +694,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -874,10 +712,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -886,10 +721,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -901,10 +733,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -915,10 +744,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -928,10 +754,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -940,10 +763,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -953,10 +773,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -967,10 +784,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Interaction.cs b/SysML2.NET/Core/AutoGenPoco/Interaction.cs index 84ea3a97b..1dc20022c 100644 --- a/SysML2.NET/Core/AutoGenPoco/Interaction.cs +++ b/SysML2.NET/Core/AutoGenPoco/Interaction.cs @@ -68,10 +68,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1562477648742_24204_22901", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List QueryAssociationEnd() - { - return this.ComputeAssociationEnd(); - } + public List associationEnd => this.ComputeAssociationEnd(); /// /// The declared name of this Element. @@ -101,10 +98,7 @@ public List QueryAssociationEnd() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -113,10 +107,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The Documentation owned by this Element. @@ -125,10 +116,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -145,10 +133,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -156,10 +141,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -168,10 +150,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -179,10 +158,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -190,10 +166,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -202,10 +175,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -213,10 +183,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -229,10 +196,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -247,10 +211,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -276,10 +237,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -299,10 +257,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -310,10 +265,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -323,10 +275,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -336,10 +285,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -347,10 +293,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -360,10 +303,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -372,10 +312,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -385,10 +322,7 @@ public IConjugation QueryOwnedConjugator() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -398,10 +332,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -409,10 +340,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -421,10 +349,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -432,10 +357,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -445,10 +367,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -458,10 +377,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -470,10 +386,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -482,10 +395,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -496,10 +406,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -525,10 +432,7 @@ public List QueryOwnedMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -537,10 +441,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -549,10 +450,7 @@ public List QueryOwnedSubclassification() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -560,10 +458,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -572,10 +467,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -584,10 +476,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -612,10 +501,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -627,10 +513,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -639,10 +522,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -651,10 +531,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List QueryRelatedType() - { - return this.ComputeRelatedType(); - } + public List relatedType => this.ComputeRelatedType(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -664,10 +541,7 @@ public List QueryRelatedType() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -685,10 +559,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public IType QuerySourceType() - { - return this.ComputeSourceType(); - } + public IType sourceType => this.ComputeSourceType(); /// /// The Steps that make up this Behavior. @@ -696,10 +567,7 @@ public IType QuerySourceType() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -718,10 +586,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List QueryTargetType() - { - return this.ComputeTargetType(); - } + public List targetType => this.ComputeTargetType(); /// /// The TextualRepresentations that annotate this Element. @@ -730,10 +595,7 @@ public List QueryTargetType() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -744,10 +606,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/InterfaceDefinition.cs b/SysML2.NET/Core/AutoGenPoco/InterfaceDefinition.cs index 591cd2d64..49c5bd5dd 100644 --- a/SysML2.NET/Core/AutoGenPoco/InterfaceDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/InterfaceDefinition.cs @@ -89,10 +89,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List QueryAssociationEnd() - { - return this.ComputeAssociationEnd(); - } + public List associationEnd => this.ComputeAssociationEnd(); /// /// The Usages that define the things related by the ConnectionDefinition. @@ -101,10 +98,7 @@ public List QueryAssociationEnd() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] [RedefinedByProperty("IInterfaceDefinition.InterfaceEnd")] [Implements(implementation: "IConnectionDefinition.ConnectionEnd")] - public List QueryConnectionEnd() - { - return this.ComputeConnectionEnd(); - } + public List connectionEnd => this.ComputeConnectionEnd(); /// /// The declared name of this Element. @@ -134,10 +128,7 @@ public List QueryConnectionEnd() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -145,10 +136,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -157,10 +145,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -169,10 +154,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -189,10 +171,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -200,10 +179,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -212,10 +188,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -223,10 +196,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -234,10 +204,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -246,10 +213,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -257,10 +221,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The PortUsages that are the connectionEnds of this InterfaceDefinition. @@ -268,10 +229,7 @@ public List QueryInput() [Property(xmiId: "_18_5_3_12e503d9_1565496234915_779221_26664", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591476421094_685440_682")] [Implements(implementation: "IInterfaceDefinition.InterfaceEnd")] - public List QueryInterfaceEnd() - { - return this.ComputeInterfaceEnd(); - } + public List interfaceEnd => this.ComputeInterfaceEnd(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -284,10 +242,7 @@ public List QueryInterfaceEnd() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -302,10 +257,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -338,10 +290,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// A ConnectionDefinition always has isSufficient = true. @@ -349,7 +298,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_2022x_2_12e503d9_1734734871008_462076_156", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1564072709069_937523_30797")] [Implements(implementation: "IConnectionDefinition.IsSufficient")] - bool Systems.Connections.IConnectionDefinition.IsSufficient { get; set; } + public bool IsSufficient { get; set; } = true; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -378,10 +327,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -389,10 +335,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -402,10 +345,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -415,10 +355,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -426,10 +363,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -437,10 +371,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -448,10 +379,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -459,10 +387,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -472,10 +397,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -483,10 +405,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -494,10 +413,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -505,10 +421,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -516,10 +429,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -528,10 +438,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -541,10 +448,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -552,10 +456,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -565,10 +466,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -578,10 +476,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -589,10 +484,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -601,10 +493,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -612,10 +501,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -623,10 +509,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -636,10 +519,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -647,10 +527,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -660,10 +537,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -671,10 +545,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -683,10 +554,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -694,10 +562,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -706,10 +571,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -720,10 +582,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -731,10 +590,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -742,10 +598,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -753,10 +606,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -764,10 +614,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -775,10 +622,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -802,10 +646,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -813,10 +654,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -826,10 +664,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -837,10 +672,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -849,10 +681,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -860,10 +689,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -872,10 +698,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -884,10 +707,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -895,10 +715,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -906,10 +723,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -917,10 +731,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -928,10 +739,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -939,10 +747,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -951,10 +756,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -963,10 +765,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -994,10 +793,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1006,10 +802,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -1018,10 +811,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IAssociation.RelatedType")] - public List QueryRelatedType() - { - return this.ComputeRelatedType(); - } + public List relatedType => this.ComputeRelatedType(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1031,10 +821,7 @@ public List QueryRelatedType() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1052,10 +839,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IAssociation.SourceType")] - public IType QuerySourceType() - { - return this.ComputeSourceType(); - } + public IType sourceType => this.ComputeSourceType(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1074,10 +858,7 @@ public IType QuerySourceType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IAssociation.TargetType")] - public List QueryTargetType() - { - return this.ComputeTargetType(); - } + public List targetType => this.ComputeTargetType(); /// /// The TextualRepresentations that annotate this Element. @@ -1086,10 +867,7 @@ public List QueryTargetType() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1100,10 +878,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1111,10 +886,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1123,10 +895,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1136,10 +905,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs b/SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs index a2495d975..1e3f1115f 100644 --- a/SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs @@ -92,10 +92,7 @@ public partial class InterfaceUsage : IInterfaceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -107,10 +104,7 @@ public List QueryAssociation() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The AssociationStructures that are the types of this ConnectionUsage. Nominally, these are , but @@ -122,10 +116,7 @@ public List QueryChainingFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedByProperty("IInterfaceUsage.InterfaceDefinition")] [Implements(implementation: "IConnectionUsage.ConnectionDefinition")] - public List QueryConnectionDefinition() - { - return this.ComputeConnectionDefinition(); - } + public List connectionDefinition => this.ComputeConnectionDefinition(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -135,10 +126,7 @@ public List QueryConnectionDefinition() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -148,10 +136,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -177,10 +162,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -191,10 +173,7 @@ public IType QueryDefaultFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -207,10 +186,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -218,10 +194,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -230,10 +203,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -250,10 +220,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -270,10 +237,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -283,10 +247,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -294,10 +255,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -306,20 +264,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -329,10 +281,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -340,10 +289,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -351,10 +297,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -362,10 +305,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -374,10 +314,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -385,10 +322,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The InterfaceDefinitions that type this InterfaceUsage. @@ -396,10 +330,7 @@ public List QueryInput() [Property(xmiId: "_18_5_3_12e503d9_1565499418349_431355_28798", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594853499656_139435_802")] [Implements(implementation: "IInterfaceUsage.InterfaceDefinition")] - public List QueryInterfaceDefinition() - { - return this.ComputeInterfaceDefinition(); - } + public List interfaceDefinition => this.ComputeInterfaceDefinition(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -412,10 +343,7 @@ public List QueryInterfaceDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -439,10 +367,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -505,10 +430,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -530,10 +452,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -552,7 +471,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -579,10 +498,7 @@ public bool QueryIsReference() [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List QueryItemDefinition() - { - return this.ComputeItemDefinition(); - } + public List itemDefinition => this.ComputeItemDefinition(); /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -595,10 +511,7 @@ public List QueryItemDefinition() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -606,10 +519,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -617,10 +527,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -630,10 +537,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -643,10 +547,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -654,10 +555,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -665,10 +563,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -676,10 +571,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -687,10 +579,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -698,10 +587,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -709,10 +595,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -720,10 +603,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -733,10 +613,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -744,10 +621,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -755,10 +629,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -766,10 +637,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -777,10 +645,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -788,10 +653,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -799,10 +661,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -810,10 +669,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -821,10 +677,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -832,10 +685,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -843,10 +693,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -854,10 +701,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -865,10 +709,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -876,10 +717,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -887,10 +725,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -899,10 +734,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -910,10 +742,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -921,10 +750,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -932,10 +758,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -943,10 +766,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -956,10 +776,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -967,10 +784,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -980,10 +794,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -992,10 +803,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1004,10 +812,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1017,10 +822,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1030,10 +832,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1041,10 +840,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1053,10 +849,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1064,10 +857,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1077,10 +867,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1090,10 +877,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1103,10 +887,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1116,10 +897,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1128,10 +906,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1140,10 +915,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1154,10 +926,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1166,10 +935,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1178,10 +944,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -1207,10 +970,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1220,10 +980,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1233,10 +990,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1246,10 +1000,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1258,10 +1009,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1269,10 +1017,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1281,10 +1026,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1292,10 +1034,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1304,10 +1043,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1316,10 +1052,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -1345,10 +1078,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1356,10 +1086,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The itemDefinitions of this PartUsage that are PartDefinitions. @@ -1367,10 +1094,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1591475180488_929065_121", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List QueryPartDefinition() - { - return this.ComputePartDefinition(); - } + public List partDefinition => this.ComputePartDefinition(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1391,10 +1115,7 @@ public List QueryPartDefinition() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1403,10 +1124,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1415,10 +1133,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1428,10 +1143,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1449,10 +1161,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1471,10 +1180,7 @@ public IFeature QuerySourceFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -1483,10 +1189,7 @@ public List QueryTargetFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1497,10 +1200,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1511,10 +1211,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1522,10 +1219,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1534,10 +1228,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1546,10 +1237,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Intersecting.cs b/SysML2.NET/Core/AutoGenPoco/Intersecting.cs index 32660aa1a..16c8402e3 100644 --- a/SysML2.NET/Core/AutoGenPoco/Intersecting.cs +++ b/SysML2.NET/Core/AutoGenPoco/Intersecting.cs @@ -79,10 +79,7 @@ public partial class Intersecting : IIntersecting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -125,10 +122,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -138,10 +132,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -151,10 +142,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -162,10 +150,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -189,10 +174,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -201,10 +183,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -213,10 +192,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -244,10 +220,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -255,10 +228,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -268,10 +238,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -298,10 +265,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Type with interpretations partly determined by intersectingType, as described in @@ -311,10 +275,7 @@ public List QueryTextualRepresentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IIntersecting.TypeIntersected")] - public IType QueryTypeIntersected() - { - return this.ComputeTypeIntersected(); - } + public IType typeIntersected => this.ComputeTypeIntersected(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Invariant.cs b/SysML2.NET/Core/AutoGenPoco/Invariant.cs index d3e1ac484..af477cfcc 100644 --- a/SysML2.NET/Core/AutoGenPoco/Invariant.cs +++ b/SysML2.NET/Core/AutoGenPoco/Invariant.cs @@ -67,10 +67,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,10 +79,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -95,10 +89,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -128,10 +119,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -140,10 +128,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -160,10 +145,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -179,10 +161,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -192,10 +171,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -203,10 +179,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -215,20 +188,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -238,10 +205,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -250,10 +214,7 @@ public List QueryFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -261,10 +222,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -272,10 +230,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -284,10 +239,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -295,10 +247,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -311,10 +260,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -338,10 +284,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -388,10 +331,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -399,10 +339,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether this Invariant is asserted to be false rather than true. @@ -443,7 +380,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -459,10 +396,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -470,10 +404,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -483,10 +414,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -496,10 +424,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -507,10 +432,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -520,10 +442,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -532,10 +451,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -544,10 +460,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -557,10 +470,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -570,10 +480,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -581,10 +488,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -593,10 +497,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -604,10 +505,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -617,10 +515,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -630,10 +525,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -643,10 +535,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -656,10 +545,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -668,10 +554,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -680,10 +563,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -694,10 +574,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -706,10 +583,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -718,10 +592,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -739,10 +610,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -752,10 +620,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -765,10 +630,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -778,10 +640,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -790,10 +649,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -801,10 +657,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -812,10 +665,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -824,10 +674,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -836,10 +683,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -857,10 +701,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -869,10 +710,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The Predicate that types the Expression. @@ -880,10 +718,7 @@ public List QueryParameter() [Property(xmiId: "_19_0_2_12e503d9_1578025035149_386_969", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate QueryPredicate() - { - return this.ComputePredicate(); - } + public IPredicate predicate => this.ComputePredicate(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -895,10 +730,7 @@ public IPredicate QueryPredicate() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -909,10 +741,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -922,10 +751,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -934,10 +760,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -947,10 +770,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -961,10 +781,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/InvocationExpression.cs b/SysML2.NET/Core/AutoGenPoco/InvocationExpression.cs index a162b45c5..58cc96b7c 100644 --- a/SysML2.NET/Core/AutoGenPoco/InvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/InvocationExpression.cs @@ -72,10 +72,7 @@ public partial class InvocationExpression : IInvocationExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List QueryArgument() - { - return this.ComputeArgument(); - } + public List argument => this.ComputeArgument(); /// /// The Behaviors that type this Step. @@ -84,10 +81,7 @@ public List QueryArgument() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -99,10 +93,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -112,10 +103,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -145,10 +133,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -157,10 +142,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -177,10 +159,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -196,10 +175,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -209,10 +185,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -220,10 +193,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -232,20 +202,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -255,10 +219,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -266,10 +227,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -277,10 +235,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -288,10 +243,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -300,10 +252,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -311,10 +260,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Type that is being instantiated. @@ -322,10 +268,7 @@ public List QueryInput() [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public IType QueryInstantiatedType() - { - return this.ComputeInstantiatedType(); - } + public IType instantiatedType => this.ComputeInstantiatedType(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -338,10 +281,7 @@ public IType QueryInstantiatedType() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -365,10 +305,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -415,10 +352,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -426,10 +360,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -463,7 +394,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -479,10 +410,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -490,10 +418,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -503,10 +428,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -516,10 +438,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -527,10 +446,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -540,10 +456,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -552,10 +465,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -564,10 +474,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -577,10 +484,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -590,10 +494,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -601,10 +502,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -613,10 +511,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -624,10 +519,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -637,10 +529,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -650,10 +539,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -663,10 +549,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -676,10 +559,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -688,10 +568,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -700,10 +577,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -714,10 +588,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -726,10 +597,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -738,10 +606,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -759,10 +624,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -772,10 +634,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -785,10 +644,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -798,10 +654,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -810,10 +663,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -821,10 +671,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -832,10 +679,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -844,10 +688,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -856,10 +697,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -877,10 +715,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -889,10 +724,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -904,10 +736,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -918,10 +747,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -931,10 +757,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -943,10 +766,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -956,10 +776,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -970,10 +787,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs index 6c43e2974..6ca5da222 100644 --- a/SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs @@ -110,10 +110,7 @@ public partial class ItemDefinition : IItemDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -121,10 +118,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -133,10 +127,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -145,10 +136,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -164,10 +152,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -175,10 +160,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -187,10 +169,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -198,10 +177,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -209,10 +185,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -221,10 +194,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -232,10 +202,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -248,10 +215,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -266,10 +230,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -294,10 +255,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -325,10 +283,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -336,10 +291,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -349,10 +301,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -362,10 +311,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -373,10 +319,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -384,10 +327,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -395,10 +335,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -406,10 +343,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -419,10 +353,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -430,10 +361,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -441,10 +369,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -452,10 +377,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -463,10 +385,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -475,10 +394,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -488,10 +404,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -499,10 +412,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -512,10 +422,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -525,10 +432,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -536,10 +440,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -548,10 +449,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -559,10 +457,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -570,10 +465,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -583,10 +475,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -594,10 +483,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -607,10 +493,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -618,10 +501,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -630,10 +510,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -641,10 +518,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -653,10 +527,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -667,10 +538,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -678,10 +546,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -689,10 +554,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -700,10 +562,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -711,10 +570,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -722,10 +578,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -741,10 +594,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -752,10 +602,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -765,10 +612,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -776,10 +620,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -788,10 +629,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -799,10 +637,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -811,10 +646,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -823,10 +655,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -834,10 +663,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -845,10 +671,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -856,10 +679,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -867,10 +687,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -878,10 +695,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -890,10 +704,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -902,10 +713,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -925,10 +733,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -938,10 +743,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -950,10 +752,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -964,10 +763,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -975,10 +771,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -987,10 +780,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1000,10 +790,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ItemUsage.cs b/SysML2.NET/Core/AutoGenPoco/ItemUsage.cs index 3dd9e353d..79cf109c4 100644 --- a/SysML2.NET/Core/AutoGenPoco/ItemUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ItemUsage.cs @@ -95,10 +95,7 @@ public partial class ItemUsage : IItemUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -108,10 +105,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -139,10 +133,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -155,10 +146,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -166,10 +154,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -178,10 +163,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -198,10 +180,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -217,10 +196,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -230,10 +206,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -241,10 +214,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -253,20 +223,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -276,10 +240,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -287,10 +248,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -298,10 +256,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -309,10 +264,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -321,10 +273,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -332,10 +281,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -348,10 +294,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -375,10 +318,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -433,10 +373,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -458,10 +395,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -480,7 +414,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -507,10 +441,7 @@ public bool QueryIsReference() [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List QueryItemDefinition() - { - return this.ComputeItemDefinition(); - } + public List itemDefinition => this.ComputeItemDefinition(); /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -523,10 +454,7 @@ public List QueryItemDefinition() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -534,10 +462,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -545,10 +470,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -558,10 +480,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -571,10 +490,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -582,10 +498,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -593,10 +506,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -604,10 +514,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -615,10 +522,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -626,10 +530,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -637,10 +538,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -648,10 +546,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -661,10 +556,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -672,10 +564,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -683,10 +572,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -694,10 +580,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -705,10 +588,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -716,10 +596,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -727,10 +604,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -738,10 +612,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -749,10 +620,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -760,10 +628,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -771,10 +636,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -782,10 +644,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -793,10 +652,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -804,10 +660,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -815,10 +668,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -827,10 +677,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -838,10 +685,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -849,10 +693,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -860,10 +701,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -871,10 +709,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -884,10 +719,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -895,10 +727,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -908,10 +737,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -920,10 +746,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -932,10 +755,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -945,10 +765,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -958,10 +775,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -969,10 +783,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -981,10 +792,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -992,10 +800,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1005,10 +810,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1018,10 +820,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1031,10 +830,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1044,10 +840,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1056,10 +849,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1068,10 +858,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1082,10 +869,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1094,10 +878,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1106,10 +887,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1127,10 +905,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1140,10 +915,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1153,10 +925,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1166,10 +935,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1178,10 +944,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1189,10 +952,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1201,10 +961,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1212,10 +969,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1224,10 +978,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1236,10 +987,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1257,10 +1005,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1268,10 +1013,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1292,10 +1034,7 @@ public IUsage QueryOwningUsage() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1305,10 +1044,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1317,10 +1053,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1331,10 +1064,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1345,10 +1075,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1356,10 +1083,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1368,10 +1092,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1380,10 +1101,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/JoinNode.cs b/SysML2.NET/Core/AutoGenPoco/JoinNode.cs index 0832b8b8f..21ddeff0b 100644 --- a/SysML2.NET/Core/AutoGenPoco/JoinNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/JoinNode.cs @@ -85,10 +85,7 @@ public partial class JoinNode : IJoinNode [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -104,10 +101,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -119,10 +113,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -132,10 +123,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -163,10 +151,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -179,10 +164,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -191,10 +173,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -203,10 +182,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -223,10 +199,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -242,10 +215,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -255,10 +225,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -266,10 +233,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -278,20 +242,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -301,10 +259,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -312,10 +267,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -323,10 +275,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -334,10 +283,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -346,10 +292,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -357,10 +300,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -373,10 +313,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -400,10 +337,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -458,10 +392,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -483,10 +414,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -505,7 +433,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -535,10 +463,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -546,10 +471,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -557,10 +479,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -570,10 +489,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -583,10 +499,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -594,10 +507,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -605,10 +515,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -616,10 +523,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -627,10 +531,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -638,10 +539,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -649,10 +547,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -660,10 +555,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -673,10 +565,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -684,10 +573,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -695,10 +581,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -706,10 +589,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -717,10 +597,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -728,10 +605,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -739,10 +613,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -750,10 +621,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -761,10 +629,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -772,10 +637,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -783,10 +645,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -794,10 +653,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -805,10 +661,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -816,10 +669,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -827,10 +677,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -839,10 +686,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -850,10 +694,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -861,10 +702,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -872,10 +710,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -883,10 +718,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -897,10 +729,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -908,10 +737,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -921,10 +747,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -933,10 +756,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -945,10 +765,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -958,10 +775,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -971,10 +785,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -982,10 +793,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -994,10 +802,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1005,10 +810,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1018,10 +820,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1031,10 +830,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1044,10 +840,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1057,10 +850,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1069,10 +859,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1081,10 +868,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1095,10 +879,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1107,10 +888,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1119,10 +897,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1140,10 +915,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1153,10 +925,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1166,10 +935,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1179,10 +945,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1191,10 +954,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1202,10 +962,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1214,10 +971,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1225,10 +979,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1237,10 +988,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1249,10 +997,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1270,10 +1015,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1281,10 +1023,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1293,10 +1032,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1317,10 +1053,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1330,10 +1063,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1342,10 +1072,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1356,10 +1083,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1370,10 +1094,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1381,10 +1102,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1393,10 +1111,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1405,10 +1120,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs b/SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs index e774a2a09..3a04a0168 100644 --- a/SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs +++ b/SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs @@ -80,10 +80,7 @@ public partial class LibraryPackage : ILibraryPackage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -100,10 +97,7 @@ public List QueryDocumentation() [Property(xmiId: "_19_0_4_12e503d9_1607033896050_867332_6206", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IPackage.FilterCondition")] - public List QueryFilterCondition() - { - return this.ComputeFilterCondition(); - } + public List filterCondition => this.ComputeFilterCondition(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -111,10 +105,7 @@ public List QueryFilterCondition() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -132,10 +123,7 @@ public List QueryImportedMembership() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this LibraryPackage contains a standard library model. This should only be set to true for @@ -152,10 +140,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -163,10 +148,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -176,10 +158,7 @@ public List QueryMembership() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -189,10 +168,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -200,10 +176,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -213,10 +186,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -225,10 +195,7 @@ public List QueryOwnedImport() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -239,10 +206,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -258,10 +222,7 @@ public List QueryOwnedMembership() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -270,10 +231,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -282,10 +240,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -305,10 +260,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -318,10 +270,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -330,10 +279,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs b/SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs index dac7c03f5..e9a82aa51 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs @@ -67,10 +67,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,10 +79,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -95,10 +89,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -128,10 +119,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -140,10 +128,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -160,10 +145,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -179,10 +161,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -192,10 +171,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -203,10 +179,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -215,20 +188,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -238,10 +205,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -249,10 +213,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -260,10 +221,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -271,10 +229,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -283,10 +238,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -294,10 +246,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -310,10 +259,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -337,10 +283,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -387,10 +330,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -398,10 +338,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -435,7 +372,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -451,10 +388,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -462,10 +396,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -475,10 +406,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -488,10 +416,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -499,10 +424,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -512,10 +434,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -524,10 +443,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -536,10 +452,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -549,10 +462,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -562,10 +472,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -573,10 +480,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -585,10 +489,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -596,10 +497,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -609,10 +507,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -622,10 +517,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -635,10 +527,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -648,10 +537,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -660,10 +546,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -672,10 +555,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -686,10 +566,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -698,10 +575,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -710,10 +584,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -731,10 +602,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -744,10 +612,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -757,10 +622,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -770,10 +632,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -782,10 +641,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -793,10 +649,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -804,10 +657,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -816,10 +666,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -828,10 +675,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -849,10 +693,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -861,10 +702,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -876,10 +714,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -890,10 +725,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -903,10 +735,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -915,10 +744,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -928,10 +754,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -942,10 +765,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Boolean value that is the result of evaluating this LiteralBoolean. diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralExpression.cs b/SysML2.NET/Core/AutoGenPoco/LiteralExpression.cs index 44a49d8c8..f19ec840d 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralExpression.cs @@ -66,10 +66,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -81,10 +78,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -94,10 +88,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -127,10 +118,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -139,10 +127,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -159,10 +144,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -178,10 +160,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -191,10 +170,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -202,10 +178,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -214,20 +187,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -237,10 +204,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -248,10 +212,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -259,10 +220,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -270,10 +228,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -282,10 +237,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -293,10 +245,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -309,10 +258,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -336,10 +282,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -386,10 +329,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -397,10 +337,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -434,7 +371,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -450,10 +387,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -461,10 +395,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -474,10 +405,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -487,10 +415,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -498,10 +423,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -511,10 +433,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -523,10 +442,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -535,10 +451,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -548,10 +461,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -561,10 +471,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -572,10 +479,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -584,10 +488,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -595,10 +496,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -608,10 +506,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -621,10 +516,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -634,10 +526,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -647,10 +536,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -659,10 +545,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -671,10 +554,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -685,10 +565,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -697,10 +574,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -709,10 +583,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -730,10 +601,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -743,10 +611,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -756,10 +621,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -769,10 +631,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -781,10 +640,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -792,10 +648,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -803,10 +656,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -815,10 +665,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -827,10 +674,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -848,10 +692,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -860,10 +701,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -875,10 +713,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -889,10 +724,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -902,10 +734,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -914,10 +743,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -927,10 +753,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -941,10 +764,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralInfinity.cs b/SysML2.NET/Core/AutoGenPoco/LiteralInfinity.cs index d929af9df..816836f06 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralInfinity.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralInfinity.cs @@ -67,10 +67,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,10 +79,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -95,10 +89,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -128,10 +119,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -140,10 +128,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -160,10 +145,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -179,10 +161,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -192,10 +171,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -203,10 +179,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -215,20 +188,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -238,10 +205,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -249,10 +213,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -260,10 +221,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -271,10 +229,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -283,10 +238,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -294,10 +246,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -310,10 +259,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -337,10 +283,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -387,10 +330,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -398,10 +338,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -435,7 +372,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -451,10 +388,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -462,10 +396,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -475,10 +406,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -488,10 +416,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -499,10 +424,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -512,10 +434,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -524,10 +443,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -536,10 +452,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -549,10 +462,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -562,10 +472,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -573,10 +480,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -585,10 +489,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -596,10 +497,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -609,10 +507,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -622,10 +517,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -635,10 +527,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -648,10 +537,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -660,10 +546,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -672,10 +555,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -686,10 +566,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -698,10 +575,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -710,10 +584,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -731,10 +602,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -744,10 +612,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -757,10 +622,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -770,10 +632,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -782,10 +641,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -793,10 +649,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -804,10 +657,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -816,10 +666,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -828,10 +675,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -849,10 +693,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -861,10 +702,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -876,10 +714,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -890,10 +725,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -903,10 +735,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -915,10 +744,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -928,10 +754,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -942,10 +765,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs b/SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs index 2650acd69..92d404fcb 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs @@ -67,10 +67,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,10 +79,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -95,10 +89,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -128,10 +119,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -140,10 +128,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -160,10 +145,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -179,10 +161,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -192,10 +171,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -203,10 +179,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -215,20 +188,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -238,10 +205,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -249,10 +213,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -260,10 +221,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -271,10 +229,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -283,10 +238,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -294,10 +246,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -310,10 +259,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -337,10 +283,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -387,10 +330,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -398,10 +338,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -435,7 +372,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -451,10 +388,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -462,10 +396,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -475,10 +406,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -488,10 +416,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -499,10 +424,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -512,10 +434,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -524,10 +443,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -536,10 +452,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -549,10 +462,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -562,10 +472,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -573,10 +480,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -585,10 +489,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -596,10 +497,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -609,10 +507,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -622,10 +517,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -635,10 +527,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -648,10 +537,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -660,10 +546,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -672,10 +555,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -686,10 +566,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -698,10 +575,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -710,10 +584,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -731,10 +602,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -744,10 +612,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -757,10 +622,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -770,10 +632,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -782,10 +641,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -793,10 +649,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -804,10 +657,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -816,10 +666,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -828,10 +675,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -849,10 +693,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -861,10 +702,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -876,10 +714,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -890,10 +725,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -903,10 +735,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -915,10 +744,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -928,10 +754,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -942,10 +765,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Integer value that is the result of evaluating this LiteralInteger. diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralRational.cs b/SysML2.NET/Core/AutoGenPoco/LiteralRational.cs index 0aedd7ff1..c4e449d47 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralRational.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralRational.cs @@ -67,10 +67,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,10 +79,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -95,10 +89,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -128,10 +119,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -140,10 +128,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -160,10 +145,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -179,10 +161,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -192,10 +171,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -203,10 +179,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -215,20 +188,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -238,10 +205,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -249,10 +213,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -260,10 +221,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -271,10 +229,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -283,10 +238,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -294,10 +246,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -310,10 +259,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -337,10 +283,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -387,10 +330,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -398,10 +338,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -435,7 +372,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -451,10 +388,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -462,10 +396,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -475,10 +406,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -488,10 +416,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -499,10 +424,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -512,10 +434,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -524,10 +443,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -536,10 +452,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -549,10 +462,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -562,10 +472,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -573,10 +480,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -585,10 +489,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -596,10 +497,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -609,10 +507,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -622,10 +517,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -635,10 +527,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -648,10 +537,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -660,10 +546,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -672,10 +555,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -686,10 +566,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -698,10 +575,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -710,10 +584,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -731,10 +602,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -744,10 +612,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -757,10 +622,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -770,10 +632,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -782,10 +641,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -793,10 +649,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -804,10 +657,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -816,10 +666,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -828,10 +675,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -849,10 +693,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -861,10 +702,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -876,10 +714,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -890,10 +725,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -903,10 +735,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -915,10 +744,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -928,10 +754,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -942,10 +765,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The value whose rational approximation is the result of evaluating this LiteralRational. diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralString.cs b/SysML2.NET/Core/AutoGenPoco/LiteralString.cs index 9298af954..320f69f58 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralString.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralString.cs @@ -67,10 +67,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -82,10 +79,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -95,10 +89,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -128,10 +119,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -140,10 +128,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -160,10 +145,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -179,10 +161,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -192,10 +171,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -203,10 +179,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -215,20 +188,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -238,10 +205,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -249,10 +213,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -260,10 +221,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -271,10 +229,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -283,10 +238,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -294,10 +246,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -310,10 +259,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -337,10 +283,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -387,10 +330,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -398,10 +338,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -435,7 +372,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -451,10 +388,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -462,10 +396,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -475,10 +406,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -488,10 +416,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -499,10 +424,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -512,10 +434,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -524,10 +443,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -536,10 +452,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -549,10 +462,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -562,10 +472,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -573,10 +480,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -585,10 +489,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -596,10 +497,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -609,10 +507,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -622,10 +517,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -635,10 +527,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -648,10 +537,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -660,10 +546,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -672,10 +555,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -686,10 +566,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -698,10 +575,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -710,10 +584,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -731,10 +602,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -744,10 +612,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -757,10 +622,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -770,10 +632,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -782,10 +641,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -793,10 +649,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -804,10 +657,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -816,10 +666,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -828,10 +675,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -849,10 +693,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -861,10 +702,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -876,10 +714,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -890,10 +725,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -903,10 +735,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -915,10 +744,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -928,10 +754,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -942,10 +765,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The String value that is the result of evaluating this Expression. diff --git a/SysML2.NET/Core/AutoGenPoco/LoopActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/LoopActionUsage.cs index bbba0d5b1..13fe09b8f 100644 --- a/SysML2.NET/Core/AutoGenPoco/LoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/LoopActionUsage.cs @@ -86,10 +86,7 @@ public partial class LoopActionUsage : ILoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -105,10 +102,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The ActionUsage to be performed repeatedly by the LoopActionUsage. It is the second parameter of the @@ -116,10 +110,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_12e503d9_1624203902575_509097_3869", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ILoopActionUsage.BodyAction")] - public IActionUsage QueryBodyAction() - { - return this.ComputeBodyAction(); - } + public IActionUsage bodyAction => this.ComputeBodyAction(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -131,10 +122,7 @@ public IActionUsage QueryBodyAction() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -144,10 +132,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -175,10 +160,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -191,10 +173,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -203,10 +182,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -215,10 +191,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -235,10 +208,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -254,10 +224,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -267,10 +234,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -278,10 +242,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -290,20 +251,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -313,10 +268,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -324,10 +276,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -335,10 +284,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -346,10 +292,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -358,10 +301,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -369,10 +309,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -385,10 +322,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -412,10 +346,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -470,10 +401,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -495,10 +423,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -517,7 +442,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -547,10 +472,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -558,10 +480,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -569,10 +488,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -582,10 +498,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -595,10 +508,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -606,10 +516,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -617,10 +524,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -628,10 +532,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -639,10 +540,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -650,10 +548,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -661,10 +556,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -672,10 +564,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -685,10 +574,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -696,10 +582,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -707,10 +590,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -718,10 +598,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -729,10 +606,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -740,10 +614,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -751,10 +622,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -762,10 +630,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -773,10 +638,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -784,10 +646,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -795,10 +654,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -806,10 +662,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -817,10 +670,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -828,10 +678,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -839,10 +686,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -851,10 +695,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -862,10 +703,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -873,10 +711,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -884,10 +719,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -895,10 +727,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -909,10 +738,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -920,10 +746,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -933,10 +756,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -945,10 +765,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -957,10 +774,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -970,10 +784,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -983,10 +794,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -994,10 +802,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1006,10 +811,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1017,10 +819,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1030,10 +829,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1043,10 +839,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1056,10 +849,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1069,10 +859,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1081,10 +868,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1093,10 +877,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1107,10 +888,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1119,10 +897,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1131,10 +906,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1152,10 +924,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1165,10 +934,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1178,10 +944,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1191,10 +954,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1203,10 +963,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1214,10 +971,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1226,10 +980,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1237,10 +988,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1249,10 +997,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1261,10 +1006,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1282,10 +1024,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1293,10 +1032,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1305,10 +1041,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1329,10 +1062,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1342,10 +1072,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1354,10 +1081,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1368,10 +1092,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1382,10 +1103,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1393,10 +1111,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1405,10 +1120,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1417,10 +1129,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Membership.cs b/SysML2.NET/Core/AutoGenPoco/Membership.cs index 94f1985b9..f54567768 100644 --- a/SysML2.NET/Core/AutoGenPoco/Membership.cs +++ b/SysML2.NET/Core/AutoGenPoco/Membership.cs @@ -84,10 +84,7 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -121,10 +118,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -139,10 +133,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -159,10 +150,7 @@ public string QueryMemberElementId() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -179,10 +167,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -192,10 +177,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -203,10 +185,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -230,10 +209,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -242,10 +218,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -254,10 +227,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -285,10 +255,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -296,10 +263,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -309,10 +273,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -339,10 +300,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -350,7 +308,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/MembershipExpose.cs b/SysML2.NET/Core/AutoGenPoco/MembershipExpose.cs index 1478761bc..848dcb06f 100644 --- a/SysML2.NET/Core/AutoGenPoco/MembershipExpose.cs +++ b/SysML2.NET/Core/AutoGenPoco/MembershipExpose.cs @@ -80,10 +80,7 @@ public partial class MembershipExpose : IMembershipExpose [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -99,10 +96,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1668801846848_909736_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IImport.ImportedElement")] - public IElement QueryImportedElement() - { - return this.ComputeImportedElement(); - } + public IElement importedElement => this.ComputeImportedElement(); /// /// The Membership to be imported. @@ -120,10 +114,7 @@ public IElement QueryImportedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IImport.ImportOwningNamespace")] - public INamespace QueryImportOwningNamespace() - { - return this.ComputeImportOwningNamespace(); - } + public INamespace importOwningNamespace => this.ComputeImportOwningNamespace(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -158,17 +149,14 @@ public INamespace QueryImportOwningNamespace() [Property(xmiId: "_19_0_4_12e503d9_1622578615027_762161_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622577942205_869984_64")] [Implements(implementation: "IExpose.IsImportAll")] - bool IExpose.IsImportAll { get; set; } + public bool IsImportAll { get; set; } = true; /// /// Whether this Element is contained in the ownership tree of a library model. /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether to recursively import Memberships from visible, owned sub-Namespaces. @@ -185,10 +173,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -198,10 +183,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -209,10 +191,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -236,10 +215,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -248,10 +224,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -260,10 +233,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -291,10 +261,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -302,10 +269,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -315,10 +279,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -345,10 +306,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The visibility level of the imported members from this Import relative to the importOwningNamespace. @@ -357,7 +315,7 @@ public List QueryTextualRepresentation() [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")] [RedefinedByProperty("IExpose.Visibility")] [Implements(implementation: "IImport.Visibility")] - VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } + VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } = VisibilityKind.Private; /// /// An Expose always has protected visibility. @@ -365,7 +323,7 @@ public List QueryTextualRepresentation() [Property(xmiId: "_2022x_2_12e503d9_1720469034555_222060_1140", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "protected")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674976_798509_43257")] [Implements(implementation: "IExpose.Visibility")] - VisibilityKind IExpose.Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Protected; } } diff --git a/SysML2.NET/Core/AutoGenPoco/MembershipImport.cs b/SysML2.NET/Core/AutoGenPoco/MembershipImport.cs index 4e59b3c93..939e18c93 100644 --- a/SysML2.NET/Core/AutoGenPoco/MembershipImport.cs +++ b/SysML2.NET/Core/AutoGenPoco/MembershipImport.cs @@ -80,10 +80,7 @@ public partial class MembershipImport : IMembershipImport [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -99,10 +96,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1668801846848_909736_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IImport.ImportedElement")] - public IElement QueryImportedElement() - { - return this.ComputeImportedElement(); - } + public IElement importedElement => this.ComputeImportedElement(); /// /// The Membership to be imported. @@ -120,10 +114,7 @@ public IElement QueryImportedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IImport.ImportOwningNamespace")] - public INamespace QueryImportOwningNamespace() - { - return this.ComputeImportOwningNamespace(); - } + public INamespace importOwningNamespace => this.ComputeImportOwningNamespace(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -156,10 +147,7 @@ public INamespace QueryImportOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether to recursively import Memberships from visible, owned sub-Namespaces. @@ -176,10 +164,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -189,10 +174,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -200,10 +182,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -227,10 +206,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -239,10 +215,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -251,10 +224,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -282,10 +252,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -293,10 +260,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -306,10 +270,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -336,10 +297,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The visibility level of the imported members from this Import relative to the importOwningNamespace. @@ -347,7 +305,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IImport.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Private; } } diff --git a/SysML2.NET/Core/AutoGenPoco/MergeNode.cs b/SysML2.NET/Core/AutoGenPoco/MergeNode.cs index 29fdb05cc..61334db5f 100644 --- a/SysML2.NET/Core/AutoGenPoco/MergeNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/MergeNode.cs @@ -85,10 +85,7 @@ public partial class MergeNode : IMergeNode [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -104,10 +101,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -119,10 +113,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -132,10 +123,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -163,10 +151,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -179,10 +164,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -191,10 +173,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -203,10 +182,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -223,10 +199,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -242,10 +215,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -255,10 +225,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -266,10 +233,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -278,20 +242,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -301,10 +259,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -312,10 +267,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -323,10 +275,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -334,10 +283,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -346,10 +292,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -357,10 +300,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -373,10 +313,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -400,10 +337,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -458,10 +392,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -483,10 +414,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -505,7 +433,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -535,10 +463,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -546,10 +471,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -557,10 +479,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -570,10 +489,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -583,10 +499,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -594,10 +507,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -605,10 +515,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -616,10 +523,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -627,10 +531,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -638,10 +539,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -649,10 +547,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -660,10 +555,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -673,10 +565,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -684,10 +573,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -695,10 +581,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -706,10 +589,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -717,10 +597,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -728,10 +605,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -739,10 +613,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -750,10 +621,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -761,10 +629,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -772,10 +637,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -783,10 +645,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -794,10 +653,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -805,10 +661,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -816,10 +669,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -827,10 +677,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -839,10 +686,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -850,10 +694,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -861,10 +702,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -872,10 +710,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -883,10 +718,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -897,10 +729,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -908,10 +737,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -921,10 +747,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -933,10 +756,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -945,10 +765,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -958,10 +775,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -971,10 +785,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -982,10 +793,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -994,10 +802,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1005,10 +810,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1018,10 +820,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1031,10 +830,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1044,10 +840,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1057,10 +850,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1069,10 +859,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1081,10 +868,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1095,10 +879,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1107,10 +888,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1119,10 +897,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1140,10 +915,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1153,10 +925,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1166,10 +935,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1179,10 +945,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1191,10 +954,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1202,10 +962,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1214,10 +971,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1225,10 +979,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1237,10 +988,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1249,10 +997,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1270,10 +1015,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1281,10 +1023,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1293,10 +1032,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1317,10 +1053,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1330,10 +1063,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1342,10 +1072,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1356,10 +1083,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1370,10 +1094,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1381,10 +1102,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1393,10 +1111,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1405,10 +1120,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Metaclass.cs b/SysML2.NET/Core/AutoGenPoco/Metaclass.cs index bd8dbd2a5..937506e09 100644 --- a/SysML2.NET/Core/AutoGenPoco/Metaclass.cs +++ b/SysML2.NET/Core/AutoGenPoco/Metaclass.cs @@ -86,10 +86,7 @@ public partial class Metaclass : IMetaclass /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -97,10 +94,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The Documentation owned by this Element. @@ -109,10 +103,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -128,10 +119,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -139,10 +127,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -151,10 +136,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -162,10 +144,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -173,10 +152,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -185,10 +161,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -196,10 +169,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -212,10 +182,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -230,10 +197,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -251,10 +215,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -274,10 +235,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -285,10 +243,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -298,10 +253,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -311,10 +263,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -322,10 +271,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -335,10 +281,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -347,10 +290,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -360,10 +300,7 @@ public IConjugation QueryOwnedConjugator() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -373,10 +310,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -384,10 +318,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -396,10 +327,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -407,10 +335,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -420,10 +345,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -433,10 +355,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -445,10 +364,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -457,10 +373,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -471,10 +384,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -492,10 +402,7 @@ public List QueryOwnedMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -504,10 +411,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -516,10 +420,7 @@ public List QueryOwnedSubclassification() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -527,10 +428,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -539,10 +437,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -551,10 +446,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -574,10 +466,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -587,10 +476,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -599,10 +485,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -613,10 +496,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/MetadataAccessExpression.cs b/SysML2.NET/Core/AutoGenPoco/MetadataAccessExpression.cs index 2982b2723..978f59434 100644 --- a/SysML2.NET/Core/AutoGenPoco/MetadataAccessExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/MetadataAccessExpression.cs @@ -69,10 +69,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -84,10 +81,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -97,10 +91,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -130,10 +121,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -142,10 +130,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -162,10 +147,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -181,10 +163,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -194,10 +173,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -205,10 +181,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -217,20 +190,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -240,10 +207,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -251,10 +215,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -262,10 +223,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -273,10 +231,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -285,10 +240,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -296,10 +248,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -312,10 +261,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -339,10 +285,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -389,10 +332,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -400,10 +340,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -437,7 +374,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -453,10 +390,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -464,10 +398,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -477,10 +408,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -490,10 +418,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -501,10 +426,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -514,10 +436,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -526,10 +445,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -538,10 +454,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -551,10 +464,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -564,10 +474,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -575,10 +482,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -587,10 +491,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -598,10 +499,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -611,10 +509,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -624,10 +519,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -637,10 +529,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -650,10 +539,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -662,10 +548,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -674,10 +557,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -688,10 +568,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -700,10 +577,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -712,10 +586,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -733,10 +604,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -746,10 +614,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -759,10 +624,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -772,10 +634,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -784,10 +643,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -795,10 +651,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -806,10 +659,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -818,10 +668,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -830,10 +677,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -851,10 +695,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -863,10 +704,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -878,10 +716,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Element whose metadata is being accessed. @@ -889,10 +724,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_4_12e503d9_1665514131655_247232_1341", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IMetadataAccessExpression.ReferencedElement")] - public IElement QueryReferencedElement() - { - return this.ComputeReferencedElement(); - } + public IElement referencedElement => this.ComputeReferencedElement(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -903,10 +735,7 @@ public IElement QueryReferencedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -916,10 +745,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -928,10 +754,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -941,10 +764,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -955,10 +775,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/MetadataDefinition.cs b/SysML2.NET/Core/AutoGenPoco/MetadataDefinition.cs index 340f1fc97..d9739be73 100644 --- a/SysML2.NET/Core/AutoGenPoco/MetadataDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/MetadataDefinition.cs @@ -107,10 +107,7 @@ public partial class MetadataDefinition : IMetadataDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -118,10 +115,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -130,10 +124,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -142,10 +133,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -161,10 +149,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -172,10 +157,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -184,10 +166,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -195,10 +174,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -206,10 +182,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -218,10 +191,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -229,10 +199,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -245,10 +212,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -263,10 +227,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -291,10 +252,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -322,10 +280,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -333,10 +288,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -346,10 +298,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -359,10 +308,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -370,10 +316,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -381,10 +324,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -392,10 +332,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -403,10 +340,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -416,10 +350,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -427,10 +358,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -438,10 +366,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -449,10 +374,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -460,10 +382,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -472,10 +391,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -485,10 +401,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -496,10 +409,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -509,10 +419,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -522,10 +429,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -533,10 +437,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -545,10 +446,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -556,10 +454,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -567,10 +462,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -580,10 +472,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -591,10 +480,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -604,10 +490,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -615,10 +498,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -627,10 +507,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -638,10 +515,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -650,10 +524,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -664,10 +535,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -675,10 +543,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -686,10 +551,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -697,10 +559,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -708,10 +567,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -719,10 +575,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -738,10 +591,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -749,10 +599,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -762,10 +609,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -773,10 +617,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -785,10 +626,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -796,10 +634,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -808,10 +643,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -820,10 +652,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -831,10 +660,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -842,10 +668,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -853,10 +676,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -864,10 +684,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -875,10 +692,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -887,10 +701,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -899,10 +710,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -922,10 +730,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -935,10 +740,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -947,10 +749,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -961,10 +760,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -972,10 +768,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -984,10 +777,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -997,10 +787,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/MetadataFeature.cs b/SysML2.NET/Core/AutoGenPoco/MetadataFeature.cs index e1fbaa956..f53d73676 100644 --- a/SysML2.NET/Core/AutoGenPoco/MetadataFeature.cs +++ b/SysML2.NET/Core/AutoGenPoco/MetadataFeature.cs @@ -66,10 +66,7 @@ public partial class MetadataFeature : IMetadataFeature /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List QueryAnnotatedElement() - { - return this.ComputeAnnotatedElement(); - } + public List annotatedElement => this.ComputeAnnotatedElement(); /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -78,10 +75,7 @@ public List QueryAnnotatedElement() [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List QueryAnnotation() - { - return this.ComputeAnnotation(); - } + public List annotation => this.ComputeAnnotation(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -93,10 +87,7 @@ public List QueryAnnotation() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -106,10 +97,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -139,10 +127,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -150,10 +135,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -170,10 +152,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -189,10 +168,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -202,10 +178,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -213,10 +186,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -225,20 +195,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -248,10 +212,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -259,10 +220,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -270,10 +228,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -282,10 +237,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -293,10 +245,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -309,10 +258,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -336,10 +282,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -386,10 +329,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -423,7 +363,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -439,10 +379,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -450,10 +387,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// The type of this MetadataFeature, which must be a Metaclass. @@ -461,10 +395,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_4_12e503d9_1606345564958_925589_327", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IMetadataFeature.Metaclass")] - public IMetaclass QueryMetaclass() - { - return this.ComputeMetaclass(); - } + public IMetaclass metaclass => this.ComputeMetaclass(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -474,10 +405,7 @@ public IMetaclass QueryMetaclass() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -487,10 +415,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -498,10 +423,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -511,10 +433,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List QueryOwnedAnnotatingRelationship() - { - return this.ComputeOwnedAnnotatingRelationship(); - } + public List ownedAnnotatingRelationship => this.ComputeOwnedAnnotatingRelationship(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -524,10 +443,7 @@ public List QueryOwnedAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -536,10 +452,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -548,10 +461,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -561,10 +471,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -574,10 +481,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -585,10 +489,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -597,10 +498,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -608,10 +506,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -621,10 +516,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -634,10 +526,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -647,10 +536,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -660,10 +546,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -672,10 +555,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -684,10 +564,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -698,10 +575,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -710,10 +584,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -722,10 +593,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -743,10 +611,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -756,10 +621,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -769,10 +631,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -782,10 +641,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -794,10 +650,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -805,10 +658,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -817,10 +667,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public IAnnotation QueryOwningAnnotatingRelationship() - { - return this.ComputeOwningAnnotatingRelationship(); - } + public IAnnotation owningAnnotatingRelationship => this.ComputeOwningAnnotatingRelationship(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -828,10 +675,7 @@ public IAnnotation QueryOwningAnnotatingRelationship() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -840,10 +684,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -852,10 +693,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -873,10 +711,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -888,10 +723,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -901,10 +733,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -913,10 +742,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -926,10 +752,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -940,10 +763,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs b/SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs index a06b95a58..cb6a641a2 100644 --- a/SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs @@ -93,10 +93,7 @@ public partial class MetadataUsage : IMetadataUsage /// [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List QueryAnnotatedElement() - { - return this.ComputeAnnotatedElement(); - } + public List annotatedElement => this.ComputeAnnotatedElement(); /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -105,10 +102,7 @@ public List QueryAnnotatedElement() [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List QueryAnnotation() - { - return this.ComputeAnnotation(); - } + public List annotation => this.ComputeAnnotation(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -120,10 +114,7 @@ public List QueryAnnotation() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -133,10 +124,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -164,10 +152,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -180,10 +165,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -191,10 +173,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -203,10 +182,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -223,10 +199,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -242,10 +215,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -255,10 +225,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -266,10 +233,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -278,20 +242,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -301,10 +259,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -312,10 +267,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -323,10 +275,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -334,10 +283,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -346,10 +292,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -357,10 +300,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -373,10 +313,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -400,10 +337,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -458,10 +392,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -483,10 +414,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -505,7 +433,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -533,10 +461,7 @@ public bool QueryIsReference() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IMetadataUsage.MetadataDefinition")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List QueryItemDefinition() - { - return this.ComputeItemDefinition(); - } + public List itemDefinition => this.ComputeItemDefinition(); /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -549,10 +474,7 @@ public List QueryItemDefinition() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -560,10 +482,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -571,10 +490,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// The type of this MetadataFeature, which must be a Metaclass. @@ -583,10 +499,7 @@ public List QueryMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IMetadataUsage.MetadataDefinition")] [Implements(implementation: "IMetadataFeature.Metaclass")] - public IMetaclass QueryMetaclass() - { - return this.ComputeMetaclass(); - } + public IMetaclass metaclass => this.ComputeMetaclass(); /// /// The MetadataDefinition that is the definition of this MetadataUsage. @@ -595,10 +508,7 @@ public IMetaclass QueryMetaclass() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1606345564958_925589_327")] [Implements(implementation: "IMetadataUsage.MetadataDefinition")] - public IMetaclass QueryMetadataDefinition() - { - return this.ComputeMetadataDefinition(); - } + public IMetaclass metadataDefinition => this.ComputeMetadataDefinition(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -608,10 +518,7 @@ public IMetaclass QueryMetadataDefinition() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -621,10 +528,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -632,10 +536,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -643,10 +544,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -654,10 +552,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -665,10 +560,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -676,10 +568,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -687,10 +576,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -698,10 +584,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -711,10 +594,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -722,10 +602,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -733,10 +610,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -744,10 +618,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -755,10 +626,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -766,10 +634,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -777,10 +642,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -788,10 +650,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -799,10 +658,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -810,10 +666,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -821,10 +674,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -832,10 +682,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -843,10 +690,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -854,10 +698,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -865,10 +706,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -877,10 +715,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -888,10 +723,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -899,10 +731,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -910,10 +739,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -921,10 +747,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -934,10 +757,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -945,10 +765,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -958,10 +775,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List QueryOwnedAnnotatingRelationship() - { - return this.ComputeOwnedAnnotatingRelationship(); - } + public List ownedAnnotatingRelationship => this.ComputeOwnedAnnotatingRelationship(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -971,10 +785,7 @@ public List QueryOwnedAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -983,10 +794,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -995,10 +803,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1008,10 +813,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1021,10 +823,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1032,10 +831,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1044,10 +840,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1055,10 +848,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1068,10 +858,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1081,10 +868,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1094,10 +878,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1107,10 +888,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1119,10 +897,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1131,10 +906,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1145,10 +917,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1157,10 +926,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1169,10 +935,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1190,10 +953,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1203,10 +963,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1216,10 +973,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1229,10 +983,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1241,10 +992,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1252,10 +1000,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -1264,10 +1009,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public IAnnotation QueryOwningAnnotatingRelationship() - { - return this.ComputeOwningAnnotatingRelationship(); - } + public IAnnotation owningAnnotatingRelationship => this.ComputeOwningAnnotatingRelationship(); /// /// The Definition that owns this Usage (if any). @@ -1276,10 +1018,7 @@ public IAnnotation QueryOwningAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1287,10 +1026,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1299,10 +1035,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1311,10 +1044,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1332,10 +1062,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1343,10 +1070,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1367,10 +1091,7 @@ public IUsage QueryOwningUsage() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1380,10 +1101,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1392,10 +1110,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1406,10 +1121,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1420,10 +1132,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1431,10 +1140,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1443,10 +1149,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1455,10 +1158,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Multiplicity.cs b/SysML2.NET/Core/AutoGenPoco/Multiplicity.cs index f9c17263f..fade13830 100644 --- a/SysML2.NET/Core/AutoGenPoco/Multiplicity.cs +++ b/SysML2.NET/Core/AutoGenPoco/Multiplicity.cs @@ -77,10 +77,7 @@ public partial class Multiplicity : IMultiplicity /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -90,10 +87,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -123,10 +117,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -134,10 +125,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -154,10 +142,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -173,10 +158,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -186,10 +168,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -197,10 +176,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -209,20 +185,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -232,10 +202,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -243,10 +210,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -254,10 +218,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -266,10 +227,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -277,10 +235,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -293,10 +248,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -320,10 +272,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -370,10 +319,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -407,7 +353,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -423,10 +369,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -434,10 +377,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -447,10 +387,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -460,10 +397,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -471,10 +405,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -484,10 +415,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -496,10 +424,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -508,10 +433,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -521,10 +443,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -534,10 +453,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -545,10 +461,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -557,10 +470,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -568,10 +478,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -581,10 +488,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -594,10 +498,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -607,10 +508,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -620,10 +518,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -632,10 +527,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -644,10 +536,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -658,10 +547,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -670,10 +556,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -682,10 +565,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -703,10 +583,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -716,10 +593,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -729,10 +603,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -742,10 +613,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -754,10 +622,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -765,10 +630,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -776,10 +638,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -788,10 +647,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -800,10 +656,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -821,10 +674,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -836,10 +686,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -849,10 +696,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -861,10 +705,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -874,10 +715,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -888,10 +726,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/MultiplicityRange.cs b/SysML2.NET/Core/AutoGenPoco/MultiplicityRange.cs index ee1b46774..d55744e91 100644 --- a/SysML2.NET/Core/AutoGenPoco/MultiplicityRange.cs +++ b/SysML2.NET/Core/AutoGenPoco/MultiplicityRange.cs @@ -71,10 +71,7 @@ public partial class MultiplicityRange : IMultiplicityRange [Property(xmiId: "_19_0_2_12e503d9_1573095221994_519580_5095", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IMultiplicityRange.Bound")] - public List QueryBound() - { - return this.ComputeBound(); - } + public List bound => this.ComputeBound(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -86,10 +83,7 @@ public List QueryBound() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -99,10 +93,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -132,10 +123,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -143,10 +131,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -163,10 +148,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -182,10 +164,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -195,10 +174,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -206,10 +182,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -218,20 +191,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -241,10 +208,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -252,10 +216,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -263,10 +224,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -275,10 +233,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -286,10 +241,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -302,10 +254,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -329,10 +278,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -379,10 +325,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -416,7 +359,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -434,10 +377,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_2_12e503d9_1573094905677_801324_4744", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] [Implements(implementation: "IMultiplicityRange.LowerBound")] - public IExpression QueryLowerBound() - { - return this.ComputeLowerBound(); - } + public IExpression lowerBound => this.ComputeLowerBound(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -445,10 +385,7 @@ public IExpression QueryLowerBound() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -456,10 +393,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -469,10 +403,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -482,10 +413,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -493,10 +421,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -506,10 +431,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -518,10 +440,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -530,10 +449,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -543,10 +459,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -556,10 +469,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -567,10 +477,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -579,10 +486,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -590,10 +494,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -603,10 +504,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -616,10 +514,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -629,10 +524,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -642,10 +534,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -654,10 +543,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -666,10 +552,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -680,10 +563,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -692,10 +572,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -704,10 +581,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -725,10 +599,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -738,10 +609,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -751,10 +619,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -764,10 +629,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -776,10 +638,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -787,10 +646,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -798,10 +654,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -810,10 +663,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -822,10 +672,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -843,10 +690,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -858,10 +702,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -871,10 +712,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -883,10 +721,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -896,10 +731,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -910,10 +742,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Expression whose result is the upper bound of the MultiplicityRange. @@ -921,10 +750,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1573094947427_797440_4796", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] [Implements(implementation: "IMultiplicityRange.UpperBound")] - public IExpression QueryUpperBound() - { - return this.ComputeUpperBound(); - } + public IExpression upperBound => this.ComputeUpperBound(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Namespace.cs b/SysML2.NET/Core/AutoGenPoco/Namespace.cs index aa553493e..840a3cf5c 100644 --- a/SysML2.NET/Core/AutoGenPoco/Namespace.cs +++ b/SysML2.NET/Core/AutoGenPoco/Namespace.cs @@ -85,10 +85,7 @@ public partial class Namespace : INamespace [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -104,10 +101,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -125,10 +119,7 @@ public List QueryImportedMembership() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -136,10 +127,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -147,10 +135,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -160,10 +145,7 @@ public List QueryMembership() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -173,10 +155,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -184,10 +163,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -197,10 +173,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -209,10 +182,7 @@ public List QueryOwnedImport() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -223,10 +193,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -242,10 +209,7 @@ public List QueryOwnedMembership() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -254,10 +218,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -266,10 +227,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -289,10 +247,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -302,10 +257,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -314,10 +266,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/NamespaceExpose.cs b/SysML2.NET/Core/AutoGenPoco/NamespaceExpose.cs index bd5b241b3..aad840166 100644 --- a/SysML2.NET/Core/AutoGenPoco/NamespaceExpose.cs +++ b/SysML2.NET/Core/AutoGenPoco/NamespaceExpose.cs @@ -80,10 +80,7 @@ public partial class NamespaceExpose : INamespaceExpose [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -99,10 +96,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1668801846848_909736_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IImport.ImportedElement")] - public IElement QueryImportedElement() - { - return this.ComputeImportedElement(); - } + public IElement importedElement => this.ComputeImportedElement(); /// /// The Namespace whose visible Memberships are imported by this NamespaceImport. @@ -120,10 +114,7 @@ public IElement QueryImportedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IImport.ImportOwningNamespace")] - public INamespace QueryImportOwningNamespace() - { - return this.ComputeImportOwningNamespace(); - } + public INamespace importOwningNamespace => this.ComputeImportOwningNamespace(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -150,7 +141,7 @@ public INamespace QueryImportOwningNamespace() [Property(xmiId: "_19_0_4_12e503d9_1622578615027_762161_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622577942205_869984_64")] [Implements(implementation: "IExpose.IsImportAll")] - bool IExpose.IsImportAll { get; set; } + public bool IsImportAll { get; set; } = true; /// /// Whether to import memberships without regard to declared visibility. @@ -165,10 +156,7 @@ public INamespace QueryImportOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether to recursively import Memberships from visible, owned sub-Namespaces. @@ -185,10 +173,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -198,10 +183,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -209,10 +191,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -236,10 +215,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -248,10 +224,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -260,10 +233,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -291,10 +261,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -302,10 +269,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -315,10 +279,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -345,10 +306,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// An Expose always has protected visibility. @@ -356,7 +314,7 @@ public List QueryTextualRepresentation() [Property(xmiId: "_2022x_2_12e503d9_1720469034555_222060_1140", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "protected")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674976_798509_43257")] [Implements(implementation: "IExpose.Visibility")] - VisibilityKind IExpose.Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Protected; /// /// The visibility level of the imported members from this Import relative to the importOwningNamespace. @@ -365,7 +323,7 @@ public List QueryTextualRepresentation() [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")] [RedefinedByProperty("IExpose.Visibility")] [Implements(implementation: "IImport.Visibility")] - VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } + VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } = VisibilityKind.Private; } } diff --git a/SysML2.NET/Core/AutoGenPoco/NamespaceImport.cs b/SysML2.NET/Core/AutoGenPoco/NamespaceImport.cs index 789799954..dec960132 100644 --- a/SysML2.NET/Core/AutoGenPoco/NamespaceImport.cs +++ b/SysML2.NET/Core/AutoGenPoco/NamespaceImport.cs @@ -81,10 +81,7 @@ public partial class NamespaceImport : INamespaceImport [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -100,10 +97,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1668801846848_909736_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IImport.ImportedElement")] - public IElement QueryImportedElement() - { - return this.ComputeImportedElement(); - } + public IElement importedElement => this.ComputeImportedElement(); /// /// The Namespace whose visible Memberships are imported by this NamespaceImport. @@ -121,10 +115,7 @@ public IElement QueryImportedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IImport.ImportOwningNamespace")] - public INamespace QueryImportOwningNamespace() - { - return this.ComputeImportOwningNamespace(); - } + public INamespace importOwningNamespace => this.ComputeImportOwningNamespace(); /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -157,10 +148,7 @@ public INamespace QueryImportOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether to recursively import Memberships from visible, owned sub-Namespaces. @@ -177,10 +165,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -190,10 +175,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -201,10 +183,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -228,10 +207,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -240,10 +216,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -252,10 +225,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -283,10 +253,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -294,10 +261,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -307,10 +271,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -337,10 +298,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The visibility level of the imported members from this Import relative to the importOwningNamespace. @@ -348,7 +306,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IImport.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Private; } } diff --git a/SysML2.NET/Core/AutoGenPoco/NullExpression.cs b/SysML2.NET/Core/AutoGenPoco/NullExpression.cs index 2e5b112dc..0113e27eb 100644 --- a/SysML2.NET/Core/AutoGenPoco/NullExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/NullExpression.cs @@ -66,10 +66,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -81,10 +78,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -94,10 +88,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -127,10 +118,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -139,10 +127,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -159,10 +144,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -178,10 +160,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -191,10 +170,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -202,10 +178,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -214,20 +187,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -237,10 +204,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -248,10 +212,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -259,10 +220,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -270,10 +228,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -282,10 +237,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -293,10 +245,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -309,10 +258,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -336,10 +282,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -386,10 +329,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -397,10 +337,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -434,7 +371,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -450,10 +387,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -461,10 +395,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -474,10 +405,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -487,10 +415,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -498,10 +423,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -511,10 +433,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -523,10 +442,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -535,10 +451,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -548,10 +461,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -561,10 +471,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -572,10 +479,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -584,10 +488,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -595,10 +496,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -608,10 +506,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -621,10 +516,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -634,10 +526,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -647,10 +536,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -659,10 +545,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -671,10 +554,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -685,10 +565,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -697,10 +574,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -709,10 +583,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -730,10 +601,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -743,10 +611,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -756,10 +621,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -769,10 +631,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -781,10 +640,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -792,10 +648,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -803,10 +656,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -815,10 +665,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -827,10 +674,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -848,10 +692,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -860,10 +701,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -875,10 +713,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -889,10 +724,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -902,10 +734,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -914,10 +743,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -927,10 +753,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -941,10 +764,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ObjectiveMembership.cs b/SysML2.NET/Core/AutoGenPoco/ObjectiveMembership.cs index c6bfd4774..4e2eae8a8 100644 --- a/SysML2.NET/Core/AutoGenPoco/ObjectiveMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ObjectiveMembership.cs @@ -83,10 +83,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -120,10 +117,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -140,10 +134,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -162,10 +153,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -183,10 +171,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -196,10 +181,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -207,10 +189,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -221,10 +200,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -232,10 +208,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -245,10 +218,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IObjectiveMembership.OwnedObjectiveRequirement")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -256,10 +226,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -267,10 +234,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The RequirementUsage that is the ownedMemberFeature of this RequirementUsage. @@ -278,10 +242,7 @@ public string QueryOwnedMemberShortName() [Property(xmiId: "_19_0_2_59601fc_1590258776804_538578_832", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IObjectiveMembership.OwnedObjectiveRequirement")] - public IRequirementUsage QueryOwnedObjectiveRequirement() - { - return this.ComputeOwnedObjectiveRequirement(); - } + public IRequirementUsage ownedObjectiveRequirement => this.ComputeOwnedObjectiveRequirement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -305,10 +266,7 @@ public IRequirementUsage QueryOwnedObjectiveRequirement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -317,10 +275,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -329,10 +284,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -357,10 +309,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -372,10 +321,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -383,10 +329,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -396,10 +339,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -426,10 +366,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -437,7 +374,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/OccurrenceDefinition.cs b/SysML2.NET/Core/AutoGenPoco/OccurrenceDefinition.cs index 44b06cb14..b2832aefc 100644 --- a/SysML2.NET/Core/AutoGenPoco/OccurrenceDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/OccurrenceDefinition.cs @@ -110,10 +110,7 @@ public partial class OccurrenceDefinition : IOccurrenceDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -121,10 +118,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -133,10 +127,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -145,10 +136,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -164,10 +152,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -175,10 +160,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -187,10 +169,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -198,10 +177,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -209,10 +185,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -221,10 +194,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -232,10 +202,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -248,10 +215,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -266,10 +230,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -294,10 +255,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -325,10 +283,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -336,10 +291,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -349,10 +301,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -362,10 +311,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -373,10 +319,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -384,10 +327,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -395,10 +335,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -406,10 +343,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -419,10 +353,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -430,10 +361,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -441,10 +369,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -452,10 +377,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -463,10 +385,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -475,10 +394,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -488,10 +404,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -499,10 +412,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -512,10 +422,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -525,10 +432,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -536,10 +440,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -548,10 +449,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -559,10 +457,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -570,10 +465,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -583,10 +475,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -594,10 +483,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -607,10 +493,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -618,10 +501,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -630,10 +510,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -641,10 +518,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -653,10 +527,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -667,10 +538,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -678,10 +546,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -689,10 +554,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -700,10 +562,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -711,10 +570,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -722,10 +578,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -741,10 +594,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -752,10 +602,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -765,10 +612,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -776,10 +620,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -788,10 +629,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -799,10 +637,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -811,10 +646,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -823,10 +655,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -834,10 +663,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -845,10 +671,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -856,10 +679,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -867,10 +687,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -878,10 +695,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -890,10 +704,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -902,10 +713,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -925,10 +733,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -938,10 +743,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -950,10 +752,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -964,10 +763,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -975,10 +771,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -987,10 +780,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1000,10 +790,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/OccurrenceUsage.cs b/SysML2.NET/Core/AutoGenPoco/OccurrenceUsage.cs index 7e5b2c1a8..1f9c23a36 100644 --- a/SysML2.NET/Core/AutoGenPoco/OccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/OccurrenceUsage.cs @@ -94,10 +94,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -107,10 +104,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -138,10 +132,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -154,10 +145,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -165,10 +153,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -177,10 +162,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -197,10 +179,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -216,10 +195,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -229,10 +205,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -240,10 +213,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -252,20 +222,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -275,10 +239,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -286,10 +247,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -297,10 +255,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -308,10 +263,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -320,10 +272,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -331,10 +280,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -347,10 +293,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -374,10 +317,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -432,10 +372,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -457,10 +394,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -479,7 +413,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -509,10 +443,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -520,10 +451,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -531,10 +459,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -544,10 +469,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -557,10 +479,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -568,10 +487,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -579,10 +495,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -590,10 +503,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -601,10 +511,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -612,10 +519,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -623,10 +527,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -634,10 +535,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -647,10 +545,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -658,10 +553,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -669,10 +561,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -680,10 +569,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -691,10 +577,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -702,10 +585,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -713,10 +593,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -724,10 +601,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -735,10 +609,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -746,10 +617,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -757,10 +625,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -768,10 +633,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -779,10 +641,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -790,10 +649,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -801,10 +657,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -813,10 +666,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -824,10 +674,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -835,10 +682,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -846,10 +690,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -857,10 +698,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -870,10 +708,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -881,10 +716,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -894,10 +726,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -906,10 +735,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -918,10 +744,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -931,10 +754,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -944,10 +764,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -955,10 +772,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -967,10 +781,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -978,10 +789,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -991,10 +799,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1004,10 +809,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1017,10 +819,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1030,10 +829,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1042,10 +838,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1054,10 +847,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1068,10 +858,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1080,10 +867,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1092,10 +876,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1113,10 +894,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1126,10 +904,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1139,10 +914,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1152,10 +924,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1164,10 +933,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1175,10 +941,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1187,10 +950,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1198,10 +958,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1210,10 +967,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1222,10 +976,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1243,10 +994,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1254,10 +1002,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1278,10 +1023,7 @@ public IUsage QueryOwningUsage() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1291,10 +1033,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1303,10 +1042,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1317,10 +1053,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1331,10 +1064,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1342,10 +1072,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1354,10 +1081,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1366,10 +1090,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/OperatorExpression.cs b/SysML2.NET/Core/AutoGenPoco/OperatorExpression.cs index a243af0b2..7376bc2dc 100644 --- a/SysML2.NET/Core/AutoGenPoco/OperatorExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/OperatorExpression.cs @@ -68,10 +68,7 @@ public partial class OperatorExpression : IOperatorExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List QueryArgument() - { - return this.ComputeArgument(); - } + public List argument => this.ComputeArgument(); /// /// The Behaviors that type this Step. @@ -80,10 +77,7 @@ public List QueryArgument() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -95,10 +89,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -108,10 +99,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -141,10 +129,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -153,10 +138,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -173,10 +155,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -192,10 +171,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -205,10 +181,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -216,10 +189,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -228,20 +198,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -251,10 +215,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -262,10 +223,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -273,10 +231,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -284,10 +239,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -296,10 +248,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -307,10 +256,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Type that is being instantiated. @@ -318,10 +264,7 @@ public List QueryInput() [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public IType QueryInstantiatedType() - { - return this.ComputeInstantiatedType(); - } + public IType instantiatedType => this.ComputeInstantiatedType(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -334,10 +277,7 @@ public IType QueryInstantiatedType() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -361,10 +301,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -411,10 +348,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -422,10 +356,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -459,7 +390,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -475,10 +406,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -486,10 +414,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -499,10 +424,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -512,10 +434,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// An operator symbol that names a corresponding Function from one of the standard packages from the @@ -531,10 +450,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -544,10 +460,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -556,10 +469,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -568,10 +478,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -581,10 +488,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -594,10 +498,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -605,10 +506,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -617,10 +515,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -628,10 +523,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -641,10 +533,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -654,10 +543,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -667,10 +553,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -680,10 +563,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -692,10 +572,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -704,10 +581,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -718,10 +592,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -730,10 +601,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -742,10 +610,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -763,10 +628,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -776,10 +638,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -789,10 +648,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -802,10 +658,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -814,10 +667,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -825,10 +675,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -836,10 +683,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -848,10 +692,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -860,10 +701,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -881,10 +719,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -893,10 +728,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -908,10 +740,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -922,10 +751,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -935,10 +761,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -947,10 +770,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -960,10 +780,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -974,10 +791,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/OwningMembership.cs b/SysML2.NET/Core/AutoGenPoco/OwningMembership.cs index e25df82e2..1e51bf9ee 100644 --- a/SysML2.NET/Core/AutoGenPoco/OwningMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/OwningMembership.cs @@ -79,10 +79,7 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -116,10 +113,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -136,10 +130,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -157,10 +148,7 @@ public string QueryMemberElementId() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -178,10 +166,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -191,10 +176,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -202,10 +184,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -215,10 +194,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_59873_43302")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -226,10 +202,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The name of the ownedMemberElement. @@ -237,10 +210,7 @@ public string QueryOwnedMemberElementId() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -248,10 +218,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -275,10 +242,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -287,10 +251,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -299,10 +260,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -330,10 +288,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -341,10 +296,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -354,10 +306,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -384,10 +333,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -395,7 +341,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/Package.cs b/SysML2.NET/Core/AutoGenPoco/Package.cs index 8c67ca4a8..274e28752 100644 --- a/SysML2.NET/Core/AutoGenPoco/Package.cs +++ b/SysML2.NET/Core/AutoGenPoco/Package.cs @@ -81,10 +81,7 @@ public partial class Package : IPackage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -101,10 +98,7 @@ public List QueryDocumentation() [Property(xmiId: "_19_0_4_12e503d9_1607033896050_867332_6206", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IPackage.FilterCondition")] - public List QueryFilterCondition() - { - return this.ComputeFilterCondition(); - } + public List filterCondition => this.ComputeFilterCondition(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -112,10 +106,7 @@ public List QueryFilterCondition() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -133,10 +124,7 @@ public List QueryImportedMembership() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -144,10 +132,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -155,10 +140,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -168,10 +150,7 @@ public List QueryMembership() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -181,10 +160,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -192,10 +168,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -205,10 +178,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -217,10 +187,7 @@ public List QueryOwnedImport() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -231,10 +198,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -250,10 +214,7 @@ public List QueryOwnedMembership() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -262,10 +223,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -274,10 +232,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -297,10 +252,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -310,10 +262,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -322,10 +271,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ParameterMembership.cs b/SysML2.NET/Core/AutoGenPoco/ParameterMembership.cs index 6b8d84b93..bfbb633a6 100644 --- a/SysML2.NET/Core/AutoGenPoco/ParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ParameterMembership.cs @@ -83,10 +83,7 @@ public partial class ParameterMembership : IParameterMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -120,10 +117,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -140,10 +134,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -162,10 +153,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -183,10 +171,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -196,10 +181,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -207,10 +189,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -221,10 +200,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -232,10 +208,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -245,10 +218,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -256,10 +226,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The Feature that is identified as a parameter by this ParameterMembership. @@ -267,10 +234,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_18_5_3_12e503d9_1557528016548_548098_110830", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public IFeature QueryOwnedMemberParameter() - { - return this.ComputeOwnedMemberParameter(); - } + public IFeature ownedMemberParameter => this.ComputeOwnedMemberParameter(); /// /// The shortName of the ownedMemberElement. @@ -278,10 +242,7 @@ public IFeature QueryOwnedMemberParameter() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -305,10 +266,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -317,10 +275,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -329,10 +284,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -357,10 +309,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -372,10 +321,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -383,10 +329,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -396,10 +339,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -426,10 +366,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -437,7 +374,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/PartDefinition.cs b/SysML2.NET/Core/AutoGenPoco/PartDefinition.cs index 3222f1387..8bef58f04 100644 --- a/SysML2.NET/Core/AutoGenPoco/PartDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/PartDefinition.cs @@ -108,10 +108,7 @@ public partial class PartDefinition : IPartDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -119,10 +116,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -131,10 +125,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -143,10 +134,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -162,10 +150,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -173,10 +158,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -185,10 +167,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -196,10 +175,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -207,10 +183,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -219,10 +192,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -230,10 +200,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -246,10 +213,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -264,10 +228,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -292,10 +253,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -323,10 +281,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -334,10 +289,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -347,10 +299,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -360,10 +309,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -371,10 +317,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -382,10 +325,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -393,10 +333,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -404,10 +341,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -417,10 +351,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -428,10 +359,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -439,10 +367,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -450,10 +375,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -461,10 +383,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -473,10 +392,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -486,10 +402,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -497,10 +410,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -510,10 +420,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -523,10 +430,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -534,10 +438,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -546,10 +447,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -557,10 +455,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -568,10 +463,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -581,10 +473,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -592,10 +481,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -605,10 +491,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -616,10 +499,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -628,10 +508,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -639,10 +516,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -651,10 +525,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -665,10 +536,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -676,10 +544,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -687,10 +552,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -698,10 +560,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -709,10 +568,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -720,10 +576,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -739,10 +592,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -750,10 +600,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -763,10 +610,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -774,10 +618,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -786,10 +627,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -797,10 +635,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -809,10 +644,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -821,10 +653,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -832,10 +661,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -843,10 +669,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -854,10 +677,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -865,10 +685,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -876,10 +693,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -888,10 +702,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -900,10 +711,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -923,10 +731,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -936,10 +741,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -948,10 +750,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -962,10 +761,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -973,10 +769,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -985,10 +778,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -998,10 +788,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/PartUsage.cs b/SysML2.NET/Core/AutoGenPoco/PartUsage.cs index afb72e5c9..b5a52ff2c 100644 --- a/SysML2.NET/Core/AutoGenPoco/PartUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/PartUsage.cs @@ -94,10 +94,7 @@ public partial class PartUsage : IPartUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -107,10 +104,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -138,10 +132,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -154,10 +145,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -165,10 +153,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -177,10 +162,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -197,10 +179,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -216,10 +195,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -229,10 +205,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -240,10 +213,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -252,20 +222,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -275,10 +239,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -286,10 +247,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -297,10 +255,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -308,10 +263,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -320,10 +272,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -331,10 +280,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -347,10 +293,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -374,10 +317,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -432,10 +372,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -457,10 +394,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -479,7 +413,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -506,10 +440,7 @@ public bool QueryIsReference() [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List QueryItemDefinition() - { - return this.ComputeItemDefinition(); - } + public List itemDefinition => this.ComputeItemDefinition(); /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -522,10 +453,7 @@ public List QueryItemDefinition() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -533,10 +461,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -544,10 +469,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -557,10 +479,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -570,10 +489,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -581,10 +497,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -592,10 +505,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -603,10 +513,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -614,10 +521,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -625,10 +529,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -636,10 +537,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -647,10 +545,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -660,10 +555,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -671,10 +563,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -682,10 +571,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -693,10 +579,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -704,10 +587,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -715,10 +595,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -726,10 +603,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -737,10 +611,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -748,10 +619,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -759,10 +627,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -770,10 +635,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -781,10 +643,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -792,10 +651,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -803,10 +659,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -814,10 +667,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -826,10 +676,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -837,10 +684,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -848,10 +692,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -859,10 +700,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -870,10 +708,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -883,10 +718,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -894,10 +726,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -907,10 +736,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -919,10 +745,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -931,10 +754,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -944,10 +764,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -957,10 +774,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -968,10 +782,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -980,10 +791,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -991,10 +799,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1004,10 +809,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1017,10 +819,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1030,10 +829,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1043,10 +839,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1055,10 +848,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1067,10 +857,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1081,10 +868,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1093,10 +877,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1105,10 +886,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1126,10 +904,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1139,10 +914,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1152,10 +924,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1165,10 +934,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1177,10 +943,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1188,10 +951,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1200,10 +960,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1211,10 +968,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1223,10 +977,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1235,10 +986,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1256,10 +1004,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1267,10 +1012,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The itemDefinitions of this PartUsage that are PartDefinitions. @@ -1278,10 +1020,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1591475180488_929065_121", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List QueryPartDefinition() - { - return this.ComputePartDefinition(); - } + public List partDefinition => this.ComputePartDefinition(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1302,10 +1041,7 @@ public List QueryPartDefinition() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1315,10 +1051,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1327,10 +1060,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1341,10 +1071,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1355,10 +1082,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1366,10 +1090,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1378,10 +1099,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1390,10 +1108,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs b/SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs index 8463c44b4..1e3b0ca93 100644 --- a/SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs +++ b/SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs @@ -68,10 +68,7 @@ public partial class PayloadFeature : IPayloadFeature /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -81,10 +78,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -114,10 +108,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -125,10 +116,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -145,10 +133,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -164,10 +149,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -177,10 +159,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -188,10 +167,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -200,20 +176,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -223,10 +193,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -234,10 +201,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -245,10 +209,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -257,10 +218,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -268,10 +226,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -284,10 +239,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -311,10 +263,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -361,10 +310,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -398,7 +344,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -414,10 +360,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -425,10 +368,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -438,10 +378,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -451,10 +388,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -462,10 +396,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -475,10 +406,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -487,10 +415,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -499,10 +424,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -512,10 +434,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -525,10 +444,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -536,10 +452,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -548,10 +461,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -559,10 +469,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -572,10 +479,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -585,10 +489,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -598,10 +499,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -611,10 +509,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -623,10 +518,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -635,10 +527,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -649,10 +538,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -661,10 +547,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -673,10 +556,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -694,10 +574,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -707,10 +584,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -720,10 +594,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -733,10 +604,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -745,10 +613,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -756,10 +621,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -767,10 +629,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -779,10 +638,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -791,10 +647,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -812,10 +665,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -827,10 +677,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -840,10 +687,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -852,10 +696,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -865,10 +706,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -879,10 +717,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/PerformActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/PerformActionUsage.cs index d6b0b349a..26e70a6bc 100644 --- a/SysML2.NET/Core/AutoGenPoco/PerformActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/PerformActionUsage.cs @@ -87,10 +87,7 @@ public partial class PerformActionUsage : IPerformActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -106,10 +103,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,10 +115,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -134,10 +125,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -165,10 +153,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -181,10 +166,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -193,10 +175,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -205,10 +184,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -225,10 +201,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -244,10 +217,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -257,10 +227,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The OccurrenceUsage referenced as an event by this EventOccurrenceUsage. It is the referenceFeature @@ -270,10 +237,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IPerformActionUsage.PerformedAction")] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public IOccurrenceUsage QueryEventOccurrence() - { - return this.ComputeEventOccurrence(); - } + public IOccurrenceUsage eventOccurrence => this.ComputeEventOccurrence(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -281,10 +245,7 @@ public IOccurrenceUsage QueryEventOccurrence() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -293,20 +254,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -316,10 +271,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -327,10 +279,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -338,10 +287,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -349,10 +295,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -361,10 +304,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -372,10 +312,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -388,10 +325,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -415,10 +349,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -473,10 +404,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -499,10 +427,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + bool Systems.DefinitionAndUsage.IUsage.isReference => throw new InvalidOperationException("Redefined by property IEventOccurrenceUsage.IsReference"); /// /// Always true for an EventOccurrenceUsage. @@ -510,10 +435,7 @@ bool Systems.DefinitionAndUsage.IUsage.QueryIsReference() [Property(xmiId: "_19_0_4_12e503d9_1672526906017_786343_306", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IEventOccurrenceUsage.IsReference")] - bool Systems.Occurrences.IEventOccurrenceUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -532,7 +454,7 @@ bool Systems.Occurrences.IEventOccurrenceUsage.QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -562,10 +484,7 @@ bool Systems.Occurrences.IEventOccurrenceUsage.QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -573,10 +492,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -584,10 +500,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -597,10 +510,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -610,10 +520,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -621,10 +528,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -632,10 +536,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -643,10 +544,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -654,10 +552,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -665,10 +560,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -676,10 +568,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -687,10 +576,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -700,10 +586,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -711,10 +594,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -722,10 +602,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -733,10 +610,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -744,10 +618,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -755,10 +626,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -766,10 +634,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -777,10 +642,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -788,10 +650,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -799,10 +658,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -810,10 +666,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -821,10 +674,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -832,10 +682,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -843,10 +690,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -854,10 +698,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -866,10 +707,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -877,10 +715,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -888,10 +723,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -899,10 +731,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -910,10 +739,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -924,10 +750,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -935,10 +758,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -948,10 +768,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -960,10 +777,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -972,10 +786,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -985,10 +796,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -998,10 +806,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1009,10 +814,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1021,10 +823,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1032,10 +831,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1045,10 +841,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1058,10 +851,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1071,10 +861,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1084,10 +871,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1096,10 +880,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1108,10 +889,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1122,10 +900,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1134,10 +909,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1146,10 +918,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1167,10 +936,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1180,10 +946,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1193,10 +956,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1206,10 +966,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1218,10 +975,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1229,10 +983,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1241,10 +992,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1252,10 +1000,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1264,10 +1009,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1276,10 +1018,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1297,10 +1036,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1308,10 +1044,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1320,10 +1053,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The ActionUsage to be performed by this PerformedActionUsage. It is the eventOccurrence of the @@ -1332,10 +1062,7 @@ public List QueryParameter() [Property(xmiId: "_19_0_2_12e503d9_1567740791820_867719_18017", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622831790393_676695_195")] [Implements(implementation: "IPerformActionUsage.PerformedAction")] - public IActionUsage QueryPerformedAction() - { - return this.ComputePerformedAction(); - } + public IActionUsage performedAction => this.ComputePerformedAction(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1356,10 +1083,7 @@ public IActionUsage QueryPerformedAction() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1369,10 +1093,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1381,10 +1102,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1395,10 +1113,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1409,10 +1124,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1420,10 +1132,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1432,10 +1141,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1444,10 +1150,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/PortConjugation.cs b/SysML2.NET/Core/AutoGenPoco/PortConjugation.cs index 46dbff933..7ce588d6b 100644 --- a/SysML2.NET/Core/AutoGenPoco/PortConjugation.cs +++ b/SysML2.NET/Core/AutoGenPoco/PortConjugation.cs @@ -65,10 +65,7 @@ public partial class PortConjugation : IPortConjugation [Property(xmiId: "_19_0_2_12e503d9_1575484344899_880331_946", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1575482646809_778895_441")] [Implements(implementation: "IPortConjugation.ConjugatedPortDefinition")] - public IConjugatedPortDefinition QueryConjugatedPortDefinition() - { - return this.ComputeConjugatedPortDefinition(); - } + public IConjugatedPortDefinition conjugatedPortDefinition => this.ComputeConjugatedPortDefinition(); /// /// The Type that is the result of applying Conjugation to the originalType. @@ -102,10 +99,7 @@ public IConjugatedPortDefinition QueryConjugatedPortDefinition() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -139,10 +133,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -152,10 +143,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The PortDefinition being conjugated. @@ -182,10 +170,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -193,10 +178,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -220,10 +202,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -232,10 +211,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -244,10 +220,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -273,10 +246,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedByProperty("IPortConjugation.ConjugatedPortDefinition")] [Implements(implementation: "IConjugation.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -288,10 +258,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -299,10 +266,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -312,10 +276,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -342,10 +303,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/PortDefinition.cs b/SysML2.NET/Core/AutoGenPoco/PortDefinition.cs index 5837c9315..f36b0fc4b 100644 --- a/SysML2.NET/Core/AutoGenPoco/PortDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/PortDefinition.cs @@ -87,10 +87,7 @@ public partial class PortDefinition : IPortDefinition [Property(xmiId: "_19_0_2_12e503d9_1575484364015_206236_989", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IPortDefinition.ConjugatedPortDefinition")] - public IConjugatedPortDefinition QueryConjugatedPortDefinition() - { - return this.ComputeConjugatedPortDefinition(); - } + public IConjugatedPortDefinition conjugatedPortDefinition => this.ComputeConjugatedPortDefinition(); /// /// The declared name of this Element. @@ -120,10 +117,7 @@ public IConjugatedPortDefinition QueryConjugatedPortDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -131,10 +125,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -143,10 +134,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -155,10 +143,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -174,10 +159,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -185,10 +167,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -197,10 +176,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -208,10 +184,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -219,10 +192,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -231,10 +201,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -242,10 +209,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -258,10 +222,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -276,10 +237,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -304,10 +262,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -335,10 +290,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -346,10 +298,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -359,10 +308,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -372,10 +318,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -383,10 +326,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -394,10 +334,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -405,10 +342,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -416,10 +350,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -429,10 +360,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -440,10 +368,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -451,10 +376,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -462,10 +384,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -473,10 +392,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -485,10 +401,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -498,10 +411,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -509,10 +419,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -522,10 +429,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -535,10 +439,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -546,10 +447,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -558,10 +456,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -569,10 +464,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -580,10 +472,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -593,10 +482,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -604,10 +490,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -617,10 +500,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -628,10 +508,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -640,10 +517,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -651,10 +525,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -663,10 +534,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -677,10 +545,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -688,10 +553,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -699,10 +561,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -710,10 +569,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -721,10 +577,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -732,10 +585,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -751,10 +601,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -762,10 +609,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -775,10 +619,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -786,10 +627,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -798,10 +636,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -809,10 +644,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -821,10 +653,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -833,10 +662,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -844,10 +670,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -855,10 +678,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -866,10 +686,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -877,10 +694,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -888,10 +702,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -900,10 +711,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -912,10 +720,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -935,10 +740,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -948,10 +750,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -960,10 +759,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -974,10 +770,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -985,10 +778,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -997,10 +787,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1010,10 +797,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/PortUsage.cs b/SysML2.NET/Core/AutoGenPoco/PortUsage.cs index ff07b6ae2..4969c18e8 100644 --- a/SysML2.NET/Core/AutoGenPoco/PortUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/PortUsage.cs @@ -92,10 +92,7 @@ public partial class PortUsage : IPortUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -105,10 +102,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -136,10 +130,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -152,10 +143,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -163,10 +151,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -175,10 +160,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -195,10 +177,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -214,10 +193,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -227,10 +203,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -238,10 +211,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -250,20 +220,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -273,10 +237,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -284,10 +245,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -295,10 +253,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -306,10 +261,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -318,10 +270,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -329,10 +278,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -345,10 +291,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -372,10 +315,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -430,10 +370,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -455,10 +392,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -477,7 +411,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -507,10 +441,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -518,10 +449,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -529,10 +457,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -542,10 +467,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -555,10 +477,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -566,10 +485,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -577,10 +493,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -588,10 +501,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -599,10 +509,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -610,10 +517,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -621,10 +525,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -632,10 +533,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -645,10 +543,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -656,10 +551,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -667,10 +559,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -678,10 +567,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -689,10 +575,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -700,10 +583,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -711,10 +591,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -722,10 +599,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -733,10 +607,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -744,10 +615,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -755,10 +623,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -766,10 +631,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -777,10 +639,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -788,10 +647,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -799,10 +655,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -811,10 +664,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -822,10 +672,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -833,10 +680,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -844,10 +688,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -855,10 +696,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -869,10 +707,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IPortUsage.PortDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -880,10 +715,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -893,10 +725,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -905,10 +734,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -917,10 +743,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -930,10 +753,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -943,10 +763,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -954,10 +771,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -966,10 +780,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -977,10 +788,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -990,10 +798,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1003,10 +808,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1016,10 +818,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1029,10 +828,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1041,10 +837,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1053,10 +846,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1067,10 +857,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1079,10 +866,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1091,10 +875,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1112,10 +893,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1125,10 +903,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1138,10 +913,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1151,10 +923,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1163,10 +932,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1174,10 +940,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1186,10 +949,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1197,10 +957,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1209,10 +966,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1221,10 +975,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1242,10 +993,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1253,10 +1001,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The occurrenceDefinitions of this PortUsage, which must all be PortDefinitions. @@ -1264,10 +1009,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_18_5_3_12e503d9_1565492740124_880100_25026", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IPortUsage.PortDefinition")] - public List QueryPortDefinition() - { - return this.ComputePortDefinition(); - } + public List portDefinition => this.ComputePortDefinition(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1288,10 +1030,7 @@ public List QueryPortDefinition() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1301,10 +1040,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1313,10 +1049,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1327,10 +1060,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1341,10 +1071,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1352,10 +1079,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1364,10 +1088,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1376,10 +1097,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Predicate.cs b/SysML2.NET/Core/AutoGenPoco/Predicate.cs index 94b7db117..ab98f6672 100644 --- a/SysML2.NET/Core/AutoGenPoco/Predicate.cs +++ b/SysML2.NET/Core/AutoGenPoco/Predicate.cs @@ -86,10 +86,7 @@ public partial class Predicate : IPredicate /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -98,10 +95,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The Documentation owned by this Element. @@ -110,10 +104,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -129,10 +120,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -140,10 +128,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List QueryExpression() - { - return this.ComputeExpression(); - } + public List expression => this.ComputeExpression(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -151,10 +136,7 @@ public List QueryExpression() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -163,10 +145,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -174,10 +153,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -185,10 +161,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -197,10 +170,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -208,10 +178,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -224,10 +191,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -242,10 +206,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -263,10 +224,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -277,10 +235,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -300,10 +255,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -311,10 +263,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -324,10 +273,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -337,10 +283,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -348,10 +291,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -361,10 +301,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -373,10 +310,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -386,10 +320,7 @@ public IConjugation QueryOwnedConjugator() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -399,10 +330,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -410,10 +338,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -422,10 +347,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -433,10 +355,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -446,10 +365,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -459,10 +375,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -471,10 +384,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -483,10 +393,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -497,10 +404,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -518,10 +422,7 @@ public List QueryOwnedMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -530,10 +431,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -542,10 +440,7 @@ public List QueryOwnedSubclassification() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -553,10 +448,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -565,10 +457,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -577,10 +466,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -597,10 +483,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -612,10 +495,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The object or value that is the result of evaluating the Function. @@ -624,10 +504,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -637,10 +514,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Steps that make up this Behavior. @@ -648,10 +522,7 @@ public string QueryShortName() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The TextualRepresentations that annotate this Element. @@ -660,10 +531,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -674,10 +542,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Redefinition.cs b/SysML2.NET/Core/AutoGenPoco/Redefinition.cs index 71c88f5fc..a5e75e434 100644 --- a/SysML2.NET/Core/AutoGenPoco/Redefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/Redefinition.cs @@ -90,10 +90,7 @@ public partial class Redefinition : IRedefinition [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -136,10 +133,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -149,10 +143,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -162,10 +153,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -173,10 +161,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -200,10 +185,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// A subsettingFeature that is also the owningRelatedElement of this Subsetting. @@ -212,10 +194,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "ISubsetting.OwningFeature")] - public IFeature QueryOwningFeature() - { - return this.ComputeOwningFeature(); - } + public IFeature owningFeature => this.ComputeOwningFeature(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -224,10 +203,7 @@ public IFeature QueryOwningFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -236,10 +212,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -265,10 +238,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -280,10 +250,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Feature that is redefined by the redefiningFeature of this Redefinition. @@ -307,10 +274,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -320,10 +284,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -377,10 +338,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ReferenceSubsetting.cs b/SysML2.NET/Core/AutoGenPoco/ReferenceSubsetting.cs index 9335b6610..135094ddd 100644 --- a/SysML2.NET/Core/AutoGenPoco/ReferenceSubsetting.cs +++ b/SysML2.NET/Core/AutoGenPoco/ReferenceSubsetting.cs @@ -84,10 +84,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -130,10 +127,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -143,10 +137,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -156,10 +147,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -167,10 +155,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -194,10 +179,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// A subsettingFeature that is also the owningRelatedElement of this Subsetting. @@ -207,10 +189,7 @@ public IElement QueryOwner() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [RedefinedByProperty("IReferenceSubsetting.ReferencingFeature")] [Implements(implementation: "ISubsetting.OwningFeature")] - public IFeature QueryOwningFeature() - { - return this.ComputeOwningFeature(); - } + public IFeature owningFeature => this.ComputeOwningFeature(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -219,10 +198,7 @@ public IFeature QueryOwningFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -231,10 +207,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -260,10 +233,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -275,10 +245,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Feature that is referenced by the referencingFeature of this ReferenceSubsetting. @@ -295,10 +262,7 @@ public string QueryQualifiedName() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674987_236250_43311")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] [Implements(implementation: "IReferenceSubsetting.ReferencingFeature")] - public IFeature QueryReferencingFeature() - { - return this.ComputeReferencingFeature(); - } + public IFeature referencingFeature => this.ComputeReferencingFeature(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -306,10 +270,7 @@ public IFeature QueryReferencingFeature() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -319,10 +280,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -376,10 +334,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs b/SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs index 265b4a314..ebdcd877a 100644 --- a/SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs @@ -93,10 +93,7 @@ public partial class ReferenceUsage : IReferenceUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -106,10 +103,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -136,10 +130,7 @@ public IFeature QueryCrossFeature() [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -152,10 +143,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -163,10 +151,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -175,10 +160,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -195,10 +177,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -214,10 +193,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -227,10 +203,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -238,10 +211,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -250,20 +220,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -273,10 +237,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -284,10 +245,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -295,10 +253,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -307,10 +262,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -318,10 +270,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -334,10 +283,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -361,10 +307,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -411,10 +354,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -437,10 +377,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1624035133434_200283_41434", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] [Implements(implementation: "IReferenceUsage.IsReference")] - bool IReferenceUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether this Usage is a referential Usage, that is, it has isComposite = false. @@ -448,10 +385,7 @@ bool IReferenceUsage.QueryIsReference() [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IReferenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool IUsage.QueryIsReference() - { - return this.ComputeIsReference(); - } + bool IUsage.isReference => throw new InvalidOperationException("Redefined by property IReferenceUsage.IsReference"); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -470,7 +404,7 @@ bool IUsage.QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -500,10 +434,7 @@ bool IUsage.QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -511,10 +442,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -522,10 +450,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -535,10 +460,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -548,10 +470,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -559,10 +478,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -570,10 +486,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -581,10 +494,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -592,10 +502,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -603,10 +510,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -614,10 +518,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -625,10 +526,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -638,10 +536,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -649,10 +544,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -660,10 +552,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -671,10 +560,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -682,10 +568,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -693,10 +576,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -704,10 +584,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -715,10 +592,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -726,10 +600,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -737,10 +608,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -748,10 +616,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -759,10 +624,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -770,10 +632,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -781,10 +640,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -792,10 +648,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -804,10 +657,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -815,10 +665,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -826,10 +673,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -837,10 +681,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -848,10 +689,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -859,10 +697,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -872,10 +707,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -884,10 +716,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -896,10 +725,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -909,10 +735,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -922,10 +745,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -933,10 +753,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -945,10 +762,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -956,10 +770,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -969,10 +780,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -982,10 +790,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -995,10 +800,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1008,10 +810,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1020,10 +819,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1032,10 +828,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1046,10 +839,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1058,10 +848,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1070,10 +857,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1091,10 +875,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1104,10 +885,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1117,10 +895,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1130,10 +905,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1142,10 +914,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1153,10 +922,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1165,10 +931,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1176,10 +939,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1188,10 +948,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1200,10 +957,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1221,10 +975,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1232,10 +983,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1247,10 +995,7 @@ public IUsage QueryOwningUsage() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1260,10 +1005,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1272,10 +1014,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1286,10 +1025,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1300,10 +1036,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1311,10 +1044,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1323,10 +1053,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1335,10 +1062,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Relationship.cs b/SysML2.NET/Core/AutoGenPoco/Relationship.cs index e83590274..b47105fc0 100644 --- a/SysML2.NET/Core/AutoGenPoco/Relationship.cs +++ b/SysML2.NET/Core/AutoGenPoco/Relationship.cs @@ -88,10 +88,7 @@ public partial class Relationship : IRelationship [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -125,10 +122,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -138,10 +132,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -151,10 +142,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -162,10 +150,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -189,10 +174,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -201,10 +183,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -213,10 +192,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -244,10 +220,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -255,10 +228,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -268,10 +238,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -296,10 +263,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/RenderingDefinition.cs b/SysML2.NET/Core/AutoGenPoco/RenderingDefinition.cs index b7f8218b6..9c94ba400 100644 --- a/SysML2.NET/Core/AutoGenPoco/RenderingDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/RenderingDefinition.cs @@ -107,10 +107,7 @@ public partial class RenderingDefinition : IRenderingDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -118,10 +115,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -130,10 +124,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -142,10 +133,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -161,10 +149,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -172,10 +157,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -184,10 +166,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -195,10 +174,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -206,10 +182,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -218,10 +191,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -229,10 +199,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -245,10 +212,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -263,10 +227,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -291,10 +252,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -322,10 +280,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -333,10 +288,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -346,10 +298,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -359,10 +308,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -370,10 +316,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -381,10 +324,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -392,10 +332,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -403,10 +340,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -416,10 +350,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -427,10 +358,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -438,10 +366,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -449,10 +374,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -460,10 +382,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -472,10 +391,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -485,10 +401,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -496,10 +409,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -509,10 +419,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -522,10 +429,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -533,10 +437,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -545,10 +446,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -556,10 +454,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -567,10 +462,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -580,10 +472,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -591,10 +480,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -604,10 +490,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -615,10 +498,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -627,10 +507,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -638,10 +515,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -650,10 +524,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -664,10 +535,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -675,10 +543,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -686,10 +551,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -697,10 +559,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -708,10 +567,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -719,10 +575,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -738,10 +591,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -749,10 +599,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -762,10 +609,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -773,10 +617,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -785,10 +626,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -796,10 +634,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -808,10 +643,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -820,10 +652,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -831,10 +660,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -842,10 +668,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -853,10 +676,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -864,10 +684,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -875,10 +692,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -887,10 +701,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -899,10 +710,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -922,10 +730,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The usages of a RenderingDefinition that are RenderingUsages. @@ -933,10 +738,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_2_12e503d9_1596741367270_249607_6373", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRenderingDefinition.Rendering")] - public List QueryRendering() - { - return this.ComputeRendering(); - } + public List rendering => this.ComputeRendering(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -946,10 +748,7 @@ public List QueryRendering() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -958,10 +757,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -972,10 +768,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -983,10 +776,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -995,10 +785,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1008,10 +795,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs b/SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs index 92f683c00..fbfa5a887 100644 --- a/SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs @@ -93,10 +93,7 @@ public partial class RenderingUsage : IRenderingUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -106,10 +103,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -137,10 +131,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -153,10 +144,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -164,10 +152,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -176,10 +161,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -196,10 +178,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -215,10 +194,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -228,10 +204,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -239,10 +212,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -251,20 +221,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -274,10 +238,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -285,10 +246,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -296,10 +254,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -307,10 +262,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -319,10 +271,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -330,10 +279,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -346,10 +292,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -373,10 +316,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -431,10 +371,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -456,10 +393,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -478,7 +412,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -505,10 +439,7 @@ public bool QueryIsReference() [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List QueryItemDefinition() - { - return this.ComputeItemDefinition(); - } + public List itemDefinition => this.ComputeItemDefinition(); /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -521,10 +452,7 @@ public List QueryItemDefinition() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -532,10 +460,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -543,10 +468,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -556,10 +478,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -569,10 +488,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -580,10 +496,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -591,10 +504,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -602,10 +512,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -613,10 +520,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -624,10 +528,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -635,10 +536,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -646,10 +544,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -659,10 +554,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -670,10 +562,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -681,10 +570,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -692,10 +578,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -703,10 +586,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -714,10 +594,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -725,10 +602,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -736,10 +610,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -747,10 +618,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -758,10 +626,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -769,10 +634,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -780,10 +642,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -791,10 +650,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -802,10 +658,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -813,10 +666,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -825,10 +675,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -836,10 +683,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -847,10 +691,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -858,10 +699,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -869,10 +707,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -882,10 +717,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -893,10 +725,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -906,10 +735,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -918,10 +744,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -930,10 +753,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -943,10 +763,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -956,10 +773,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -967,10 +781,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -979,10 +790,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -990,10 +798,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1003,10 +808,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1016,10 +818,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1029,10 +828,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1042,10 +838,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1054,10 +847,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1066,10 +856,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1080,10 +867,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1092,10 +876,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1104,10 +885,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1125,10 +903,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1138,10 +913,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1151,10 +923,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1164,10 +933,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1176,10 +942,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1187,10 +950,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1199,10 +959,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1210,10 +967,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1222,10 +976,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1234,10 +985,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1255,10 +1003,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1266,10 +1011,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The itemDefinitions of this PartUsage that are PartDefinitions. @@ -1278,10 +1020,7 @@ public IUsage QueryOwningUsage() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedByProperty("IRenderingUsage.RenderingDefinition")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List QueryPartDefinition() - { - return this.ComputePartDefinition(); - } + public List partDefinition => this.ComputePartDefinition(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1302,10 +1041,7 @@ public List QueryPartDefinition() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The RenderingDefinition that is the definition of this RenderingUsage. @@ -1313,10 +1049,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_2_12e503d9_1596741320785_268295_6306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591475180488_929065_121")] [Implements(implementation: "IRenderingUsage.RenderingDefinition")] - public IRenderingDefinition QueryRenderingDefinition() - { - return this.ComputeRenderingDefinition(); - } + public IRenderingDefinition renderingDefinition => this.ComputeRenderingDefinition(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1326,10 +1059,7 @@ public IRenderingDefinition QueryRenderingDefinition() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1338,10 +1068,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1352,10 +1079,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1366,10 +1090,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1377,10 +1098,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1389,10 +1107,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1401,10 +1116,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/RequirementConstraintMembership.cs b/SysML2.NET/Core/AutoGenPoco/RequirementConstraintMembership.cs index 98fd98700..b03ff24dd 100644 --- a/SysML2.NET/Core/AutoGenPoco/RequirementConstraintMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/RequirementConstraintMembership.cs @@ -84,10 +84,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -121,10 +118,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether the RequirementConstraintMembership is for an assumed or required ConstraintUsage. @@ -148,10 +142,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -170,10 +161,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -191,10 +179,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -204,10 +189,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The ConstraintUsage that is the ownedMemberFeature of this RequirementConstraintMembership. @@ -215,10 +197,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1584048366950_985767_426", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public IConstraintUsage QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public IConstraintUsage ownedConstraint => this.ComputeOwnedConstraint(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -226,10 +205,7 @@ public IConstraintUsage QueryOwnedConstraint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -240,10 +216,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -251,10 +224,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -264,10 +234,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -275,10 +242,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -286,10 +250,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -313,10 +274,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -325,10 +283,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -337,10 +292,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -365,10 +317,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -380,10 +329,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The ConstraintUsage that is referenced through this RequirementConstraintMembership. It is the @@ -392,10 +338,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public IConstraintUsage QueryReferencedConstraint() - { - return this.ComputeReferencedConstraint(); - } + public IConstraintUsage referencedConstraint => this.ComputeReferencedConstraint(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -403,10 +346,7 @@ public IConstraintUsage QueryReferencedConstraint() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -416,10 +356,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -446,10 +383,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -457,7 +391,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/RequirementDefinition.cs b/SysML2.NET/Core/AutoGenPoco/RequirementDefinition.cs index afc446df3..71aa92da2 100644 --- a/SysML2.NET/Core/AutoGenPoco/RequirementDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/RequirementDefinition.cs @@ -82,10 +82,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -102,10 +99,7 @@ public List QueryActorParameter() [Property(xmiId: "_19_0_2_12e503d9_1583376806647_629021_133", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementDefinition.AssumedConstraint")] - public List QueryAssumedConstraint() - { - return this.ComputeAssumedConstraint(); - } + public List assumedConstraint => this.ComputeAssumedConstraint(); /// /// The declared name of this Element. @@ -136,10 +130,7 @@ public List QueryAssumedConstraint() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -148,10 +139,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -160,10 +148,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -172,10 +157,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -191,10 +173,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -202,10 +181,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List QueryExpression() - { - return this.ComputeExpression(); - } + public List expression => this.ComputeExpression(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -213,10 +189,7 @@ public List QueryExpression() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -225,10 +198,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The ConcernUsages framed by this RequirementDefinition, which are the ownedConcerns of all @@ -237,10 +207,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1617116733499_587735_3242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583376932997_792124_158")] [Implements(implementation: "IRequirementDefinition.FramedConcern")] - public List QueryFramedConcern() - { - return this.ComputeFramedConcern(); - } + public List framedConcern => this.ComputeFramedConcern(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -248,10 +215,7 @@ public List QueryFramedConcern() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -259,10 +223,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -271,10 +232,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -282,10 +240,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -298,10 +253,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -316,10 +268,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -344,10 +293,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -358,10 +304,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -389,10 +332,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -400,10 +340,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -413,10 +350,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -426,10 +360,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -437,10 +368,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -448,10 +376,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -459,10 +384,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -470,10 +392,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -483,10 +402,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -494,10 +410,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -505,10 +418,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -516,10 +426,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -527,10 +434,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -539,10 +443,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -552,10 +453,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -563,10 +461,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -576,10 +471,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -589,10 +481,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -600,10 +489,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -612,10 +498,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -623,10 +506,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -634,10 +514,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -647,10 +524,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -658,10 +532,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -671,10 +542,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -682,10 +550,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -694,10 +559,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -705,10 +567,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -717,10 +576,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -731,10 +587,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -742,10 +595,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -753,10 +603,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -764,10 +611,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -775,10 +619,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -786,10 +627,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -805,10 +643,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -816,10 +651,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -829,10 +661,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -840,10 +669,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -852,10 +678,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -863,10 +686,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -875,10 +695,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -887,10 +704,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -898,10 +712,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -909,10 +720,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -920,10 +728,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -931,10 +736,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -942,10 +744,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -954,10 +753,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -966,10 +762,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -986,10 +779,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1001,10 +791,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An optional modeler-specified identifier for this RequirementDefinition (used, e.g., to link it to @@ -1024,10 +811,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_2_12e503d9_1583376932997_792124_158", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementDefinition.RequiredConstraint")] - public List QueryRequiredConstraint() - { - return this.ComputeRequiredConstraint(); - } + public List requiredConstraint => this.ComputeRequiredConstraint(); /// /// The object or value that is the result of evaluating the Function. @@ -1036,10 +820,7 @@ public List QueryRequiredConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1049,10 +830,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The parameters of this RequirementDefinition that represent stakeholders for th requirement. @@ -1061,10 +839,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.StakeholderParameter")] - public List QueryStakeholderParameter() - { - return this.ComputeStakeholderParameter(); - } + public List stakeholderParameter => this.ComputeStakeholderParameter(); /// /// The Steps that make up this Behavior. @@ -1072,10 +847,7 @@ public List QueryStakeholderParameter() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The parameter of this RequirementDefinition that represents its subject. @@ -1084,10 +856,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// An optional textual statement of the requirement represented by this RequirementDefinition, derived @@ -1095,10 +864,7 @@ public IUsage QuerySubjectParameter() /// [Property(xmiId: "_19_0_2_12e503d9_1583376433122_189839_94", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementDefinition.Text")] - public List QueryText() - { - return this.ComputeText(); - } + public List text => this.ComputeText(); /// /// The TextualRepresentations that annotate this Element. @@ -1107,10 +873,7 @@ public List QueryText() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1121,10 +884,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1132,10 +892,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1144,10 +901,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1157,10 +911,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/RequirementUsage.cs b/SysML2.NET/Core/AutoGenPoco/RequirementUsage.cs index f58224790..8466a30c3 100644 --- a/SysML2.NET/Core/AutoGenPoco/RequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/RequirementUsage.cs @@ -83,10 +83,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -103,10 +100,7 @@ public List QueryActorParameter() [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.AssumedConstraint")] - public List QueryAssumedConstraint() - { - return this.ComputeAssumedConstraint(); - } + public List assumedConstraint => this.ComputeAssumedConstraint(); /// /// The Behaviors that type this Step. @@ -115,10 +109,7 @@ public List QueryAssumedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -130,10 +121,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -144,10 +132,7 @@ public List QueryChainingFeature() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public IPredicate QueryConstraintDefinition() - { - return this.ComputeConstraintDefinition(); - } + public IPredicate constraintDefinition => this.ComputeConstraintDefinition(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -157,10 +142,7 @@ public IPredicate QueryConstraintDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -189,10 +171,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -205,10 +184,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -217,10 +193,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -229,10 +202,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -249,10 +219,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -268,10 +235,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -281,10 +245,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -292,10 +253,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -304,20 +262,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -327,10 +279,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -339,10 +288,7 @@ public List QueryFeaturingType() [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] [Implements(implementation: "IRequirementUsage.FramedConcern")] - public List QueryFramedConcern() - { - return this.ComputeFramedConcern(); - } + public List framedConcern => this.ComputeFramedConcern(); /// /// The Function that types this Expression. @@ -351,10 +297,7 @@ public List QueryFramedConcern() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -362,10 +305,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -373,10 +313,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -384,10 +321,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -396,10 +330,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -407,10 +338,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -423,10 +351,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -450,10 +375,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -508,10 +430,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -519,10 +438,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -544,10 +460,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -566,7 +479,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -596,10 +509,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -607,10 +517,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -618,10 +525,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -631,10 +535,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -644,10 +545,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -655,10 +553,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -666,10 +561,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -677,10 +569,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -688,10 +577,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -699,10 +585,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -710,10 +593,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -721,10 +601,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -734,10 +611,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -745,10 +619,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -756,10 +627,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -767,10 +635,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -778,10 +643,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -789,10 +651,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -800,10 +659,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -811,10 +667,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -822,10 +675,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -833,10 +683,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -844,10 +691,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -855,10 +699,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -866,10 +707,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -877,10 +715,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -888,10 +723,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -900,10 +732,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -911,10 +740,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -922,10 +748,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -933,10 +756,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -944,10 +764,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -957,10 +774,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -968,10 +782,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -981,10 +792,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -993,10 +801,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1005,10 +810,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1018,10 +820,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1031,10 +830,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1042,10 +838,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1054,10 +847,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1065,10 +855,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1078,10 +865,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1091,10 +875,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1104,10 +885,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1117,10 +895,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1129,10 +904,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1141,10 +913,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1155,10 +924,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1167,10 +933,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1179,10 +942,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1200,10 +960,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1213,10 +970,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1226,10 +980,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1239,10 +990,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1251,10 +999,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1262,10 +1007,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1274,10 +1016,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1285,10 +1024,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1297,10 +1033,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1309,10 +1042,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1330,10 +1060,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1341,10 +1068,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1353,10 +1077,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1374,10 +1095,7 @@ public List QueryParameter() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate QueryPredicate() - { - return this.ComputePredicate(); - } + public IPredicate predicate => this.ComputePredicate(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1389,10 +1107,7 @@ public IPredicate QueryPredicate() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -1412,10 +1127,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.RequiredConstraint")] - public List QueryRequiredConstraint() - { - return this.ComputeRequiredConstraint(); - } + public List requiredConstraint => this.ComputeRequiredConstraint(); /// /// The RequirementDefinition that is the single definition of this RequirementUsage. @@ -1423,10 +1135,7 @@ public List QueryRequiredConstraint() [Property(xmiId: "_19_0_2_12e503d9_1583000408905_769743_1223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public IRequirementDefinition QueryRequirementDefinition() - { - return this.ComputeRequirementDefinition(); - } + public IRequirementDefinition requirementDefinition => this.ComputeRequirementDefinition(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1437,10 +1146,7 @@ public IRequirementDefinition QueryRequirementDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1450,10 +1156,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -1462,10 +1165,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.StakeholderParameter")] - public List QueryStakeholderParameter() - { - return this.ComputeStakeholderParameter(); - } + public List stakeholderParameter => this.ComputeStakeholderParameter(); /// /// The parameter of this RequirementUsage that represents its subject. @@ -1474,10 +1174,7 @@ public List QueryStakeholderParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from @@ -1485,10 +1182,7 @@ public IUsage QuerySubjectParameter() /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementUsage.Text")] - public List QueryText() - { - return this.ComputeText(); - } + public List text => this.ComputeText(); /// /// The TextualRepresentations that annotate this Element. @@ -1497,10 +1191,7 @@ public List QueryText() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1511,10 +1202,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1525,10 +1213,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1536,10 +1221,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1548,10 +1230,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1560,10 +1239,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/RequirementVerificationMembership.cs b/SysML2.NET/Core/AutoGenPoco/RequirementVerificationMembership.cs index 1ee270c54..b0ecf8888 100644 --- a/SysML2.NET/Core/AutoGenPoco/RequirementVerificationMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/RequirementVerificationMembership.cs @@ -85,10 +85,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -122,10 +119,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The kind of a RequirementVerificationMembership must be requirement. @@ -133,7 +127,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1603921465292_637146_187", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "requirement")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048161309_821854_390")] [Implements(implementation: "IRequirementVerificationMembership.Kind")] - RequirementConstraintKind IRequirementVerificationMembership.Kind { get; set; } + public RequirementConstraintKind Kind { get; set; } = RequirementConstraintKind.Requirement; /// /// Whether the RequirementConstraintMembership is for an assumed or required ConstraintUsage. @@ -158,10 +152,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -180,10 +171,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -201,10 +189,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -214,10 +199,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The ConstraintUsage that is the ownedMemberFeature of this RequirementConstraintMembership. @@ -226,10 +208,7 @@ public List QueryOwnedAnnotation() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IRequirementVerificationMembership.OwnedRequirement")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public IConstraintUsage QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public IConstraintUsage ownedConstraint => this.ComputeOwnedConstraint(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -237,10 +216,7 @@ public IConstraintUsage QueryOwnedConstraint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -251,10 +227,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -262,10 +235,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -275,10 +245,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -286,10 +253,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -297,10 +261,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -326,10 +287,7 @@ public string QueryOwnedMemberShortName() [Property(xmiId: "_19_0_4_12e503d9_1603921329650_612380_147", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1584048366950_985767_426")] [Implements(implementation: "IRequirementVerificationMembership.OwnedRequirement")] - public IRequirementUsage QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public IRequirementUsage ownedRequirement => this.ComputeOwnedRequirement(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -337,10 +295,7 @@ public IRequirementUsage QueryOwnedRequirement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -349,10 +304,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -361,10 +313,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -389,10 +338,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -404,10 +350,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The ConstraintUsage that is referenced through this RequirementConstraintMembership. It is the @@ -417,10 +360,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementVerificationMembership.VerifiedRequirement")] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public IConstraintUsage QueryReferencedConstraint() - { - return this.ComputeReferencedConstraint(); - } + public IConstraintUsage referencedConstraint => this.ComputeReferencedConstraint(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -428,10 +368,7 @@ public IConstraintUsage QueryReferencedConstraint() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -441,10 +378,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -471,10 +405,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The RequirementUsage that is identified as being verified. It is the referencedConstraint of the @@ -484,10 +415,7 @@ public List QueryTextualRepresentation() [Property(xmiId: "_19_0_4_12e503d9_1603921870169_98378_309", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1617118807597_77864_3544")] [Implements(implementation: "IRequirementVerificationMembership.VerifiedRequirement")] - public IRequirementUsage QueryVerifiedRequirement() - { - return this.ComputeVerifiedRequirement(); - } + public IRequirementUsage verifiedRequirement => this.ComputeVerifiedRequirement(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -495,7 +423,7 @@ public IRequirementUsage QueryVerifiedRequirement() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/ResultExpressionMembership.cs b/SysML2.NET/Core/AutoGenPoco/ResultExpressionMembership.cs index 4b99d5796..e75e5ed36 100644 --- a/SysML2.NET/Core/AutoGenPoco/ResultExpressionMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ResultExpressionMembership.cs @@ -84,10 +84,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -121,10 +118,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -141,10 +135,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -163,10 +154,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -184,10 +172,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -197,10 +182,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -208,10 +190,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -222,10 +201,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -233,10 +209,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -246,10 +219,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IResultExpressionMembership.OwnedResultExpression")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -257,10 +227,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -268,10 +235,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -295,10 +259,7 @@ public string QueryOwnedMemberShortName() [Property(xmiId: "_19_0_2_12e503d9_1594868945944_989058_2545", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IResultExpressionMembership.OwnedResultExpression")] - public IExpression QueryOwnedResultExpression() - { - return this.ComputeOwnedResultExpression(); - } + public IExpression ownedResultExpression => this.ComputeOwnedResultExpression(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -306,10 +267,7 @@ public IExpression QueryOwnedResultExpression() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -318,10 +276,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -330,10 +285,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -358,10 +310,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -373,10 +322,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -384,10 +330,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -397,10 +340,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -427,10 +367,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -438,7 +375,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/ReturnParameterMembership.cs b/SysML2.NET/Core/AutoGenPoco/ReturnParameterMembership.cs index f981829d9..da688b262 100644 --- a/SysML2.NET/Core/AutoGenPoco/ReturnParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ReturnParameterMembership.cs @@ -84,10 +84,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -121,10 +118,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -141,10 +135,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -163,10 +154,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -184,10 +172,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -197,10 +182,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -208,10 +190,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -222,10 +201,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -233,10 +209,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -246,10 +219,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -257,10 +227,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The Feature that is identified as a parameter by this ParameterMembership. @@ -268,10 +235,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_18_5_3_12e503d9_1557528016548_548098_110830", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public IFeature QueryOwnedMemberParameter() - { - return this.ComputeOwnedMemberParameter(); - } + public IFeature ownedMemberParameter => this.ComputeOwnedMemberParameter(); /// /// The shortName of the ownedMemberElement. @@ -279,10 +243,7 @@ public IFeature QueryOwnedMemberParameter() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -306,10 +267,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -318,10 +276,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -330,10 +285,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -358,10 +310,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -373,10 +322,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -384,10 +330,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -397,10 +340,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -427,10 +367,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -438,7 +375,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/SatisfyRequirementUsage.cs b/SysML2.NET/Core/AutoGenPoco/SatisfyRequirementUsage.cs index 93f4a4318..30c9dee85 100644 --- a/SysML2.NET/Core/AutoGenPoco/SatisfyRequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/SatisfyRequirementUsage.cs @@ -86,10 +86,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -106,10 +103,7 @@ public List QueryActorParameter() [Property(xmiId: "_19_0_2_12e503d9_1581045158665_239617_9458", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("ISatisfyRequirementUsage.SatisfiedRequirement")] [Implements(implementation: "IAssertConstraintUsage.AssertedConstraint")] - public IConstraintUsage QueryAssertedConstraint() - { - return this.ComputeAssertedConstraint(); - } + public IConstraintUsage assertedConstraint => this.ComputeAssertedConstraint(); /// /// The owned ConstraintUsages that represent assumptions of this RequirementUsage, derived as the @@ -119,10 +113,7 @@ public IConstraintUsage QueryAssertedConstraint() [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.AssumedConstraint")] - public List QueryAssumedConstraint() - { - return this.ComputeAssumedConstraint(); - } + public List assumedConstraint => this.ComputeAssumedConstraint(); /// /// The Behaviors that type this Step. @@ -131,10 +122,7 @@ public List QueryAssumedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -146,10 +134,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -160,10 +145,7 @@ public List QueryChainingFeature() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public IPredicate QueryConstraintDefinition() - { - return this.ComputeConstraintDefinition(); - } + public IPredicate constraintDefinition => this.ComputeConstraintDefinition(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -173,10 +155,7 @@ public IPredicate QueryConstraintDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -205,10 +184,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -221,10 +197,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -233,10 +206,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -245,10 +215,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -265,10 +232,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -284,10 +248,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -297,10 +258,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -308,10 +266,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -320,20 +275,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -343,10 +292,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -355,10 +301,7 @@ public List QueryFeaturingType() [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] [Implements(implementation: "IRequirementUsage.FramedConcern")] - public List QueryFramedConcern() - { - return this.ComputeFramedConcern(); - } + public List framedConcern => this.ComputeFramedConcern(); /// /// The Function that types this Expression. @@ -367,10 +310,7 @@ public List QueryFramedConcern() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -378,10 +318,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -389,10 +326,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -400,10 +334,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -412,10 +343,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -423,10 +351,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -439,10 +364,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -466,10 +388,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -524,10 +443,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -535,10 +451,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether this Invariant is asserted to be false rather than true. @@ -567,10 +480,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -589,7 +499,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -619,10 +529,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -630,10 +537,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -641,10 +545,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -654,10 +555,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -667,10 +565,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -678,10 +573,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -689,10 +581,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -700,10 +589,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -711,10 +597,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -722,10 +605,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -733,10 +613,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -744,10 +621,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -757,10 +631,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -768,10 +639,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -779,10 +647,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -790,10 +655,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -801,10 +663,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -812,10 +671,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -823,10 +679,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -834,10 +687,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -845,10 +695,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -856,10 +703,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -867,10 +711,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -878,10 +719,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -889,10 +727,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -900,10 +735,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -911,10 +743,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -923,10 +752,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -934,10 +760,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -945,10 +768,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -956,10 +776,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -967,10 +784,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -980,10 +794,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -991,10 +802,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -1004,10 +812,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -1016,10 +821,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1028,10 +830,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1041,10 +840,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1054,10 +850,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1065,10 +858,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1077,10 +867,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1088,10 +875,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1101,10 +885,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1114,10 +895,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1127,10 +905,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1140,10 +915,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1152,10 +924,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1164,10 +933,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1178,10 +944,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1190,10 +953,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1202,10 +962,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1223,10 +980,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1236,10 +990,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1249,10 +1000,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1262,10 +1010,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1274,10 +1019,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1285,10 +1027,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1297,10 +1036,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1308,10 +1044,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1320,10 +1053,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1332,10 +1062,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1353,10 +1080,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1364,10 +1088,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1376,10 +1097,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1397,10 +1115,7 @@ public List QueryParameter() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate QueryPredicate() - { - return this.ComputePredicate(); - } + public IPredicate predicate => this.ComputePredicate(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1412,10 +1127,7 @@ public IPredicate QueryPredicate() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -1435,10 +1147,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.RequiredConstraint")] - public List QueryRequiredConstraint() - { - return this.ComputeRequiredConstraint(); - } + public List requiredConstraint => this.ComputeRequiredConstraint(); /// /// The RequirementDefinition that is the single definition of this RequirementUsage. @@ -1446,10 +1155,7 @@ public List QueryRequiredConstraint() [Property(xmiId: "_19_0_2_12e503d9_1583000408905_769743_1223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public IRequirementDefinition QueryRequirementDefinition() - { - return this.ComputeRequirementDefinition(); - } + public IRequirementDefinition requirementDefinition => this.ComputeRequirementDefinition(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1460,10 +1166,7 @@ public IRequirementDefinition QueryRequirementDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The RequirementUsage that is satisfied by the satisfyingSubject of this SatisfyRequirementUsage. It @@ -1473,10 +1176,7 @@ public IFeature QueryResult() [Property(xmiId: "_19_0_2_12e503d9_1583185037725_699150_2332", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1581045158665_239617_9458")] [Implements(implementation: "ISatisfyRequirementUsage.SatisfiedRequirement")] - public IRequirementUsage QuerySatisfiedRequirement() - { - return this.ComputeSatisfiedRequirement(); - } + public IRequirementUsage satisfiedRequirement => this.ComputeSatisfiedRequirement(); /// /// The Feature that represents the actual subject that is asserted to satisfy the satisfiedRequirement. @@ -1484,10 +1184,7 @@ public IRequirementUsage QuerySatisfiedRequirement() /// [Property(xmiId: "_19_0_2_12e503d9_1583378847285_929988_1396", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ISatisfyRequirementUsage.SatisfyingFeature")] - public IFeature QuerySatisfyingFeature() - { - return this.ComputeSatisfyingFeature(); - } + public IFeature satisfyingFeature => this.ComputeSatisfyingFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1497,10 +1194,7 @@ public IFeature QuerySatisfyingFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -1509,10 +1203,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.StakeholderParameter")] - public List QueryStakeholderParameter() - { - return this.ComputeStakeholderParameter(); - } + public List stakeholderParameter => this.ComputeStakeholderParameter(); /// /// The parameter of this RequirementUsage that represents its subject. @@ -1521,10 +1212,7 @@ public List QueryStakeholderParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from @@ -1532,10 +1220,7 @@ public IUsage QuerySubjectParameter() /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementUsage.Text")] - public List QueryText() - { - return this.ComputeText(); - } + public List text => this.ComputeText(); /// /// The TextualRepresentations that annotate this Element. @@ -1544,10 +1229,7 @@ public List QueryText() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1558,10 +1240,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1572,10 +1251,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1583,10 +1259,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1595,10 +1268,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1607,10 +1277,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/SelectExpression.cs b/SysML2.NET/Core/AutoGenPoco/SelectExpression.cs index fdcf56bb2..8dbf2bba4 100644 --- a/SysML2.NET/Core/AutoGenPoco/SelectExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/SelectExpression.cs @@ -68,10 +68,7 @@ public partial class SelectExpression : ISelectExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List QueryArgument() - { - return this.ComputeArgument(); - } + public List argument => this.ComputeArgument(); /// /// The Behaviors that type this Step. @@ -80,10 +77,7 @@ public List QueryArgument() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -95,10 +89,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -108,10 +99,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -141,10 +129,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -153,10 +138,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -173,10 +155,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -192,10 +171,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -205,10 +181,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -216,10 +189,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -228,20 +198,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -251,10 +215,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -262,10 +223,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -273,10 +231,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -284,10 +239,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -296,10 +248,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -307,10 +256,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Type that is being instantiated. @@ -318,10 +264,7 @@ public List QueryInput() [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public IType QueryInstantiatedType() - { - return this.ComputeInstantiatedType(); - } + public IType instantiatedType => this.ComputeInstantiatedType(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -334,10 +277,7 @@ public IType QueryInstantiatedType() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -361,10 +301,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -411,10 +348,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -422,10 +356,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -459,7 +390,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -475,10 +406,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -486,10 +414,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -499,10 +424,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -512,17 +434,14 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// [Property(xmiId: "_18_5_3_12e503d9_1559596728932_861031_29126", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "select")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528808100_646606_111674")] [Implements(implementation: "ISelectExpression.Operator")] - string ISelectExpression.Operator { get; set; } + public string Operator { get; set; } = "select"; /// /// An operator symbol that names a corresponding Function from one of the standard packages from the @@ -539,10 +458,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -552,10 +468,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -564,10 +477,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -576,10 +486,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -589,10 +496,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -602,10 +506,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -613,10 +514,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -625,10 +523,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -636,10 +531,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -649,10 +541,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -662,10 +551,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -675,10 +561,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -688,10 +571,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -700,10 +580,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -712,10 +589,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -726,10 +600,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -738,10 +609,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -750,10 +618,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -771,10 +636,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -784,10 +646,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -797,10 +656,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -810,10 +666,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -822,10 +675,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -833,10 +683,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -844,10 +691,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -856,10 +700,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -868,10 +709,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -889,10 +727,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -901,10 +736,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -916,10 +748,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -930,10 +759,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -943,10 +769,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -955,10 +778,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -968,10 +788,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -982,10 +799,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/SendActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/SendActionUsage.cs index d0c7a3a1d..db93f673f 100644 --- a/SysML2.NET/Core/AutoGenPoco/SendActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/SendActionUsage.cs @@ -90,10 +90,7 @@ public partial class SendActionUsage : ISendActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -109,10 +106,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -124,10 +118,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -137,10 +128,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -168,10 +156,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -184,10 +169,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -196,10 +178,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -208,10 +187,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -228,10 +204,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -247,10 +220,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -260,10 +230,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -271,10 +238,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -283,20 +247,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -306,10 +264,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -317,10 +272,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -328,10 +280,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -339,10 +288,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -351,10 +297,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -362,10 +305,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -378,10 +318,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -405,10 +342,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -463,10 +397,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -488,10 +419,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -510,7 +438,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -540,10 +468,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -551,10 +476,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -562,10 +484,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -575,10 +494,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -588,10 +504,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -599,10 +512,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -610,10 +520,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -621,10 +528,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -632,10 +536,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -643,10 +544,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -654,10 +552,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -665,10 +560,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -678,10 +570,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -689,10 +578,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -700,10 +586,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -711,10 +594,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -722,10 +602,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -733,10 +610,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -744,10 +618,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -755,10 +626,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -766,10 +634,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -777,10 +642,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -788,10 +650,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -799,10 +658,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -810,10 +666,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -821,10 +674,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -832,10 +682,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -844,10 +691,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -855,10 +699,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -866,10 +707,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -877,10 +715,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -888,10 +723,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -902,10 +734,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -913,10 +742,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -926,10 +752,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -938,10 +761,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -950,10 +770,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -963,10 +780,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -976,10 +790,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -987,10 +798,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -999,10 +807,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1010,10 +815,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1023,10 +825,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1036,10 +835,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1049,10 +845,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1062,10 +855,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1074,10 +864,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1086,10 +873,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1100,10 +884,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1112,10 +893,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1124,10 +902,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1145,10 +920,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1158,10 +930,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1171,10 +940,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1184,10 +950,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1196,10 +959,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1207,10 +967,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1219,10 +976,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1230,10 +984,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1242,10 +993,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1254,10 +1002,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1275,10 +1020,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1286,10 +1028,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1298,20 +1037,14 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// An Expression whose result is bound to the payload input parameter of this SendActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1612814399422_336683_143", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ISendActionUsage.PayloadArgument")] - public IExpression QueryPayloadArgument() - { - return this.ComputePayloadArgument(); - } + public IExpression payloadArgument => this.ComputePayloadArgument(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1332,30 +1065,21 @@ public IExpression QueryPayloadArgument() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An Expression whose result is bound to the receiver input parameter of this SendActionUsage. /// [Property(xmiId: "_19_0_2_12e503d9_1567742374932_10504_18141", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ISendActionUsage.ReceiverArgument")] - public IExpression QueryReceiverArgument() - { - return this.ComputeReceiverArgument(); - } + public IExpression receiverArgument => this.ComputeReceiverArgument(); /// /// An Expression whose result is bound to the sender input parameter of this SendActionUsage. /// [Property(xmiId: "_19_0_4_12e503d9_1665504224536_894018_944", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ISendActionUsage.SenderArgument")] - public IExpression QuerySenderArgument() - { - return this.ComputeSenderArgument(); - } + public IExpression senderArgument => this.ComputeSenderArgument(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1365,10 +1089,7 @@ public IExpression QuerySenderArgument() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1377,10 +1098,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1391,10 +1109,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1405,10 +1120,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1416,10 +1128,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1428,10 +1137,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1440,10 +1146,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Specialization.cs b/SysML2.NET/Core/AutoGenPoco/Specialization.cs index dfd419d75..a394e2e9e 100644 --- a/SysML2.NET/Core/AutoGenPoco/Specialization.cs +++ b/SysML2.NET/Core/AutoGenPoco/Specialization.cs @@ -80,10 +80,7 @@ public partial class Specialization : ISpecialization [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -125,10 +122,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -138,10 +132,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -151,10 +142,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -162,10 +150,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -189,10 +174,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -201,10 +183,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -213,10 +192,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -241,10 +217,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [Implements(implementation: "ISpecialization.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -256,10 +229,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -267,10 +237,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -280,10 +247,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -318,10 +282,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/StakeholderMembership.cs b/SysML2.NET/Core/AutoGenPoco/StakeholderMembership.cs index a88eef394..29381f188 100644 --- a/SysML2.NET/Core/AutoGenPoco/StakeholderMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/StakeholderMembership.cs @@ -85,10 +85,7 @@ public partial class StakeholderMembership : IStakeholderMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -122,10 +119,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -142,10 +136,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -164,10 +155,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -185,10 +173,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -198,10 +183,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -209,10 +191,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -223,10 +202,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -234,10 +210,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -247,10 +220,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -258,10 +228,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The Feature that is identified as a parameter by this ParameterMembership. @@ -270,10 +237,7 @@ public string QueryOwnedMemberName() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IStakeholderMembership.OwnedStakeholderParameter")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public IFeature QueryOwnedMemberParameter() - { - return this.ComputeOwnedMemberParameter(); - } + public IFeature ownedMemberParameter => this.ComputeOwnedMemberParameter(); /// /// The shortName of the ownedMemberElement. @@ -281,10 +245,7 @@ public IFeature QueryOwnedMemberParameter() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -308,10 +269,7 @@ public string QueryOwnedMemberShortName() [Property(xmiId: "_19_0_4_12e503d9_1624034451301_6622_40822", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528016548_548098_110830")] [Implements(implementation: "IStakeholderMembership.OwnedStakeholderParameter")] - public IPartUsage QueryOwnedStakeholderParameter() - { - return this.ComputeOwnedStakeholderParameter(); - } + public IPartUsage ownedStakeholderParameter => this.ComputeOwnedStakeholderParameter(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -319,10 +277,7 @@ public IPartUsage QueryOwnedStakeholderParameter() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -331,10 +286,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -343,10 +295,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -371,10 +320,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -386,10 +332,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -397,10 +340,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -410,10 +350,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -440,10 +377,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -451,7 +385,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/StateDefinition.cs b/SysML2.NET/Core/AutoGenPoco/StateDefinition.cs index 8d9ba20be..feb1174bc 100644 --- a/SysML2.NET/Core/AutoGenPoco/StateDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/StateDefinition.cs @@ -83,10 +83,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List QueryAction() - { - return this.ComputeAction(); - } + public List action => this.ComputeAction(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -123,10 +120,7 @@ public List QueryAction() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -135,10 +129,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -147,10 +138,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The ActionUsage of this StateDefinition to be performed while in the state defined by the @@ -159,10 +147,7 @@ public List QueryDirectedUsage() /// [Property(xmiId: "_19_0_2_12e503d9_1582975916386_388324_339", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateDefinition.DoAction")] - public IActionUsage QueryDoAction() - { - return this.ComputeDoAction(); - } + public IActionUsage doAction => this.ComputeDoAction(); /// /// The Documentation owned by this Element. @@ -171,10 +156,7 @@ public IActionUsage QueryDoAction() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -190,10 +172,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ActionUsage of this StateDefinition to be performed on entry to the state defined by the @@ -202,10 +181,7 @@ public List QueryEndFeature() /// [Property(xmiId: "_19_0_2_12e503d9_1582975902339_513804_312", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateDefinition.EntryAction")] - public IActionUsage QueryEntryAction() - { - return this.ComputeEntryAction(); - } + public IActionUsage entryAction => this.ComputeEntryAction(); /// /// The ActionUsage of this StateDefinition to be performed on exit to the state defined by the @@ -214,10 +190,7 @@ public IActionUsage QueryEntryAction() /// [Property(xmiId: "_19_0_2_12e503d9_1582975927011_696894_352", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateDefinition.ExitAction")] - public IActionUsage QueryExitAction() - { - return this.ComputeExitAction(); - } + public IActionUsage exitAction => this.ComputeExitAction(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -225,10 +198,7 @@ public IActionUsage QueryExitAction() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -237,10 +207,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -248,10 +215,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -259,10 +223,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -271,10 +232,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -282,10 +240,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -298,10 +253,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -316,10 +268,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -344,10 +293,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether the ownedStates of this StateDefinition are to all be performed in parallel. If true, none @@ -384,10 +330,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -395,10 +338,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -408,10 +348,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -421,10 +358,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -432,10 +366,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -443,10 +374,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -454,10 +382,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -465,10 +390,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -478,10 +400,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -489,10 +408,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -500,10 +416,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -511,10 +424,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -522,10 +432,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -534,10 +441,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -547,10 +451,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -558,10 +459,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -571,10 +469,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -584,10 +479,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -595,10 +487,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -607,10 +496,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -618,10 +504,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -629,10 +512,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -642,10 +522,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -653,10 +530,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -666,10 +540,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -677,10 +548,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -689,10 +557,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -700,10 +565,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -712,10 +574,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -726,10 +585,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -737,10 +593,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -748,10 +601,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -759,10 +609,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -770,10 +617,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -781,10 +625,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -800,10 +641,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -811,10 +649,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -824,10 +659,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -835,10 +667,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -847,10 +676,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -858,10 +684,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -870,10 +693,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -882,10 +702,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -893,10 +710,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -904,10 +718,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -915,10 +726,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -926,10 +734,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -937,10 +742,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -949,10 +751,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -961,10 +760,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -981,10 +777,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -996,10 +789,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1009,10 +799,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The StateUsages, which are actions in the StateDefinition, that specify the discrete states in the @@ -1021,10 +808,7 @@ public string QueryShortName() [Property(xmiId: "_19_0_2_12e503d9_1575588190693_949879_1156", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [Implements(implementation: "IStateDefinition.State")] - public List QueryState() - { - return this.ComputeState(); - } + public List state => this.ComputeState(); /// /// The Steps that make up this Behavior. @@ -1032,10 +816,7 @@ public List QueryState() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The TextualRepresentations that annotate this Element. @@ -1044,10 +825,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1058,10 +836,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1069,10 +844,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1081,10 +853,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1094,10 +863,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/StateSubactionMembership.cs b/SysML2.NET/Core/AutoGenPoco/StateSubactionMembership.cs index c822dca52..51b062cb1 100644 --- a/SysML2.NET/Core/AutoGenPoco/StateSubactionMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/StateSubactionMembership.cs @@ -59,10 +59,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [Property(xmiId: "_19_0_2_12e503d9_1582974847979_606181_96", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IStateSubactionMembership.Action")] - public IActionUsage QueryAction() - { - return this.ComputeAction(); - } + public IActionUsage action => this.ComputeAction(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -95,10 +92,7 @@ public IActionUsage QueryAction() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -132,10 +126,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this StateSubactionMembership is for an entry, do or exit ActionUsage. @@ -159,10 +150,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -181,10 +169,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -202,10 +187,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -215,10 +197,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -226,10 +205,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -240,10 +216,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -251,10 +224,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -264,10 +234,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IStateSubactionMembership.Action")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -275,10 +242,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -286,10 +250,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -313,10 +274,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -325,10 +283,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -337,10 +292,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -365,10 +317,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -380,10 +329,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -391,10 +337,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -404,10 +347,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -434,10 +374,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -445,7 +382,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/StateUsage.cs b/SysML2.NET/Core/AutoGenPoco/StateUsage.cs index 218d35f24..a2d53e44b 100644 --- a/SysML2.NET/Core/AutoGenPoco/StateUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/StateUsage.cs @@ -88,10 +88,7 @@ public partial class StateUsage : IStateUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IStateUsage.StateDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -107,10 +104,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -122,10 +116,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -135,10 +126,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -166,10 +154,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -182,10 +167,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -194,10 +176,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -206,10 +185,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -226,10 +202,7 @@ public List QueryDirectedUsage() /// [Property(xmiId: "_19_0_2_12e503d9_1582976255473_203238_644", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateUsage.DoAction")] - public IActionUsage QueryDoAction() - { - return this.ComputeDoAction(); - } + public IActionUsage doAction => this.ComputeDoAction(); /// /// The Documentation owned by this Element. @@ -238,10 +211,7 @@ public IActionUsage QueryDoAction() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -257,10 +227,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -270,10 +237,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ActionUsage of this StateUsage to be performed on entry to the state defined by the @@ -282,10 +246,7 @@ public IType QueryEndOwningType() /// [Property(xmiId: "_19_0_2_12e503d9_1582976239200_979652_605", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateUsage.EntryAction")] - public IActionUsage QueryEntryAction() - { - return this.ComputeEntryAction(); - } + public IActionUsage entryAction => this.ComputeEntryAction(); /// /// The ActionUsage of this StateUsage to be performed on exit to the state defined by the @@ -294,10 +255,7 @@ public IActionUsage QueryEntryAction() /// [Property(xmiId: "_19_0_2_12e503d9_1582976283940_998741_691", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IStateUsage.ExitAction")] - public IActionUsage QueryExitAction() - { - return this.ComputeExitAction(); - } + public IActionUsage exitAction => this.ComputeExitAction(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -305,10 +263,7 @@ public IActionUsage QueryExitAction() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -317,20 +272,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -340,10 +289,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -351,10 +297,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -362,10 +305,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -373,10 +313,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -385,10 +322,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -396,10 +330,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -412,10 +343,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -439,10 +367,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -497,10 +422,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -531,10 +453,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -553,7 +472,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -583,10 +502,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -594,10 +510,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -605,10 +518,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -618,10 +528,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -631,10 +538,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -642,10 +546,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -653,10 +554,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -664,10 +562,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -675,10 +570,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -686,10 +578,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -697,10 +586,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -708,10 +594,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -721,10 +604,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -732,10 +612,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -743,10 +620,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -754,10 +628,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -765,10 +636,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -776,10 +644,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -787,10 +652,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -798,10 +660,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -809,10 +668,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -820,10 +676,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -831,10 +684,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -842,10 +692,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -853,10 +700,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -864,10 +708,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -875,10 +716,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -887,10 +725,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -898,10 +733,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -909,10 +741,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -920,10 +749,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -931,10 +757,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -945,10 +768,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -956,10 +776,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -969,10 +786,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -981,10 +795,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -993,10 +804,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1006,10 +814,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1019,10 +824,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1030,10 +832,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1042,10 +841,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1053,10 +849,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1066,10 +859,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1079,10 +869,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1092,10 +879,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1105,10 +889,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1117,10 +898,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1129,10 +907,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1143,10 +918,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1155,10 +927,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1167,10 +936,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1188,10 +954,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1201,10 +964,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1214,10 +974,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1227,10 +984,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1239,10 +993,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1250,10 +1001,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1262,10 +1010,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1273,10 +1018,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1285,10 +1027,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1297,10 +1036,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1318,10 +1054,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1329,10 +1062,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1341,10 +1071,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1365,10 +1092,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1378,10 +1102,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Behaviors that are the types of this StateUsage. Nominally, these would be StateDefinitions, but @@ -1390,10 +1111,7 @@ public string QueryShortName() [Property(xmiId: "_19_0_2_12e503d9_1575588456737_49200_1438", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [Implements(implementation: "IStateUsage.StateDefinition")] - public List QueryStateDefinition() - { - return this.ComputeStateDefinition(); - } + public List stateDefinition => this.ComputeStateDefinition(); /// /// The TextualRepresentations that annotate this Element. @@ -1402,10 +1120,7 @@ public List QueryStateDefinition() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1416,10 +1131,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1430,10 +1142,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1441,10 +1150,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1453,10 +1159,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1465,10 +1168,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Step.cs b/SysML2.NET/Core/AutoGenPoco/Step.cs index 2dd6618ba..3f6b6ee5a 100644 --- a/SysML2.NET/Core/AutoGenPoco/Step.cs +++ b/SysML2.NET/Core/AutoGenPoco/Step.cs @@ -66,10 +66,7 @@ public partial class Step : IStep [Property(xmiId: "_18_5_3_b9102da_1536346315176_954314_17388", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -81,10 +78,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -94,10 +88,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -127,10 +118,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -139,10 +127,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -159,10 +144,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -178,10 +160,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -191,10 +170,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -202,10 +178,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -214,20 +187,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -237,10 +204,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -248,10 +212,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -259,10 +220,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -271,10 +229,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -282,10 +237,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -298,10 +250,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -325,10 +274,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -375,10 +321,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -412,7 +355,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -428,10 +371,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -439,10 +379,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -452,10 +389,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -465,10 +399,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -476,10 +407,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -489,10 +417,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -501,10 +426,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -513,10 +435,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -526,10 +445,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -539,10 +455,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -550,10 +463,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -562,10 +472,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -573,10 +480,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -586,10 +490,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -599,10 +500,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -612,10 +510,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -625,10 +520,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -637,10 +529,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -649,10 +538,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -663,10 +549,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -675,10 +558,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -687,10 +567,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -708,10 +585,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -721,10 +595,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -734,10 +605,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -747,10 +615,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -759,10 +624,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -770,10 +632,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -781,10 +640,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -793,10 +649,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -805,10 +658,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -826,10 +676,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -838,10 +685,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -853,10 +697,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -866,10 +707,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -878,10 +716,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -891,10 +726,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -905,10 +737,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Structure.cs b/SysML2.NET/Core/AutoGenPoco/Structure.cs index 09693812d..e4f5f8542 100644 --- a/SysML2.NET/Core/AutoGenPoco/Structure.cs +++ b/SysML2.NET/Core/AutoGenPoco/Structure.cs @@ -88,10 +88,7 @@ public partial class Structure : IStructure /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -99,10 +96,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The Documentation owned by this Element. @@ -111,10 +105,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -130,10 +121,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -141,10 +129,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -153,10 +138,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -164,10 +146,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -175,10 +154,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -187,10 +163,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -198,10 +171,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -214,10 +184,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -232,10 +199,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -253,10 +217,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -276,10 +237,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -287,10 +245,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -300,10 +255,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -313,10 +265,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -324,10 +273,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -337,10 +283,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -349,10 +292,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -362,10 +302,7 @@ public IConjugation QueryOwnedConjugator() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -375,10 +312,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -386,10 +320,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -398,10 +329,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -409,10 +337,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -422,10 +347,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -435,10 +357,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -447,10 +366,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -459,10 +375,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -473,10 +386,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -494,10 +404,7 @@ public List QueryOwnedMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -506,10 +413,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -518,10 +422,7 @@ public List QueryOwnedSubclassification() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -529,10 +430,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -541,10 +439,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -553,10 +448,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -576,10 +468,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -589,10 +478,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -601,10 +487,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -615,10 +498,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Subclassification.cs b/SysML2.NET/Core/AutoGenPoco/Subclassification.cs index 7b0a07b10..6162c4292 100644 --- a/SysML2.NET/Core/AutoGenPoco/Subclassification.cs +++ b/SysML2.NET/Core/AutoGenPoco/Subclassification.cs @@ -80,10 +80,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -126,10 +123,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -139,10 +133,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -152,10 +143,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -163,10 +151,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -190,10 +175,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Classifier that owns this Subclassification relationship, which must also be its subclassifier. @@ -201,10 +183,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1543189170642_857401_25506", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "ISubclassification.OwningClassifier")] - public IClassifier QueryOwningClassifier() - { - return this.ComputeOwningClassifier(); - } + public IClassifier owningClassifier => this.ComputeOwningClassifier(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -213,10 +192,7 @@ public IClassifier QueryOwningClassifier() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -225,10 +201,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -254,10 +227,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubclassification.OwningClassifier")] [Implements(implementation: "ISpecialization.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -269,10 +239,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -280,10 +247,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -293,10 +257,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -348,10 +309,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/SubjectMembership.cs b/SysML2.NET/Core/AutoGenPoco/SubjectMembership.cs index 349cf3364..270ae2aed 100644 --- a/SysML2.NET/Core/AutoGenPoco/SubjectMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/SubjectMembership.cs @@ -85,10 +85,7 @@ public partial class SubjectMembership : ISubjectMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -122,10 +119,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -142,10 +136,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -164,10 +155,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -185,10 +173,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -198,10 +183,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -209,10 +191,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -223,10 +202,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -234,10 +210,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -247,10 +220,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -258,10 +228,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The Feature that is identified as a parameter by this ParameterMembership. @@ -270,10 +237,7 @@ public string QueryOwnedMemberName() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("ISubjectMembership.OwnedSubjectParameter")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public IFeature QueryOwnedMemberParameter() - { - return this.ComputeOwnedMemberParameter(); - } + public IFeature ownedMemberParameter => this.ComputeOwnedMemberParameter(); /// /// The shortName of the ownedMemberElement. @@ -281,10 +245,7 @@ public IFeature QueryOwnedMemberParameter() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -308,10 +269,7 @@ public string QueryOwnedMemberShortName() [Property(xmiId: "_19_0_2_59601fc_1590258781117_655788_845", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1557528016548_548098_110830")] [Implements(implementation: "ISubjectMembership.OwnedSubjectParameter")] - public IUsage QueryOwnedSubjectParameter() - { - return this.ComputeOwnedSubjectParameter(); - } + public IUsage ownedSubjectParameter => this.ComputeOwnedSubjectParameter(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -319,10 +277,7 @@ public IUsage QueryOwnedSubjectParameter() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -331,10 +286,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -343,10 +295,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -371,10 +320,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -386,10 +332,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -397,10 +340,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -410,10 +350,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -440,10 +377,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -451,7 +385,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/Subsetting.cs b/SysML2.NET/Core/AutoGenPoco/Subsetting.cs index 9c7d57ae5..c03286ba4 100644 --- a/SysML2.NET/Core/AutoGenPoco/Subsetting.cs +++ b/SysML2.NET/Core/AutoGenPoco/Subsetting.cs @@ -84,10 +84,7 @@ public partial class Subsetting : ISubsetting [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -130,10 +127,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -143,10 +137,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -156,10 +147,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -167,10 +155,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -194,10 +179,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// A subsettingFeature that is also the owningRelatedElement of this Subsetting. @@ -206,10 +188,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674967_140305_43206")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [Implements(implementation: "ISubsetting.OwningFeature")] - public IFeature QueryOwningFeature() - { - return this.ComputeOwningFeature(); - } + public IFeature owningFeature => this.ComputeOwningFeature(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -218,10 +197,7 @@ public IFeature QueryOwningFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -230,10 +206,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -259,10 +232,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -274,10 +244,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -285,10 +252,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -298,10 +262,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -353,10 +314,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Succession.cs b/SysML2.NET/Core/AutoGenPoco/Succession.cs index 63297da5a..1849eda65 100644 --- a/SysML2.NET/Core/AutoGenPoco/Succession.cs +++ b/SysML2.NET/Core/AutoGenPoco/Succession.cs @@ -64,10 +64,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674983_471497_43284", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -79,10 +76,7 @@ public List QueryAssociation() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -92,10 +86,7 @@ public List QueryChainingFeature() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -105,10 +96,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -134,10 +122,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -150,10 +135,7 @@ public IType QueryDefaultFeaturingType() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -161,10 +143,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -181,10 +160,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -201,10 +177,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -214,10 +187,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -225,10 +195,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -237,20 +204,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -260,10 +221,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -271,10 +229,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -282,10 +237,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -294,10 +246,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -305,10 +254,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -321,10 +267,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -348,10 +291,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -406,10 +346,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -443,7 +380,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -459,10 +396,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -470,10 +404,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -483,10 +414,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -496,10 +424,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -507,10 +432,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -520,10 +442,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -532,10 +451,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -544,10 +460,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -557,10 +470,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -570,10 +480,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -581,10 +488,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -593,10 +497,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -604,10 +505,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -617,10 +515,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -630,10 +525,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -643,10 +535,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -656,10 +545,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -668,10 +554,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -680,10 +563,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -694,10 +574,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -706,10 +583,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -718,10 +592,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -747,10 +618,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -760,10 +628,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -773,10 +638,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -786,10 +648,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -798,10 +657,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -809,10 +665,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -820,10 +673,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -832,10 +682,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -844,10 +691,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -873,10 +717,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -888,10 +729,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -900,10 +738,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -912,10 +747,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -925,10 +757,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -946,10 +775,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -968,10 +794,7 @@ public IFeature QuerySourceFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -980,10 +803,7 @@ public List QueryTargetFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -994,10 +814,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1008,10 +825,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/SuccessionAsUsage.cs b/SysML2.NET/Core/AutoGenPoco/SuccessionAsUsage.cs index 11965d7e2..15a121a0b 100644 --- a/SysML2.NET/Core/AutoGenPoco/SuccessionAsUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/SuccessionAsUsage.cs @@ -87,10 +87,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674983_471497_43284", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -102,10 +99,7 @@ public List QueryAssociation() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -115,10 +109,7 @@ public List QueryChainingFeature() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -128,10 +119,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -157,10 +145,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -170,10 +155,7 @@ public IType QueryDefaultFeaturingType() [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -186,10 +168,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -197,10 +176,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -209,10 +185,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -229,10 +202,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -249,10 +219,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -262,10 +229,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -273,10 +237,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -285,20 +246,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -308,10 +263,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -319,10 +271,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -330,10 +279,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -342,10 +288,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -353,10 +296,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -369,10 +309,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -396,10 +333,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -454,10 +388,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -479,10 +410,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -501,7 +429,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -531,10 +459,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -542,10 +467,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -553,10 +475,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -566,10 +485,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -579,10 +495,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -590,10 +503,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -601,10 +511,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -612,10 +519,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -623,10 +527,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -634,10 +535,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -645,10 +543,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -656,10 +551,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -669,10 +561,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -680,10 +569,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -691,10 +577,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -702,10 +585,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -713,10 +593,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -724,10 +601,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -735,10 +609,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -746,10 +617,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -757,10 +625,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -768,10 +633,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -779,10 +641,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -790,10 +649,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -801,10 +657,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -812,10 +665,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -823,10 +673,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -835,10 +682,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -846,10 +690,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -857,10 +698,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -868,10 +706,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -879,10 +714,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -890,10 +722,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -903,10 +732,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -915,10 +741,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -927,10 +750,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -940,10 +760,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -953,10 +770,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -964,10 +778,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -976,10 +787,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -987,10 +795,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1000,10 +805,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1013,10 +815,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1026,10 +825,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1039,10 +835,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1051,10 +844,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1063,10 +853,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1077,10 +864,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1089,10 +873,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1101,10 +882,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -1130,10 +908,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1143,10 +918,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1156,10 +928,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1169,10 +938,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1181,10 +947,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1192,10 +955,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1204,10 +964,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1215,10 +972,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1227,10 +981,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1239,10 +990,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -1268,10 +1016,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1279,10 +1024,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1294,10 +1036,7 @@ public IUsage QueryOwningUsage() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1306,10 +1045,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1318,10 +1054,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1331,10 +1064,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1352,10 +1082,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1374,10 +1101,7 @@ public IFeature QuerySourceFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -1386,10 +1110,7 @@ public List QueryTargetFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1400,10 +1121,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1414,10 +1132,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1425,10 +1140,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1437,10 +1149,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1449,10 +1158,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs b/SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs index d119f5f8c..5cd401485 100644 --- a/SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs +++ b/SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs @@ -70,10 +70,7 @@ public partial class SuccessionFlow : ISuccessionFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Behaviors that type this Step. @@ -82,10 +79,7 @@ public List QueryAssociation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -97,10 +91,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -110,10 +101,7 @@ public List QueryChainingFeature() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -123,10 +111,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -152,10 +137,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -168,10 +150,7 @@ public IType QueryDefaultFeaturingType() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -180,10 +159,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -200,10 +176,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -220,10 +193,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -233,10 +203,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -244,10 +211,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -256,20 +220,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -279,10 +237,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The connectorEnds of this Flow that are FlowEnds. @@ -290,10 +245,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] [Implements(implementation: "IFlow.FlowEnd")] - public List QueryFlowEnd() - { - return this.ComputeFlowEnd(); - } + public List flowEnd => this.ComputeFlowEnd(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -301,10 +253,7 @@ public List QueryFlowEnd() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -312,10 +261,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -324,10 +270,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -335,10 +278,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -348,10 +288,7 @@ public List QueryInput() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IFlow.Interaction")] - public List QueryInteraction() - { - return this.ComputeInteraction(); - } + public List interaction => this.ComputeInteraction(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -364,10 +301,7 @@ public List QueryInteraction() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -391,10 +325,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -449,10 +380,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -486,7 +414,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -502,10 +430,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -513,10 +438,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -526,10 +448,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -539,10 +458,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -550,10 +466,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -563,10 +476,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -575,10 +485,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -587,10 +494,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -600,10 +504,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -613,10 +514,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -624,10 +522,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -636,10 +531,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -647,10 +539,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -660,10 +549,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -673,10 +559,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -686,10 +569,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -699,10 +579,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -711,10 +588,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -723,10 +597,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -737,10 +608,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -749,10 +617,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -761,10 +626,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -790,10 +652,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -803,10 +662,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -816,10 +672,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -829,10 +682,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -841,10 +691,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -852,10 +699,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -863,10 +707,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -875,10 +716,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -887,10 +725,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -916,10 +751,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -928,10 +760,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). @@ -939,20 +768,14 @@ public List QueryParameter() [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IFlow.PayloadFeature")] - public IPayloadFeature QueryPayloadFeature() - { - return this.ComputePayloadFeature(); - } + public IPayloadFeature payloadFeature => this.ComputePayloadFeature(); /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.PayloadType")] - public List QueryPayloadType() - { - return this.ComputePayloadType(); - } + public List payloadType => this.ComputePayloadType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -964,10 +787,7 @@ public List QueryPayloadType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -976,10 +796,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -988,10 +805,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1001,10 +815,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1022,10 +833,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the @@ -1033,10 +841,7 @@ public IFeature QuerySourceFeature() /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.SourceOutputFeature")] - public IFeature QuerySourceOutputFeature() - { - return this.ComputeSourceOutputFeature(); - } + public IFeature sourceOutputFeature => this.ComputeSourceOutputFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1055,10 +860,7 @@ public IFeature QuerySourceOutputFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the @@ -1066,10 +868,7 @@ public List QueryTargetFeature() /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.TargetInputFeature")] - public IFeature QueryTargetInputFeature() - { - return this.ComputeTargetInputFeature(); - } + public IFeature targetInputFeature => this.ComputeTargetInputFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -1078,10 +877,7 @@ public IFeature QueryTargetInputFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1092,10 +888,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1106,10 +899,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/SuccessionFlowUsage.cs b/SysML2.NET/Core/AutoGenPoco/SuccessionFlowUsage.cs index 0691cb383..ed97a5390 100644 --- a/SysML2.NET/Core/AutoGenPoco/SuccessionFlowUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/SuccessionFlowUsage.cs @@ -88,10 +88,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -107,10 +104,7 @@ public List QueryActionDefinition() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List QueryAssociation() - { - return this.ComputeAssociation(); - } + public List association => this.ComputeAssociation(); /// /// The Behaviors that type this Step. @@ -119,10 +113,7 @@ public List QueryAssociation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -134,10 +125,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -147,10 +135,7 @@ public List QueryChainingFeature() [Property(xmiId: "_18_5_3_12e503d9_1556735067666_827798_21922", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [Implements(implementation: "IConnector.ConnectorEnd")] - public List QueryConnectorEnd() - { - return this.ComputeConnectorEnd(); - } + public List connectorEnd => this.ComputeConnectorEnd(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -160,10 +145,7 @@ public List QueryConnectorEnd() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -189,10 +171,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_2022x_2_12e503d9_1737751598145_444042_71", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IConnector.DefaultFeaturingType")] - public IType QueryDefaultFeaturingType() - { - return this.ComputeDefaultFeaturingType(); - } + public IType defaultFeaturingType => this.ComputeDefaultFeaturingType(); /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -203,10 +182,7 @@ public IType QueryDefaultFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -219,10 +195,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -231,10 +204,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -243,10 +213,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -263,10 +230,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -283,10 +247,7 @@ public List QueryDocumentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -296,10 +257,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -307,10 +265,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -319,20 +274,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -342,10 +291,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Interactions that are the types of this FlowUsage. Nominally, these are FlowDefinitions, but @@ -356,10 +302,7 @@ public List QueryFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1661900477937_518125_727")] [Implements(implementation: "IFlowUsage.FlowDefinition")] - public List QueryFlowDefinition() - { - return this.ComputeFlowDefinition(); - } + public List flowDefinition => this.ComputeFlowDefinition(); /// /// The connectorEnds of this Flow that are FlowEnds. @@ -367,10 +310,7 @@ public List QueryFlowDefinition() [Property(xmiId: "_18_5_3_12e503d9_1563219311176_506548_20966", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 2, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1556735067666_827798_21922")] [Implements(implementation: "IFlow.FlowEnd")] - public List QueryFlowEnd() - { - return this.ComputeFlowEnd(); - } + public List flowEnd => this.ComputeFlowEnd(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -378,10 +318,7 @@ public List QueryFlowEnd() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -389,10 +326,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -400,10 +334,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -412,10 +343,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -423,10 +351,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Interactions that type this Flow. Interactions are both Associations and Behaviors, which can @@ -437,10 +362,7 @@ public List QueryInput() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IFlow.Interaction")] - public List QueryInteraction() - { - return this.ComputeInteraction(); - } + public List interaction => this.ComputeInteraction(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -453,10 +375,7 @@ public List QueryInteraction() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -480,10 +399,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -546,10 +462,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -571,10 +484,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -593,7 +503,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -623,10 +533,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -634,10 +541,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -645,10 +549,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -658,10 +559,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -671,10 +569,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -682,10 +577,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -693,10 +585,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -704,10 +593,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -715,10 +601,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -726,10 +609,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -737,10 +617,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -748,10 +625,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -761,10 +635,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -772,10 +643,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -783,10 +651,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -794,10 +659,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -805,10 +667,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -816,10 +675,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -827,10 +683,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -838,10 +691,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -849,10 +699,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -860,10 +707,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -871,10 +715,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -882,10 +723,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -893,10 +731,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -904,10 +739,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -915,10 +747,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -927,10 +756,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -938,10 +764,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -949,10 +772,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -960,10 +780,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -971,10 +788,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -985,10 +799,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -996,10 +807,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -1009,10 +817,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -1021,10 +826,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1033,10 +835,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1046,10 +845,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1059,10 +855,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1070,10 +863,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1082,10 +872,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1093,10 +880,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1106,10 +890,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1119,10 +900,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1132,10 +910,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1145,10 +920,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1157,10 +929,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1169,10 +938,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1183,10 +949,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1195,10 +958,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1207,10 +967,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -1236,10 +993,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1249,10 +1003,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1262,10 +1013,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1275,10 +1023,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1287,10 +1032,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1298,10 +1040,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1310,10 +1049,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1321,10 +1057,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1333,10 +1066,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1345,10 +1075,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -1374,10 +1101,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1385,10 +1109,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1397,10 +1118,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The ownedFeature of the Flow that is a PayloadFeature (if any). @@ -1408,20 +1126,14 @@ public List QueryParameter() [Property(xmiId: "_18_5_3_12e503d9_1563219424870_347345_21142", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IFlow.PayloadFeature")] - public IPayloadFeature QueryPayloadFeature() - { - return this.ComputePayloadFeature(); - } + public IPayloadFeature payloadFeature => this.ComputePayloadFeature(); /// /// The type of values transferred, which is the type of the payloadFeature of the Flow. /// [Property(xmiId: "_18_5_3_b9102da_1536870569046_1672_18020", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.PayloadType")] - public List QueryPayloadType() - { - return this.ComputePayloadType(); - } + public List payloadType => this.ComputePayloadType(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1442,10 +1154,7 @@ public List QueryPayloadType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -1454,10 +1163,7 @@ public string QueryQualifiedName() [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1466,10 +1172,7 @@ public List QueryRelatedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674968_916334_43210", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [Implements(implementation: "IConnector.RelatedFeature")] - public List QueryRelatedFeature() - { - return this.ComputeRelatedFeature(); - } + public List relatedFeature => this.ComputeRelatedFeature(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1479,10 +1182,7 @@ public List QueryRelatedFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -1500,10 +1200,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IConnector.SourceFeature")] - public IFeature QuerySourceFeature() - { - return this.ComputeSourceFeature(); - } + public IFeature sourceFeature => this.ComputeSourceFeature(); /// /// The Feature that provides the items carried by the Flow. It must be a feature of the source of the @@ -1511,10 +1208,7 @@ public IFeature QuerySourceFeature() /// [Property(xmiId: "_18_5_3_b9102da_1536870707078_57525_18088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.SourceOutputFeature")] - public IFeature QuerySourceOutputFeature() - { - return this.ComputeSourceOutputFeature(); - } + public IFeature sourceOutputFeature => this.ComputeSourceOutputFeature(); /// /// The relatedElements to which this Relationship is considered to be directed. @@ -1533,10 +1227,7 @@ public IFeature QuerySourceOutputFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674968_916334_43210")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [Implements(implementation: "IConnector.TargetFeature")] - public List QueryTargetFeature() - { - return this.ComputeTargetFeature(); - } + public List targetFeature => this.ComputeTargetFeature(); /// /// The Feature that receives the values carried by the Flow. It must be a feature of the target of the @@ -1544,10 +1235,7 @@ public List QueryTargetFeature() /// [Property(xmiId: "_18_5_3_b9102da_1536870573474_966268_18041", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFlow.TargetInputFeature")] - public IFeature QueryTargetInputFeature() - { - return this.ComputeTargetInputFeature(); - } + public IFeature targetInputFeature => this.ComputeTargetInputFeature(); /// /// The TextualRepresentations that annotate this Element. @@ -1556,10 +1244,7 @@ public IFeature QueryTargetInputFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1570,10 +1255,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1584,10 +1266,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1595,10 +1274,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1607,10 +1283,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1619,10 +1292,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/TerminateActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/TerminateActionUsage.cs index 85c2e6da3..2b4aa9f73 100644 --- a/SysML2.NET/Core/AutoGenPoco/TerminateActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/TerminateActionUsage.cs @@ -89,10 +89,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -108,10 +105,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -123,10 +117,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -136,10 +127,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -167,10 +155,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -183,10 +168,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -195,10 +177,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -207,10 +186,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -227,10 +203,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -246,10 +219,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -259,10 +229,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -270,10 +237,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -282,20 +246,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -305,10 +263,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -316,10 +271,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -327,10 +279,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -338,10 +287,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -350,10 +296,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -361,10 +304,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -377,10 +317,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -404,10 +341,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -462,10 +396,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -487,10 +418,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -509,7 +437,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -539,10 +467,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -550,10 +475,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -561,10 +483,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -574,10 +493,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -587,10 +503,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -598,10 +511,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -609,10 +519,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -620,10 +527,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -631,10 +535,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -642,10 +543,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -653,10 +551,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -664,10 +559,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -677,10 +569,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -688,10 +577,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -699,10 +585,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -710,10 +593,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -721,10 +601,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -732,10 +609,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -743,10 +617,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -754,10 +625,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -765,10 +633,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -776,10 +641,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -787,10 +649,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -798,10 +657,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -809,10 +665,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -820,10 +673,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -831,10 +681,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -843,10 +690,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -854,10 +698,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -865,10 +706,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -876,10 +714,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -887,10 +722,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -901,10 +733,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -912,10 +741,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -925,10 +751,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -937,10 +760,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -949,10 +769,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -962,10 +779,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -975,10 +789,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -986,10 +797,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -998,10 +806,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1009,10 +814,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1022,10 +824,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1035,10 +834,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1048,10 +844,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1061,10 +854,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1073,10 +863,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1085,10 +872,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1099,10 +883,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1111,10 +892,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1123,10 +901,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1144,10 +919,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1157,10 +929,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1170,10 +939,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1183,10 +949,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1195,10 +958,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1206,10 +966,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1218,10 +975,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1229,10 +983,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1241,10 +992,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1253,10 +1001,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1274,10 +1019,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1285,10 +1027,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1297,10 +1036,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1321,10 +1057,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1334,10 +1067,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Expression that is the featureValue of the terminateOccurrence parameter of this @@ -1345,10 +1075,7 @@ public string QueryShortName() /// [Property(xmiId: "_2022x_2_12e503d9_1724451750939_948290_107", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ITerminateActionUsage.TerminatedOccurrenceArgument")] - public IExpression QueryTerminatedOccurrenceArgument() - { - return this.ComputeTerminatedOccurrenceArgument(); - } + public IExpression terminatedOccurrenceArgument => this.ComputeTerminatedOccurrenceArgument(); /// /// The TextualRepresentations that annotate this Element. @@ -1357,10 +1084,7 @@ public IExpression QueryTerminatedOccurrenceArgument() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1371,10 +1095,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1385,10 +1106,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1396,10 +1114,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1408,10 +1123,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1420,10 +1132,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/TextualRepresentation.cs b/SysML2.NET/Core/AutoGenPoco/TextualRepresentation.cs index a82e9a4ee..02996dd27 100644 --- a/SysML2.NET/Core/AutoGenPoco/TextualRepresentation.cs +++ b/SysML2.NET/Core/AutoGenPoco/TextualRepresentation.cs @@ -84,10 +84,7 @@ public partial class TextualRepresentation : ITextualRepresentation [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("ITextualRepresentation.RepresentedElement")] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List QueryAnnotatedElement() - { - return this.ComputeAnnotatedElement(); - } + public List annotatedElement => this.ComputeAnnotatedElement(); /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the @@ -96,10 +93,7 @@ public List QueryAnnotatedElement() [Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IAnnotatingElement.Annotation")] - public List QueryAnnotation() - { - return this.ComputeAnnotation(); - } + public List annotation => this.ComputeAnnotation(); /// /// The textual representation of the representedElement in the given language. @@ -132,10 +126,7 @@ public List QueryAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -161,10 +152,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The natural or artifical language in which the body text is written. @@ -181,10 +169,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this AnnotatingElement that are Annotations, for which this @@ -194,10 +179,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IAnnotatingElement.OwnedAnnotatingRelationship")] - public List QueryOwnedAnnotatingRelationship() - { - return this.ComputeOwnedAnnotatingRelationship(); - } + public List ownedAnnotatingRelationship => this.ComputeOwnedAnnotatingRelationship(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -207,10 +189,7 @@ public List QueryOwnedAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -218,10 +197,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -237,10 +213,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this AnnotatingRelationship, if it is an Annotation @@ -249,10 +222,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")] [Implements(implementation: "IAnnotatingElement.OwningAnnotatingRelationship")] - public IAnnotation QueryOwningAnnotatingRelationship() - { - return this.ComputeOwningAnnotatingRelationship(); - } + public IAnnotation owningAnnotatingRelationship => this.ComputeOwningAnnotatingRelationship(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -261,10 +231,7 @@ public IAnnotation QueryOwningAnnotatingRelationship() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -273,10 +240,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -296,10 +260,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Element that is represented by this TextualRepresentation. @@ -308,10 +269,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_744477_17277")] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1594145755058_99428_86")] [Implements(implementation: "ITextualRepresentation.RepresentedElement")] - public IElement QueryRepresentedElement() - { - return this.ComputeRepresentedElement(); - } + public IElement representedElement => this.ComputeRepresentedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -321,10 +279,7 @@ public IElement QueryRepresentedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -333,10 +288,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/TransitionFeatureMembership.cs b/SysML2.NET/Core/AutoGenPoco/TransitionFeatureMembership.cs index c1e8c22b8..2c96638e9 100644 --- a/SysML2.NET/Core/AutoGenPoco/TransitionFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/TransitionFeatureMembership.cs @@ -85,10 +85,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -122,10 +119,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this TransitionFeatureMembership is for a trigger, guard or effect. @@ -149,10 +143,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -171,10 +162,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -192,10 +180,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -205,10 +190,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -216,10 +198,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -230,10 +209,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -241,10 +217,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -254,10 +227,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("ITransitionFeatureMembership.TransitionFeature")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -265,10 +235,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -276,10 +243,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -303,10 +267,7 @@ public string QueryOwnedMemberShortName() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -315,10 +276,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -327,10 +285,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -355,10 +310,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -370,10 +322,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -381,10 +330,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -394,10 +340,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -424,10 +367,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The Step that is the ownedMemberFeature of this TransitionFeatureMembership. @@ -435,10 +375,7 @@ public List QueryTextualRepresentation() [Property(xmiId: "_19_0_2_12e503d9_1582975046568_736161_148", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "ITransitionFeatureMembership.TransitionFeature")] - public IStep QueryTransitionFeature() - { - return this.ComputeTransitionFeature(); - } + public IStep transitionFeature => this.ComputeTransitionFeature(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -446,7 +383,7 @@ public IStep QueryTransitionFeature() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/TransitionUsage.cs b/SysML2.NET/Core/AutoGenPoco/TransitionUsage.cs index c085ef286..173c8d823 100644 --- a/SysML2.NET/Core/AutoGenPoco/TransitionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/TransitionUsage.cs @@ -91,10 +91,7 @@ public partial class TransitionUsage : ITransitionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -110,10 +107,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -125,10 +119,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -138,10 +129,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -169,10 +157,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -185,10 +170,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -197,10 +179,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -209,10 +188,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -229,10 +205,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The ActionUsages that define the effects of this TransitionUsage, which are the ownedFeatures of the @@ -242,10 +215,7 @@ public List QueryDocumentation() [Property(xmiId: "_19_0_2_12e503d9_1581029782522_542070_6299", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "ITransitionUsage.EffectAction")] - public List QueryEffectAction() - { - return this.ComputeEffectAction(); - } + public List effectAction => this.ComputeEffectAction(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -261,10 +231,7 @@ public List QueryEffectAction() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -274,10 +241,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -285,10 +249,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -297,20 +258,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -320,10 +275,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Expressions that define the guards of this TransitionUsage, which are the ownedFeatures of the @@ -333,10 +285,7 @@ public List QueryFeaturingType() [Property(xmiId: "_19_0_2_12e503d9_1581029720824_747691_6254", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "ITransitionUsage.GuardExpression")] - public List QueryGuardExpression() - { - return this.ComputeGuardExpression(); - } + public List guardExpression => this.ComputeGuardExpression(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -344,10 +293,7 @@ public List QueryGuardExpression() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -355,10 +301,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -366,10 +309,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -378,10 +318,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -389,10 +326,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -405,10 +339,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -432,10 +363,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -490,10 +418,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -515,10 +440,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -537,7 +459,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -567,10 +489,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -578,10 +497,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -589,10 +505,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -602,10 +515,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -615,10 +525,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -626,10 +533,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -637,10 +541,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -648,10 +549,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -659,10 +557,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -670,10 +565,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -681,10 +573,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -692,10 +581,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -705,10 +591,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -716,10 +599,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -727,10 +607,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -738,10 +615,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -749,10 +623,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -760,10 +631,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -771,10 +639,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -782,10 +647,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -793,10 +655,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -804,10 +663,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -815,10 +671,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -826,10 +679,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -837,10 +687,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -848,10 +695,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -859,10 +703,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -871,10 +712,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -882,10 +720,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -893,10 +728,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -904,10 +736,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -915,10 +744,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -929,10 +755,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -940,10 +763,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -953,10 +773,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -965,10 +782,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -977,10 +791,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -990,10 +801,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1003,10 +811,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1014,10 +819,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1026,10 +828,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1037,10 +836,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1050,10 +846,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1063,10 +856,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1076,10 +866,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1089,10 +876,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1101,10 +885,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1113,10 +894,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1127,10 +905,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1139,10 +914,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1151,10 +923,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1172,10 +941,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1185,10 +951,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1198,10 +961,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1211,10 +971,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1223,10 +980,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1234,10 +988,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1246,10 +997,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1257,10 +1005,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1269,10 +1014,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1281,10 +1023,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1302,10 +1041,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1313,10 +1049,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1325,10 +1058,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1349,10 +1079,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1362,10 +1089,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The source ActionUsage of this TransitionUsage, which becomes the source of the succession for the @@ -1373,10 +1097,7 @@ public string QueryShortName() /// [Property(xmiId: "_19_0_2_12e503d9_1581029439311_947395_6114", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ITransitionUsage.Source")] - public IActionUsage QuerySource() - { - return this.ComputeSource(); - } + public IActionUsage source => this.ComputeSource(); /// /// The Succession that is the ownedFeature of this TransitionUsage, which, if the TransitionUsage is @@ -1385,10 +1106,7 @@ public IActionUsage QuerySource() [Property(xmiId: "_19_0_2_12e503d9_1581030490131_304332_6364", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "ITransitionUsage.Succession")] - public ISuccession QuerySuccession() - { - return this.ComputeSuccession(); - } + public ISuccession succession => this.ComputeSuccession(); /// /// The target ActionUsage of this TransitionUsage, which is the targetFeature of the succession for the @@ -1396,10 +1114,7 @@ public ISuccession QuerySuccession() /// [Property(xmiId: "_19_0_2_12e503d9_1581029493366_130491_6153", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ITransitionUsage.Target")] - public IActionUsage QueryTarget() - { - return this.ComputeTarget(); - } + public IActionUsage target => this.ComputeTarget(); /// /// The TextualRepresentations that annotate this Element. @@ -1408,10 +1123,7 @@ public IActionUsage QueryTarget() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The AcceptActionUsages that define the triggers of this TransitionUsage, which are the ownedFeatures @@ -1421,10 +1133,7 @@ public List QueryTextualRepresentation() [Property(xmiId: "_19_0_2_12e503d9_1581029662256_985457_6209", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "ITransitionUsage.TriggerAction")] - public List QueryTriggerAction() - { - return this.ComputeTriggerAction(); - } + public List triggerAction => this.ComputeTriggerAction(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1435,10 +1144,7 @@ public List QueryTriggerAction() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1449,10 +1155,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1460,10 +1163,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1472,10 +1172,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1484,10 +1181,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/TriggerInvocationExpression.cs b/SysML2.NET/Core/AutoGenPoco/TriggerInvocationExpression.cs index be489985c..822eb2891 100644 --- a/SysML2.NET/Core/AutoGenPoco/TriggerInvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/TriggerInvocationExpression.cs @@ -70,10 +70,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression /// [Property(xmiId: "_2022x_2_12e503d9_1739134437590_328753_108", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IInstantiationExpression.Argument")] - public List QueryArgument() - { - return this.ComputeArgument(); - } + public List argument => this.ComputeArgument(); /// /// The Behaviors that type this Step. @@ -82,10 +79,7 @@ public List QueryArgument() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -97,10 +91,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -110,10 +101,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -143,10 +131,7 @@ public IFeature QueryCrossFeature() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -155,10 +140,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -175,10 +157,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -194,10 +173,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -207,10 +183,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -218,10 +191,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -230,20 +200,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -253,10 +217,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -264,10 +225,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1543948477241_299049_20934", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -275,10 +233,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -286,10 +241,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -298,10 +250,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -309,10 +258,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The Type that is being instantiated. @@ -320,10 +266,7 @@ public List QueryInput() [Property(xmiId: "_2022x_2_12e503d9_1739134352572_416088_80", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IInstantiationExpression.InstantiatedType")] - public IType QueryInstantiatedType() - { - return this.ComputeInstantiatedType(); - } + public IType instantiatedType => this.ComputeInstantiatedType(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -336,10 +279,7 @@ public IType QueryInstantiatedType() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -363,10 +303,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -413,10 +350,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -424,10 +358,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -461,7 +392,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -485,10 +416,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -496,10 +424,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -509,10 +434,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -522,10 +444,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -533,10 +452,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -546,10 +462,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -558,10 +471,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -570,10 +480,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -583,10 +490,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -596,10 +500,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -607,10 +508,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -619,10 +517,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -630,10 +525,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -643,10 +535,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -656,10 +545,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -669,10 +555,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -682,10 +565,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -694,10 +574,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -706,10 +583,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -720,10 +594,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -732,10 +603,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -744,10 +612,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -765,10 +630,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -778,10 +640,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -791,10 +650,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -804,10 +660,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -816,10 +669,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -827,10 +677,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -838,10 +685,7 @@ public IElement QueryOwner() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -850,10 +694,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -862,10 +703,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -883,10 +721,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -895,10 +730,7 @@ public IType QueryOwningType() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -910,10 +742,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -924,10 +753,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -937,10 +763,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -949,10 +772,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -962,10 +782,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -976,10 +793,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Type.cs b/SysML2.NET/Core/AutoGenPoco/Type.cs index 2dc874506..f66406b3d 100644 --- a/SysML2.NET/Core/AutoGenPoco/Type.cs +++ b/SysML2.NET/Core/AutoGenPoco/Type.cs @@ -85,10 +85,7 @@ public partial class Type : IType /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -96,10 +93,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The Documentation owned by this Element. @@ -108,10 +102,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -127,10 +118,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -138,10 +126,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -150,10 +135,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -161,10 +143,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -172,10 +151,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -184,10 +160,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -195,10 +168,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -211,10 +181,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -229,10 +196,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -250,10 +214,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -273,10 +234,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -284,10 +242,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -297,10 +252,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -310,10 +262,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -321,10 +270,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -334,10 +280,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -346,10 +289,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -359,10 +299,7 @@ public IConjugation QueryOwnedConjugator() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -372,10 +309,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -383,10 +317,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -395,10 +326,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -406,10 +334,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -419,10 +344,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -432,10 +354,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -444,10 +363,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -456,10 +372,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -470,10 +383,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -491,10 +401,7 @@ public List QueryOwnedMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -503,10 +410,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -514,10 +418,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -526,10 +427,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -538,10 +436,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -561,10 +456,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -574,10 +466,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -586,10 +475,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -600,10 +486,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs b/SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs index 89f55a7fe..64cf6e85f 100644 --- a/SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs +++ b/SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs @@ -80,10 +80,7 @@ public partial class TypeFeaturing : ITypeFeaturing [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -133,10 +130,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -146,10 +140,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -159,10 +150,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -170,10 +158,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -197,10 +182,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// A featureOfType that is also the owningRelatedElement of this TypeFeaturing. @@ -209,10 +191,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_912234_579")] [Implements(implementation: "ITypeFeaturing.OwningFeatureOfType")] - public IFeature QueryOwningFeatureOfType() - { - return this.ComputeOwningFeatureOfType(); - } + public IFeature owningFeatureOfType => this.ComputeOwningFeatureOfType(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -221,10 +200,7 @@ public IFeature QueryOwningFeatureOfType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -233,10 +209,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -264,10 +237,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -275,10 +245,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -288,10 +255,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -318,10 +282,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/Unioning.cs b/SysML2.NET/Core/AutoGenPoco/Unioning.cs index eabff2907..de05ccc5b 100644 --- a/SysML2.NET/Core/AutoGenPoco/Unioning.cs +++ b/SysML2.NET/Core/AutoGenPoco/Unioning.cs @@ -78,10 +78,7 @@ public partial class Unioning : IUnioning [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -115,10 +112,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -128,10 +122,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -141,10 +132,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -152,10 +140,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -179,10 +164,7 @@ public List QueryOwnedElement() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -191,10 +173,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -203,10 +182,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -234,10 +210,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -245,10 +218,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -258,10 +228,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -288,10 +255,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Type with interpretations partly determined by unioningType, as described in Type::unioningType. @@ -300,10 +264,7 @@ public List QueryTextualRepresentation() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IUnioning.TypeUnioned")] - public IType QueryTypeUnioned() - { - return this.ComputeTypeUnioned(); - } + public IType typeUnioned => this.ComputeTypeUnioned(); /// /// Type that partly determines interpretations of typeUnioned, as described in Type::unioningType. diff --git a/SysML2.NET/Core/AutoGenPoco/Usage.cs b/SysML2.NET/Core/AutoGenPoco/Usage.cs index 8025430e7..cc2aa6862 100644 --- a/SysML2.NET/Core/AutoGenPoco/Usage.cs +++ b/SysML2.NET/Core/AutoGenPoco/Usage.cs @@ -95,10 +95,7 @@ public partial class Usage : IUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -108,10 +105,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -138,10 +132,7 @@ public IFeature QueryCrossFeature() [Property(xmiId: "_19_0_2_12e503d9_1591477641252_179221_958", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -154,10 +145,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -165,10 +153,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -177,10 +162,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -197,10 +179,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -216,10 +195,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -229,10 +205,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -240,10 +213,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -252,20 +222,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -275,10 +239,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -286,10 +247,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -297,10 +255,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -309,10 +264,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -320,10 +272,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -336,10 +285,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -363,10 +309,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -413,10 +356,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -438,10 +378,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -460,7 +397,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -490,10 +427,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -501,10 +435,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -512,10 +443,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -525,10 +453,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -538,10 +463,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -549,10 +471,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -560,10 +479,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -571,10 +487,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -582,10 +495,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -593,10 +503,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -604,10 +511,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -615,10 +519,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -628,10 +529,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -639,10 +537,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -650,10 +545,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -661,10 +553,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -672,10 +561,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -683,10 +569,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -694,10 +577,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -705,10 +585,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -716,10 +593,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -727,10 +601,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -738,10 +609,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -749,10 +617,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -760,10 +625,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -771,10 +633,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -782,10 +641,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -794,10 +650,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -805,10 +658,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -816,10 +666,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -827,10 +674,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -838,10 +682,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -849,10 +690,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -862,10 +700,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -874,10 +709,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -886,10 +718,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -899,10 +728,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -912,10 +738,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -923,10 +746,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -935,10 +755,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -946,10 +763,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -959,10 +773,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -972,10 +783,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -985,10 +793,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -998,10 +803,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1010,10 +812,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1022,10 +821,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1036,10 +832,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1048,10 +841,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1060,10 +850,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1081,10 +868,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1094,10 +878,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1107,10 +888,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1120,10 +898,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1132,10 +907,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1143,10 +915,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1155,10 +924,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1166,10 +932,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1178,10 +941,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1190,10 +950,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1211,10 +968,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1222,10 +976,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1237,10 +988,7 @@ public IUsage QueryOwningUsage() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1250,10 +998,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1262,10 +1007,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1276,10 +1018,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1290,10 +1029,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1301,10 +1037,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1313,10 +1046,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1325,10 +1055,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/UseCaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/UseCaseDefinition.cs index 657f0f16d..b6334539e 100644 --- a/SysML2.NET/Core/AutoGenPoco/UseCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/UseCaseDefinition.cs @@ -83,10 +83,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List QueryAction() - { - return this.ComputeAction(); - } + public List action => this.ComputeAction(); /// /// The parameters of this CaseDefinition that represent actors involved in the case. @@ -95,10 +92,7 @@ public List QueryAction() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -114,10 +108,7 @@ public List QueryActorParameter() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [Implements(implementation: "ICalculationDefinition.Calculation")] - public List QueryCalculation() - { - return this.ComputeCalculation(); - } + public List calculation => this.ComputeCalculation(); /// /// The declared name of this Element. @@ -147,10 +138,7 @@ public List QueryCalculation() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -159,10 +147,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -171,10 +156,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -183,10 +165,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -202,10 +181,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -213,10 +189,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List QueryExpression() - { - return this.ComputeExpression(); - } + public List expression => this.ComputeExpression(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -224,10 +197,7 @@ public List QueryExpression() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -236,10 +206,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -247,10 +214,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The UseCaseUsages that are included by this UseCaseDefinition, which are the useCaseIncludeds of the @@ -258,10 +222,7 @@ public List QueryImportedMembership() /// [Property(xmiId: "_19_0_4_12e503d9_1621461043764_27_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUseCaseDefinition.IncludedUseCase")] - public List QueryIncludedUseCase() - { - return this.ComputeIncludedUseCase(); - } + public List includedUseCase => this.ComputeIncludedUseCase(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -269,10 +230,7 @@ public List QueryIncludedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -281,10 +239,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -292,10 +247,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -308,10 +260,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -326,10 +275,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -354,10 +300,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -368,10 +311,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -399,10 +339,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -410,10 +347,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -423,10 +357,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -436,10 +367,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The RequirementUsage representing the objective of this CaseDefinition. @@ -447,10 +375,7 @@ public string QueryName() [Property(xmiId: "_19_0_2_59601fc_1590259317710_27529_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ObjectiveRequirement")] - public IRequirementUsage QueryObjectiveRequirement() - { - return this.ComputeObjectiveRequirement(); - } + public IRequirementUsage objectiveRequirement => this.ComputeObjectiveRequirement(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -458,10 +383,7 @@ public IRequirementUsage QueryObjectiveRequirement() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -469,10 +391,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -480,10 +399,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -491,10 +407,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -504,10 +417,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -515,10 +425,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -526,10 +433,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -537,10 +441,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -548,10 +449,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -560,10 +458,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -573,10 +468,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -584,10 +476,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -597,10 +486,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -610,10 +496,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -621,10 +504,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -633,10 +513,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -644,10 +521,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -655,10 +529,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -668,10 +539,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -679,10 +547,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -692,10 +557,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -703,10 +565,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -715,10 +574,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -726,10 +582,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -738,10 +591,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -752,10 +602,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -763,10 +610,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -774,10 +618,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -785,10 +626,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -796,10 +634,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -807,10 +642,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -826,10 +658,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -837,10 +666,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -850,10 +676,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -861,10 +684,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -873,10 +693,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -884,10 +701,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -896,10 +710,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -908,10 +719,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -919,10 +727,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -930,10 +735,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -941,10 +743,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -952,10 +751,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -963,10 +759,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -975,10 +768,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -987,10 +777,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1007,10 +794,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1022,10 +806,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The object or value that is the result of evaluating the Function. @@ -1034,10 +815,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1047,10 +825,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Steps that make up this Behavior. @@ -1058,10 +833,7 @@ public string QueryShortName() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The parameter of this CaseDefinition that represents its subject. @@ -1070,10 +842,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// The TextualRepresentations that annotate this Element. @@ -1082,10 +851,7 @@ public IUsage QuerySubjectParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1096,10 +862,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1107,10 +870,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1119,10 +879,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1132,10 +889,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs index 000b3c909..edf27e1e3 100644 --- a/SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs @@ -86,10 +86,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -98,10 +95,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -117,10 +111,7 @@ public List QueryActorParameter() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -132,10 +123,7 @@ public List QueryBehavior() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public IFunction QueryCalculationDefinition() - { - return this.ComputeCalculationDefinition(); - } + public IFunction calculationDefinition => this.ComputeCalculationDefinition(); /// /// The CaseDefinition that is the type of this CaseUsage. @@ -144,10 +132,7 @@ public IFunction QueryCalculationDefinition() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [RedefinedByProperty("IUseCaseUsage.UseCaseDefinition")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public ICaseDefinition QueryCaseDefinition() - { - return this.ComputeCaseDefinition(); - } + public ICaseDefinition caseDefinition => this.ComputeCaseDefinition(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -159,10 +144,7 @@ public ICaseDefinition QueryCaseDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -172,10 +154,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -203,10 +182,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -219,10 +195,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -231,10 +204,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -243,10 +213,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -263,10 +230,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -282,10 +246,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -295,10 +256,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -306,10 +264,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -318,20 +273,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -341,10 +290,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -353,10 +299,7 @@ public List QueryFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -364,10 +307,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The UseCaseUsages that are included by this UseCaseUse, which are the useCaseIncludeds of the @@ -375,10 +315,7 @@ public List QueryImportedMembership() /// [Property(xmiId: "_19_0_4_12e503d9_1621545989647_997634_1855", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUseCaseUsage.IncludedUseCase")] - public List QueryIncludedUseCase() - { - return this.ComputeIncludedUseCase(); - } + public List includedUseCase => this.ComputeIncludedUseCase(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -386,10 +323,7 @@ public List QueryIncludedUseCase() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -397,10 +331,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -409,10 +340,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -420,10 +348,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -436,10 +361,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -463,10 +385,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -521,10 +440,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -532,10 +448,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -557,10 +470,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -579,7 +489,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -609,10 +519,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -620,10 +527,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -631,10 +535,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -644,10 +545,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -657,10 +555,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -668,10 +563,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -679,10 +571,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -690,10 +579,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -701,10 +587,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -712,10 +595,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -723,10 +603,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -734,10 +611,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -747,10 +621,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -758,10 +629,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -769,10 +637,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -780,10 +645,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -791,10 +653,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -802,10 +661,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -813,10 +669,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -824,10 +677,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -835,10 +685,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -846,10 +693,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -857,10 +701,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -868,10 +709,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -879,10 +717,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -890,10 +725,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -901,10 +733,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -913,10 +742,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -924,10 +750,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -935,10 +758,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -946,10 +766,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -957,10 +774,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The RequirementUsage representing the objective of this CaseUsage. @@ -968,10 +782,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_2_12e503d9_1591138794257_404044_2145", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ObjectiveRequirement")] - public IRequirementUsage QueryObjectiveRequirement() - { - return this.ComputeObjectiveRequirement(); - } + public IRequirementUsage objectiveRequirement => this.ComputeObjectiveRequirement(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -982,10 +793,7 @@ public IRequirementUsage QueryObjectiveRequirement() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -993,10 +801,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -1006,10 +811,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -1018,10 +820,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1030,10 +829,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1043,10 +839,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1056,10 +849,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1067,10 +857,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1079,10 +866,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1090,10 +874,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1103,10 +884,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1116,10 +894,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1129,10 +904,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1142,10 +914,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1154,10 +923,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1166,10 +932,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1180,10 +943,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1192,10 +952,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1204,10 +961,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1225,10 +979,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1238,10 +989,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1251,10 +999,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1264,10 +1009,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1276,10 +1018,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1287,10 +1026,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1299,10 +1035,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1310,10 +1043,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1322,10 +1052,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1334,10 +1061,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1355,10 +1079,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1366,10 +1087,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1378,10 +1096,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1402,10 +1117,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1416,10 +1128,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1429,10 +1138,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The parameter of this CaseUsage that represents its subject. @@ -1441,10 +1147,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// The TextualRepresentations that annotate this Element. @@ -1453,10 +1156,7 @@ public IUsage QuerySubjectParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1467,10 +1167,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1481,10 +1178,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1492,10 +1186,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The UseCaseDefinition that is the definition of this UseCaseUsage. @@ -1503,10 +1194,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_4_12e503d9_1621460964889_804779_881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] [Implements(implementation: "IUseCaseUsage.UseCaseDefinition")] - public IUseCaseDefinition QueryUseCaseDefinition() - { - return this.ComputeUseCaseDefinition(); - } + public IUseCaseDefinition useCaseDefinition => this.ComputeUseCaseDefinition(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1515,10 +1203,7 @@ public IUseCaseDefinition QueryUseCaseDefinition() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1527,10 +1212,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/VariantMembership.cs b/SysML2.NET/Core/AutoGenPoco/VariantMembership.cs index 032ee6260..edbee72dd 100644 --- a/SysML2.NET/Core/AutoGenPoco/VariantMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/VariantMembership.cs @@ -81,10 +81,7 @@ public partial class VariantMembership : IVariantMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -118,10 +115,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -138,10 +132,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -159,10 +150,7 @@ public string QueryMemberElementId() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -180,10 +168,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -193,10 +178,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -204,10 +186,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -218,10 +197,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IVariantMembership.OwnedVariantUsage")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -229,10 +205,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The name of the ownedMemberElement. @@ -240,10 +213,7 @@ public string QueryOwnedMemberElementId() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -251,10 +221,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -279,10 +246,7 @@ public string QueryOwnedMemberShortName() [Property(xmiId: "_19_0_2_12e503d9_1590978683452_645414_775", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [Implements(implementation: "IVariantMembership.OwnedVariantUsage")] - public IUsage QueryOwnedVariantUsage() - { - return this.ComputeOwnedVariantUsage(); - } + public IUsage ownedVariantUsage => this.ComputeOwnedVariantUsage(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -290,10 +254,7 @@ public IUsage QueryOwnedVariantUsage() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -302,10 +263,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -314,10 +272,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -345,10 +300,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -356,10 +308,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -369,10 +318,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -399,10 +345,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -410,7 +353,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/VerificationCaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/VerificationCaseDefinition.cs index fd5e966ad..6db65d610 100644 --- a/SysML2.NET/Core/AutoGenPoco/VerificationCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/VerificationCaseDefinition.cs @@ -82,10 +82,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IActionDefinition.Action")] - public List QueryAction() - { - return this.ComputeAction(); - } + public List action => this.ComputeAction(); /// /// The parameters of this CaseDefinition that represent actors involved in the case. @@ -94,10 +91,7 @@ public List QueryAction() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -113,10 +107,7 @@ public List QueryActorParameter() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565500809065_170841_30688")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948400639_301251_20841")] [Implements(implementation: "ICalculationDefinition.Calculation")] - public List QueryCalculation() - { - return this.ComputeCalculation(); - } + public List calculation => this.ComputeCalculation(); /// /// The declared name of this Element. @@ -146,10 +137,7 @@ public List QueryCalculation() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -158,10 +146,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -170,10 +155,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -182,10 +164,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -201,10 +180,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -212,10 +188,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List QueryExpression() - { - return this.ComputeExpression(); - } + public List expression => this.ComputeExpression(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -223,10 +196,7 @@ public List QueryExpression() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -235,10 +205,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -246,10 +213,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -257,10 +221,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -269,10 +230,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -280,10 +238,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -296,10 +251,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -314,10 +266,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -342,10 +291,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -356,10 +302,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -387,10 +330,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -398,10 +338,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -411,10 +348,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -424,10 +358,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The RequirementUsage representing the objective of this CaseDefinition. @@ -435,10 +366,7 @@ public string QueryName() [Property(xmiId: "_19_0_2_59601fc_1590259317710_27529_910", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.ObjectiveRequirement")] - public IRequirementUsage QueryObjectiveRequirement() - { - return this.ComputeObjectiveRequirement(); - } + public IRequirementUsage objectiveRequirement => this.ComputeObjectiveRequirement(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -446,10 +374,7 @@ public IRequirementUsage QueryObjectiveRequirement() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -457,10 +382,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -468,10 +390,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -479,10 +398,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -492,10 +408,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -503,10 +416,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -514,10 +424,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -525,10 +432,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -536,10 +440,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -548,10 +449,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -561,10 +459,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -572,10 +467,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -585,10 +477,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -598,10 +487,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -609,10 +495,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -621,10 +504,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -632,10 +512,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -643,10 +520,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -656,10 +530,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -667,10 +538,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -680,10 +548,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -691,10 +556,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -703,10 +565,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -714,10 +573,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -726,10 +582,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -740,10 +593,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -751,10 +601,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -762,10 +609,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -773,10 +617,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -784,10 +625,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -795,10 +633,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -814,10 +649,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -825,10 +657,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -838,10 +667,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -849,10 +675,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -861,10 +684,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -872,10 +692,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -884,10 +701,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -896,10 +710,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -907,10 +718,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -918,10 +726,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -929,10 +734,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -940,10 +742,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -951,10 +750,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -963,10 +759,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -975,10 +768,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -995,10 +785,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1010,10 +797,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The object or value that is the result of evaluating the Function. @@ -1022,10 +806,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1035,10 +816,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The Steps that make up this Behavior. @@ -1046,10 +824,7 @@ public string QueryShortName() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The parameter of this CaseDefinition that represents its subject. @@ -1058,10 +833,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "ICaseDefinition.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// The TextualRepresentations that annotate this Element. @@ -1070,10 +842,7 @@ public IUsage QuerySubjectParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1084,10 +853,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1095,10 +861,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1107,10 +870,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1120,10 +880,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); /// /// The RequirementUsages verified by this VerificationCaseDefinition, which are the @@ -1131,10 +888,7 @@ public List QueryVariantMembership() /// [Property(xmiId: "_19_0_4_12e503d9_1603922371399_701592_338", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IVerificationCaseDefinition.VerifiedRequirement")] - public List QueryVerifiedRequirement() - { - return this.ComputeVerifiedRequirement(); - } + public List verifiedRequirement => this.ComputeVerifiedRequirement(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/VerificationCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/VerificationCaseUsage.cs index 9174fa1ca..5c5b87b98 100644 --- a/SysML2.NET/Core/AutoGenPoco/VerificationCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/VerificationCaseUsage.cs @@ -86,10 +86,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -98,10 +95,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -117,10 +111,7 @@ public List QueryActorParameter() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -132,10 +123,7 @@ public List QueryBehavior() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public IFunction QueryCalculationDefinition() - { - return this.ComputeCalculationDefinition(); - } + public IFunction calculationDefinition => this.ComputeCalculationDefinition(); /// /// The CaseDefinition that is the type of this CaseUsage. @@ -143,10 +131,7 @@ public IFunction QueryCalculationDefinition() [Property(xmiId: "_19_0_2_59601fc_1590257465225_855208_512", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public ICaseDefinition QueryCaseDefinition() - { - return this.ComputeCaseDefinition(); - } + public ICaseDefinition caseDefinition => this.ComputeCaseDefinition(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -158,10 +143,7 @@ public ICaseDefinition QueryCaseDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -171,10 +153,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -202,10 +181,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -218,10 +194,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -230,10 +203,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -242,10 +212,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -262,10 +229,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -281,10 +245,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -294,10 +255,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -305,10 +263,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -317,20 +272,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -340,10 +289,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Function that types this Expression. @@ -352,10 +298,7 @@ public List QueryFeaturingType() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -363,10 +306,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -374,10 +314,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -385,10 +322,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -397,10 +331,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -408,10 +339,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -424,10 +352,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -451,10 +376,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -509,10 +431,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -520,10 +439,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -545,10 +461,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -567,7 +480,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -597,10 +510,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -608,10 +518,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -619,10 +526,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -632,10 +536,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -645,10 +546,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -656,10 +554,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -667,10 +562,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -678,10 +570,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -689,10 +578,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -700,10 +586,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -711,10 +594,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -722,10 +602,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -735,10 +612,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -746,10 +620,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -757,10 +628,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -768,10 +636,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -779,10 +644,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -790,10 +652,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -801,10 +660,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -812,10 +668,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -823,10 +676,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -834,10 +684,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -845,10 +692,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -856,10 +700,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -867,10 +708,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -878,10 +716,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -889,10 +724,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -901,10 +733,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -912,10 +741,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -923,10 +749,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -934,10 +757,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -945,10 +765,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The RequirementUsage representing the objective of this CaseUsage. @@ -956,10 +773,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_2_12e503d9_1591138794257_404044_2145", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.ObjectiveRequirement")] - public IRequirementUsage QueryObjectiveRequirement() - { - return this.ComputeObjectiveRequirement(); - } + public IRequirementUsage objectiveRequirement => this.ComputeObjectiveRequirement(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -970,10 +784,7 @@ public IRequirementUsage QueryObjectiveRequirement() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -981,10 +792,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -994,10 +802,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -1006,10 +811,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1018,10 +820,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1031,10 +830,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1044,10 +840,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1055,10 +848,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1067,10 +857,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1078,10 +865,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1091,10 +875,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1104,10 +885,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1117,10 +895,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1130,10 +905,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1142,10 +914,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1154,10 +923,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1168,10 +934,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1180,10 +943,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1192,10 +952,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1213,10 +970,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1226,10 +980,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1239,10 +990,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1252,10 +1000,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1264,10 +1009,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1275,10 +1017,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1287,10 +1026,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1298,10 +1034,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1310,10 +1043,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1322,10 +1052,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1343,10 +1070,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1354,10 +1078,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1366,10 +1087,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1390,10 +1108,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1404,10 +1119,7 @@ public string QueryQualifiedName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1417,10 +1129,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The parameter of this CaseUsage that represents its subject. @@ -1429,10 +1138,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "ICaseUsage.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// The TextualRepresentations that annotate this Element. @@ -1441,10 +1147,7 @@ public IUsage QuerySubjectParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1455,10 +1158,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1469,10 +1169,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1480,10 +1177,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1492,10 +1186,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1504,10 +1195,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); /// /// The VerificationCase that is the definition of this VerificationCaseUsage. @@ -1515,10 +1203,7 @@ public List QueryVariantMembership() [Property(xmiId: "_19_0_2_12e503d9_1596821408366_748769_10316", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257465225_855208_512")] [Implements(implementation: "IVerificationCaseUsage.VerificationCaseDefinition")] - public IVerificationCaseDefinition QueryVerificationCaseDefinition() - { - return this.ComputeVerificationCaseDefinition(); - } + public IVerificationCaseDefinition verificationCaseDefinition => this.ComputeVerificationCaseDefinition(); /// /// The RequirementUsages verified by this VerificationCaseUsage, which are the verifiedRequirements of @@ -1526,10 +1211,7 @@ public IVerificationCaseDefinition QueryVerificationCaseDefinition() /// [Property(xmiId: "_19_0_4_12e503d9_1603922396599_812331_357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IVerificationCaseUsage.VerifiedRequirement")] - public List QueryVerifiedRequirement() - { - return this.ComputeVerifiedRequirement(); - } + public List verifiedRequirement => this.ComputeVerifiedRequirement(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs index b68aa15f9..c7cc39751 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs @@ -109,10 +109,7 @@ public partial class ViewDefinition : IViewDefinition /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -120,10 +117,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -132,10 +126,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -144,10 +135,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -163,10 +151,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -174,10 +159,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -186,10 +168,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -197,10 +176,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -208,10 +184,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -220,10 +193,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -231,10 +201,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -247,10 +214,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -265,10 +229,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -293,10 +254,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -324,10 +282,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -335,10 +290,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -348,10 +300,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -361,10 +310,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -372,10 +318,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -383,10 +326,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -394,10 +334,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -405,10 +342,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -418,10 +352,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -429,10 +360,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -440,10 +368,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -451,10 +376,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -462,10 +384,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -474,10 +393,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -487,10 +403,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -498,10 +411,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -511,10 +421,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -524,10 +431,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -535,10 +439,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -547,10 +448,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -558,10 +456,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -569,10 +464,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -582,10 +474,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -593,10 +482,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -606,10 +492,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -617,10 +500,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -629,10 +509,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -640,10 +517,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -652,10 +526,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -666,10 +537,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -677,10 +545,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -688,10 +553,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -699,10 +561,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -710,10 +569,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -721,10 +577,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -740,10 +593,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -751,10 +601,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -764,10 +611,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -775,10 +619,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -787,10 +628,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -798,10 +636,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -810,10 +645,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -822,10 +654,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -833,10 +662,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -844,10 +670,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -855,10 +678,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -866,10 +686,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -877,10 +694,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -889,10 +703,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -901,10 +712,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -924,10 +732,7 @@ public INamespace QueryOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The composite ownedRequirements of this ViewDefinition that are ViewpointUsages for viewpoints @@ -936,10 +741,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_2_12e503d9_1596645596183_374903_1209", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IViewDefinition.SatisfiedViewpoint")] - public List QuerySatisfiedViewpoint() - { - return this.ComputeSatisfiedViewpoint(); - } + public List satisfiedViewpoint => this.ComputeSatisfiedViewpoint(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -949,10 +751,7 @@ public List QuerySatisfiedViewpoint() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -961,10 +760,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -975,10 +771,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -986,10 +779,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -998,10 +788,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1011,10 +798,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); /// /// The usages of this ViewDefinition that are ViewUsages. @@ -1022,10 +806,7 @@ public List QueryVariantMembership() [Property(xmiId: "_19_0_2_12e503d9_1596644452170_21813_753", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IViewDefinition.View")] - public List QueryView() - { - return this.ComputeView(); - } + public List view => this.ComputeView(); /// /// The Expressions related to this ViewDefinition by ElementFilterMemberships, which specify conditions @@ -1034,10 +815,7 @@ public List QueryView() [Property(xmiId: "_19_0_4_12e503d9_1606938929077_183245_4796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IViewDefinition.ViewCondition")] - public List QueryViewCondition() - { - return this.ComputeViewCondition(); - } + public List viewCondition => this.ComputeViewCondition(); /// /// The RenderingUsage to be used to render views defined by this ViewDefinition, which is the @@ -1045,10 +823,7 @@ public List QueryViewCondition() /// [Property(xmiId: "_19_0_2_12e503d9_1596657187664_758418_4914", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IViewDefinition.ViewRendering")] - public IRenderingUsage QueryViewRendering() - { - return this.ComputeViewRendering(); - } + public IRenderingUsage viewRendering => this.ComputeViewRendering(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ViewRenderingMembership.cs b/SysML2.NET/Core/AutoGenPoco/ViewRenderingMembership.cs index 20b30d38a..3bf18bcee 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewRenderingMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewRenderingMembership.cs @@ -82,10 +82,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -119,10 +116,7 @@ public List QueryDocumentation() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -139,10 +133,7 @@ public bool QueryIsLibraryElement() [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string QueryMemberElementId() - { - return this.ComputeMemberElementId(); - } + public string memberElementId => this.ComputeMemberElementId(); /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -161,10 +152,7 @@ public string QueryMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace QueryMembershipOwningNamespace() - { - return this.ComputeMembershipOwningNamespace(); - } + public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -182,10 +170,7 @@ public INamespace QueryMembershipOwningNamespace() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -195,10 +180,7 @@ public string QueryName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -206,10 +188,7 @@ public List QueryOwnedAnnotation() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// The Element that becomes an ownedMember of the membershipOwningNamespace due to this @@ -220,10 +199,7 @@ public List QueryOwnedElement() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement QueryOwnedMemberElement() - { - return this.ComputeOwnedMemberElement(); - } + public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); /// /// The elementId of the ownedMemberElement. @@ -231,10 +207,7 @@ public IElement QueryOwnedMemberElement() [Property(xmiId: "_19_0_4_12e503d9_1651721234828_904219_244", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721199802_246768_242")] [Implements(implementation: "IOwningMembership.OwnedMemberElementId")] - public string QueryOwnedMemberElementId() - { - return this.ComputeOwnedMemberElementId(); - } + public string ownedMemberElementId => this.ComputeOwnedMemberElementId(); /// /// The Feature that this FeatureMembership relates to its owningType, making it an ownedFeature of the @@ -244,10 +217,7 @@ public string QueryOwnedMemberElementId() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IViewRenderingMembership.OwnedRendering")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature QueryOwnedMemberFeature() - { - return this.ComputeOwnedMemberFeature(); - } + public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); /// /// The name of the ownedMemberElement. @@ -255,10 +225,7 @@ public IFeature QueryOwnedMemberFeature() [Property(xmiId: "_19_0_4_12e503d9_1648181616390_323441_387", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_35293_43192")] [Implements(implementation: "IOwningMembership.OwnedMemberName")] - public string QueryOwnedMemberName() - { - return this.ComputeOwnedMemberName(); - } + public string ownedMemberName => this.ComputeOwnedMemberName(); /// /// The shortName of the ownedMemberElement. @@ -266,10 +233,7 @@ public string QueryOwnedMemberName() [Property(xmiId: "_19_0_4_12e503d9_1651721262092_909505_246", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] [Implements(implementation: "IOwningMembership.OwnedMemberShortName")] - public string QueryOwnedMemberShortName() - { - return this.ComputeOwnedMemberShortName(); - } + public string ownedMemberShortName => this.ComputeOwnedMemberShortName(); /// /// The relatedElements of this Relationship that are owned by the Relationship. @@ -294,10 +258,7 @@ public string QueryOwnedMemberShortName() [Property(xmiId: "_19_0_4_12e503d9_1617134244546_130200_6000", aggregation: AggregationKind.Composite, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [Implements(implementation: "IViewRenderingMembership.OwnedRendering")] - public IRenderingUsage QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public IRenderingUsage ownedRendering => this.ComputeOwnedRendering(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -305,10 +266,7 @@ public IRenderingUsage QueryOwnedRendering() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -317,10 +275,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -329,10 +284,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -357,10 +309,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866524_738482_486")] [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_193857_43197")] [Implements(implementation: "IFeatureMembership.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -372,10 +321,7 @@ public IType QueryOwningType() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The RenderingUsage that is referenced through this ViewRenderingMembership. It is the @@ -384,10 +330,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1617134300857_286392_6081", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IViewRenderingMembership.ReferencedRendering")] - public IRenderingUsage QueryReferencedRendering() - { - return this.ComputeReferencedRendering(); - } + public IRenderingUsage referencedRendering => this.ComputeReferencedRendering(); /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -395,10 +338,7 @@ public IRenderingUsage QueryReferencedRendering() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IRelationship.RelatedElement")] - public List QueryRelatedElement() - { - return this.ComputeRelatedElement(); - } + public List relatedElement => this.ComputeRelatedElement(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -408,10 +348,7 @@ public List QueryRelatedElement() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The relatedElements from which this Relationship is considered to be directed. @@ -438,10 +375,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Whether or not the Membership of the memberElement in the membershipOwningNamespace is publicly @@ -449,7 +383,7 @@ public List QueryTextualRepresentation() /// [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")] [Implements(implementation: "IMembership.Visibility")] - public VisibilityKind Visibility { get; set; } + public VisibilityKind Visibility { get; set; } = VisibilityKind.Public; } } diff --git a/SysML2.NET/Core/AutoGenPoco/ViewUsage.cs b/SysML2.NET/Core/AutoGenPoco/ViewUsage.cs index 9bb28227e..341d47f3f 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewUsage.cs @@ -95,10 +95,7 @@ public partial class ViewUsage : IViewUsage /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -108,10 +105,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -139,10 +133,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -155,10 +146,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -166,10 +154,7 @@ public List QueryDifferencingType() [Property(xmiId: "_19_0_4_12e503d9_1623952188842_882068_37169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -178,10 +163,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -198,10 +180,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -217,10 +196,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -230,10 +206,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The Elements that are exposed by this ViewUsage, which are those memberElements of the imported @@ -242,10 +215,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_19_0_2_12e503d9_1596648681658_691767_2705", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IViewUsage.ExposedElement")] - public List QueryExposedElement() - { - return this.ComputeExposedElement(); - } + public List exposedElement => this.ComputeExposedElement(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -253,10 +223,7 @@ public List QueryExposedElement() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -265,20 +232,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -288,10 +249,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -299,10 +257,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -310,10 +265,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -321,10 +273,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -333,10 +282,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -344,10 +290,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -360,10 +303,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -387,10 +327,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -445,10 +382,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -470,10 +404,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -492,7 +423,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -519,10 +450,7 @@ public bool QueryIsReference() [Property(xmiId: "_18_5_3_12e503d9_1565471361757_649736_20796", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List QueryItemDefinition() - { - return this.ComputeItemDefinition(); - } + public List itemDefinition => this.ComputeItemDefinition(); /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -535,10 +463,7 @@ public List QueryItemDefinition() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -546,10 +471,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -557,10 +479,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -570,10 +489,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -583,10 +499,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -594,10 +507,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -605,10 +515,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -616,10 +523,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -627,10 +531,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -638,10 +539,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -649,10 +547,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -660,10 +555,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -673,10 +565,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -684,10 +573,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -695,10 +581,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -706,10 +589,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -717,10 +597,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -728,10 +605,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -739,10 +613,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -750,10 +621,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -761,10 +629,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -772,10 +637,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -783,10 +645,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -794,10 +653,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -805,10 +661,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -816,10 +669,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -827,10 +677,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -839,10 +686,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -850,10 +694,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -861,10 +702,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -872,10 +710,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -883,10 +718,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -896,10 +728,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -907,10 +736,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -920,10 +746,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -932,10 +755,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -944,10 +764,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -957,10 +774,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -970,10 +784,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -981,10 +792,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -993,10 +801,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1004,10 +809,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1017,10 +819,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1030,10 +829,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1043,10 +839,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1056,10 +849,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1068,10 +858,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1080,10 +867,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1094,10 +878,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1106,10 +887,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1118,10 +896,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1139,10 +914,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1152,10 +924,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1165,10 +934,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1178,10 +944,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1190,10 +953,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1201,10 +961,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1213,10 +970,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1224,10 +978,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1236,10 +987,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1248,10 +996,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1269,10 +1014,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1280,10 +1022,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The itemDefinitions of this PartUsage that are PartDefinitions. @@ -1292,10 +1031,7 @@ public IUsage QueryOwningUsage() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedByProperty("IViewUsage.ViewDefinition")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List QueryPartDefinition() - { - return this.ComputePartDefinition(); - } + public List partDefinition => this.ComputePartDefinition(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1316,10 +1052,7 @@ public List QueryPartDefinition() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The nestedRequirements of this ViewUsage that are ViewpointUsages for (additional) viewpoints @@ -1328,10 +1061,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_2_12e503d9_1596645688987_502277_1282", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IViewUsage.SatisfiedViewpoint")] - public List QuerySatisfiedViewpoint() - { - return this.ComputeSatisfiedViewpoint(); - } + public List satisfiedViewpoint => this.ComputeSatisfiedViewpoint(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1341,10 +1071,7 @@ public List QuerySatisfiedViewpoint() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1353,10 +1080,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1367,10 +1091,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1381,10 +1102,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1392,10 +1110,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1404,10 +1119,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1416,10 +1128,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); /// /// The Expressions related to this ViewUsage by ElementFilterMemberships, which specify conditions on @@ -1428,10 +1137,7 @@ public List QueryVariantMembership() [Property(xmiId: "_19_0_4_12e503d9_1606938933668_437943_4809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IViewUsage.ViewCondition")] - public List QueryViewCondition() - { - return this.ComputeViewCondition(); - } + public List viewCondition => this.ComputeViewCondition(); /// /// The ViewDefinition that is the definition of this ViewUsage. @@ -1439,10 +1145,7 @@ public List QueryViewCondition() [Property(xmiId: "_19_0_2_12e503d9_1596644438889_580287_734", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591475180488_929065_121")] [Implements(implementation: "IViewUsage.ViewDefinition")] - public IViewDefinition QueryViewDefinition() - { - return this.ComputeViewDefinition(); - } + public IViewDefinition viewDefinition => this.ComputeViewDefinition(); /// /// The RenderingUsage to be used to render views defined by this ViewUsage, which is the @@ -1450,10 +1153,7 @@ public IViewDefinition QueryViewDefinition() /// [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)] [Implements(implementation: "IViewUsage.ViewRendering")] - public IRenderingUsage QueryViewRendering() - { - return this.ComputeViewRendering(); - } + public IRenderingUsage viewRendering => this.ComputeViewRendering(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ViewpointDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ViewpointDefinition.cs index ac6958023..a42fe3be9 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewpointDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewpointDefinition.cs @@ -81,10 +81,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -101,10 +98,7 @@ public List QueryActorParameter() [Property(xmiId: "_19_0_2_12e503d9_1583376806647_629021_133", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementDefinition.AssumedConstraint")] - public List QueryAssumedConstraint() - { - return this.ComputeAssumedConstraint(); - } + public List assumedConstraint => this.ComputeAssumedConstraint(); /// /// The declared name of this Element. @@ -135,10 +129,7 @@ public List QueryAssumedConstraint() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -147,10 +138,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Definition that are directedFeatures. @@ -159,10 +147,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// The Documentation owned by this Element. @@ -171,10 +156,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -190,10 +172,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Expressions that are steps in the calculation of the result of this Function. @@ -201,10 +180,7 @@ public List QueryEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1543948400639_301251_20841", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_b9102da_1536346067212_587255_17343")] [Implements(implementation: "IFunction.Expression")] - public List QueryExpression() - { - return this.ComputeExpression(); - } + public List expression => this.ComputeExpression(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -212,10 +188,7 @@ public List QueryExpression() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -224,10 +197,7 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The ConcernUsages framed by this RequirementDefinition, which are the ownedConcerns of all @@ -236,10 +206,7 @@ public List QueryFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1617116733499_587735_3242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583376932997_792124_158")] [Implements(implementation: "IRequirementDefinition.FramedConcern")] - public List QueryFramedConcern() - { - return this.ComputeFramedConcern(); - } + public List framedConcern => this.ComputeFramedConcern(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -247,10 +214,7 @@ public List QueryFramedConcern() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -258,10 +222,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -270,10 +231,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -281,10 +239,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -297,10 +252,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -315,10 +267,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// Whether all necessary implied Relationships have been included in the ownedRelationships of this @@ -343,10 +292,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Function can be used as the function of a model-level evaluable InvocationExpression. @@ -357,10 +303,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1617395221463_139517_26381", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFunction.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -388,10 +331,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -399,10 +339,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -412,10 +349,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -425,10 +359,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -436,10 +367,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ActionUsages that are ownedUsages of this Definition. @@ -447,10 +375,7 @@ public List QueryOutput() [Property(xmiId: "_19_0_2_12e503d9_1591479011613_547927_1091", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedAction")] - public List QueryOwnedAction() - { - return this.ComputeOwnedAction(); - } + public List ownedAction => this.ComputeOwnedAction(); /// /// The AllocationUsages that are ownedUsages of this Definition. @@ -458,10 +383,7 @@ public List QueryOwnedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430819239_430196_1024", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedAllocation")] - public List QueryOwnedAllocation() - { - return this.ComputeOwnedAllocation(); - } + public List ownedAllocation => this.ComputeOwnedAllocation(); /// /// The AnalysisCaseUsages that are ownedUsages of this Definition. @@ -469,10 +391,7 @@ public List QueryOwnedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152747086_367030_3846", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedAnalysisCase")] - public List QueryOwnedAnalysisCase() - { - return this.ComputeOwnedAnalysisCase(); - } + public List ownedAnalysisCase => this.ComputeOwnedAnalysisCase(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -482,10 +401,7 @@ public List QueryOwnedAnalysisCase() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// The AttributeUsages that are ownedUsages of this Definition. @@ -493,10 +409,7 @@ public List QueryOwnedAnnotation() [Property(xmiId: "_19_0_2_12e503d9_1591500614097_490259_4413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedAttribute")] - public List QueryOwnedAttribute() - { - return this.ComputeOwnedAttribute(); - } + public List ownedAttribute => this.ComputeOwnedAttribute(); /// /// The CalculationUsages that are ownedUsages of this Definition. @@ -504,10 +417,7 @@ public List QueryOwnedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215335104_898924_667", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedCalculation")] - public List QueryOwnedCalculation() - { - return this.ComputeOwnedCalculation(); - } + public List ownedCalculation => this.ComputeOwnedCalculation(); /// /// The code>CaseUsages that are ownedUsages of this Definition. @@ -515,10 +425,7 @@ public List QueryOwnedCalculation() [Property(xmiId: "_19_0_2_59601fc_1590257108055_7496_483", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215335104_898924_667")] [Implements(implementation: "IDefinition.OwnedCase")] - public List QueryOwnedCase() - { - return this.ComputeOwnedCase(); - } + public List ownedCase => this.ComputeOwnedCase(); /// /// The ConcernUsages that are ownedUsages of this Definition. @@ -526,10 +433,7 @@ public List QueryOwnedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051597354_928367_1357", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedConcern")] - public List QueryOwnedConcern() - { - return this.ComputeOwnedConcern(); - } + public List ownedConcern => this.ComputeOwnedConcern(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -538,10 +442,7 @@ public List QueryOwnedConcern() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -551,10 +452,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_2_12e503d9_1591480607506_951212_2333", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedConnection")] - public List QueryOwnedConnection() - { - return this.ComputeOwnedConnection(); - } + public List ownedConnection => this.ComputeOwnedConnection(); /// /// The ConstraintUsages that are ownedUsages of this Definition. @@ -562,10 +460,7 @@ public List QueryOwnedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578068081992_244000_1803", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedConstraint")] - public List QueryOwnedConstraint() - { - return this.ComputeOwnedConstraint(); - } + public List ownedConstraint => this.ComputeOwnedConstraint(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -575,10 +470,7 @@ public List QueryOwnedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -588,10 +480,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -599,10 +488,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -611,10 +497,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The EnumerationUsages that are ownedUsages of this Definition. @@ -622,10 +505,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_19_0_4_12e503d9_1606946600508_763872_252", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500614097_490259_4413")] [Implements(implementation: "IDefinition.OwnedEnumeration")] - public List QueryOwnedEnumeration() - { - return this.ComputeOwnedEnumeration(); - } + public List ownedEnumeration => this.ComputeOwnedEnumeration(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -633,10 +513,7 @@ public List QueryOwnedEnumeration() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -646,10 +523,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The FlowUsages that are ownedUsages of this Definition. @@ -657,10 +531,7 @@ public List QueryOwnedFeatureMembership() [Property(xmiId: "_19_0_4_12e503d9_1624055201422_104863_1697", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedFlow")] - public List QueryOwnedFlow() - { - return this.ComputeOwnedFlow(); - } + public List ownedFlow => this.ComputeOwnedFlow(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -670,10 +541,7 @@ public List QueryOwnedFlow() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The InterfaceUsages that are ownedUsages of this Definition. @@ -681,10 +549,7 @@ public List QueryOwnedImport() [Property(xmiId: "_19_0_2_12e503d9_1591498709150_220812_4128", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591480607506_951212_2333")] [Implements(implementation: "IDefinition.OwnedInterface")] - public List QueryOwnedInterface() - { - return this.ComputeOwnedInterface(); - } + public List ownedInterface => this.ComputeOwnedInterface(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -693,10 +558,7 @@ public List QueryOwnedInterface() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The ItemUsages that are ownedUsages of this Definition. @@ -704,10 +566,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_19_0_2_12e503d9_1591482567975_649284_3005", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943849505_989631_257")] [Implements(implementation: "IDefinition.OwnedItem")] - public List QueryOwnedItem() - { - return this.ComputeOwnedItem(); - } + public List ownedItem => this.ComputeOwnedItem(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -716,10 +575,7 @@ public List QueryOwnedItem() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -730,10 +586,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The MetadataUsages that are ownedUsages of this Definition. @@ -741,10 +594,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_19_0_4_12e503d9_1661488358064_457109_2881", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedMetadata")] - public List QueryOwnedMetadata() - { - return this.ComputeOwnedMetadata(); - } + public List ownedMetadata => this.ComputeOwnedMetadata(); /// /// The OccurrenceUsages that are ownedUsages of this Definition. @@ -752,10 +602,7 @@ public List QueryOwnedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943849505_989631_257", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedOccurrence")] - public List QueryOwnedOccurrence() - { - return this.ComputeOwnedOccurrence(); - } + public List ownedOccurrence => this.ComputeOwnedOccurrence(); /// /// The PartUsages that are ownedUsages of this Definition. @@ -763,10 +610,7 @@ public List QueryOwnedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496643392_630316_3279", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482567975_649284_3005")] [Implements(implementation: "IDefinition.OwnedPart")] - public List QueryOwnedPart() - { - return this.ComputeOwnedPart(); - } + public List ownedPart => this.ComputeOwnedPart(); /// /// The PortUsages that are ownedUsages of this Definition. @@ -774,10 +618,7 @@ public List QueryOwnedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494319970_455996_25799", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedPort")] - public List QueryOwnedPort() - { - return this.ComputeOwnedPort(); - } + public List ownedPort => this.ComputeOwnedPort(); /// /// The ReferenceUsages that are ownedUsages of this Definition. @@ -785,10 +626,7 @@ public List QueryOwnedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477471991_39731_908", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedReference")] - public List QueryOwnedReference() - { - return this.ComputeOwnedReference(); - } + public List ownedReference => this.ComputeOwnedReference(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -804,10 +642,7 @@ public List QueryOwnedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741437225_963350_6474", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedRendering")] - public List QueryOwnedRendering() - { - return this.ComputeOwnedRendering(); - } + public List ownedRendering => this.ComputeOwnedRendering(); /// /// The RequirementUsages that are ownedUsages of this Definition. @@ -815,10 +650,7 @@ public List QueryOwnedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000559760_444344_1273", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578068081992_244000_1803")] [Implements(implementation: "IDefinition.OwnedRequirement")] - public List QueryOwnedRequirement() - { - return this.ComputeOwnedRequirement(); - } + public List ownedRequirement => this.ComputeOwnedRequirement(); /// /// The ownedRelationships of this Type that are Specializations, for which the Type is the specific @@ -828,10 +660,7 @@ public List QueryOwnedRequirement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The StateUsages that are ownedUsages of this Definition. @@ -839,10 +668,7 @@ public List QueryOwnedSpecialization() [Property(xmiId: "_19_0_2_12e503d9_1575587977045_745776_941", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479011613_547927_1091")] [Implements(implementation: "IDefinition.OwnedState")] - public List QueryOwnedState() - { - return this.ComputeOwnedState(); - } + public List ownedState => this.ComputeOwnedState(); /// /// The ownedSpecializations of this Classifier that are Subclassifications, for which this Classifier @@ -851,10 +677,7 @@ public List QueryOwnedState() [Property(xmiId: "_18_5_3_12e503d9_1543189170643_419862_25507", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [Implements(implementation: "IClassifier.OwnedSubclassification")] - public List QueryOwnedSubclassification() - { - return this.ComputeOwnedSubclassification(); - } + public List ownedSubclassification => this.ComputeOwnedSubclassification(); /// /// The TransitionUsages that are ownedUsages of this Definition. @@ -862,10 +685,7 @@ public List QueryOwnedSubclassification() [Property(xmiId: "_19_0_2_12e503d9_1578598061680_350995_3923", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565479686637_967933_23236")] [Implements(implementation: "IDefinition.OwnedTransition")] - public List QueryOwnedTransition() - { - return this.ComputeOwnedTransition(); - } + public List ownedTransition => this.ComputeOwnedTransition(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -874,10 +694,7 @@ public List QueryOwnedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The Usages that are ownedFeatures of this Definition. @@ -886,10 +703,7 @@ public List QueryOwnedUnioning() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IDefinition.OwnedUsage")] - public List QueryOwnedUsage() - { - return this.ComputeOwnedUsage(); - } + public List ownedUsage => this.ComputeOwnedUsage(); /// /// The UseCaseUsages that are ownedUsages of this Definition. @@ -897,10 +711,7 @@ public List QueryOwnedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621461106608_978605_945", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedUseCase")] - public List QueryOwnedUseCase() - { - return this.ComputeOwnedUseCase(); - } + public List ownedUseCase => this.ComputeOwnedUseCase(); /// /// The VerificationCaseUsages that are ownedUsages of this Definition. @@ -908,10 +719,7 @@ public List QueryOwnedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821523387_872104_10416", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_59601fc_1590257108055_7496_483")] [Implements(implementation: "IDefinition.OwnedVerificationCase")] - public List QueryOwnedVerificationCase() - { - return this.ComputeOwnedVerificationCase(); - } + public List ownedVerificationCase => this.ComputeOwnedVerificationCase(); /// /// The ViewUsages that are ownedUsages of this Definition. @@ -919,10 +727,7 @@ public List QueryOwnedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644570381_840567_784", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496643392_630316_3279")] [Implements(implementation: "IDefinition.OwnedView")] - public List QueryOwnedView() - { - return this.ComputeOwnedView(); - } + public List ownedView => this.ComputeOwnedView(); /// /// The ViewpointUsages that are ownedUsages of this Definition. @@ -930,10 +735,7 @@ public List QueryOwnedView() [Property(xmiId: "_19_0_2_12e503d9_1596649828408_673531_3683", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000559760_444344_1273")] [Implements(implementation: "IDefinition.OwnedViewpoint")] - public List QueryOwnedViewpoint() - { - return this.ComputeOwnedViewpoint(); - } + public List ownedViewpoint => this.ComputeOwnedViewpoint(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -941,10 +743,7 @@ public List QueryOwnedViewpoint() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -953,10 +752,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -965,10 +761,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -985,10 +778,7 @@ public INamespace QueryOwningNamespace() [Property(xmiId: "_18_5_3_12e503d9_1543948010065_362066_20413", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IBehavior.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1000,10 +790,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An optional modeler-specified identifier for this RequirementDefinition (used, e.g., to link it to @@ -1023,10 +810,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_2_12e503d9_1583376932997_792124_158", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementDefinition.RequiredConstraint")] - public List QueryRequiredConstraint() - { - return this.ComputeRequiredConstraint(); - } + public List requiredConstraint => this.ComputeRequiredConstraint(); /// /// The object or value that is the result of evaluating the Function. @@ -1035,10 +819,7 @@ public List QueryRequiredConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [Implements(implementation: "IFunction.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1048,10 +829,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The parameters of this RequirementDefinition that represent stakeholders for th requirement. @@ -1060,10 +838,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.StakeholderParameter")] - public List QueryStakeholderParameter() - { - return this.ComputeStakeholderParameter(); - } + public List stakeholderParameter => this.ComputeStakeholderParameter(); /// /// The Steps that make up this Behavior. @@ -1071,10 +846,7 @@ public List QueryStakeholderParameter() [Property(xmiId: "_18_5_3_b9102da_1536346067212_587255_17343", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IBehavior.Step")] - public List QueryStep() - { - return this.ComputeStep(); - } + public List step => this.ComputeStep(); /// /// The parameter of this RequirementDefinition that represents its subject. @@ -1083,10 +855,7 @@ public List QueryStep() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543948010065_362066_20413")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_48981_27786")] [Implements(implementation: "IRequirementDefinition.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// An optional textual statement of the requirement represented by this RequirementDefinition, derived @@ -1094,10 +863,7 @@ public IUsage QuerySubjectParameter() /// [Property(xmiId: "_19_0_2_12e503d9_1583376433122_189839_94", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementDefinition.Text")] - public List QueryText() - { - return this.ComputeText(); - } + public List text => this.ComputeText(); /// /// The TextualRepresentations that annotate this Element. @@ -1106,10 +872,7 @@ public List QueryText() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1120,10 +883,7 @@ public List QueryTextualRepresentation() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Definition (not necessarily owned). @@ -1131,10 +891,7 @@ public List QueryUnioningType() [Property(xmiId: "_18_5_3_12e503d9_1565498571495_48981_27786", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IDefinition.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Definition as a variation point Definition, if @@ -1143,10 +900,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979457191_746167_951", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IDefinition.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then @@ -1156,10 +910,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979005861_503124_894", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IDefinition.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); /// /// The PartUsages that identify the stakeholders with concerns framed by this ViewpointDefinition, @@ -1168,10 +919,7 @@ public List QueryVariantMembership() /// [Property(xmiId: "_19_0_4_12e503d9_1617117194003_518610_3310", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IViewpointDefinition.ViewpointStakeholder")] - public List QueryViewpointStakeholder() - { - return this.ComputeViewpointStakeholder(); - } + public List viewpointStakeholder => this.ComputeViewpointStakeholder(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs b/SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs index e75831a5e..55857515c 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs @@ -83,10 +83,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.ActorParameter")] - public List QueryActorParameter() - { - return this.ComputeActorParameter(); - } + public List actorParameter => this.ComputeActorParameter(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -103,10 +100,7 @@ public List QueryActorParameter() [Property(xmiId: "_19_0_2_12e503d9_1583377612865_991722_535", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.AssumedConstraint")] - public List QueryAssumedConstraint() - { - return this.ComputeAssumedConstraint(); - } + public List assumedConstraint => this.ComputeAssumedConstraint(); /// /// The Behaviors that type this Step. @@ -115,10 +109,7 @@ public List QueryAssumedConstraint() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -130,10 +121,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The (single) Predicate that is the type of this ConstraintUsage. Nominally, this will be a @@ -144,10 +132,7 @@ public List QueryChainingFeature() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public IPredicate QueryConstraintDefinition() - { - return this.ComputeConstraintDefinition(); - } + public IPredicate constraintDefinition => this.ComputeConstraintDefinition(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -157,10 +142,7 @@ public IPredicate QueryConstraintDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -189,10 +171,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -205,10 +184,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -217,10 +193,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -229,10 +202,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -249,10 +219,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -268,10 +235,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -281,10 +245,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -292,10 +253,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -304,20 +262,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -327,10 +279,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The ConcernUsages framed by this RequirementUsage, which are the ownedConcerns of all @@ -339,10 +288,7 @@ public List QueryFeaturingType() [Property(xmiId: "_19_0_4_12e503d9_1617116922864_514612_3264", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583377448339_252740_390")] [Implements(implementation: "IRequirementUsage.FramedConcern")] - public List QueryFramedConcern() - { - return this.ComputeFramedConcern(); - } + public List framedConcern => this.ComputeFramedConcern(); /// /// The Function that types this Expression. @@ -351,10 +297,7 @@ public List QueryFramedConcern() [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction QueryFunction() - { - return this.ComputeFunction(); - } + public IFunction function => this.ComputeFunction(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -362,10 +305,7 @@ public IFunction QueryFunction() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -373,10 +313,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -384,10 +321,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -396,10 +330,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -407,10 +338,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -423,10 +351,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -450,10 +375,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -508,10 +430,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether this Expression meets the constraints necessary to be evaluated at model level, that is, @@ -519,10 +438,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1609957047704_424471_48", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IExpression.IsModelLevelEvaluable")] - public bool QueryIsModelLevelEvaluable() - { - return this.ComputeIsModelLevelEvaluable(); - } + public bool isModelLevelEvaluable => this.ComputeIsModelLevelEvaluable(); /// /// Whether an order exists for the values of this Feature or not. @@ -544,10 +460,7 @@ public bool QueryIsModelLevelEvaluable() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -566,7 +479,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -596,10 +509,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -607,10 +517,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -618,10 +525,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -631,10 +535,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -644,10 +545,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -655,10 +553,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -666,10 +561,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -677,10 +569,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -688,10 +577,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -699,10 +585,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -710,10 +593,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -721,10 +601,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -734,10 +611,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -745,10 +619,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -756,10 +627,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -767,10 +635,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -778,10 +643,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -789,10 +651,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -800,10 +659,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -811,10 +667,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -822,10 +675,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -833,10 +683,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -844,10 +691,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -855,10 +699,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -866,10 +707,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -877,10 +715,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -888,10 +723,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -900,10 +732,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -911,10 +740,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -922,10 +748,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -933,10 +756,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -944,10 +764,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -957,10 +774,7 @@ public List QueryNestedViewpoint() [Property(xmiId: "_19_0_4_12e503d9_1618943843466_158863_236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -968,10 +782,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -981,10 +792,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -993,10 +801,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -1005,10 +810,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -1018,10 +820,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -1031,10 +830,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -1042,10 +838,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1054,10 +847,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1065,10 +855,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1078,10 +865,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1091,10 +875,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1104,10 +885,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1117,10 +895,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1129,10 +904,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1141,10 +913,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1155,10 +924,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1167,10 +933,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1179,10 +942,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1200,10 +960,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1213,10 +970,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1226,10 +980,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1239,10 +990,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1251,10 +999,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1262,10 +1007,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1274,10 +1016,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1285,10 +1024,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1297,10 +1033,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1309,10 +1042,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1330,10 +1060,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1341,10 +1068,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1353,10 +1077,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1374,10 +1095,7 @@ public List QueryParameter() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate QueryPredicate() - { - return this.ComputePredicate(); - } + public IPredicate predicate => this.ComputePredicate(); /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1389,10 +1107,7 @@ public IPredicate QueryPredicate() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// An optional modeler-specified identifier for this RequirementUsage (used, e.g., to link it to an @@ -1412,10 +1127,7 @@ public string QueryQualifiedName() [Property(xmiId: "_19_0_2_12e503d9_1583377448339_252740_390", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IRequirementUsage.RequiredConstraint")] - public List QueryRequiredConstraint() - { - return this.ComputeRequiredConstraint(); - } + public List requiredConstraint => this.ComputeRequiredConstraint(); /// /// The RequirementDefinition that is the single definition of this RequirementUsage. @@ -1424,10 +1136,7 @@ public List QueryRequiredConstraint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [RedefinedByProperty("IViewpointUsage.ViewpointDefinition")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public IRequirementDefinition QueryRequirementDefinition() - { - return this.ComputeRequirementDefinition(); - } + public IRequirementDefinition requirementDefinition => this.ComputeRequirementDefinition(); /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1438,10 +1147,7 @@ public IRequirementDefinition QueryRequirementDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674960_365618_43170")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [Implements(implementation: "IExpression.Result")] - public IFeature QueryResult() - { - return this.ComputeResult(); - } + public IFeature result => this.ComputeResult(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1451,10 +1157,7 @@ public IFeature QueryResult() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The parameters of this RequirementUsage that represent stakeholders for the requirement. @@ -1463,10 +1166,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.StakeholderParameter")] - public List QueryStakeholderParameter() - { - return this.ComputeStakeholderParameter(); - } + public List stakeholderParameter => this.ComputeStakeholderParameter(); /// /// The parameter of this RequirementUsage that represents its subject. @@ -1475,10 +1175,7 @@ public List QueryStakeholderParameter() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IRequirementUsage.SubjectParameter")] - public IUsage QuerySubjectParameter() - { - return this.ComputeSubjectParameter(); - } + public IUsage subjectParameter => this.ComputeSubjectParameter(); /// /// An optional textual statement of the requirement represented by this RequirementUsage, derived from @@ -1486,10 +1183,7 @@ public IUsage QuerySubjectParameter() /// [Property(xmiId: "_19_0_2_12e503d9_1583376480942_745679_99", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IRequirementUsage.Text")] - public List QueryText() - { - return this.ComputeText(); - } + public List text => this.ComputeText(); /// /// The TextualRepresentations that annotate this Element. @@ -1498,10 +1192,7 @@ public List QueryText() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1512,10 +1203,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1526,10 +1214,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1537,10 +1222,7 @@ public List QueryUnioningType() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1549,10 +1231,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1561,10 +1240,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); /// /// The ViewpointDefinition that is the definition of this ViewpointUsage. @@ -1572,10 +1248,7 @@ public List QueryVariantMembership() [Property(xmiId: "_19_0_2_12e503d9_1596649684798_569222_3524", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1583000408905_769743_1223")] [Implements(implementation: "IViewpointUsage.ViewpointDefinition")] - public IViewpointDefinition QueryViewpointDefinition() - { - return this.ComputeViewpointDefinition(); - } + public IViewpointDefinition viewpointDefinition => this.ComputeViewpointDefinition(); /// /// The PartUsages that identify the stakeholders with concerns framed by this ViewpointUsage, which are @@ -1583,10 +1256,7 @@ public IViewpointDefinition QueryViewpointDefinition() /// [Property(xmiId: "_19_0_4_12e503d9_1617117200628_940407_3323", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IViewpointUsage.ViewpointStakeholder")] - public List QueryViewpointStakeholder() - { - return this.ComputeViewpointStakeholder(); - } + public List viewpointStakeholder => this.ComputeViewpointStakeholder(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/WhileLoopActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/WhileLoopActionUsage.cs index 514c03d8c..81af9f404 100644 --- a/SysML2.NET/Core/AutoGenPoco/WhileLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/WhileLoopActionUsage.cs @@ -89,10 +89,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List QueryActionDefinition() - { - return this.ComputeActionDefinition(); - } + public List actionDefinition => this.ComputeActionDefinition(); /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -108,10 +105,7 @@ public List QueryActionDefinition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List QueryBehavior() - { - return this.ComputeBehavior(); - } + public List behavior => this.ComputeBehavior(); /// /// The ActionUsage to be performed repeatedly by the LoopActionUsage. It is the second parameter of the @@ -119,10 +113,7 @@ public List QueryBehavior() /// [Property(xmiId: "_19_0_4_12e503d9_1624203902575_509097_3869", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "ILoopActionUsage.BodyAction")] - public IActionUsage QueryBodyAction() - { - return this.ComputeBodyAction(); - } + public IActionUsage bodyAction => this.ComputeBodyAction(); /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -134,10 +125,7 @@ public IActionUsage QueryBodyAction() /// [Property(xmiId: "_19_0_4_b9102da_1619792219511_543311_445", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [Implements(implementation: "IFeature.ChainingFeature")] - public List QueryChainingFeature() - { - return this.ComputeChainingFeature(); - } + public List chainingFeature => this.ComputeChainingFeature(); /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -147,10 +135,7 @@ public List QueryChainingFeature() /// [Property(xmiId: "_19_0_4_b9102da_1689616227528_355910_218", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.CrossFeature")] - public IFeature QueryCrossFeature() - { - return this.ComputeCrossFeature(); - } + public IFeature crossFeature => this.ComputeCrossFeature(); /// /// The declared name of this Element. @@ -178,10 +163,7 @@ public IFeature QueryCrossFeature() [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List QueryDefinition() - { - return this.ComputeDefinition(); - } + public List definition => this.ComputeDefinition(); /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -194,10 +176,7 @@ public List QueryDefinition() /// [Property(xmiId: "_19_0_4_b9102da_1661975883472_645501_1372", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.DifferencingType")] - public List QueryDifferencingType() - { - return this.ComputeDifferencingType(); - } + public List differencingType => this.ComputeDifferencingType(); /// /// The features of this Type that have a non-null direction. @@ -206,10 +185,7 @@ public List QueryDifferencingType() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List QueryDirectedFeature() - { - return this.ComputeDirectedFeature(); - } + public List directedFeature => this.ComputeDirectedFeature(); /// /// The usages of this Usage that are directedFeatures. @@ -218,10 +194,7 @@ public List QueryDirectedFeature() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.DirectedUsage")] - public List QueryDirectedUsage() - { - return this.ComputeDirectedUsage(); - } + public List directedUsage => this.ComputeDirectedUsage(); /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -238,10 +211,7 @@ public List QueryDirectedUsage() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.Documentation")] - public List QueryDocumentation() - { - return this.ComputeDocumentation(); - } + public List documentation => this.ComputeDocumentation(); /// /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must @@ -257,10 +227,7 @@ public List QueryDocumentation() [Property(xmiId: "_18_5_3_12e503d9_1562476168385_824569_22106", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.EndFeature")] - public List QueryEndFeature() - { - return this.ComputeEndFeature(); - } + public List endFeature => this.ComputeEndFeature(); /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -270,10 +237,7 @@ public List QueryEndFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168386_366266_22107")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IFeature.EndOwningType")] - public IType QueryEndOwningType() - { - return this.ComputeEndOwningType(); - } + public IType endOwningType => this.ComputeEndOwningType(); /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -281,10 +245,7 @@ public IType QueryEndOwningType() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_326391_43166", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "IType.Feature")] - public List QueryFeature() - { - return this.ComputeFeature(); - } + public List feature => this.ComputeFeature(); /// /// The FeatureMemberships for features of this Type, which include all ownedFeatureMemberships and @@ -293,20 +254,14 @@ public List QueryFeature() /// [Property(xmiId: "_19_0_4_12e503d9_1651076866512_962346_485", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.FeatureMembership")] - public List QueryFeatureMembership() - { - return this.ComputeFeatureMembership(); - } + public List featureMembership => this.ComputeFeatureMembership(); /// /// The last of the chainingFeatures of this Feature, if it has any. Otherwise, this Feature itself. /// [Property(xmiId: "_2022x_2_12e503d9_1715790852907_110671_19", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeatureTarget")] - public IFeature QueryFeatureTarget() - { - return this.ComputeFeatureTarget(); - } + public IFeature featureTarget => this.ComputeFeatureTarget(); /// /// Types that feature this Feature, such that any instance in the domain of the Feature must be @@ -316,10 +271,7 @@ public IFeature QueryFeatureTarget() /// [Property(xmiId: "_19_0_4_12e503d9_1603905619975_304385_743", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IFeature.FeaturingType")] - public List QueryFeaturingType() - { - return this.ComputeFeaturingType(); - } + public List featuringType => this.ComputeFeaturingType(); /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -327,10 +279,7 @@ public List QueryFeaturingType() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_207869_43270", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "INamespace.ImportedMembership")] - public List QueryImportedMembership() - { - return this.ComputeImportedMembership(); - } + public List importedMembership => this.ComputeImportedMembership(); /// /// The at most one occurrenceDefinition that has isIndividual = true. @@ -338,10 +287,7 @@ public List QueryImportedMembership() [Property(xmiId: "_19_0_4_12e503d9_1618958878775_52798_7090", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [Implements(implementation: "IOccurrenceUsage.IndividualDefinition")] - public IOccurrenceDefinition QueryIndividualDefinition() - { - return this.ComputeIndividualDefinition(); - } + public IOccurrenceDefinition individualDefinition => this.ComputeIndividualDefinition(); /// /// All the memberFeatures of the inheritedMemberships of this Type that are FeatureMemberships. @@ -349,10 +295,7 @@ public IOccurrenceDefinition QueryIndividualDefinition() [Property(xmiId: "_19_0_2_12e503d9_1575499020770_15576_2334", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IType.InheritedFeature")] - public List QueryInheritedFeature() - { - return this.ComputeInheritedFeature(); - } + public List inheritedFeature => this.ComputeInheritedFeature(); /// /// All Memberships inherited by this Type via Specialization or Conjugation. These are included in the @@ -361,10 +304,7 @@ public List QueryInheritedFeature() [Property(xmiId: "_18_5_3_12e503d9_1551972927538_787976_19004", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674962_198288_43183")] [Implements(implementation: "IType.InheritedMembership")] - public List QueryInheritedMembership() - { - return this.ComputeInheritedMembership(); - } + public List inheritedMembership => this.ComputeInheritedMembership(); /// /// All features related to this Type by FeatureMemberships that have direction in or inout. @@ -372,10 +312,7 @@ public List QueryInheritedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_37384_43169", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Input")] - public List QueryInput() - { - return this.ComputeInput(); - } + public List input => this.ComputeInput(); /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -388,10 +325,7 @@ public List QueryInput() /// [Property(xmiId: "_19_0_4_b9102da_1661973922199_584242_1045", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IntersectingType")] - public List QueryIntersectingType() - { - return this.ComputeIntersectingType(); - } + public List intersectingType => this.ComputeIntersectingType(); /// /// Indicates whether instances of this Type must also be instances of at least one of its specialized @@ -415,10 +349,7 @@ public List QueryIntersectingType() /// [Property(xmiId: "_19_0_2_12e503d9_1575485930816_796088_1933", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IType.IsConjugated")] - public bool QueryIsConjugated() - { - return this.ComputeIsConjugated(); - } + public bool isConjugated => this.ComputeIsConjugated(); /// /// If isVariable is true, then whether the value of this Feature nevertheless does not change over all @@ -473,10 +404,7 @@ public bool QueryIsConjugated() /// [Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.IsLibraryElement")] - public bool QueryIsLibraryElement() - { - return this.ComputeIsLibraryElement(); - } + public bool isLibraryElement => this.ComputeIsLibraryElement(); /// /// Whether an order exists for the values of this Feature or not. @@ -498,10 +426,7 @@ public bool QueryIsLibraryElement() /// [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IUsage.IsReference")] - public bool QueryIsReference() - { - return this.ComputeIsReference(); - } + public bool isReference => this.ComputeIsReference(); /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -520,7 +445,7 @@ public bool QueryIsReference() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674968_321342_43214", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "true")] [Implements(implementation: "IFeature.IsUnique")] - public bool IsUnique { get; set; } + public bool IsUnique { get; set; } = true; /// /// Whether the value of this Feature might vary over time. That is, whether the Feature may have a @@ -550,10 +475,7 @@ public bool QueryIsReference() [Property(xmiId: "_2022x_2_12e503d9_1737227200362_771035_69", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_2022x_2_12e503d9_1725998273002_23711_212")] [Implements(implementation: "IUsage.MayTimeVary")] - public bool QueryMayTimeVary() - { - return this.ComputeMayTimeVary(); - } + public bool mayTimeVary => this.ComputeMayTimeVary(); /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -561,10 +483,7 @@ public bool QueryMayTimeVary() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674979_644335_43267", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Member")] - public List QueryMember() - { - return this.ComputeMember(); - } + public List member => this.ComputeMember(); /// /// All Memberships in this Namespace, including (at least) the union of ownedMemberships and @@ -572,10 +491,7 @@ public List QueryMember() /// [Property(xmiId: "_18_5_3_12e503d9_1533160674962_198288_43183", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: true, isUnique: true, defaultValue: null)] [Implements(implementation: "INamespace.Membership")] - public List QueryMembership() - { - return this.ComputeMembership(); - } + public List membership => this.ComputeMembership(); /// /// An ownedMember of this Type that is a Multiplicity, which constraints the cardinality of the Type. @@ -585,10 +501,7 @@ public List QueryMembership() [Property(xmiId: "_19_0_2_12e503d9_1573095852093_324833_5396", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.Multiplicity")] - public IMultiplicity QueryMultiplicity() - { - return this.ComputeMultiplicity(); - } + public IMultiplicity multiplicity => this.ComputeMultiplicity(); /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -598,10 +511,7 @@ public IMultiplicity QueryMultiplicity() /// [Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Name")] - public string QueryName() - { - return this.ComputeName(); - } + public string name => this.ComputeName(); /// /// The ActionUsages that are nestedUsages of this Usage. @@ -609,10 +519,7 @@ public string QueryName() [Property(xmiId: "_18_5_3_12e503d9_1565501745142_70952_31609", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedAction")] - public List QueryNestedAction() - { - return this.ComputeNestedAction(); - } + public List nestedAction => this.ComputeNestedAction(); /// /// The AllocationUsages that are nestedUsages of this Usage. @@ -620,10 +527,7 @@ public List QueryNestedAction() [Property(xmiId: "_19_0_4_12e503d9_1611430983774_648557_1053", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedAllocation")] - public List QueryNestedAllocation() - { - return this.ComputeNestedAllocation(); - } + public List nestedAllocation => this.ComputeNestedAllocation(); /// /// The AnalysisCaseUsages that are nestedUsages of this Usage. @@ -631,10 +535,7 @@ public List QueryNestedAllocation() [Property(xmiId: "_19_0_2_12e503d9_1591152666850_226358_3749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedAnalysisCase")] - public List QueryNestedAnalysisCase() - { - return this.ComputeNestedAnalysisCase(); - } + public List nestedAnalysisCase => this.ComputeNestedAnalysisCase(); /// /// The code>AttributeUsages that are nestedUsages of this Usage. @@ -642,10 +543,7 @@ public List QueryNestedAnalysisCase() [Property(xmiId: "_19_0_2_12e503d9_1591500785349_111324_4486", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedAttribute")] - public List QueryNestedAttribute() - { - return this.ComputeNestedAttribute(); - } + public List nestedAttribute => this.ComputeNestedAttribute(); /// /// The CalculationUsage that are nestedUsages of this Usage. @@ -653,10 +551,7 @@ public List QueryNestedAttribute() [Property(xmiId: "_19_0_2_12e503d9_1588215112283_215964_632", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedCalculation")] - public List QueryNestedCalculation() - { - return this.ComputeNestedCalculation(); - } + public List nestedCalculation => this.ComputeNestedCalculation(); /// /// The CaseUsages that are nestedUsages of this Usage. @@ -664,10 +559,7 @@ public List QueryNestedCalculation() [Property(xmiId: "_19_0_2_12e503d9_1591135021853_494751_737", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1588215112283_215964_632")] [Implements(implementation: "IUsage.NestedCase")] - public List QueryNestedCase() - { - return this.ComputeNestedCase(); - } + public List nestedCase => this.ComputeNestedCase(); /// /// The ConcernUsages that are nestedUsages of this Usage. @@ -675,10 +567,7 @@ public List QueryNestedCase() [Property(xmiId: "_19_0_4_12e503d9_1617051711833_106553_1460", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedConcern")] - public List QueryNestedConcern() - { - return this.ComputeNestedConcern(); - } + public List nestedConcern => this.ComputeNestedConcern(); /// /// The ConnectorAsUsages that are nestedUsages of this Usage. Note that this list includes @@ -688,10 +577,7 @@ public List QueryNestedConcern() [Property(xmiId: "_19_0_2_12e503d9_1591479754895_422988_1242", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedConnection")] - public List QueryNestedConnection() - { - return this.ComputeNestedConnection(); - } + public List nestedConnection => this.ComputeNestedConnection(); /// /// The ConstraintUsages that are nestedUsages of this Usage. @@ -699,10 +585,7 @@ public List QueryNestedConnection() [Property(xmiId: "_19_0_2_12e503d9_1578067664051_434365_1774", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedConstraint")] - public List QueryNestedConstraint() - { - return this.ComputeNestedConstraint(); - } + public List nestedConstraint => this.ComputeNestedConstraint(); /// /// The code>EnumerationUsages that are nestedUsages of this Usage. @@ -710,10 +593,7 @@ public List QueryNestedConstraint() [Property(xmiId: "_19_0_4_12e503d9_1606946589000_158124_239", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591500785349_111324_4486")] [Implements(implementation: "IUsage.NestedEnumeration")] - public List QueryNestedEnumeration() - { - return this.ComputeNestedEnumeration(); - } + public List nestedEnumeration => this.ComputeNestedEnumeration(); /// /// The code>FlowUsages that are nestedUsages of this Usage. @@ -721,10 +601,7 @@ public List QueryNestedEnumeration() [Property(xmiId: "_19_0_4_12e503d9_1624054938718_124518_1464", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedFlow")] - public List QueryNestedFlow() - { - return this.ComputeNestedFlow(); - } + public List nestedFlow => this.ComputeNestedFlow(); /// /// The InterfaceUsages that are nestedUsages of this Usage. @@ -732,10 +609,7 @@ public List QueryNestedFlow() [Property(xmiId: "_19_0_2_12e503d9_1591498454569_383419_3839", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591479754895_422988_1242")] [Implements(implementation: "IUsage.NestedInterface")] - public List QueryNestedInterface() - { - return this.ComputeNestedInterface(); - } + public List nestedInterface => this.ComputeNestedInterface(); /// /// The ItemUsages that are nestedUsages of this Usage. @@ -743,10 +617,7 @@ public List QueryNestedInterface() [Property(xmiId: "_19_0_2_12e503d9_1591482421103_284620_2978", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943853976_48759_278")] [Implements(implementation: "IUsage.NestedItem")] - public List QueryNestedItem() - { - return this.ComputeNestedItem(); - } + public List nestedItem => this.ComputeNestedItem(); /// /// The MetadataUsages that are nestedUsages of this of this Usage. @@ -754,10 +625,7 @@ public List QueryNestedItem() [Property(xmiId: "_19_0_4_12e503d9_1661488589862_120785_2970", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedMetadata")] - public List QueryNestedMetadata() - { - return this.ComputeNestedMetadata(); - } + public List nestedMetadata => this.ComputeNestedMetadata(); /// /// The OccurrenceUsages that are nestedUsages of this Usage. @@ -765,10 +633,7 @@ public List QueryNestedMetadata() [Property(xmiId: "_19_0_4_12e503d9_1618943853976_48759_278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedOccurrence")] - public List QueryNestedOccurrence() - { - return this.ComputeNestedOccurrence(); - } + public List nestedOccurrence => this.ComputeNestedOccurrence(); /// /// The PartUsages that are nestedUsages of this Usage. @@ -776,10 +641,7 @@ public List QueryNestedOccurrence() [Property(xmiId: "_19_0_2_12e503d9_1591496406876_479979_3188", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591482421103_284620_2978")] [Implements(implementation: "IUsage.NestedPart")] - public List QueryNestedPart() - { - return this.ComputeNestedPart(); - } + public List nestedPart => this.ComputeNestedPart(); /// /// The PortUsages that are nestedUsages of this Usage. @@ -787,10 +649,7 @@ public List QueryNestedPart() [Property(xmiId: "_18_5_3_12e503d9_1565494459494_859367_26042", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedPort")] - public List QueryNestedPort() - { - return this.ComputeNestedPort(); - } + public List nestedPort => this.ComputeNestedPort(); /// /// The ReferenceUsages that are nestedUsages of this Usage. @@ -798,10 +657,7 @@ public List QueryNestedPort() [Property(xmiId: "_19_0_2_12e503d9_1591477541360_47573_933", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedReference")] - public List QueryNestedReference() - { - return this.ComputeNestedReference(); - } + public List nestedReference => this.ComputeNestedReference(); /// /// The RenderingUsages that are nestedUsages of this Usage. @@ -809,10 +665,7 @@ public List QueryNestedReference() [Property(xmiId: "_19_0_2_12e503d9_1596741501454_147708_6545", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedRendering")] - public List QueryNestedRendering() - { - return this.ComputeNestedRendering(); - } + public List nestedRendering => this.ComputeNestedRendering(); /// /// The RequirementUsages that are nestedUsages of this Usage. @@ -820,10 +673,7 @@ public List QueryNestedRendering() [Property(xmiId: "_19_0_2_12e503d9_1583000447195_878123_1244", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1578067664051_434365_1774")] [Implements(implementation: "IUsage.NestedRequirement")] - public List QueryNestedRequirement() - { - return this.ComputeNestedRequirement(); - } + public List nestedRequirement => this.ComputeNestedRequirement(); /// /// The StateUsages that are nestedUsages of this Usage. @@ -831,10 +681,7 @@ public List QueryNestedRequirement() [Property(xmiId: "_19_0_2_12e503d9_1575587743891_973819_756", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565501745142_70952_31609")] [Implements(implementation: "IUsage.NestedState")] - public List QueryNestedState() - { - return this.ComputeNestedState(); - } + public List nestedState => this.ComputeNestedState(); /// /// The TransitionUsages that are nestedUsages of this Usage. @@ -842,10 +689,7 @@ public List QueryNestedState() [Property(xmiId: "_19_0_2_12e503d9_1578597913303_768272_3894", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565472757327_162097_21259")] [Implements(implementation: "IUsage.NestedTransition")] - public List QueryNestedTransition() - { - return this.ComputeNestedTransition(); - } + public List nestedTransition => this.ComputeNestedTransition(); /// /// The Usages that are ownedFeatures of this Usage. @@ -854,10 +698,7 @@ public List QueryNestedTransition() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591217543254_26688_475")] [Implements(implementation: "IUsage.NestedUsage")] - public List QueryNestedUsage() - { - return this.ComputeNestedUsage(); - } + public List nestedUsage => this.ComputeNestedUsage(); /// /// The UseCaseUsages that are nestedUsages of this Usage. @@ -865,10 +706,7 @@ public List QueryNestedUsage() [Property(xmiId: "_19_0_4_12e503d9_1621463992900_247262_1080", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedUseCase")] - public List QueryNestedUseCase() - { - return this.ComputeNestedUseCase(); - } + public List nestedUseCase => this.ComputeNestedUseCase(); /// /// The VerificationCaseUsages that are nestedUsages of this Usage. @@ -876,10 +714,7 @@ public List QueryNestedUseCase() [Property(xmiId: "_19_0_2_12e503d9_1596821592100_42801_10499", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591135021853_494751_737")] [Implements(implementation: "IUsage.NestedVerificationCase")] - public List QueryNestedVerificationCase() - { - return this.ComputeNestedVerificationCase(); - } + public List nestedVerificationCase => this.ComputeNestedVerificationCase(); /// /// The ViewUsages that are nestedUsages of this Usage. @@ -887,10 +722,7 @@ public List QueryNestedVerificationCase() [Property(xmiId: "_19_0_2_12e503d9_1596644669126_858176_809", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1591496406876_479979_3188")] [Implements(implementation: "IUsage.NestedView")] - public List QueryNestedView() - { - return this.ComputeNestedView(); - } + public List nestedView => this.ComputeNestedView(); /// /// The ViewpointUsages that are nestedUsages of this Usage. @@ -898,10 +730,7 @@ public List QueryNestedView() [Property(xmiId: "_19_0_2_12e503d9_1596649930212_443356_3818", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1583000447195_878123_1244")] [Implements(implementation: "IUsage.NestedViewpoint")] - public List QueryNestedViewpoint() - { - return this.ComputeNestedViewpoint(); - } + public List nestedViewpoint => this.ComputeNestedViewpoint(); /// /// The Classes that are the types of this OccurrenceUsage. Nominally, these are OccurrenceDefinitions, @@ -912,10 +741,7 @@ public List QueryNestedViewpoint() [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List QueryOccurrenceDefinition() - { - return this.ComputeOccurrenceDefinition(); - } + public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -923,10 +749,7 @@ public List QueryOccurrenceDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674960_365618_43170", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IType.Output")] - public List QueryOutput() - { - return this.ComputeOutput(); - } + public List output => this.ComputeOutput(); /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -936,10 +759,7 @@ public List QueryOutput() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")] [Implements(implementation: "IElement.OwnedAnnotation")] - public List QueryOwnedAnnotation() - { - return this.ComputeOwnedAnnotation(); - } + public List ownedAnnotation => this.ComputeOwnedAnnotation(); /// /// A Conjugation owned by this Type for which the Type is the originalType. @@ -948,10 +768,7 @@ public List QueryOwnedAnnotation() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1575482490144_309557_300")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation QueryOwnedConjugator() - { - return this.ComputeOwnedConjugator(); - } + public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); /// /// The one ownedSubsetting of this Feature, if any, that is a CrossSubsetting}, for which the Feature @@ -960,10 +777,7 @@ public IConjugation QueryOwnedConjugator() [Property(xmiId: "_19_0_4_b9102da_1689616916594_145818_277", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedCrossSubsetting")] - public ICrossSubsetting QueryOwnedCrossSubsetting() - { - return this.ComputeOwnedCrossSubsetting(); - } + public ICrossSubsetting ownedCrossSubsetting => this.ComputeOwnedCrossSubsetting(); /// /// The ownedRelationships of this Type that are Differencings, having this Type as their @@ -973,10 +787,7 @@ public ICrossSubsetting QueryOwnedCrossSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedDifferencing")] - public List QueryOwnedDifferencing() - { - return this.ComputeOwnedDifferencing(); - } + public List ownedDifferencing => this.ComputeOwnedDifferencing(); /// /// The ownedRelationships of this Type that are Disjoinings, for which the Type is the typeDisjoined @@ -986,10 +797,7 @@ public List QueryOwnedDifferencing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623183194914_502526_616")] [Implements(implementation: "IType.OwnedDisjoining")] - public List QueryOwnedDisjoining() - { - return this.ComputeOwnedDisjoining(); - } + public List ownedDisjoining => this.ComputeOwnedDisjoining(); /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -997,10 +805,7 @@ public List QueryOwnedDisjoining() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.OwnedElement")] - public List QueryOwnedElement() - { - return this.ComputeOwnedElement(); - } + public List ownedElement => this.ComputeOwnedElement(); /// /// All endFeatures of this Type that are ownedFeatures. @@ -1009,10 +814,7 @@ public List QueryOwnedElement() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] [Implements(implementation: "IType.OwnedEndFeature")] - public List QueryOwnedEndFeature() - { - return this.ComputeOwnedEndFeature(); - } + public List ownedEndFeature => this.ComputeOwnedEndFeature(); /// /// The ownedMemberFeatures of the ownedFeatureMemberships of this Type. @@ -1020,10 +822,7 @@ public List QueryOwnedEndFeature() [Property(xmiId: "_18_5_3_12e503d9_1533160674959_226999_43167", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IType.OwnedFeature")] - public List QueryOwnedFeature() - { - return this.ComputeOwnedFeature(); - } + public List ownedFeature => this.ComputeOwnedFeature(); /// /// The ownedRelationships of this Feature that are FeatureChainings, for which the Feature will be the @@ -1033,10 +832,7 @@ public List QueryOwnedFeature() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IFeature.OwnedFeatureChaining")] - public List QueryOwnedFeatureChaining() - { - return this.ComputeOwnedFeatureChaining(); - } + public List ownedFeatureChaining => this.ComputeOwnedFeatureChaining(); /// /// The ownedRelationships of this Feature that are FeatureInvertings and for which the Feature is the @@ -1046,10 +842,7 @@ public List QueryOwnedFeatureChaining() [SubsettedProperty(propertyName: "_19_0_4_b9102da_1623178838861_768019_145")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedFeatureInverting")] - public List QueryOwnedFeatureInverting() - { - return this.ComputeOwnedFeatureInverting(); - } + public List ownedFeatureInverting => this.ComputeOwnedFeatureInverting(); /// /// The ownedMemberships of this Type that are FeatureMemberships, for which the Type is the owningType. @@ -1059,10 +852,7 @@ public List QueryOwnedFeatureInverting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1651076866512_962346_485")] [Implements(implementation: "IType.OwnedFeatureMembership")] - public List QueryOwnedFeatureMembership() - { - return this.ComputeOwnedFeatureMembership(); - } + public List ownedFeatureMembership => this.ComputeOwnedFeatureMembership(); /// /// The ownedRelationships of this Namespace that are Imports, for which the Namespace is the @@ -1072,10 +862,7 @@ public List QueryOwnedFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "INamespace.OwnedImport")] - public List QueryOwnedImport() - { - return this.ComputeOwnedImport(); - } + public List ownedImport => this.ComputeOwnedImport(); /// /// The ownedRelationships of this Type that are Intersectings, have the Type as their typeIntersected. @@ -1084,10 +871,7 @@ public List QueryOwnedImport() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IType.OwnedIntersecting")] - public List QueryOwnedIntersecting() - { - return this.ComputeOwnedIntersecting(); - } + public List ownedIntersecting => this.ComputeOwnedIntersecting(); /// /// The owned members of this Namespace, which are the ownedMemberElements of the ownedMemberships @@ -1096,10 +880,7 @@ public List QueryOwnedIntersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674979_259543_43268", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] [Implements(implementation: "INamespace.OwnedMember")] - public List QueryOwnedMember() - { - return this.ComputeOwnedMember(); - } + public List ownedMember => this.ComputeOwnedMember(); /// /// The ownedRelationships of this Namespace that are Memberships, for which the Namespace is the @@ -1110,10 +891,7 @@ public List QueryOwnedMember() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "INamespace.OwnedMembership")] - public List QueryOwnedMembership() - { - return this.ComputeOwnedMembership(); - } + public List ownedMembership => this.ComputeOwnedMembership(); /// /// The ownedSubsettings of this Feature that are Redefinitions, for which the Feature is the @@ -1122,10 +900,7 @@ public List QueryOwnedMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_161813_43220", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedRedefinition")] - public List QueryOwnedRedefinition() - { - return this.ComputeOwnedRedefinition(); - } + public List ownedRedefinition => this.ComputeOwnedRedefinition(); /// /// The one ownedSubsetting of this Feature, if any, that is a ReferenceSubsetting, for which the @@ -1134,10 +909,7 @@ public List QueryOwnedRedefinition() [Property(xmiId: "_19_0_4_12e503d9_1661555161564_247405_255", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674970_472382_43221")] [Implements(implementation: "IFeature.OwnedReferenceSubsetting")] - public IReferenceSubsetting QueryOwnedReferenceSubsetting() - { - return this.ComputeOwnedReferenceSubsetting(); - } + public IReferenceSubsetting ownedReferenceSubsetting => this.ComputeOwnedReferenceSubsetting(); /// /// The Relationships for which this Element is the owningRelatedElement. @@ -1155,10 +927,7 @@ public IReferenceSubsetting QueryOwnedReferenceSubsetting() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674984_558067_43292")] [Implements(implementation: "IType.OwnedSpecialization")] - public List QueryOwnedSpecialization() - { - return this.ComputeOwnedSpecialization(); - } + public List ownedSpecialization => this.ComputeOwnedSpecialization(); /// /// The ownedSpecializations of this Feature that are Subsettings, for which the Feature is the @@ -1168,10 +937,7 @@ public List QueryOwnedSpecialization() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674966_718145_43205")] [Implements(implementation: "IFeature.OwnedSubsetting")] - public List QueryOwnedSubsetting() - { - return this.ComputeOwnedSubsetting(); - } + public List ownedSubsetting => this.ComputeOwnedSubsetting(); /// /// The ownedRelationships of this Feature that are TypeFeaturings and for which the Feature is the @@ -1181,10 +947,7 @@ public List QueryOwnedSubsetting() [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603904928950_196800_580")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [Implements(implementation: "IFeature.OwnedTypeFeaturing")] - public List QueryOwnedTypeFeaturing() - { - return this.ComputeOwnedTypeFeaturing(); - } + public List ownedTypeFeaturing => this.ComputeOwnedTypeFeaturing(); /// /// The ownedSpecializations of this Feature that are FeatureTypings, for which the Feature is the @@ -1194,10 +957,7 @@ public List QueryOwnedTypeFeaturing() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_579676_43168")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543180501615_804591_21100")] [Implements(implementation: "IFeature.OwnedTyping")] - public List QueryOwnedTyping() - { - return this.ComputeOwnedTyping(); - } + public List ownedTyping => this.ComputeOwnedTyping(); /// /// The ownedRelationships of this Type that are Unionings, having the Type as their typeUnioned. @@ -1206,10 +966,7 @@ public List QueryOwnedTyping() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")] [Implements(implementation: "IType.OwnedUnioning")] - public List QueryOwnedUnioning() - { - return this.ComputeOwnedUnioning(); - } + public List ownedUnioning => this.ComputeOwnedUnioning(); /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -1217,10 +974,7 @@ public List QueryOwnedUnioning() /// [Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.Owner")] - public IElement QueryOwner() - { - return this.ComputeOwner(); - } + public IElement owner => this.ComputeOwner(); /// /// The Definition that owns this Usage (if any). @@ -1229,10 +983,7 @@ public IElement QueryOwner() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565498571495_18876_27787")] [Implements(implementation: "IUsage.OwningDefinition")] - public IDefinition QueryOwningDefinition() - { - return this.ComputeOwningDefinition(); - } + public IDefinition owningDefinition => this.ComputeOwningDefinition(); /// /// The FeatureMembership that owns this Feature as an ownedMemberFeature, determining its owningType. @@ -1240,10 +991,7 @@ public IDefinition QueryOwningDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674970_68441_43223", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674972_622493_43236")] [Implements(implementation: "IFeature.OwningFeatureMembership")] - public IFeatureMembership QueryOwningFeatureMembership() - { - return this.ComputeOwningFeatureMembership(); - } + public IFeatureMembership owningFeatureMembership => this.ComputeOwningFeatureMembership(); /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -1252,10 +1000,7 @@ public IFeatureMembership QueryOwningFeatureMembership() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")] [Implements(implementation: "IElement.OwningMembership")] - public IOwningMembership QueryOwningMembership() - { - return this.ComputeOwningMembership(); - } + public IOwningMembership owningMembership => this.ComputeOwningMembership(); /// /// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership @@ -1264,10 +1009,7 @@ public IOwningMembership QueryOwningMembership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace QueryOwningNamespace() - { - return this.ComputeOwningNamespace(); - } + public INamespace owningNamespace => this.ComputeOwningNamespace(); /// /// The Relationship for which this Element is an ownedRelatedElement, if any. @@ -1285,10 +1027,7 @@ public INamespace QueryOwningNamespace() [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_474739_43306")] [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1603905619975_304385_743")] [Implements(implementation: "IFeature.OwningType")] - public IType QueryOwningType() - { - return this.ComputeOwningType(); - } + public IType owningType => this.ComputeOwningType(); /// /// The Usage in which this Usage is nested (if any). @@ -1296,10 +1035,7 @@ public IType QueryOwningType() [Property(xmiId: "_18_5_3_12e503d9_1565472757327_504924_21260", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_592215_43200")] [Implements(implementation: "IUsage.OwningUsage")] - public IUsage QueryOwningUsage() - { - return this.ComputeOwningUsage(); - } + public IUsage owningUsage => this.ComputeOwningUsage(); /// /// The parameters of this Step, which are defined as its directedFeatures, whose values are passed into @@ -1308,10 +1044,7 @@ public IUsage QueryOwningUsage() [Property(xmiId: "_19_0_2_12e503d9_1595189174990_213826_657", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1623952188842_882068_37169")] [Implements(implementation: "IStep.Parameter")] - public List QueryParameter() - { - return this.ComputeParameter(); - } + public List parameter => this.ComputeParameter(); /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1332,10 +1065,7 @@ public List QueryParameter() /// [Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.QualifiedName")] - public string QueryQualifiedName() - { - return this.ComputeQualifiedName(); - } + public string qualifiedName => this.ComputeQualifiedName(); /// /// The short name to be used for this Element during name resolution within its owningNamespace. This @@ -1345,10 +1075,7 @@ public string QueryQualifiedName() /// [Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IElement.ShortName")] - public string QueryShortName() - { - return this.ComputeShortName(); - } + public string shortName => this.ComputeShortName(); /// /// The TextualRepresentations that annotate this Element. @@ -1357,10 +1084,7 @@ public string QueryShortName() [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] [Implements(implementation: "IElement.TextualRepresentation")] - public List QueryTextualRepresentation() - { - return this.ComputeTextualRepresentation(); - } + public List textualRepresentation => this.ComputeTextualRepresentation(); /// /// Types that restrict the values of this Feature, such that the values must be instances of all the @@ -1371,10 +1095,7 @@ public List QueryTextualRepresentation() [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List QueryType() - { - return this.ComputeType(); - } + public List type => this.ComputeType(); /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the @@ -1385,10 +1106,7 @@ public List QueryType() /// [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)] [Implements(implementation: "IType.UnioningType")] - public List QueryUnioningType() - { - return this.ComputeUnioningType(); - } + public List unioningType => this.ComputeUnioningType(); /// /// The Expression whose result, if false, determines that the bodyAction should continue to be @@ -1396,10 +1114,7 @@ public List QueryUnioningType() /// [Property(xmiId: "_19_0_4_12e503d9_1624290717721_449719_4195", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IWhileLoopActionUsage.UntilArgument")] - public IExpression QueryUntilArgument() - { - return this.ComputeUntilArgument(); - } + public IExpression untilArgument => this.ComputeUntilArgument(); /// /// The Usages that are features of this Usage (not necessarily owned). @@ -1407,10 +1122,7 @@ public IExpression QueryUntilArgument() [Property(xmiId: "_19_0_2_12e503d9_1591217543254_26688_475", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [Implements(implementation: "IUsage.Usage")] - public List QueryUsage() - { - return this.ComputeUsage(); - } + public List usage => this.ComputeUsage(); /// /// The Usages which represent the variants of this Usage as a variation point Usage, if isVariation = @@ -1419,10 +1131,7 @@ public List QueryUsage() [Property(xmiId: "_19_0_2_12e503d9_1590979649160_380466_999", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [Implements(implementation: "IUsage.Variant")] - public List QueryVariant() - { - return this.ComputeVariant(); - } + public List variant => this.ComputeVariant(); /// /// The ownedMemberships of this Usage that are VariantMemberships. If isVariation = true, then this @@ -1431,10 +1140,7 @@ public List QueryVariant() [Property(xmiId: "_19_0_2_12e503d9_1590979136735_982171_914", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] [Implements(implementation: "IUsage.VariantMembership")] - public List QueryVariantMembership() - { - return this.ComputeVariantMembership(); - } + public List variantMembership => this.ComputeVariantMembership(); /// /// The Expression whose result, if true, determines that the bodyAction should continue to be @@ -1442,10 +1148,7 @@ public List QueryVariantMembership() /// [Property(xmiId: "_19_0_4_12e503d9_1624203871924_371126_3842", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [Implements(implementation: "IWhileLoopActionUsage.WhileArgument")] - public IExpression QueryWhileArgument() - { - return this.ComputeWhileArgument(); - } + public IExpression whileArgument => this.ComputeWhileArgument(); } } diff --git a/SysML2.NET/SysML2.NET.csproj b/SysML2.NET/SysML2.NET.csproj index 3cd0523bc..574d9e2a4 100644 --- a/SysML2.NET/SysML2.NET.csproj +++ b/SysML2.NET/SysML2.NET.csproj @@ -38,4 +38,7 @@ + + + \ No newline at end of file From 8f566fe7edd050ac3b73588c0e499871e39fccda Mon Sep 17 00:00:00 2001 From: antoineatstariongroup Date: Fri, 16 Jan 2026 09:16:50 +0100 Subject: [PATCH 2/6] Fix #50: correct implementation for redefined properties --- .../AssociationDeSerializer.cs | 80 ----- .../DependencyDeSerializer.cs | 40 --- .../EnumerationDefinitionDeSerializer.cs | 20 -- .../FeatureTypingDeSerializer.cs | 114 ------ .../AutoGenDeSerializer/FlowDeSerializer.cs | 160 --------- .../FramedConcernMembershipDeSerializer.cs | 222 ------------ .../LiteralIntegerDeSerializer.cs | 40 --- .../LiteralRationalDeSerializer.cs | 40 --- .../MembershipDeSerializer.cs | 40 --- .../OwningMembershipDeSerializer.cs | 97 ----- .../ReferenceSubsettingDeSerializer.cs | 188 ---------- .../RequirementUsageDeSerializer.cs | 173 --------- .../SelectExpressionDeSerializer.cs | 40 --- .../SubclassificationDeSerializer.cs | 114 ------ .../TextualRepresentationDeSerializer.cs | 20 -- .../AutoGenDeSerializer/UsageDeSerializer.cs | 32 -- .../UML/Core/AutoGenDto/Association.cs | 16 +- .../UML/Core/AutoGenDto/Dependency.cs | 18 +- .../Core/AutoGenDto/EnumerationDefinition.cs | 11 +- .../UML/Core/AutoGenDto/FeatureTyping.cs | 46 ++- .../Expected/UML/Core/AutoGenDto/Flow.cs | 24 +- .../AutoGenDto/FramedConcernMembership.cs | 58 ++- .../UML/Core/AutoGenDto/LiteralInteger.cs | 4 +- .../UML/Core/AutoGenDto/LiteralRational.cs | 4 +- .../UML/Core/AutoGenDto/Membership.cs | 19 +- .../UML/Core/AutoGenDto/OwningMembership.cs | 39 +- .../Core/AutoGenDto/ReferenceSubsetting.cs | 63 +++- .../UML/Core/AutoGenDto/RequirementUsage.cs | 29 +- .../UML/Core/AutoGenDto/SelectExpression.cs | 13 +- .../UML/Core/AutoGenDto/Subclassification.cs | 46 ++- .../Core/AutoGenDto/TextualRepresentation.cs | 2 +- .../Expected/UML/Core/AutoGenDto/Usage.cs | 8 +- .../EnumerationDefinitionFactory.cs | 3 +- .../FramedConcernMembershipFactory.cs | 5 +- .../OwningMembershipFactory.cs | 2 - .../RequirementUsageFactory.cs | 2 - .../SelectExpressionFactory.cs | 3 +- .../AutoGenElementFactory/UsageFactory.cs | 1 - .../UML/Core/AutoGenPoco/AnnotatingElement.cs | 1 + .../UML/Core/AutoGenPoco/Association.cs | 17 +- .../UML/Core/AutoGenPoco/Dependency.cs | 19 +- .../Core/AutoGenPoco/EnumerationDefinition.cs | 12 +- .../Expected/UML/Core/AutoGenPoco/Feature.cs | 1 + .../UML/Core/AutoGenPoco/FeatureTyping.cs | 48 ++- .../Expected/UML/Core/AutoGenPoco/Flow.cs | 25 +- .../AutoGenPoco/FramedConcernMembership.cs | 58 ++- .../UML/Core/AutoGenPoco/LiteralInteger.cs | 5 +- .../UML/Core/AutoGenPoco/LiteralRational.cs | 5 +- .../UML/Core/AutoGenPoco/Membership.cs | 19 +- .../UML/Core/AutoGenPoco/MultiplicityRange.cs | 1 + .../UML/Core/AutoGenPoco/OwningMembership.cs | 39 +- .../Core/AutoGenPoco/ReferenceSubsetting.cs | 68 +++- .../UML/Core/AutoGenPoco/RequirementUsage.cs | 30 +- .../UML/Core/AutoGenPoco/SelectExpression.cs | 14 +- .../UML/Core/AutoGenPoco/Subclassification.cs | 51 ++- .../Core/AutoGenPoco/TextualRepresentation.cs | 3 +- .../Expected/UML/Core/AutoGenPoco/Usage.cs | 9 +- .../AssociationExtensions.cs | 38 -- .../DependencyExtensions.cs | 38 -- .../EnumerationDefinitionExtensions.cs | 7 +- .../FeatureTypingExtensions.cs | 58 --- .../AutoGenPocoExtension/FlowExtensions.cs | 38 -- .../FramedConcernMembershipExtensions.cs | 61 +--- .../MembershipExtensions.cs | 38 -- .../OwningMembershipExtensions.cs | 54 --- .../ReferenceSubsettingExtensions.cs | 78 ---- .../RequirementUsageExtensions.cs | 6 - .../SelectExpressionExtensions.cs | 7 +- .../SubclassificationExtensions.cs | 58 --- .../AutoGenPocoExtension/UsageExtensions.cs | 3 - .../AssociationSerializer.cs | 72 ---- .../AutoGenSerializer/DependencySerializer.cs | 48 --- .../EnumerationDefinitionSerializer.cs | 12 - .../FeatureTypingSerializer.cs | 86 ----- .../Core/AutoGenSerializer/FlowSerializer.cs | 120 ------- .../FramedConcernMembershipSerializer.cs | 105 ------ .../LiteralIntegerSerializer.cs | 24 -- .../LiteralRationalSerializer.cs | 24 -- .../AutoGenSerializer/MembershipSerializer.cs | 48 --- .../OwningMembershipSerializer.cs | 75 ---- .../ReferenceSubsettingSerializer.cs | 124 ------- .../RequirementUsageSerializer.cs | 102 ------ .../SelectExpressionSerializer.cs | 24 -- .../SubclassificationSerializer.cs | 86 ----- .../TextualRepresentationSerializer.cs | 12 - .../Core/AutoGenSerializer/UsageSerializer.cs | 18 - ...reDalPocoExtensionsGeneratorTestFixture.cs | 2 +- ...lCoreDalPocoFactoryGeneratorTestFixture.cs | 2 +- .../Extensions/PropertyExtension.cs | 12 + .../HandleBarHelpers/PropertyHelper.cs | 338 +++++++++++++++--- .../Uml/core-dal-poco-uml-extensions.hbs | 30 +- ...ore-json-dto-deserializer-uml-template.hbs | 2 +- .../core-json-dto-serializer-uml-template.hbs | 4 +- .../Uml/core-poco-class-uml-template.hbs | 1 + .../Uml/core-poco-dal-uml-factory.hbs | 8 +- SysML2.NET.Dal.Tests/AssemblerTestFixture.cs | 18 +- .../AcceptActionUsageFactory.cs | 1 - .../ActionUsageFactory.cs | 1 - .../ActorMembershipFactory.cs | 2 - .../AllocationDefinitionFactory.cs | 3 +- .../AllocationUsageFactory.cs | 1 - .../AnalysisCaseUsageFactory.cs | 1 - .../AssertConstraintUsageFactory.cs | 1 - .../AssignmentActionUsageFactory.cs | 1 - .../AttributeUsageFactory.cs | 1 - .../BindingConnectorAsUsageFactory.cs | 1 - .../CalculationUsageFactory.cs | 1 - .../AutoGenElementFactory/CaseUsageFactory.cs | 1 - .../CollectExpressionFactory.cs | 3 +- .../ConcernDefinitionFactory.cs | 1 - .../ConcernUsageFactory.cs | 2 - .../ConnectionDefinitionFactory.cs | 3 +- .../ConnectionUsageFactory.cs | 1 - .../ConstraintUsageFactory.cs | 1 - .../DecisionNodeFactory.cs | 1 - .../ElementFilterMembershipFactory.cs | 2 - .../EndFeatureMembershipFactory.cs | 2 - .../EnumerationDefinitionFactory.cs | 3 +- .../EnumerationUsageFactory.cs | 1 - .../EventOccurrenceUsageFactory.cs | 1 - .../ExhibitStateUsageFactory.cs | 1 - .../FeatureChainExpressionFactory.cs | 3 +- .../FeatureMembershipFactory.cs | 2 - .../FeatureValueFactory.cs | 2 - .../AutoGenElementFactory/FlowUsageFactory.cs | 1 - .../ForLoopActionUsageFactory.cs | 1 - .../AutoGenElementFactory/ForkNodeFactory.cs | 1 - .../FramedConcernMembershipFactory.cs | 5 +- .../IfActionUsageFactory.cs | 1 - .../IncludeUseCaseUsageFactory.cs | 1 - .../IndexExpressionFactory.cs | 3 +- .../InterfaceDefinitionFactory.cs | 3 +- .../InterfaceUsageFactory.cs | 1 - .../AutoGenElementFactory/ItemUsageFactory.cs | 1 - .../AutoGenElementFactory/JoinNodeFactory.cs | 1 - .../MembershipExposeFactory.cs | 6 +- .../AutoGenElementFactory/MergeNodeFactory.cs | 1 - .../MetadataUsageFactory.cs | 1 - .../NamespaceExposeFactory.cs | 6 +- .../ObjectiveMembershipFactory.cs | 2 - .../OccurrenceUsageFactory.cs | 1 - .../OwningMembershipFactory.cs | 2 - .../ParameterMembershipFactory.cs | 2 - .../AutoGenElementFactory/PartUsageFactory.cs | 1 - .../PerformActionUsageFactory.cs | 1 - .../AutoGenElementFactory/PortUsageFactory.cs | 1 - .../ReferenceUsageFactory.cs | 1 - .../RenderingUsageFactory.cs | 1 - .../RequirementConstraintMembershipFactory.cs | 2 - .../RequirementDefinitionFactory.cs | 1 - .../RequirementUsageFactory.cs | 2 - ...equirementVerificationMembershipFactory.cs | 5 +- .../ResultExpressionMembershipFactory.cs | 2 - .../ReturnParameterMembershipFactory.cs | 2 - .../SatisfyRequirementUsageFactory.cs | 2 - .../SelectExpressionFactory.cs | 3 +- .../SendActionUsageFactory.cs | 1 - .../StakeholderMembershipFactory.cs | 2 - .../StateSubactionMembershipFactory.cs | 2 - .../StateUsageFactory.cs | 1 - .../SubjectMembershipFactory.cs | 2 - .../SuccessionAsUsageFactory.cs | 1 - .../SuccessionFlowUsageFactory.cs | 1 - .../TerminateActionUsageFactory.cs | 1 - .../TransitionFeatureMembershipFactory.cs | 2 - .../TransitionUsageFactory.cs | 1 - .../AutoGenElementFactory/UsageFactory.cs | 1 - .../UseCaseUsageFactory.cs | 1 - .../VariantMembershipFactory.cs | 2 - .../VerificationCaseUsageFactory.cs | 1 - .../ViewRenderingMembershipFactory.cs | 2 - .../AutoGenElementFactory/ViewUsageFactory.cs | 1 - .../ViewpointDefinitionFactory.cs | 1 - .../ViewpointUsageFactory.cs | 2 - .../WhileLoopActionUsageFactory.cs | 1 - .../AcceptActionUsageExtensions.cs | 3 - .../ActionUsageExtensions.cs | 3 - .../ActorMembershipExtensions.cs | 54 --- .../AllocationDefinitionExtensions.cs | 45 +-- .../AllocationUsageExtensions.cs | 41 --- .../AnalysisCaseUsageExtensions.cs | 3 - .../AnnotationExtensions.cs | 38 -- .../AssertConstraintUsageExtensions.cs | 3 - .../AssignmentActionUsageExtensions.cs | 3 - .../AssociationExtensions.cs | 38 -- .../AssociationStructureExtensions.cs | 38 -- .../AttributeUsageExtensions.cs | 3 - .../BindingConnectorAsUsageExtensions.cs | 41 --- .../BindingConnectorExtensions.cs | 38 -- .../CalculationUsageExtensions.cs | 3 - .../CaseUsageExtensions.cs | 3 - .../CollectExpressionExtensions.cs | 7 +- .../ConcernDefinitionExtensions.cs | 3 - .../ConcernUsageExtensions.cs | 6 - .../ConjugatedPortTypingExtensions.cs | 68 ---- .../ConjugationExtensions.cs | 38 -- .../ConnectionDefinitionExtensions.cs | 45 +-- .../ConnectionUsageExtensions.cs | 41 --- .../ConnectorExtensions.cs | 38 -- .../ConstraintUsageExtensions.cs | 3 - .../CrossSubsettingExtensions.cs | 78 ---- .../DecisionNodeExtensions.cs | 3 - .../DependencyExtensions.cs | 38 -- .../DifferencingExtensions.cs | 38 -- .../DisjoiningExtensions.cs | 38 -- .../ElementFilterMembershipExtensions.cs | 54 --- .../EndFeatureMembershipExtensions.cs | 54 --- .../EnumerationDefinitionExtensions.cs | 7 +- .../EnumerationUsageExtensions.cs | 3 - .../EventOccurrenceUsageExtensions.cs | 3 - .../ExhibitStateUsageExtensions.cs | 3 - .../FeatureChainExpressionExtensions.cs | 7 +- .../FeatureChainingExtensions.cs | 38 -- .../FeatureInvertingExtensions.cs | 38 -- .../FeatureMembershipExtensions.cs | 54 --- .../FeatureTypingExtensions.cs | 58 --- .../FeatureValueExtensions.cs | 54 --- .../FlowDefinitionExtensions.cs | 38 -- .../AutoGenPocoExtension/FlowExtensions.cs | 38 -- .../FlowUsageExtensions.cs | 41 --- .../ForLoopActionUsageExtensions.cs | 3 - .../ForkNodeExtensions.cs | 3 - .../FramedConcernMembershipExtensions.cs | 61 +--- .../IfActionUsageExtensions.cs | 3 - .../IncludeUseCaseUsageExtensions.cs | 3 - .../IndexExpressionExtensions.cs | 7 +- .../InteractionExtensions.cs | 38 -- .../InterfaceDefinitionExtensions.cs | 45 +-- .../InterfaceUsageExtensions.cs | 41 --- .../IntersectingExtensions.cs | 38 -- .../ItemUsageExtensions.cs | 3 - .../JoinNodeExtensions.cs | 3 - .../MembershipExposeExtensions.cs | 52 +-- .../MembershipExtensions.cs | 38 -- .../MembershipImportExtensions.cs | 38 -- .../MergeNodeExtensions.cs | 3 - .../MetadataUsageExtensions.cs | 3 - .../NamespaceExposeExtensions.cs | 52 +-- .../NamespaceImportExtensions.cs | 38 -- .../ObjectiveMembershipExtensions.cs | 54 --- .../OccurrenceUsageExtensions.cs | 3 - .../OwningMembershipExtensions.cs | 54 --- .../ParameterMembershipExtensions.cs | 54 --- .../PartUsageExtensions.cs | 3 - .../PerformActionUsageExtensions.cs | 3 - .../PortConjugationExtensions.cs | 48 --- .../PortUsageExtensions.cs | 3 - .../RedefinitionExtensions.cs | 78 ---- .../ReferenceSubsettingExtensions.cs | 78 ---- .../ReferenceUsageExtensions.cs | 3 - .../RenderingUsageExtensions.cs | 3 - ...quirementConstraintMembershipExtensions.cs | 54 --- .../RequirementDefinitionExtensions.cs | 3 - .../RequirementUsageExtensions.cs | 6 - ...irementVerificationMembershipExtensions.cs | 61 +--- .../ResultExpressionMembershipExtensions.cs | 54 --- .../ReturnParameterMembershipExtensions.cs | 54 --- .../SatisfyRequirementUsageExtensions.cs | 6 - .../SelectExpressionExtensions.cs | 7 +- .../SendActionUsageExtensions.cs | 3 - .../SpecializationExtensions.cs | 38 -- .../StakeholderMembershipExtensions.cs | 54 --- .../StateSubactionMembershipExtensions.cs | 54 --- .../StateUsageExtensions.cs | 3 - .../SubclassificationExtensions.cs | 58 --- .../SubjectMembershipExtensions.cs | 54 --- .../SubsettingExtensions.cs | 58 --- .../SuccessionAsUsageExtensions.cs | 41 --- .../SuccessionExtensions.cs | 38 -- .../SuccessionFlowExtensions.cs | 38 -- .../SuccessionFlowUsageExtensions.cs | 41 --- .../TerminateActionUsageExtensions.cs | 3 - .../TransitionFeatureMembershipExtensions.cs | 54 --- .../TransitionUsageExtensions.cs | 3 - .../TypeFeaturingExtensions.cs | 38 -- .../UnioningExtensions.cs | 38 -- .../AutoGenPocoExtension/UsageExtensions.cs | 3 - .../UseCaseUsageExtensions.cs | 3 - .../VariantMembershipExtensions.cs | 54 --- .../VerificationCaseUsageExtensions.cs | 3 - .../ViewRenderingMembershipExtensions.cs | 54 --- .../ViewUsageExtensions.cs | 3 - .../ViewpointDefinitionExtensions.cs | 3 - .../ViewpointUsageExtensions.cs | 6 - .../WhileLoopActionUsageExtensions.cs | 3 - .../AcceptActionUsageDeSerializer.cs | 112 ------ .../ActionDefinitionDeSerializer.cs | 20 -- .../ActionUsageDeSerializer.cs | 112 ------ .../ActorMembershipDeSerializer.cs | 197 ---------- .../AllocationDefinitionDeSerializer.cs | 100 ------ .../AllocationUsageDeSerializer.cs | 172 --------- .../AnalysisCaseDefinitionDeSerializer.cs | 20 -- .../AnalysisCaseUsageDeSerializer.cs | 204 ----------- .../AnnotationDeSerializer.cs | 40 --- .../AssertConstraintUsageDeSerializer.cs | 140 -------- .../AssignmentActionUsageDeSerializer.cs | 112 ------ .../AssociationDeSerializer.cs | 80 ----- .../AssociationStructureDeSerializer.cs | 80 ----- .../AttributeUsageDeSerializer.cs | 52 --- .../BehaviorDeSerializer.cs | 20 -- .../BindingConnectorAsUsageDeSerializer.cs | 112 ------ .../BindingConnectorDeSerializer.cs | 100 ------ .../BooleanExpressionDeSerializer.cs | 64 ---- .../CalculationDefinitionDeSerializer.cs | 20 -- .../CalculationUsageDeSerializer.cs | 156 -------- .../CaseDefinitionDeSerializer.cs | 20 -- .../CaseUsageDeSerializer.cs | 180 ---------- .../CollectExpressionDeSerializer.cs | 40 --- .../ConcernDefinitionDeSerializer.cs | 29 -- .../ConcernUsageDeSerializer.cs | 197 ---------- .../ConjugatedPortDefinitionDeSerializer.cs | 48 --- .../ConjugatedPortTypingDeSerializer.cs | 139 ------- .../ConjugationDeSerializer.cs | 40 --- .../ConnectionDefinitionDeSerializer.cs | 100 ------ .../ConnectionUsageDeSerializer.cs | 152 -------- .../ConnectorDeSerializer.cs | 100 ------ .../ConstraintDefinitionDeSerializer.cs | 20 -- .../ConstraintUsageDeSerializer.cs | 140 -------- .../ConstructorExpressionDeSerializer.cs | 40 --- .../CrossSubsettingDeSerializer.cs | 188 ---------- .../DecisionNodeDeSerializer.cs | 112 ------ .../DependencyDeSerializer.cs | 40 --- .../DifferencingDeSerializer.cs | 40 --- .../DisjoiningDeSerializer.cs | 40 --- .../DocumentationDeSerializer.cs | 20 -- .../ElementFilterMembershipDeSerializer.cs | 122 ------- .../EndFeatureMembershipDeSerializer.cs | 147 -------- .../EnumerationDefinitionDeSerializer.cs | 20 -- .../EnumerationUsageDeSerializer.cs | 72 ---- .../EventOccurrenceUsageDeSerializer.cs | 52 --- .../ExhibitStateUsageDeSerializer.cs | 182 ---------- .../ExpressionDeSerializer.cs | 40 --- .../FeatureChainExpressionDeSerializer.cs | 40 --- .../FeatureChainingDeSerializer.cs | 40 --- .../FeatureInvertingDeSerializer.cs | 40 --- .../FeatureMembershipDeSerializer.cs | 147 -------- .../FeatureReferenceExpressionDeSerializer.cs | 40 --- .../FeatureTypingDeSerializer.cs | 114 ------ .../FeatureValueDeSerializer.cs | 122 ------- .../AutoGenDeSerializer/FlowDeSerializer.cs | 160 --------- .../FlowDefinitionDeSerializer.cs | 120 ------- .../FlowUsageDeSerializer.cs | 252 ------------- .../ForLoopActionUsageDeSerializer.cs | 112 ------ .../ForkNodeDeSerializer.cs | 112 ------ .../FramedConcernMembershipDeSerializer.cs | 222 ------------ .../FunctionDeSerializer.cs | 20 -- .../IfActionUsageDeSerializer.cs | 112 ------ .../IncludeUseCaseUsageDeSerializer.cs | 254 ------------- .../IndexExpressionDeSerializer.cs | 40 --- .../InteractionDeSerializer.cs | 100 ------ .../InterfaceDefinitionDeSerializer.cs | 120 ------- .../InterfaceUsageDeSerializer.cs | 172 --------- .../IntersectingDeSerializer.cs | 40 --- .../InvariantDeSerializer.cs | 64 ---- .../InvocationExpressionDeSerializer.cs | 40 --- .../ItemUsageDeSerializer.cs | 52 --- .../JoinNodeDeSerializer.cs | 112 ------ .../LiteralBooleanDeSerializer.cs | 40 --- .../LiteralExpressionDeSerializer.cs | 40 --- .../LiteralInfinityDeSerializer.cs | 40 --- .../LiteralIntegerDeSerializer.cs | 40 --- .../LiteralRationalDeSerializer.cs | 40 --- .../LiteralStringDeSerializer.cs | 40 --- .../MembershipDeSerializer.cs | 40 --- .../MembershipExposeDeSerializer.cs | 40 --- .../MembershipImportDeSerializer.cs | 40 --- .../MergeNodeDeSerializer.cs | 112 ------ .../MetadataAccessExpressionDeSerializer.cs | 40 --- .../MetadataUsageDeSerializer.cs | 96 ----- .../NamespaceExposeDeSerializer.cs | 40 --- .../NamespaceImportDeSerializer.cs | 40 --- .../NullExpressionDeSerializer.cs | 40 --- .../ObjectiveMembershipDeSerializer.cs | 172 --------- .../OccurrenceUsageDeSerializer.cs | 52 --- .../OperatorExpressionDeSerializer.cs | 40 --- .../OwningMembershipDeSerializer.cs | 97 ----- .../ParameterMembershipDeSerializer.cs | 172 --------- .../PartUsageDeSerializer.cs | 52 --- .../PerformActionUsageDeSerializer.cs | 137 ------- .../PortConjugationDeSerializer.cs | 89 ----- .../PortUsageDeSerializer.cs | 72 ---- .../PredicateDeSerializer.cs | 20 -- .../RedefinitionDeSerializer.cs | 164 --------- .../ReferenceSubsettingDeSerializer.cs | 188 ---------- .../ReferenceUsageDeSerializer.cs | 32 -- .../RenderingUsageDeSerializer.cs | 72 ---- ...irementConstraintMembershipDeSerializer.cs | 172 --------- .../RequirementDefinitionDeSerializer.cs | 29 -- .../RequirementUsageDeSerializer.cs | 173 --------- ...ementVerificationMembershipDeSerializer.cs | 222 ------------ .../ResultExpressionMembershipDeSerializer.cs | 172 --------- .../ReturnParameterMembershipDeSerializer.cs | 172 --------- .../SatisfyRequirementUsageDeSerializer.cs | 198 ---------- .../SelectExpressionDeSerializer.cs | 40 --- .../SendActionUsageDeSerializer.cs | 112 ------ .../SpecializationDeSerializer.cs | 40 --- .../StakeholderMembershipDeSerializer.cs | 197 ---------- .../StateDefinitionDeSerializer.cs | 20 -- .../StateSubactionMembershipDeSerializer.cs | 172 --------- .../StateUsageDeSerializer.cs | 132 ------- .../AutoGenDeSerializer/StepDeSerializer.cs | 20 -- .../SubclassificationDeSerializer.cs | 114 ------ .../SubjectMembershipDeSerializer.cs | 197 ---------- .../SubsettingDeSerializer.cs | 114 ------ .../SuccessionAsUsageDeSerializer.cs | 112 ------ .../SuccessionDeSerializer.cs | 100 ------ .../SuccessionFlowDeSerializer.cs | 160 --------- .../SuccessionFlowUsageDeSerializer.cs | 252 ------------- .../TerminateActionUsageDeSerializer.cs | 112 ------ .../TextualRepresentationDeSerializer.cs | 20 -- ...TransitionFeatureMembershipDeSerializer.cs | 172 --------- .../TransitionUsageDeSerializer.cs | 112 ------ ...TriggerInvocationExpressionDeSerializer.cs | 40 --- .../TypeFeaturingDeSerializer.cs | 40 --- .../UnioningDeSerializer.cs | 40 --- .../AutoGenDeSerializer/UsageDeSerializer.cs | 32 -- .../UseCaseDefinitionDeSerializer.cs | 20 -- .../UseCaseUsageDeSerializer.cs | 204 ----------- .../VariantMembershipDeSerializer.cs | 122 ------- .../VerificationCaseDefinitionDeSerializer.cs | 20 -- .../VerificationCaseUsageDeSerializer.cs | 180 ---------- .../ViewRenderingMembershipDeSerializer.cs | 172 --------- .../ViewUsageDeSerializer.cs | 72 ---- .../ViewpointDefinitionDeSerializer.cs | 29 -- .../ViewpointUsageDeSerializer.cs | 197 ---------- .../WhileLoopActionUsageDeSerializer.cs | 112 ------ .../AcceptActionUsageSerializer.cs | 66 ---- .../ActionDefinitionSerializer.cs | 12 - .../ActionUsageSerializer.cs | 66 ---- .../ActorMembershipSerializer.cs | 99 ----- .../AllocationDefinitionSerializer.cs | 84 ----- .../AllocationUsageSerializer.cs | 126 ------- .../AnalysisCaseDefinitionSerializer.cs | 12 - .../AnalysisCaseUsageSerializer.cs | 120 ------- .../AutoGenSerializer/AnnotationSerializer.cs | 48 --- .../AssertConstraintUsageSerializer.cs | 82 ----- .../AssignmentActionUsageSerializer.cs | 66 ---- .../AssociationSerializer.cs | 72 ---- .../AssociationStructureSerializer.cs | 72 ---- .../AttributeUsageSerializer.cs | 30 -- .../AutoGenSerializer/BehaviorSerializer.cs | 12 - .../BindingConnectorAsUsageSerializer.cs | 90 ----- .../BindingConnectorSerializer.cs | 84 ----- .../BooleanExpressionSerializer.cs | 38 -- .../CalculationDefinitionSerializer.cs | 12 - .../CalculationUsageSerializer.cs | 92 ----- .../CaseDefinitionSerializer.cs | 12 - .../AutoGenSerializer/CaseUsageSerializer.cs | 106 ------ .../CollectExpressionSerializer.cs | 24 -- .../ConcernDefinitionSerializer.cs | 18 - .../ConcernUsageSerializer.cs | 116 ------ .../ConjugatedPortDefinitionSerializer.cs | 28 -- .../ConjugatedPortTypingSerializer.cs | 98 ----- .../ConjugationSerializer.cs | 48 --- .../ConnectionDefinitionSerializer.cs | 84 ----- .../ConnectionUsageSerializer.cs | 114 ------ .../AutoGenSerializer/ConnectorSerializer.cs | 84 ----- .../ConstraintDefinitionSerializer.cs | 12 - .../ConstraintUsageSerializer.cs | 82 ----- .../ConstructorExpressionSerializer.cs | 24 -- .../CrossSubsettingSerializer.cs | 124 ------- .../DecisionNodeSerializer.cs | 66 ---- .../AutoGenSerializer/DependencySerializer.cs | 48 --- .../DifferencingSerializer.cs | 48 --- .../AutoGenSerializer/DisjoiningSerializer.cs | 48 --- .../DocumentationSerializer.cs | 12 - .../ElementFilterMembershipSerializer.cs | 81 ----- .../EndFeatureMembershipSerializer.cs | 87 ----- .../EnumerationDefinitionSerializer.cs | 12 - .../EnumerationUsageSerializer.cs | 42 --- .../EventOccurrenceUsageSerializer.cs | 30 -- .../ExhibitStateUsageSerializer.cs | 90 ----- .../AutoGenSerializer/ExpressionSerializer.cs | 24 -- .../FeatureChainExpressionSerializer.cs | 24 -- .../FeatureChainingSerializer.cs | 48 --- .../FeatureInvertingSerializer.cs | 48 --- .../FeatureMembershipSerializer.cs | 87 ----- .../FeatureReferenceExpressionSerializer.cs | 24 -- .../FeatureTypingSerializer.cs | 86 ----- .../FeatureValueSerializer.cs | 81 ----- .../FlowDefinitionSerializer.cs | 96 ----- .../Core/AutoGenSerializer/FlowSerializer.cs | 120 ------- .../AutoGenSerializer/FlowUsageSerializer.cs | 174 --------- .../ForLoopActionUsageSerializer.cs | 66 ---- .../AutoGenSerializer/ForkNodeSerializer.cs | 66 ---- .../FramedConcernMembershipSerializer.cs | 105 ------ .../AutoGenSerializer/FunctionSerializer.cs | 12 - .../IfActionUsageSerializer.cs | 66 ---- .../IncludeUseCaseUsageSerializer.cs | 132 ------- .../IndexExpressionSerializer.cs | 24 -- .../InteractionSerializer.cs | 84 ----- .../InterfaceDefinitionSerializer.cs | 96 ----- .../InterfaceUsageSerializer.cs | 126 ------- .../IntersectingSerializer.cs | 48 --- .../AutoGenSerializer/InvariantSerializer.cs | 38 -- .../InvocationExpressionSerializer.cs | 24 -- .../AutoGenSerializer/ItemUsageSerializer.cs | 30 -- .../AutoGenSerializer/JoinNodeSerializer.cs | 66 ---- .../LiteralBooleanSerializer.cs | 24 -- .../LiteralExpressionSerializer.cs | 24 -- .../LiteralInfinitySerializer.cs | 24 -- .../LiteralIntegerSerializer.cs | 24 -- .../LiteralRationalSerializer.cs | 24 -- .../LiteralStringSerializer.cs | 24 -- .../MembershipExposeSerializer.cs | 48 --- .../MembershipImportSerializer.cs | 48 --- .../AutoGenSerializer/MembershipSerializer.cs | 48 --- .../AutoGenSerializer/MergeNodeSerializer.cs | 66 ---- .../MetadataAccessExpressionSerializer.cs | 24 -- .../MetadataUsageSerializer.cs | 56 --- .../NamespaceExposeSerializer.cs | 48 --- .../NamespaceImportSerializer.cs | 48 --- .../NullExpressionSerializer.cs | 24 -- .../ObjectiveMembershipSerializer.cs | 93 ----- .../OccurrenceUsageSerializer.cs | 30 -- .../OperatorExpressionSerializer.cs | 24 -- .../OwningMembershipSerializer.cs | 75 ---- .../ParameterMembershipSerializer.cs | 93 ----- .../AutoGenSerializer/PartUsageSerializer.cs | 30 -- .../PerformActionUsageSerializer.cs | 72 ---- .../PortConjugationSerializer.cs | 74 ---- .../AutoGenSerializer/PortUsageSerializer.cs | 42 --- .../AutoGenSerializer/PredicateSerializer.cs | 12 - .../RedefinitionSerializer.cs | 110 ------ .../ReferenceSubsettingSerializer.cs | 124 ------- .../ReferenceUsageSerializer.cs | 18 - .../RenderingUsageSerializer.cs | 42 --- ...quirementConstraintMembershipSerializer.cs | 93 ----- .../RequirementDefinitionSerializer.cs | 18 - .../RequirementUsageSerializer.cs | 102 ------ ...irementVerificationMembershipSerializer.cs | 105 ------ .../ResultExpressionMembershipSerializer.cs | 93 ----- .../ReturnParameterMembershipSerializer.cs | 93 ----- .../SatisfyRequirementUsageSerializer.cs | 108 ------ .../SelectExpressionSerializer.cs | 24 -- .../SendActionUsageSerializer.cs | 66 ---- .../SpecializationSerializer.cs | 48 --- .../StakeholderMembershipSerializer.cs | 99 ----- .../StateDefinitionSerializer.cs | 12 - .../StateSubactionMembershipSerializer.cs | 93 ----- .../AutoGenSerializer/StateUsageSerializer.cs | 78 ---- .../Core/AutoGenSerializer/StepSerializer.cs | 12 - .../SubclassificationSerializer.cs | 86 ----- .../SubjectMembershipSerializer.cs | 99 ----- .../AutoGenSerializer/SubsettingSerializer.cs | 86 ----- .../SuccessionAsUsageSerializer.cs | 90 ----- .../SuccessionFlowSerializer.cs | 120 ------- .../SuccessionFlowUsageSerializer.cs | 174 --------- .../AutoGenSerializer/SuccessionSerializer.cs | 84 ----- .../TerminateActionUsageSerializer.cs | 66 ---- .../TextualRepresentationSerializer.cs | 12 - .../TransitionFeatureMembershipSerializer.cs | 93 ----- .../TransitionUsageSerializer.cs | 66 ---- .../TriggerInvocationExpressionSerializer.cs | 24 -- .../TypeFeaturingSerializer.cs | 48 --- .../AutoGenSerializer/UnioningSerializer.cs | 48 --- .../Core/AutoGenSerializer/UsageSerializer.cs | 18 - .../UseCaseDefinitionSerializer.cs | 12 - .../UseCaseUsageSerializer.cs | 120 ------- .../VariantMembershipSerializer.cs | 81 ----- .../VerificationCaseDefinitionSerializer.cs | 12 - .../VerificationCaseUsageSerializer.cs | 106 ------ .../ViewRenderingMembershipSerializer.cs | 93 ----- .../AutoGenSerializer/ViewUsageSerializer.cs | 42 --- .../ViewpointDefinitionSerializer.cs | 18 - .../ViewpointUsageSerializer.cs | 116 ------ .../WhileLoopActionUsageSerializer.cs | 66 ---- .../Core/AutoGenDto/AcceptActionUsage.cs | 16 +- .../Core/AutoGenDto/ActionDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/ActionUsage.cs | 16 +- SysML2.NET/Core/AutoGenDto/ActorMembership.cs | 47 ++- .../Core/AutoGenDto/AllocationDefinition.cs | 27 +- SysML2.NET/Core/AutoGenDto/AllocationUsage.cs | 30 +- .../Core/AutoGenDto/AnalysisCaseDefinition.cs | 2 +- .../Core/AutoGenDto/AnalysisCaseUsage.cs | 24 +- SysML2.NET/Core/AutoGenDto/Annotation.cs | 19 +- .../Core/AutoGenDto/AssertConstraintUsage.cs | 18 +- .../Core/AutoGenDto/AssignmentActionUsage.cs | 16 +- SysML2.NET/Core/AutoGenDto/Association.cs | 16 +- .../Core/AutoGenDto/AssociationStructure.cs | 16 +- SysML2.NET/Core/AutoGenDto/AttributeUsage.cs | 12 +- SysML2.NET/Core/AutoGenDto/Behavior.cs | 2 +- .../Core/AutoGenDto/BindingConnector.cs | 18 +- .../AutoGenDto/BindingConnectorAsUsage.cs | 24 +- .../Core/AutoGenDto/BooleanExpression.cs | 6 +- .../Core/AutoGenDto/CalculationDefinition.cs | 2 +- .../Core/AutoGenDto/CalculationUsage.cs | 20 +- SysML2.NET/Core/AutoGenDto/CaseDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/CaseUsage.cs | 22 +- .../Core/AutoGenDto/CollectExpression.cs | 13 +- .../Core/AutoGenDto/ConcernDefinition.cs | 11 +- SysML2.NET/Core/AutoGenDto/ConcernUsage.cs | 31 +- .../AutoGenDto/ConjugatedPortDefinition.cs | 4 +- .../Core/AutoGenDto/ConjugatedPortTyping.cs | 55 ++- SysML2.NET/Core/AutoGenDto/Conjugation.cs | 26 +- .../Core/AutoGenDto/ConnectionDefinition.cs | 27 +- SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs | 28 +- SysML2.NET/Core/AutoGenDto/Connector.cs | 18 +- .../Core/AutoGenDto/ConstraintDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs | 18 +- .../Core/AutoGenDto/ConstructorExpression.cs | 4 +- SysML2.NET/Core/AutoGenDto/CrossSubsetting.cs | 63 +++- SysML2.NET/Core/AutoGenDto/DecisionNode.cs | 16 +- SysML2.NET/Core/AutoGenDto/Dependency.cs | 18 +- SysML2.NET/Core/AutoGenDto/Differencing.cs | 19 +- SysML2.NET/Core/AutoGenDto/Disjoining.cs | 26 +- SysML2.NET/Core/AutoGenDto/Documentation.cs | 2 +- .../AutoGenDto/ElementFilterMembership.cs | 41 ++- .../Core/AutoGenDto/EndFeatureMembership.cs | 45 ++- .../Core/AutoGenDto/EnumerationDefinition.cs | 11 +- .../Core/AutoGenDto/EnumerationUsage.cs | 14 +- .../Core/AutoGenDto/EventOccurrenceUsage.cs | 12 +- .../Core/AutoGenDto/ExhibitStateUsage.cs | 24 +- SysML2.NET/Core/AutoGenDto/Expression.cs | 4 +- .../Core/AutoGenDto/FeatureChainExpression.cs | 13 +- SysML2.NET/Core/AutoGenDto/FeatureChaining.cs | 19 +- .../Core/AutoGenDto/FeatureInverting.cs | 26 +- .../Core/AutoGenDto/FeatureMembership.cs | 43 ++- .../AutoGenDto/FeatureReferenceExpression.cs | 4 +- SysML2.NET/Core/AutoGenDto/FeatureTyping.cs | 46 ++- SysML2.NET/Core/AutoGenDto/FeatureValue.cs | 41 ++- SysML2.NET/Core/AutoGenDto/Flow.cs | 24 +- SysML2.NET/Core/AutoGenDto/FlowDefinition.cs | 20 +- SysML2.NET/Core/AutoGenDto/FlowUsage.cs | 38 +- .../Core/AutoGenDto/ForLoopActionUsage.cs | 16 +- SysML2.NET/Core/AutoGenDto/ForkNode.cs | 16 +- .../AutoGenDto/FramedConcernMembership.cs | 58 ++- SysML2.NET/Core/AutoGenDto/Function.cs | 2 +- SysML2.NET/Core/AutoGenDto/IfActionUsage.cs | 16 +- .../Core/AutoGenDto/IncludeUseCaseUsage.cs | 30 +- SysML2.NET/Core/AutoGenDto/IndexExpression.cs | 13 +- SysML2.NET/Core/AutoGenDto/Interaction.cs | 18 +- .../Core/AutoGenDto/InterfaceDefinition.cs | 29 +- SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs | 30 +- SysML2.NET/Core/AutoGenDto/Intersecting.cs | 19 +- SysML2.NET/Core/AutoGenDto/Invariant.cs | 6 +- .../Core/AutoGenDto/InvocationExpression.cs | 4 +- SysML2.NET/Core/AutoGenDto/ItemUsage.cs | 10 +- SysML2.NET/Core/AutoGenDto/JoinNode.cs | 16 +- SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs | 4 +- .../Core/AutoGenDto/LiteralExpression.cs | 4 +- SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs | 4 +- SysML2.NET/Core/AutoGenDto/LiteralInteger.cs | 4 +- SysML2.NET/Core/AutoGenDto/LiteralRational.cs | 4 +- SysML2.NET/Core/AutoGenDto/LiteralString.cs | 4 +- SysML2.NET/Core/AutoGenDto/Membership.cs | 19 +- .../Core/AutoGenDto/MembershipExpose.cs | 37 +- .../Core/AutoGenDto/MembershipImport.cs | 19 +- SysML2.NET/Core/AutoGenDto/MergeNode.cs | 16 +- .../AutoGenDto/MetadataAccessExpression.cs | 4 +- SysML2.NET/Core/AutoGenDto/MetadataUsage.cs | 14 +- SysML2.NET/Core/AutoGenDto/NamespaceExpose.cs | 37 +- SysML2.NET/Core/AutoGenDto/NamespaceImport.cs | 19 +- SysML2.NET/Core/AutoGenDto/NullExpression.cs | 4 +- .../Core/AutoGenDto/ObjectiveMembership.cs | 45 ++- SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs | 10 +- .../Core/AutoGenDto/OperatorExpression.cs | 4 +- .../Core/AutoGenDto/OwningMembership.cs | 39 +- .../Core/AutoGenDto/ParameterMembership.cs | 45 ++- SysML2.NET/Core/AutoGenDto/PartUsage.cs | 10 +- .../Core/AutoGenDto/PerformActionUsage.cs | 20 +- SysML2.NET/Core/AutoGenDto/PortConjugation.cs | 37 +- SysML2.NET/Core/AutoGenDto/PortUsage.cs | 12 +- SysML2.NET/Core/AutoGenDto/Predicate.cs | 2 +- SysML2.NET/Core/AutoGenDto/Redefinition.cs | 64 +++- .../Core/AutoGenDto/ReferenceSubsetting.cs | 63 +++- SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs | 10 +- SysML2.NET/Core/AutoGenDto/RenderingUsage.cs | 12 +- .../RequirementConstraintMembership.cs | 45 ++- .../Core/AutoGenDto/RequirementDefinition.cs | 11 +- .../Core/AutoGenDto/RequirementUsage.cs | 29 +- .../RequirementVerificationMembership.cs | 58 ++- .../AutoGenDto/ResultExpressionMembership.cs | 45 ++- .../AutoGenDto/ReturnParameterMembership.cs | 45 ++- .../AutoGenDto/SatisfyRequirementUsage.cs | 31 +- .../Core/AutoGenDto/SelectExpression.cs | 13 +- SysML2.NET/Core/AutoGenDto/SendActionUsage.cs | 16 +- SysML2.NET/Core/AutoGenDto/Specialization.cs | 26 +- .../Core/AutoGenDto/StakeholderMembership.cs | 47 ++- SysML2.NET/Core/AutoGenDto/StateDefinition.cs | 2 +- .../AutoGenDto/StateSubactionMembership.cs | 45 ++- SysML2.NET/Core/AutoGenDto/StateUsage.cs | 18 +- SysML2.NET/Core/AutoGenDto/Step.cs | 2 +- .../Core/AutoGenDto/Subclassification.cs | 46 ++- .../Core/AutoGenDto/SubjectMembership.cs | 47 ++- SysML2.NET/Core/AutoGenDto/Subsetting.cs | 46 ++- SysML2.NET/Core/AutoGenDto/Succession.cs | 18 +- .../Core/AutoGenDto/SuccessionAsUsage.cs | 24 +- SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs | 24 +- .../Core/AutoGenDto/SuccessionFlowUsage.cs | 38 +- .../Core/AutoGenDto/TerminateActionUsage.cs | 16 +- .../Core/AutoGenDto/TextualRepresentation.cs | 2 +- .../AutoGenDto/TransitionFeatureMembership.cs | 45 ++- SysML2.NET/Core/AutoGenDto/TransitionUsage.cs | 16 +- .../AutoGenDto/TriggerInvocationExpression.cs | 4 +- SysML2.NET/Core/AutoGenDto/TypeFeaturing.cs | 26 +- SysML2.NET/Core/AutoGenDto/Unioning.cs | 19 +- SysML2.NET/Core/AutoGenDto/Usage.cs | 8 +- .../Core/AutoGenDto/UseCaseDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs | 24 +- .../Core/AutoGenDto/VariantMembership.cs | 41 ++- .../AutoGenDto/VerificationCaseDefinition.cs | 2 +- .../Core/AutoGenDto/VerificationCaseUsage.cs | 22 +- .../AutoGenDto/ViewRenderingMembership.cs | 45 ++- SysML2.NET/Core/AutoGenDto/ViewUsage.cs | 12 +- .../Core/AutoGenDto/ViewpointDefinition.cs | 11 +- SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs | 31 +- .../Core/AutoGenDto/WhileLoopActionUsage.cs | 16 +- .../Core/AutoGenPoco/AcceptActionUsage.cs | 17 +- .../Core/AutoGenPoco/ActionDefinition.cs | 3 +- SysML2.NET/Core/AutoGenPoco/ActionUsage.cs | 17 +- .../Core/AutoGenPoco/ActorMembership.cs | 47 ++- .../Core/AutoGenPoco/AllocationDefinition.cs | 28 +- .../Core/AutoGenPoco/AllocationUsage.cs | 31 +- .../AutoGenPoco/AnalysisCaseDefinition.cs | 3 +- .../Core/AutoGenPoco/AnalysisCaseUsage.cs | 25 +- .../Core/AutoGenPoco/AnnotatingElement.cs | 1 + SysML2.NET/Core/AutoGenPoco/Annotation.cs | 19 +- .../Core/AutoGenPoco/AssertConstraintUsage.cs | 19 +- .../Core/AutoGenPoco/AssignmentActionUsage.cs | 17 +- SysML2.NET/Core/AutoGenPoco/Association.cs | 17 +- .../Core/AutoGenPoco/AssociationStructure.cs | 17 +- .../Core/AutoGenPoco/AttributeDefinition.cs | 1 + SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs | 13 +- SysML2.NET/Core/AutoGenPoco/Behavior.cs | 3 +- .../Core/AutoGenPoco/BindingConnector.cs | 19 +- .../AutoGenPoco/BindingConnectorAsUsage.cs | 25 +- .../Core/AutoGenPoco/BooleanExpression.cs | 7 +- .../Core/AutoGenPoco/CalculationDefinition.cs | 3 +- .../Core/AutoGenPoco/CalculationUsage.cs | 21 +- SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs | 3 +- SysML2.NET/Core/AutoGenPoco/CaseUsage.cs | 23 +- SysML2.NET/Core/AutoGenPoco/Class.cs | 1 + SysML2.NET/Core/AutoGenPoco/Classifier.cs | 1 + .../Core/AutoGenPoco/CollectExpression.cs | 14 +- SysML2.NET/Core/AutoGenPoco/Comment.cs | 1 + .../Core/AutoGenPoco/ConcernDefinition.cs | 12 +- SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs | 32 +- .../AutoGenPoco/ConjugatedPortDefinition.cs | 5 +- .../Core/AutoGenPoco/ConjugatedPortTyping.cs | 60 +++- SysML2.NET/Core/AutoGenPoco/Conjugation.cs | 25 +- .../Core/AutoGenPoco/ConnectionDefinition.cs | 28 +- .../Core/AutoGenPoco/ConnectionUsage.cs | 29 +- SysML2.NET/Core/AutoGenPoco/Connector.cs | 19 +- .../Core/AutoGenPoco/ConnectorAsUsage.cs | 25 +- .../Core/AutoGenPoco/ConstraintDefinition.cs | 3 +- .../Core/AutoGenPoco/ConstraintUsage.cs | 19 +- .../Core/AutoGenPoco/ConstructorExpression.cs | 5 +- SysML2.NET/Core/AutoGenPoco/ControlNode.cs | 17 +- .../Core/AutoGenPoco/CrossSubsetting.cs | 68 +++- SysML2.NET/Core/AutoGenPoco/DataType.cs | 1 + SysML2.NET/Core/AutoGenPoco/DecisionNode.cs | 17 +- SysML2.NET/Core/AutoGenPoco/Definition.cs | 1 + SysML2.NET/Core/AutoGenPoco/Dependency.cs | 19 +- SysML2.NET/Core/AutoGenPoco/Differencing.cs | 19 +- SysML2.NET/Core/AutoGenPoco/Disjoining.cs | 25 +- SysML2.NET/Core/AutoGenPoco/Documentation.cs | 3 +- SysML2.NET/Core/AutoGenPoco/Element.cs | 1 + .../AutoGenPoco/ElementFilterMembership.cs | 41 ++- .../Core/AutoGenPoco/EndFeatureMembership.cs | 45 ++- .../Core/AutoGenPoco/EnumerationDefinition.cs | 12 +- .../Core/AutoGenPoco/EnumerationUsage.cs | 15 +- .../Core/AutoGenPoco/EventOccurrenceUsage.cs | 13 +- .../Core/AutoGenPoco/ExhibitStateUsage.cs | 25 +- SysML2.NET/Core/AutoGenPoco/Expose.cs | 25 +- SysML2.NET/Core/AutoGenPoco/Expression.cs | 5 +- SysML2.NET/Core/AutoGenPoco/Feature.cs | 1 + .../AutoGenPoco/FeatureChainExpression.cs | 14 +- .../Core/AutoGenPoco/FeatureChaining.cs | 19 +- .../Core/AutoGenPoco/FeatureInverting.cs | 25 +- .../Core/AutoGenPoco/FeatureMembership.cs | 43 ++- .../AutoGenPoco/FeatureReferenceExpression.cs | 5 +- SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs | 48 ++- SysML2.NET/Core/AutoGenPoco/FeatureValue.cs | 41 ++- SysML2.NET/Core/AutoGenPoco/Flow.cs | 25 +- SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs | 21 +- SysML2.NET/Core/AutoGenPoco/FlowEnd.cs | 1 + SysML2.NET/Core/AutoGenPoco/FlowUsage.cs | 39 +- .../Core/AutoGenPoco/ForLoopActionUsage.cs | 17 +- SysML2.NET/Core/AutoGenPoco/ForkNode.cs | 17 +- .../AutoGenPoco/FramedConcernMembership.cs | 58 ++- SysML2.NET/Core/AutoGenPoco/Function.cs | 3 +- SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs | 17 +- SysML2.NET/Core/AutoGenPoco/Import.cs | 7 +- .../Core/AutoGenPoco/IncludeUseCaseUsage.cs | 31 +- .../Core/AutoGenPoco/IndexExpression.cs | 14 +- .../AutoGenPoco/InstantiationExpression.cs | 5 +- SysML2.NET/Core/AutoGenPoco/Interaction.cs | 19 +- .../Core/AutoGenPoco/InterfaceDefinition.cs | 30 +- SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs | 31 +- SysML2.NET/Core/AutoGenPoco/Intersecting.cs | 19 +- SysML2.NET/Core/AutoGenPoco/Invariant.cs | 7 +- .../Core/AutoGenPoco/InvocationExpression.cs | 5 +- SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs | 1 + SysML2.NET/Core/AutoGenPoco/ItemUsage.cs | 11 +- SysML2.NET/Core/AutoGenPoco/JoinNode.cs | 17 +- SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs | 1 + SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs | 5 +- .../Core/AutoGenPoco/LiteralExpression.cs | 5 +- .../Core/AutoGenPoco/LiteralInfinity.cs | 5 +- SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs | 5 +- .../Core/AutoGenPoco/LiteralRational.cs | 5 +- SysML2.NET/Core/AutoGenPoco/LiteralString.cs | 5 +- .../Core/AutoGenPoco/LoopActionUsage.cs | 17 +- SysML2.NET/Core/AutoGenPoco/Membership.cs | 19 +- .../Core/AutoGenPoco/MembershipExpose.cs | 37 +- .../Core/AutoGenPoco/MembershipImport.cs | 19 +- SysML2.NET/Core/AutoGenPoco/MergeNode.cs | 17 +- SysML2.NET/Core/AutoGenPoco/Metaclass.cs | 1 + .../AutoGenPoco/MetadataAccessExpression.cs | 5 +- .../Core/AutoGenPoco/MetadataDefinition.cs | 1 + .../Core/AutoGenPoco/MetadataFeature.cs | 1 + SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs | 15 +- SysML2.NET/Core/AutoGenPoco/Multiplicity.cs | 1 + .../Core/AutoGenPoco/MultiplicityRange.cs | 1 + SysML2.NET/Core/AutoGenPoco/Namespace.cs | 1 + .../Core/AutoGenPoco/NamespaceExpose.cs | 37 +- .../Core/AutoGenPoco/NamespaceImport.cs | 19 +- SysML2.NET/Core/AutoGenPoco/NullExpression.cs | 5 +- .../Core/AutoGenPoco/ObjectiveMembership.cs | 45 ++- .../Core/AutoGenPoco/OccurrenceDefinition.cs | 1 + .../Core/AutoGenPoco/OccurrenceUsage.cs | 11 +- .../Core/AutoGenPoco/OperatorExpression.cs | 5 +- .../Core/AutoGenPoco/OwningMembership.cs | 39 +- SysML2.NET/Core/AutoGenPoco/Package.cs | 1 + .../Core/AutoGenPoco/ParameterMembership.cs | 45 ++- SysML2.NET/Core/AutoGenPoco/PartDefinition.cs | 1 + SysML2.NET/Core/AutoGenPoco/PartUsage.cs | 11 +- SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs | 1 + .../Core/AutoGenPoco/PerformActionUsage.cs | 21 +- .../Core/AutoGenPoco/PortConjugation.cs | 39 +- SysML2.NET/Core/AutoGenPoco/PortDefinition.cs | 1 + SysML2.NET/Core/AutoGenPoco/PortUsage.cs | 13 +- SysML2.NET/Core/AutoGenPoco/Predicate.cs | 3 +- SysML2.NET/Core/AutoGenPoco/Redefinition.cs | 69 +++- .../Core/AutoGenPoco/ReferenceSubsetting.cs | 68 +++- SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs | 11 +- SysML2.NET/Core/AutoGenPoco/Relationship.cs | 1 + .../Core/AutoGenPoco/RenderingDefinition.cs | 1 + SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs | 13 +- .../RequirementConstraintMembership.cs | 45 ++- .../Core/AutoGenPoco/RequirementDefinition.cs | 12 +- .../Core/AutoGenPoco/RequirementUsage.cs | 30 +- .../RequirementVerificationMembership.cs | 58 ++- .../AutoGenPoco/ResultExpressionMembership.cs | 45 ++- .../AutoGenPoco/ReturnParameterMembership.cs | 45 ++- .../AutoGenPoco/SatisfyRequirementUsage.cs | 32 +- .../Core/AutoGenPoco/SelectExpression.cs | 14 +- .../Core/AutoGenPoco/SendActionUsage.cs | 17 +- SysML2.NET/Core/AutoGenPoco/Specialization.cs | 25 +- .../Core/AutoGenPoco/StakeholderMembership.cs | 47 ++- .../Core/AutoGenPoco/StateDefinition.cs | 3 +- .../AutoGenPoco/StateSubactionMembership.cs | 45 ++- SysML2.NET/Core/AutoGenPoco/StateUsage.cs | 19 +- SysML2.NET/Core/AutoGenPoco/Step.cs | 3 +- SysML2.NET/Core/AutoGenPoco/Structure.cs | 1 + .../Core/AutoGenPoco/Subclassification.cs | 51 ++- .../Core/AutoGenPoco/SubjectMembership.cs | 47 ++- SysML2.NET/Core/AutoGenPoco/Subsetting.cs | 51 ++- SysML2.NET/Core/AutoGenPoco/Succession.cs | 19 +- .../Core/AutoGenPoco/SuccessionAsUsage.cs | 25 +- SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs | 25 +- .../Core/AutoGenPoco/SuccessionFlowUsage.cs | 39 +- .../Core/AutoGenPoco/TerminateActionUsage.cs | 17 +- .../Core/AutoGenPoco/TextualRepresentation.cs | 3 +- .../TransitionFeatureMembership.cs | 45 ++- .../Core/AutoGenPoco/TransitionUsage.cs | 17 +- .../TriggerInvocationExpression.cs | 5 +- SysML2.NET/Core/AutoGenPoco/Type.cs | 1 + SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs | 25 +- SysML2.NET/Core/AutoGenPoco/Unioning.cs | 19 +- SysML2.NET/Core/AutoGenPoco/Usage.cs | 9 +- .../Core/AutoGenPoco/UseCaseDefinition.cs | 3 +- SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs | 25 +- .../Core/AutoGenPoco/VariantMembership.cs | 41 ++- .../AutoGenPoco/VerificationCaseDefinition.cs | 3 +- .../Core/AutoGenPoco/VerificationCaseUsage.cs | 23 +- SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs | 1 + .../AutoGenPoco/ViewRenderingMembership.cs | 45 ++- SysML2.NET/Core/AutoGenPoco/ViewUsage.cs | 13 +- .../Core/AutoGenPoco/ViewpointDefinition.cs | 12 +- SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs | 32 +- .../Core/AutoGenPoco/WhileLoopActionUsage.cs | 17 +- SysML2.NET/SysML2.NET.csproj | 1 + 884 files changed, 5930 insertions(+), 30215 deletions(-) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AssociationDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AssociationDeSerializer.cs index 1570e770e..416adac39 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AssociationDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AssociationDeSerializer.cs @@ -214,26 +214,6 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the elementId Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the Association: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { foreach (var arrayItem in featureProperty.EnumerateArray()) @@ -1012,26 +992,6 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the qualifiedName Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the Association: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) { foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) @@ -1061,26 +1021,6 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the shortName Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Association: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) { if (sourceTypeProperty.ValueKind == JsonValueKind.Null) @@ -1105,26 +1045,6 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the sourceType Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Association: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) { foreach (var arrayItem in targetTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/DependencyDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/DependencyDeSerializer.cs index 09f4b28ca..096b32baf 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/DependencyDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/DependencyDeSerializer.cs @@ -457,26 +457,6 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the shortName Json property was not found in the Dependency: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Dependency: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("supplier"u8, out var supplierProperty)) { foreach (var arrayItem in supplierProperty.EnumerateArray()) @@ -497,26 +477,6 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the supplier Json property was not found in the Dependency: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Dependency: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs index a109d21e5..97080515e 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs @@ -1597,26 +1597,6 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the usage Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) - { - foreach (var arrayItem in variantProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) - { - var propertyValue = variantExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.variant.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the variant Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) { foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs index d5fa2bb72..5e26ee9eb 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs @@ -154,31 +154,6 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the elementId Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("general"u8, out var generalProperty)) - { - if (generalProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.General = Guid.Empty; - logger.LogDebug($"the FeatureTyping.General property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) - { - var propertyValue = generalExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.General = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the general Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -448,30 +423,6 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the owningRelationship Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) - { - if (owningTypeProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningType = null; - } - else - { - if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) - { - var propertyValue = owningTypeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningType = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningType Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -510,71 +461,6 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the shortName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("specific"u8, out var specificProperty)) - { - if (specificProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.Specific = Guid.Empty; - logger.LogDebug($"the FeatureTyping.Specific property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) - { - var propertyValue = specificExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Specific = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the specific Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FlowDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FlowDeSerializer.cs index 7d28ee1dd..18274448b 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FlowDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FlowDeSerializer.cs @@ -102,46 +102,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the aliasIds Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) - { - foreach (var arrayItem in associationProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) - { - var propertyValue = associationExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.association.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the association Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -268,26 +228,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the differencingType Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -331,26 +271,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the elementId Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) @@ -1594,26 +1514,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the qualifiedName Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) @@ -1643,26 +1543,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the shortName Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) @@ -1711,26 +1591,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the sourceOutputFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) @@ -1795,26 +1655,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the textualRepresentation Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs index 92833128f..e6ed1845a 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs @@ -199,88 +199,6 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the kind Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the FramedConcernMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the FramedConcernMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -335,31 +253,6 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the ownedConcern Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) - { - if (ownedConstraintProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedConstraint = Guid.Empty; - logger.LogDebug($"the FramedConcernMembership.ownedConstraint property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedConstraintProperty.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) - { - var propertyValue = ownedConstraintExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedConstraint = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedConstraint Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) { foreach (var arrayItem in ownedElementProperty.EnumerateArray()) @@ -380,31 +273,6 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the ownedElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the FramedConcernMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -419,31 +287,6 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the ownedMemberElementId Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the FramedConcernMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -681,31 +524,6 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the referencedConcern Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("referencedConstraint"u8, out var referencedConstraintProperty)) - { - if (referencedConstraintProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.referencedConstraint = Guid.Empty; - logger.LogDebug($"the FramedConcernMembership.referencedConstraint property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (referencedConstraintProperty.TryGetProperty("@id"u8, out var referencedConstraintExternalIdProperty)) - { - var propertyValue = referencedConstraintExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.referencedConstraint = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the referencedConstraint Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) { foreach (var arrayItem in relatedElementProperty.EnumerateArray()) @@ -735,46 +553,6 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the shortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs index 6940054af..a233bc5f8 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs @@ -102,26 +102,6 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the differencingType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs index b9a2abc2e..7d656cdbe 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs @@ -102,26 +102,6 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the differencingType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MembershipDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MembershipDeSerializer.cs index 2d26f987f..5ab23a1b9 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MembershipDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MembershipDeSerializer.cs @@ -519,46 +519,6 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the shortName Json property was not found in the Membership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Membership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Membership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs index 9c23ceb29..2418ccc23 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs @@ -190,54 +190,6 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isLibraryElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the OwningMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) { if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) @@ -263,15 +215,6 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the membershipOwningNamespace Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -576,46 +519,6 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the shortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs index 7a19c3736..dbb3051ce 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs @@ -154,31 +154,6 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the elementId Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("general"u8, out var generalProperty)) - { - if (generalProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.General = Guid.Empty; - logger.LogDebug($"the ReferenceSubsetting.General property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) - { - var propertyValue = generalExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.General = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the general Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -328,30 +303,6 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the owner Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningFeature"u8, out var owningFeatureProperty)) - { - if (owningFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningFeature = null; - } - else - { - if (owningFeatureProperty.TryGetProperty("@id"u8, out var owningFeatureExternalIdProperty)) - { - var propertyValue = owningFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) { if (owningMembershipProperty.ValueKind == JsonValueKind.Null) @@ -448,30 +399,6 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the owningRelationship Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) - { - if (owningTypeProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningType = null; - } - else - { - if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) - { - var propertyValue = owningTypeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningType = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningType Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -560,121 +487,6 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the shortName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("specific"u8, out var specificProperty)) - { - if (specificProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.Specific = Guid.Empty; - logger.LogDebug($"the ReferenceSubsetting.Specific property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) - { - var propertyValue = specificExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Specific = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the specific Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("subsettedFeature"u8, out var subsettedFeatureProperty)) - { - if (subsettedFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.SubsettedFeature = Guid.Empty; - logger.LogDebug($"the ReferenceSubsetting.SubsettedFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureExternalIdProperty)) - { - var propertyValue = subsettedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.SubsettedFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the subsettedFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("subsettingFeature"u8, out var subsettingFeatureProperty)) - { - if (subsettingFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.SubsettingFeature = Guid.Empty; - logger.LogDebug($"the ReferenceSubsetting.SubsettingFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureExternalIdProperty)) - { - var propertyValue = subsettingFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.SubsettingFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the subsettingFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs index dd1df2634..9d6114046 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs @@ -142,26 +142,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the assumedConstraint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -182,30 +162,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the chainingFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("constraintDefinition"u8, out var constraintDefinitionProperty)) - { - if (constraintDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.constraintDefinition = null; - } - else - { - if (constraintDefinitionProperty.TryGetProperty("@id"u8, out var constraintDefinitionExternalIdProperty)) - { - var propertyValue = constraintDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.constraintDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the constraintDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { if (crossFeatureProperty.ValueKind == JsonValueKind.Null) @@ -239,35 +195,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the declaredName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) - { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the declaredShortName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -288,26 +215,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the differencingType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -520,30 +427,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the framedConcern Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) @@ -848,18 +731,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isUnique Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2230,30 +2101,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the portionKind Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) - { - if (predicateProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.predicate = null; - } - else - { - if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) - { - var propertyValue = predicateExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.predicate = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the predicate Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -2432,26 +2279,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the textualRepresentation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs index bafae0d16..8c524c318 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs @@ -122,26 +122,6 @@ internal static ISelectExpression DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the argument Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -224,26 +204,6 @@ internal static ISelectExpression DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the differencingType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs index 7d0a0800e..08b87b06a 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs @@ -154,31 +154,6 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the elementId Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("general"u8, out var generalProperty)) - { - if (generalProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.General = Guid.Empty; - logger.LogDebug($"the Subclassification.General property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) - { - var propertyValue = generalExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.General = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the general Json property was not found in the Subclassification: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -448,30 +423,6 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the owningRelationship Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) - { - if (owningTypeProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningType = null; - } - else - { - if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) - { - var propertyValue = owningTypeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningType = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningType Json property was not found in the Subclassification: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -510,51 +461,6 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the shortName Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Subclassification: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("specific"u8, out var specificProperty)) - { - if (specificProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.Specific = Guid.Empty; - logger.LogDebug($"the Subclassification.Specific property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) - { - var propertyValue = specificExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Specific = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the specific Json property was not found in the Subclassification: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("subclassifier"u8, out var subclassifierProperty)) { if (subclassifierProperty.ValueKind == JsonValueKind.Null) @@ -605,26 +511,6 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the superclassifier Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Subclassification: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs index 6603632e3..6111bc8f7 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs @@ -102,26 +102,6 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the aliasIds Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("annotatedElement"u8, out var annotatedElementProperty)) - { - foreach (var arrayItem in annotatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var annotatedElementExternalIdProperty)) - { - var propertyValue = annotatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.annotatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the annotatedElement Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("annotation"u8, out var annotationProperty)) { foreach (var arrayItem in annotationProperty.EnumerateArray()) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/UsageDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/UsageDeSerializer.cs index 4fca12fd8..2e6c3e65b 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/UsageDeSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/UsageDeSerializer.cs @@ -672,18 +672,6 @@ internal static IUsage DeSerialize(JsonElement jsonElement, SerializationModeKin logger.LogDebug("the isUnique Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the Usage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2043,26 +2031,6 @@ internal static IUsage DeSerialize(JsonElement jsonElement, SerializationModeKin logger.LogDebug("the textualRepresentation Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the Usage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Association.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Association.cs index d9a7e722c..4492698c0 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Association.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Association.cs @@ -127,7 +127,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.associationEnd; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -507,7 +507,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedType; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -535,7 +535,11 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType.HasValue ? [this.sourceType.Value] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -553,7 +557,11 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetType; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Dependency.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Dependency.cs index 1d52d4d39..2ec9d8c31 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Dependency.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Dependency.cs @@ -246,7 +246,14 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDependency.Client")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.Client; + set + { + this.Client = value; + } + } /// /// The Element or Elements on which the client Elements depend in some respect. @@ -263,7 +270,14 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDependency.Supplier")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.Supplier; + set + { + this.Supplier = value; + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/EnumerationDefinition.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/EnumerationDefinition.cs index 0a98030ff..f464ccd92 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/EnumerationDefinition.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/EnumerationDefinition.cs @@ -259,7 +259,14 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1590978283180_265362_419", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEnumerationDefinition.IsVariation")] [Implements(implementation: "IDefinition.IsVariation")] - bool Systems.DefinitionAndUsage.IDefinition.IsVariation { get; set; } + bool Systems.DefinitionAndUsage.IDefinition.IsVariation + { + get => this.IsVariation; + set + { + this.IsVariation = value; + } + } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -765,7 +772,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [RedefinedByProperty("IEnumerationDefinition.EnumeratedValue")] [Implements(implementation: "IDefinition.Variant")] - public List variant { get; internal set; } = []; + List Systems.DefinitionAndUsage.IDefinition.variant => this.enumeratedValue; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FeatureTyping.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FeatureTyping.cs index 6184f9ff5..ffa0795ff 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FeatureTyping.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FeatureTyping.cs @@ -96,7 +96,14 @@ public partial class FeatureTyping : IFeatureTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IFeatureTyping.Type")] [Implements(implementation: "ISpecialization.General")] - public Guid General { get; set; } + Guid Core.Types.ISpecialization.General + { + get => this.Type; + set + { + this.Type = value; + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -227,7 +234,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IFeatureTyping.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? owningType { get; internal set; } + Guid? Core.Types.ISpecialization.owningType => this.owningFeature.HasValue ? this.owningFeature.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -266,7 +273,18 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific = value[0]; + } + + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -275,7 +293,14 @@ public partial class FeatureTyping : IFeatureTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureTyping.TypedFeature")] [Implements(implementation: "ISpecialization.Specific")] - public Guid Specific { get; set; } + Guid Core.Types.ISpecialization.Specific + { + get => this.TypedFeature; + set + { + this.TypedFeature = value; + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -284,7 +309,18 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Flow.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Flow.cs index bedd547b6..57dba1544 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Flow.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Flow.cs @@ -62,7 +62,7 @@ public partial class Flow : IFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List association { get; internal set; } = []; + List Kernel.Connectors.IConnector.association => this.interaction; /// /// The Behaviors that type this Step. @@ -71,7 +71,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.interaction; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -151,7 +151,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -185,7 +185,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.connectorEnd; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -788,7 +788,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedFeature; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -816,7 +816,11 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature.HasValue ? [this.sourceFeature.Value] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -842,7 +846,11 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetFeature; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -880,7 +888,7 @@ public partial class Flow : IFlow [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Kernel.Connectors.IConnector)this).association; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FramedConcernMembership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FramedConcernMembership.cs index f2afad4e1..fdf66bc97 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FramedConcernMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FramedConcernMembership.cs @@ -128,7 +128,14 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_2_12e503d9_1584048161309_821854_390", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IFramedConcernMembership.Kind")] [Implements(implementation: "IRequirementConstraintMembership.Kind")] - RequirementConstraintKind IRequirementConstraintMembership.Kind { get; set; } + RequirementConstraintKind IRequirementConstraintMembership.Kind + { + get => this.Kind; + set + { + this.Kind = value; + } + } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -137,7 +144,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -145,7 +156,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -153,7 +164,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -164,7 +179,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -172,7 +187,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -209,7 +228,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IFramedConcernMembership.OwnedConcern")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public Guid ownedConstraint { get; internal set; } + Guid IRequirementConstraintMembership.ownedConstraint => this.ownedConcern; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -228,7 +247,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -246,7 +265,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => ((SysML2.NET.Core.DTO.Systems.Requirements.IRequirementConstraintMembership)this).ownedConstraint; /// /// The name of the ownedMemberElement. @@ -361,7 +380,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IFramedConcernMembership.ReferencedConcern")] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public Guid referencedConstraint { get; internal set; } + Guid IRequirementConstraintMembership.referencedConstraint => this.referencedConcern; /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -388,7 +407,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -397,7 +420,18 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralInteger.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralInteger.cs index e6d4e5c36..efe9f18dc 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralInteger.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralInteger.cs @@ -60,7 +60,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,7 +121,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralRational.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralRational.cs index 8bc176e61..828c64052 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralRational.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralRational.cs @@ -60,7 +60,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,7 +121,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Membership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Membership.cs index 9288ceee3..6dc6ae7ae 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Membership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Membership.cs @@ -281,7 +281,11 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -290,7 +294,18 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.MemberElement]; + set + { + if (value.Count != 0) + { + this.MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/OwningMembership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/OwningMembership.cs index 520c74430..2cd617ba8 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/OwningMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/OwningMembership.cs @@ -120,7 +120,11 @@ public partial class OwningMembership : IOwningMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid IMembership.MemberElement + { + get => this.ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -128,7 +132,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -136,7 +140,11 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -154,7 +162,11 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -313,7 +325,11 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -322,7 +338,18 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ReferenceSubsetting.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ReferenceSubsetting.cs index 64523e472..f9b0888d3 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ReferenceSubsetting.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/ReferenceSubsetting.cs @@ -97,7 +97,14 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubsetting.SubsettedFeature")] [Implements(implementation: "ISpecialization.General")] - public Guid General { get; set; } + Guid Core.Types.ISpecialization.General + { + get => ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettedFeature; + set + { + ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettedFeature = value; + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -185,7 +192,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [RedefinedByProperty("IReferenceSubsetting.ReferencingFeature")] [Implements(implementation: "ISubsetting.OwningFeature")] - public Guid? owningFeature { get; internal set; } + Guid? ISubsetting.owningFeature => this.referencingFeature; /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -229,7 +236,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? owningType { get; internal set; } + Guid? Core.Types.ISpecialization.owningType => ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).owningFeature.HasValue ? ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).owningFeature.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -285,7 +292,18 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific = value[0]; + } + + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -294,7 +312,14 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubsetting.SubsettingFeature")] [Implements(implementation: "ISpecialization.Specific")] - public Guid Specific { get; set; } + Guid Core.Types.ISpecialization.Specific + { + get => ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettingFeature; + set + { + ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettingFeature = value; + } + } /// /// The Feature that is subsetted by the subsettingFeature of this Subsetting. @@ -303,7 +328,14 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_563969_43273")] [RedefinedByProperty("IReferenceSubsetting.ReferencedFeature")] [Implements(implementation: "ISubsetting.SubsettedFeature")] - public Guid SubsettedFeature { get; set; } + Guid ISubsetting.SubsettedFeature + { + get => this.ReferencedFeature; + set + { + this.ReferencedFeature = value; + } + } /// /// The Feature that is a subset of the subsettedFeature of this Subsetting. @@ -312,7 +344,11 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IReferenceSubsetting.ReferencingFeature")] [Implements(implementation: "ISubsetting.SubsettingFeature")] - public Guid SubsettingFeature { get; set; } + Guid ISubsetting.SubsettingFeature + { + get => this.referencingFeature; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -321,7 +357,18 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/RequirementUsage.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/RequirementUsage.cs index f1c917183..398683301 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/RequirementUsage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/RequirementUsage.cs @@ -80,7 +80,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -103,7 +103,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public Guid? constraintDefinition { get; internal set; } + Guid? Systems.Constraints.IConstraintUsage.constraintDefinition => this.requirementDefinition.HasValue ? this.requirementDefinition.Value : Guid.Empty; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -131,7 +131,14 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementUsage.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -142,7 +149,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -164,7 +171,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -268,7 +275,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? Kernel.Functions.IExpression.function => ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.HasValue ? ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -459,7 +466,11 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1066,7 +1077,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? predicate { get; internal set; } + Guid? Kernel.Functions.IBooleanExpression.predicate => ((SysML2.NET.Core.DTO.Systems.Constraints.IConstraintUsage)this).constraintDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Constraints.IConstraintUsage)this).constraintDefinition.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1173,7 +1184,7 @@ public partial class RequirementUsage : IRequirementUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/SelectExpression.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/SelectExpression.cs index b4f157d68..7de13805d 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/SelectExpression.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/SelectExpression.cs @@ -70,7 +70,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -131,7 +131,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -443,7 +443,14 @@ public partial class SelectExpression : ISelectExpression [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)] [RedefinedByProperty("ISelectExpression.Operator")] [Implements(implementation: "IOperatorExpression.Operator")] - string IOperatorExpression.Operator { get; set; } + string IOperatorExpression.Operator + { + get => this.Operator; + set + { + this.Operator = value; + } + } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Subclassification.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Subclassification.cs index e27b70961..f9e876666 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Subclassification.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Subclassification.cs @@ -94,7 +94,14 @@ public partial class Subclassification : ISubclassification [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubclassification.Superclassifier")] [Implements(implementation: "ISpecialization.General")] - public Guid General { get; set; } + Guid Core.Types.ISpecialization.General + { + get => this.Superclassifier; + set + { + this.Superclassifier = value; + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -224,7 +231,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubclassification.OwningClassifier")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? owningType { get; internal set; } + Guid? Core.Types.ISpecialization.owningType => this.owningClassifier.HasValue ? this.owningClassifier.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -263,7 +270,18 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific = value[0]; + } + + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -272,7 +290,14 @@ public partial class Subclassification : ISubclassification [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubclassification.Subclassifier")] [Implements(implementation: "ISpecialization.Specific")] - public Guid Specific { get; set; } + Guid Core.Types.ISpecialization.Specific + { + get => this.Subclassifier; + set + { + this.Subclassifier = value; + } + } /// /// The more specific Classifier in this Subclassification. @@ -297,7 +322,18 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/TextualRepresentation.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/TextualRepresentation.cs index eea9fb431..8e31e69b4 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/TextualRepresentation.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/TextualRepresentation.cs @@ -82,7 +82,7 @@ public partial class TextualRepresentation : ITextualRepresentation [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("ITextualRepresentation.RepresentedElement")] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List annotatedElement { get; internal set; } = []; + List IAnnotatingElement.annotatedElement => [this.representedElement]; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Usage.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Usage.cs index 2fe52c1c0..142615bbd 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Usage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Usage.cs @@ -380,7 +380,11 @@ public partial class Usage : IUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -992,7 +996,7 @@ public partial class Usage : IUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => this.definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs index aaf9c0e14..4eeaf66dc 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs @@ -62,8 +62,7 @@ public Core.POCO.Systems.Enumerations.EnumerationDefinition Create(Core.DTO.Syst poco.IsAbstract = dto.IsAbstract; poco.IsImpliedIncluded = dto.IsImpliedIncluded; poco.IsSufficient = dto.IsSufficient; - ((Core.POCO.Systems.Enumerations.IEnumerationDefinition)poco).IsVariation = ((Core.DTO.Systems.Enumerations.IEnumerationDefinition)dto).IsVariation; - ((Core.POCO.Systems.DefinitionAndUsage.IDefinition)poco).IsVariation = ((Core.DTO.Systems.DefinitionAndUsage.IDefinition)dto).IsVariation; + poco.IsVariation = dto.IsVariation; return poco; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs index 56fa97d65..81a74e092 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs @@ -61,10 +61,7 @@ public Core.POCO.Systems.Requirements.FramedConcernMembership Create(Core.DTO.Sy poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - ((Core.POCO.Systems.Requirements.IFramedConcernMembership)poco).Kind = ((Core.DTO.Systems.Requirements.IFramedConcernMembership)dto).Kind; - ((Core.POCO.Systems.Requirements.IRequirementConstraintMembership)poco).Kind = ((Core.DTO.Systems.Requirements.IRequirementConstraintMembership)dto).Kind; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; + poco.Kind = dto.Kind; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/OwningMembershipFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/OwningMembershipFactory.cs index 7926722f1..9141e4714 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/OwningMembershipFactory.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/OwningMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Root.Namespaces.OwningMembership Create(Core.DTO.Root.Namespace poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/RequirementUsageFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/RequirementUsageFactory.cs index 696f52e2c..a9a1f8111 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/RequirementUsageFactory.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/RequirementUsageFactory.cs @@ -57,7 +57,6 @@ public Core.POCO.Systems.Requirements.RequirementUsage Create(Core.DTO.Systems.R poco.Id = dto.Id; poco.AliasIds = dto.AliasIds; poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; poco.Direction = dto.Direction; poco.ElementId = dto.ElementId; poco.IsAbstract = dto.IsAbstract; @@ -71,7 +70,6 @@ public Core.POCO.Systems.Requirements.RequirementUsage Create(Core.DTO.Systems.R poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; poco.ReqId = dto.ReqId; diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/SelectExpressionFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/SelectExpressionFactory.cs index 237c2f0f5..afb2eddc1 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/SelectExpressionFactory.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/SelectExpressionFactory.cs @@ -71,8 +71,7 @@ public Core.POCO.Kernel.Expressions.SelectExpression Create(Core.DTO.Kernel.Expr poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; poco.IsVariable = dto.IsVariable; - ((Core.POCO.Kernel.Expressions.ISelectExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.ISelectExpression)dto).Operator; - ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator; + poco.Operator = dto.Operator; return poco; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/UsageFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/UsageFactory.cs index 734e3a46b..f34aa5a44 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/UsageFactory.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/UsageFactory.cs @@ -70,7 +70,6 @@ public Core.POCO.Systems.DefinitionAndUsage.Usage Create(Core.DTO.Systems.Defini poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; return poco; 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 163d17d5a..f743d7fdd 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/AnnotatingElement.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/AnnotatingElement.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Annotations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; 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 afc565084..7e843483a 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Association.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Association.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Associations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -131,7 +132,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -511,7 +512,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -539,7 +540,11 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType != null ? [this.sourceType] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -557,7 +562,11 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetType]; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the 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 006059c19..ded1b9edc 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Dependency.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Dependency.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Dependencies using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -248,7 +249,14 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDependency.Client")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [.. this.Client]; + set + { + this.Client = value; + } + } /// /// The Element or Elements on which the client Elements depend in some respect. @@ -265,7 +273,14 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDependency.Supplier")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.Supplier]; + set + { + this.Supplier = value; + } + } /// /// The TextualRepresentations that annotate this Element. 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 31cd19d13..db2e84b9a 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/EnumerationDefinition.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/EnumerationDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Enumerations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -285,7 +286,14 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1590978283180_265362_419", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEnumerationDefinition.IsVariation")] [Implements(implementation: "IDefinition.IsVariation")] - bool Systems.DefinitionAndUsage.IDefinition.IsVariation { get; set; } + bool Systems.DefinitionAndUsage.IDefinition.IsVariation + { + get => this.IsVariation; + set + { + this.IsVariation = value; + } + } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -791,7 +799,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [RedefinedByProperty("IEnumerationDefinition.EnumeratedValue")] [Implements(implementation: "IDefinition.Variant")] - public List variant => this.ComputeVariant(); + List Systems.DefinitionAndUsage.IDefinition.variant => [.. this.enumeratedValue]; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then 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 4129388e7..9c1d526d2 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Feature.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Feature.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Features using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Types; 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 cc0299823..9bfc9e119 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FeatureTyping.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FeatureTyping.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Features using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Root.Annotations; @@ -99,7 +100,14 @@ public partial class FeatureTyping : IFeatureTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IFeatureTyping.Type")] [Implements(implementation: "ISpecialization.General")] - public IType General { get; set; } + IType Core.Types.ISpecialization.General + { + get => this.Type; + set + { + this.Type = value; + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -230,7 +238,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IFeatureTyping.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType owningType => this.ComputeOwningType(); + IType Core.Types.ISpecialization.owningType => this.owningFeature; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -269,7 +277,17 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific = firstValue; + } + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -278,7 +296,17 @@ public partial class FeatureTyping : IFeatureTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureTyping.TypedFeature")] [Implements(implementation: "ISpecialization.Specific")] - public IType Specific { get; set; } + IType Core.Types.ISpecialization.Specific + { + get => this.TypedFeature; + set + { + if (value is IFeature castedValue) + { + this.TypedFeature = castedValue; + } + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -287,7 +315,17 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. 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 80a56b088..e1463d10c 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Flow.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Flow.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Interactions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Classifiers; @@ -69,7 +70,7 @@ public partial class Flow : IFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List association => this.ComputeAssociation(); + List Kernel.Connectors.IConnector.association => [.. this.interaction]; /// /// The Behaviors that type this Step. @@ -78,7 +79,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.interaction]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -158,7 +159,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -192,7 +193,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -795,7 +796,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -823,7 +824,11 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -849,7 +854,11 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -887,7 +896,7 @@ public partial class Flow : IFlow [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Kernel.Connectors.IConnector)this).association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the 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 e3e9b0adb..6aea3cc1a 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FramedConcernMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FramedConcernMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.Systems.Requirements; @@ -134,7 +135,14 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_2_12e503d9_1584048161309_821854_390", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IFramedConcernMembership.Kind")] [Implements(implementation: "IRequirementConstraintMembership.Kind")] - RequirementConstraintKind IRequirementConstraintMembership.Kind { get; set; } + RequirementConstraintKind IRequirementConstraintMembership.Kind + { + get => this.Kind; + set + { + this.Kind = value; + } + } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -143,7 +151,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -151,7 +163,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -159,7 +171,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -170,7 +186,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -178,7 +194,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -215,7 +235,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IFramedConcernMembership.OwnedConcern")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public IConstraintUsage ownedConstraint => this.ComputeOwnedConstraint(); + IConstraintUsage IRequirementConstraintMembership.ownedConstraint => this.ownedConcern; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -234,7 +254,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -252,7 +272,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => ((SysML2.NET.Core.POCO.Systems.Requirements.IRequirementConstraintMembership)this).ownedConstraint; /// /// The name of the ownedMemberElement. @@ -367,7 +387,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IFramedConcernMembership.ReferencedConcern")] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public IConstraintUsage referencedConstraint => this.ComputeReferencedConstraint(); + IConstraintUsage IRequirementConstraintMembership.referencedConstraint => this.referencedConcern; /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -394,7 +414,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -403,7 +427,17 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. 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 841d4856b..850bab5aa 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralInteger.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralInteger.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -67,7 +68,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -128,7 +129,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the 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 61c54fea3..43fb70c4b 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralRational.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralRational.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -67,7 +68,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -128,7 +129,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the 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 f299d450b..f078b967a 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Membership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Membership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; @@ -282,7 +283,11 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.membershipOwningNamespace != null ? [this.membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -291,7 +296,17 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.MemberElement != null ? [this.MemberElement] : []; + set + { + if (value.Count != 0) + { + this.MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. 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 34d194ece..40f5bf6f7 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/MultiplicityRange.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/MultiplicityRange.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Multiplicities using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; 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 a2676641e..5b88987bf 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/OwningMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/OwningMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; @@ -122,7 +123,11 @@ public partial class OwningMembership : IOwningMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement IMembership.MemberElement + { + get => this.ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -130,7 +135,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -138,7 +143,11 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -156,7 +165,11 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -315,7 +328,11 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.membershipOwningNamespace != null ? [this.membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -324,7 +341,17 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. 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 710fee411..6ca20a99a 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ReferenceSubsetting.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ReferenceSubsetting.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Features using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Root.Annotations; @@ -101,7 +102,17 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubsetting.SubsettedFeature")] [Implements(implementation: "ISpecialization.General")] - public IType General { get; set; } + IType Core.Types.ISpecialization.General + { + get => ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettedFeature; + set + { + if (value is IFeature castedValue) + { + ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettedFeature = castedValue; + } + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -189,7 +200,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [RedefinedByProperty("IReferenceSubsetting.ReferencingFeature")] [Implements(implementation: "ISubsetting.OwningFeature")] - public IFeature owningFeature => this.ComputeOwningFeature(); + IFeature ISubsetting.owningFeature => this.referencingFeature; /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -233,7 +244,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType owningType => this.ComputeOwningType(); + IType Core.Types.ISpecialization.owningType => ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).owningFeature; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -289,7 +300,17 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific = firstValue; + } + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -298,7 +319,17 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubsetting.SubsettingFeature")] [Implements(implementation: "ISpecialization.Specific")] - public IType Specific { get; set; } + IType Core.Types.ISpecialization.Specific + { + get => ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettingFeature; + set + { + if (value is IFeature castedValue) + { + ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettingFeature = castedValue; + } + } + } /// /// The Feature that is subsetted by the subsettingFeature of this Subsetting. @@ -307,7 +338,14 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_563969_43273")] [RedefinedByProperty("IReferenceSubsetting.ReferencedFeature")] [Implements(implementation: "ISubsetting.SubsettedFeature")] - public IFeature SubsettedFeature { get; set; } + IFeature ISubsetting.SubsettedFeature + { + get => this.ReferencedFeature; + set + { + this.ReferencedFeature = value; + } + } /// /// The Feature that is a subset of the subsettedFeature of this Subsetting. @@ -316,7 +354,11 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IReferenceSubsetting.ReferencingFeature")] [Implements(implementation: "ISubsetting.SubsettingFeature")] - public IFeature SubsettingFeature { get; set; } + IFeature ISubsetting.SubsettingFeature + { + get => this.referencingFeature; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -325,7 +367,17 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. 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 cf45508a3..c5d713f23 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/RequirementUsage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/RequirementUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -109,7 +110,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -132,7 +133,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public IPredicate constraintDefinition => this.ComputeConstraintDefinition(); + IPredicate Systems.Constraints.IConstraintUsage.constraintDefinition => this.requirementDefinition; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -160,7 +161,14 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementUsage.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -171,7 +179,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -193,7 +201,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -297,7 +305,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction Kernel.Functions.IExpression.function => ((SysML2.NET.Core.POCO.Kernel.Functions.IBooleanExpression)this).predicate; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -488,7 +496,11 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1095,7 +1107,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate predicate => this.ComputePredicate(); + IPredicate Kernel.Functions.IBooleanExpression.predicate => ((SysML2.NET.Core.POCO.Systems.Constraints.IConstraintUsage)this).constraintDefinition; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1202,7 +1214,7 @@ public partial class RequirementUsage : IRequirementUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the 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 ccb87dd6a..86c207f6c 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/SelectExpression.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/SelectExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -77,7 +78,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -138,7 +139,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -450,7 +451,14 @@ public partial class SelectExpression : ISelectExpression [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)] [RedefinedByProperty("ISelectExpression.Operator")] [Implements(implementation: "IOperatorExpression.Operator")] - string IOperatorExpression.Operator { get; set; } + string IOperatorExpression.Operator + { + get => this.Operator; + set + { + this.Operator = value; + } + } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. 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 d075a2759..43fe7deb9 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Subclassification.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Subclassification.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Classifiers using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Root.Annotations; @@ -97,7 +98,17 @@ public partial class Subclassification : ISubclassification [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubclassification.Superclassifier")] [Implements(implementation: "ISpecialization.General")] - public IType General { get; set; } + IType Core.Types.ISpecialization.General + { + get => this.Superclassifier; + set + { + if (value is IClassifier castedValue) + { + this.Superclassifier = castedValue; + } + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -227,7 +238,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubclassification.OwningClassifier")] [Implements(implementation: "ISpecialization.OwningType")] - public IType owningType => this.ComputeOwningType(); + IType Core.Types.ISpecialization.owningType => this.owningClassifier; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -266,7 +277,17 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific = firstValue; + } + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -275,7 +296,17 @@ public partial class Subclassification : ISubclassification [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubclassification.Subclassifier")] [Implements(implementation: "ISpecialization.Specific")] - public IType Specific { get; set; } + IType Core.Types.ISpecialization.Specific + { + get => this.Subclassifier; + set + { + if (value is IClassifier castedValue) + { + this.Subclassifier = castedValue; + } + } + } /// /// The more specific Classifier in this Subclassification. @@ -300,7 +331,17 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. 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 300dc4990..99f0269d0 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/TextualRepresentation.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/TextualRepresentation.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Annotations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; @@ -84,7 +85,7 @@ public partial class TextualRepresentation : ITextualRepresentation [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("ITextualRepresentation.RepresentedElement")] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List annotatedElement => this.ComputeAnnotatedElement(); + List IAnnotatingElement.annotatedElement => this.representedElement != null ? [this.representedElement] : []; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the 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 413f6221d..bb2f5a021 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Usage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Usage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.DefinitionAndUsage using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Classifiers; @@ -406,7 +407,11 @@ public partial class Usage : IUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1018,7 +1023,7 @@ public partial class Usage : IUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. this.definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/AssociationExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/AssociationExtensions.cs index eb055ce69..c62b19ae3 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/AssociationExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/AssociationExtensions.cs @@ -101,22 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -193,26 +177,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Associations. poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -241,8 +205,6 @@ public static Core.DTO.Kernel.Associations.Association ToDto(this Core.POCO.Kern dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/DependencyExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/DependencyExtensions.cs index e1e1e651b..a4be9c0a2 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/DependencyExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/DependencyExtensions.cs @@ -105,14 +105,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - var supplierToDelete = poco.Supplier.Select(x => x.Id).Except(dto.Supplier); foreach (var identifier in supplierToDelete) @@ -121,14 +113,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t } - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -215,16 +199,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - var supplierToAdd = dto.Supplier.Except(poco.Supplier.Select(x => x.Id)); foreach (var identifier in supplierToAdd) @@ -235,16 +209,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De } } - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -272,9 +236,7 @@ public static Core.DTO.Root.Dependencies.Dependency ToDto(this Core.POCO.Root.De dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); dto.Supplier = poco.Supplier.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs index c7e6df9a8..7d4a889f4 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs @@ -81,9 +81,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsSufficient = dto.IsSufficient; - ((Core.POCO.Systems.Enumerations.IEnumerationDefinition)poco).IsVariation = ((Core.DTO.Systems.Enumerations.IEnumerationDefinition)dto).IsVariation; - - ((Core.POCO.Systems.DefinitionAndUsage.IDefinition)poco).IsVariation = ((Core.DTO.Systems.DefinitionAndUsage.IDefinition)dto).IsVariation; + poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -174,8 +172,7 @@ public static Core.DTO.Systems.Enumerations.EnumerationDefinition ToDto(this Cor dto.IsAbstract = poco.IsAbstract; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.IsSufficient = poco.IsSufficient; - ((Core.DTO.Systems.Enumerations.IEnumerationDefinition)dto).IsVariation = ((Core.POCO.Systems.Enumerations.IEnumerationDefinition)poco).IsVariation; - ((Core.DTO.Systems.DefinitionAndUsage.IDefinition)dto).IsVariation = ((Core.POCO.Systems.DefinitionAndUsage.IDefinition)poco).IsVariation; + dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs index 87fc2ee5a..efe734f5e 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -151,15 +135,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur Lazy lazyPoco; - if (cache.TryGetValue(dto.General, out lazyPoco)) - { - poco.General = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.General = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -198,35 +173,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - if (cache.TryGetValue(dto.Specific, out lazyPoco)) - { - poco.Specific = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.Specific = null; - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - if (cache.TryGetValue(dto.Type, out lazyPoco)) { poco.Type = (Core.POCO.Core.Types.Type)lazyPoco.Value; @@ -265,16 +211,12 @@ public static Core.DTO.Core.Features.FeatureTyping ToDto(this Core.POCO.Core.Fea dto.DeclaredName = poco.DeclaredName; dto.DeclaredShortName = poco.DeclaredShortName; dto.ElementId = poco.ElementId; - dto.General = poco.General.Id; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Specific = poco.Specific.Id; - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Type = poco.Type.Id; dto.TypedFeature = poco.TypedFeature.Id; diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FlowExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FlowExtensions.cs index 41e08951e..93d2d21d6 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FlowExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FlowExtensions.cs @@ -119,22 +119,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -211,26 +195,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions. poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -268,8 +232,6 @@ public static Core.DTO.Kernel.Interactions.Flow ToDto(this Core.POCO.Kernel.Inte dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs index 715e2131c..e3e89d51b 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs @@ -79,13 +79,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - ((Core.POCO.Systems.Requirements.IFramedConcernMembership)poco).Kind = ((Core.DTO.Systems.Requirements.IFramedConcernMembership)dto).Kind; - - ((Core.POCO.Systems.Requirements.IRequirementConstraintMembership)poco).Kind = ((Core.DTO.Systems.Requirements.IRequirementConstraintMembership)dto).Kind; - - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; + poco.Kind = dto.Kind; var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); @@ -105,22 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -161,15 +139,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -208,26 +177,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -250,17 +199,11 @@ public static Core.DTO.Systems.Requirements.FramedConcernMembership ToDto(this C dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - ((Core.DTO.Systems.Requirements.IFramedConcernMembership)dto).Kind = ((Core.POCO.Systems.Requirements.IFramedConcernMembership)poco).Kind; - ((Core.DTO.Systems.Requirements.IRequirementConstraintMembership)dto).Kind = ((Core.POCO.Systems.Requirements.IRequirementConstraintMembership)poco).Kind; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; + dto.Kind = poco.Kind; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/MembershipExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/MembershipExtensions.cs index 92d757224..566557df3 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/MembershipExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/MembershipExtensions.cs @@ -101,22 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -204,26 +188,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -253,8 +217,6 @@ public static Core.DTO.Root.Namespaces.Membership ToDto(this Core.POCO.Root.Name dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs index 4bef18f55..b03bb9a2c 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Owni Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Owni poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Root.Namespaces.OwningMembership ToDto(this Core.POCO.Roo dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs index 7ffa1865d..f26bf9e6e 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -151,15 +135,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Refere Lazy lazyPoco; - if (cache.TryGetValue(dto.General, out lazyPoco)) - { - poco.General = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.General = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -207,53 +182,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Refere poco.ReferencedFeature = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - if (cache.TryGetValue(dto.Specific, out lazyPoco)) - { - poco.Specific = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.Specific = null; - } - - if (cache.TryGetValue(dto.SubsettedFeature, out lazyPoco)) - { - poco.SubsettedFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value; - } - else - { - poco.SubsettedFeature = null; - } - - if (cache.TryGetValue(dto.SubsettingFeature, out lazyPoco)) - { - poco.SubsettingFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value; - } - else - { - poco.SubsettingFeature = null; - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -274,7 +202,6 @@ public static Core.DTO.Core.Features.ReferenceSubsetting ToDto(this Core.POCO.Co dto.DeclaredName = poco.DeclaredName; dto.DeclaredShortName = poco.DeclaredShortName; dto.ElementId = poco.ElementId; - dto.General = poco.General.Id; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); @@ -282,11 +209,6 @@ public static Core.DTO.Core.Features.ReferenceSubsetting ToDto(this Core.POCO.Co dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; dto.ReferencedFeature = poco.ReferencedFeature.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Specific = poco.Specific.Id; - dto.SubsettedFeature = poco.SubsettedFeature.Id; - dto.SubsettingFeature = poco.SubsettingFeature.Id; - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs index 7ad1ded29..51243dce8 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs @@ -71,8 +71,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; - poco.Direction = dto.Direction; poco.ElementId = dto.ElementId; @@ -99,8 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -191,7 +187,6 @@ public static Core.DTO.Systems.Requirements.RequirementUsage ToDto(this Core.POC dto.Id = poco.Id; dto.AliasIds = poco.AliasIds; dto.DeclaredName = poco.DeclaredName; - dto.DeclaredShortName = poco.DeclaredShortName; dto.Direction = poco.Direction; dto.ElementId = poco.ElementId; dto.IsAbstract = poco.IsAbstract; @@ -205,7 +200,6 @@ public static Core.DTO.Systems.Requirements.RequirementUsage ToDto(this Core.POC dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs index 59354981a..f8a80471b 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs @@ -99,9 +99,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsVariable = dto.IsVariable; - ((Core.POCO.Kernel.Expressions.ISelectExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.ISelectExpression)dto).Operator; - - ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator; + poco.Operator = dto.Operator; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -201,8 +199,7 @@ public static Core.DTO.Kernel.Expressions.SelectExpression ToDto(this Core.POCO. dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; dto.IsVariable = poco.IsVariable; - ((Core.DTO.Kernel.Expressions.ISelectExpression)dto).Operator = ((Core.POCO.Kernel.Expressions.ISelectExpression)poco).Operator; - ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator = ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator; + dto.Operator = poco.Operator; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SubclassificationExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SubclassificationExtensions.cs index b9b0d83d8..738e2dbeb 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SubclassificationExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SubclassificationExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -151,15 +135,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub Lazy lazyPoco; - if (cache.TryGetValue(dto.General, out lazyPoco)) - { - poco.General = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.General = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -198,25 +173,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - if (cache.TryGetValue(dto.Specific, out lazyPoco)) - { - poco.Specific = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.Specific = null; - } - if (cache.TryGetValue(dto.Subclassifier, out lazyPoco)) { poco.Subclassifier = (Core.POCO.Core.Classifiers.Classifier)lazyPoco.Value; @@ -235,16 +191,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub poco.Superclassifier = null; } - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -265,18 +211,14 @@ public static Core.DTO.Core.Classifiers.Subclassification ToDto(this Core.POCO.C dto.DeclaredName = poco.DeclaredName; dto.DeclaredShortName = poco.DeclaredShortName; dto.ElementId = poco.ElementId; - dto.General = poco.General.Id; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Specific = poco.Specific.Id; dto.Subclassifier = poco.Subclassifier.Id; dto.Superclassifier = poco.Superclassifier.Id; - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/UsageExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/UsageExtensions.cs index 8519e813d..2b2aaddf6 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/UsageExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/UsageExtensions.cs @@ -97,8 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -198,7 +196,6 @@ public static Core.DTO.Systems.DefinitionAndUsage.Usage ToDto(this Core.POCO.Sys dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AssociationSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AssociationSerializer.cs index 7c994785a..695fed1b8 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AssociationSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AssociationSerializer.cs @@ -156,18 +156,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAssociation.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iAssociation.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("feature"u8); foreach (var item in iAssociation.feature) @@ -602,18 +590,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iAssociation.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iAssociation.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedType"u8); foreach (var item in iAssociation.relatedType) @@ -629,18 +605,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iAssociation.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iAssociation.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceType"u8); if (iAssociation.sourceType.HasValue) @@ -655,18 +619,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iAssociation.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetType"u8); foreach (var item in iAssociation.targetType) @@ -798,30 +750,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAssociation iAssoci writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iAssociation.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iAssociation.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/DependencySerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/DependencySerializer.cs index 6209a62f5..6e93e85f4 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/DependencySerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/DependencySerializer.cs @@ -280,18 +280,6 @@ private static void SerializeAsJsonWithDerivedProperties(IDependency iDependency writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iDependency.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iDependency.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("supplier"u8); foreach (var item in iDependency.Supplier) @@ -304,18 +292,6 @@ private static void SerializeAsJsonWithDerivedProperties(IDependency iDependency writer.WriteEndArray(); - writer.WriteStartArray("target"u8); - - foreach (var item in iDependency.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iDependency.textualRepresentation) @@ -429,18 +405,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDependency iDepende writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iDependency.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("supplier"u8); foreach (var item in iDependency.Supplier) @@ -453,18 +417,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDependency iDepende writer.WriteEndArray(); - writer.WriteStartArray("target"u8); - - foreach (var item in iDependency.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs index f50753362..55be9e28a 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs @@ -951,18 +951,6 @@ private static void SerializeAsJsonWithDerivedProperties(IEnumerationDefinition writer.WriteEndArray(); - writer.WriteStartArray("variant"u8); - - foreach (var item in iEnumerationDefinition.variant) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("variantMembership"u8); foreach (var item in iEnumerationDefinition.variantMembership) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureTypingSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureTypingSerializer.cs index 0d2e618b5..9f53bba57 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureTypingSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureTypingSerializer.cs @@ -120,12 +120,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeature writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureTyping.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureTyping.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iFeatureTyping.IsImplied); @@ -270,20 +264,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeature writer.WriteNullValue(); } - writer.WritePropertyName("owningType"u8); - - if (iFeatureTyping.owningType.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureTyping.owningType.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iFeatureTyping.qualifiedName); @@ -302,36 +282,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeature writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFeatureTyping.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iFeatureTyping.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureTyping.Specific); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFeatureTyping.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFeatureTyping.textualRepresentation) @@ -387,12 +337,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureTyping iFeat writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureTyping.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureTyping.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iFeatureTyping.IsImplied); @@ -451,36 +395,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureTyping iFeat writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iFeatureTyping.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureTyping.Specific); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFeatureTyping.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("type"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FlowSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FlowSerializer.cs index 348f2753c..37d58e0ae 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FlowSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FlowSerializer.cs @@ -99,30 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteEndArray(); - writer.WriteStartArray("association"u8); - - foreach (var item in iFlow.association) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("behavior"u8); - - foreach (var item in iFlow.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iFlow.chainingFeature) @@ -193,18 +169,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iFlow.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iFlow.Direction.HasValue) @@ -231,18 +195,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFlow.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iFlow.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("endOwningType"u8); if (iFlow.endOwningType.HasValue) @@ -911,18 +863,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iFlow.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iFlow.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedFeature"u8); foreach (var item in iFlow.relatedFeature) @@ -938,18 +878,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFlow.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iFlow.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceFeature"u8); if (iFlow.sourceFeature.HasValue) @@ -978,18 +906,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iFlow.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetFeature"u8); foreach (var item in iFlow.targetFeature) @@ -1028,18 +944,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iFlow.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iFlow.unioningType) @@ -1182,30 +1086,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFlow iFlow, Utf8Jso writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iFlow.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFlow.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs index dcc15c599..4b092ba39 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs @@ -132,27 +132,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WritePropertyName("kind"u8); writer.WriteStringValue(iFramedConcernMembership.Kind.ToString().ToLower()); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iFramedConcernMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iFramedConcernMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iFramedConcernMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iFramedConcernMembership.name); @@ -174,12 +153,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WriteStringValue(iFramedConcernMembership.ownedConcern); writer.WriteEndObject(); - writer.WritePropertyName("ownedConstraint"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.ownedConstraint); - writer.WriteEndObject(); - writer.WriteStartArray("ownedElement"u8); foreach (var item in iFramedConcernMembership.ownedElement) @@ -192,21 +165,9 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iFramedConcernMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iFramedConcernMembership.ownedMemberName); @@ -322,12 +283,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WriteStringValue(iFramedConcernMembership.referencedConcern); writer.WriteEndObject(); - writer.WritePropertyName("referencedConstraint"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.referencedConstraint); - writer.WriteEndObject(); - writer.WriteStartArray("relatedElement"u8); foreach (var item in iFramedConcernMembership.relatedElement) @@ -343,30 +298,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFramedConcernMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iFramedConcernMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFramedConcernMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFramedConcernMembership.textualRepresentation) @@ -422,18 +353,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFramedConcernMember writer.WritePropertyName("kind"u8); writer.WriteStringValue(iFramedConcernMembership.Kind.ToString().ToLower()); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iFramedConcernMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iFramedConcernMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFramedConcernMembership.OwnedRelatedElement) @@ -486,30 +405,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFramedConcernMember writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iFramedConcernMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFramedConcernMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iFramedConcernMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralIntegerSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralIntegerSerializer.cs index 57fce9ec2..880c0ff22 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralIntegerSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralIntegerSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralInteger iLitera writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iLiteralInteger.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralInteger.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralInteger iLitera writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iLiteralInteger.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iLiteralInteger.Direction.HasValue) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralRationalSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralRationalSerializer.cs index 0a0427ab8..7e7ddd4f4 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralRationalSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralRationalSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralRational iLiter writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iLiteralRational.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralRational.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralRational iLiter writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iLiteralRational.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iLiteralRational.Direction.HasValue) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MembershipSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MembershipSerializer.cs index afd21edc7..fd54e59b0 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MembershipSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MembershipSerializer.cs @@ -289,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMembership iMembership writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iMembership.textualRepresentation) @@ -429,30 +405,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IMembership iMembers writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/OwningMembershipSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/OwningMembershipSerializer.cs index 0d664aa76..1359bec82 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/OwningMembershipSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/OwningMembershipSerializer.cs @@ -129,27 +129,12 @@ private static void SerializeAsJsonWithDerivedProperties(IOwningMembership iOwni writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iOwningMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iOwningMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iOwningMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iOwningMembership.MemberName); - writer.WritePropertyName("membershipOwningNamespace"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iOwningMembership.membershipOwningNamespace); writer.WriteEndObject(); - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iOwningMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iOwningMembership.name); @@ -304,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IOwningMembership iOwni writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iOwningMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iOwningMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iOwningMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iOwningMembership.textualRepresentation) @@ -380,18 +341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IOwningMembership iO writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iOwningMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iOwningMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iOwningMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iOwningMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iOwningMembership.OwnedRelatedElement) @@ -444,30 +393,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IOwningMembership iO writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iOwningMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iOwningMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iOwningMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs index d71581432..8aad493e4 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs @@ -120,12 +120,6 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iReferenceSubsetting.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iReferenceSubsetting.IsImplied); @@ -200,20 +194,6 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WriteNullValue(); } - writer.WritePropertyName("owningFeature"u8); - - if (iReferenceSubsetting.owningFeature.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.owningFeature.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("owningMembership"u8); if (iReferenceSubsetting.owningMembership.HasValue) @@ -270,20 +250,6 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WriteNullValue(); } - writer.WritePropertyName("owningType"u8); - - if (iReferenceSubsetting.owningType.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.owningType.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iReferenceSubsetting.qualifiedName); @@ -314,48 +280,6 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iReferenceSubsetting.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iReferenceSubsetting.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.Specific); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettedFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.SubsettedFeature); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettingFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.SubsettingFeature); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iReferenceSubsetting.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iReferenceSubsetting.textualRepresentation) @@ -399,12 +323,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReferenceSubsetting writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iReferenceSubsetting.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iReferenceSubsetting.IsImplied); @@ -469,48 +387,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReferenceSubsetting writer.WriteStringValue(iReferenceSubsetting.ReferencedFeature); writer.WriteEndObject(); - writer.WriteStartArray("source"u8); - - foreach (var item in iReferenceSubsetting.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.Specific); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettedFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.SubsettedFeature); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettingFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.SubsettingFeature); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iReferenceSubsetting.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/RequirementUsageSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/RequirementUsageSerializer.cs index 3ae507840..4cfb73c90 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/RequirementUsageSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/RequirementUsageSerializer.cs @@ -123,18 +123,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iRequirementUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iRequirementUsage.chainingFeature) @@ -147,20 +135,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); - writer.WritePropertyName("constraintDefinition"u8); - - if (iRequirementUsage.constraintDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementUsage.constraintDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("crossFeature"u8); if (iRequirementUsage.crossFeature.HasValue) @@ -178,21 +152,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iRequirementUsage.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iRequirementUsage.DeclaredShortName); - - writer.WriteStartArray("definition"u8); - - foreach (var item in iRequirementUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iRequirementUsage.differencingType) @@ -205,18 +164,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iRequirementUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iRequirementUsage.directedUsage) @@ -335,20 +282,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iRequirementUsage.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementUsage.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iRequirementUsage.importedMembership) @@ -468,9 +401,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iRequirementUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iRequirementUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iRequirementUsage.IsVariation); @@ -1283,20 +1213,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteNullValue(); } - writer.WritePropertyName("predicate"u8); - - if (iRequirementUsage.predicate.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementUsage.predicate.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iRequirementUsage.qualifiedName); @@ -1377,18 +1293,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iRequirementUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iRequirementUsage.unioningType) @@ -1462,9 +1366,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementUsage iR writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iRequirementUsage.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iRequirementUsage.DeclaredShortName); - writer.WritePropertyName("direction"u8); if (iRequirementUsage.Direction.HasValue) @@ -1512,9 +1413,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementUsage iR writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iRequirementUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iRequirementUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iRequirementUsage.IsVariation); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SelectExpressionSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SelectExpressionSerializer.cs index 84be29b54..c0bc9c0de 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SelectExpressionSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SelectExpressionSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISelectExpression iSele writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iSelectExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iSelectExpression.chainingFeature) @@ -167,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISelectExpression iSele writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iSelectExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iSelectExpression.Direction.HasValue) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SubclassificationSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SubclassificationSerializer.cs index f627523ca..242f3b84a 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SubclassificationSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SubclassificationSerializer.cs @@ -120,12 +120,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubclassification.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubclassification.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iSubclassification.IsImplied); @@ -270,20 +264,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WriteNullValue(); } - writer.WritePropertyName("owningType"u8); - - if (iSubclassification.owningType.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubclassification.owningType.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSubclassification.qualifiedName); @@ -302,24 +282,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSubclassification.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iSubclassification.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubclassification.Specific); - writer.WriteEndObject(); - writer.WritePropertyName("subclassifier"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -332,18 +294,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WriteStringValue(iSubclassification.Superclassifier); writer.WriteEndObject(); - writer.WriteStartArray("target"u8); - - foreach (var item in iSubclassification.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iSubclassification.textualRepresentation) @@ -387,12 +337,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification i writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubclassification.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubclassification.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iSubclassification.IsImplied); @@ -451,24 +395,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification i writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iSubclassification.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubclassification.Specific); - writer.WriteEndObject(); - writer.WritePropertyName("subclassifier"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -481,18 +407,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification i writer.WriteStringValue(iSubclassification.Superclassifier); writer.WriteEndObject(); - writer.WriteStartArray("target"u8); - - foreach (var item in iSubclassification.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/TextualRepresentationSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/TextualRepresentationSerializer.cs index 210ba1a28..64b762cf4 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/TextualRepresentationSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/TextualRepresentationSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITextualRepresentation writer.WriteEndArray(); - writer.WriteStartArray("annotatedElement"u8); - - foreach (var item in iTextualRepresentation.annotatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("annotation"u8); foreach (var item in iTextualRepresentation.annotation) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/UsageSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/UsageSerializer.cs index 0ffb507ee..af6b7b221 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/UsageSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/UsageSerializer.cs @@ -372,9 +372,6 @@ private static void SerializeAsJsonWithDerivedProperties(IUsage iUsage, Utf8Json writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUsage.IsVariation); @@ -1170,18 +1167,6 @@ private static void SerializeAsJsonWithDerivedProperties(IUsage iUsage, Utf8Json writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iUsage.unioningType) @@ -1302,9 +1287,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IUsage iUsage, Utf8J writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUsage.IsVariation); diff --git a/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoExtensionsGeneratorTestFixture.cs b/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoExtensionsGeneratorTestFixture.cs index 51af88c95..99c397c15 100644 --- a/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoExtensionsGeneratorTestFixture.cs +++ b/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoExtensionsGeneratorTestFixture.cs @@ -54,7 +54,7 @@ public async Task VerifyCanGeneratePocoExtensions() [Test] [TestCaseSource(typeof(ExpectedConcreteClasses))] [Category("Expected")] - public async Task VerifyExpectedPocoExtensionsMachtes(string className) + public async Task VerifyExpectedPocoExtensionsMatches(string className) { var generatedCode = await this.umlCoreDalPocoExtensionsGenerator.GenerateDalPocoExtension(GeneratorSetupFixture.XmiReaderResult, this.umlPocoExtensionDirectoryInfo, diff --git a/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoFactoryGeneratorTestFixture.cs b/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoFactoryGeneratorTestFixture.cs index 33bd2c99e..a39d59d94 100644 --- a/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoFactoryGeneratorTestFixture.cs +++ b/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoFactoryGeneratorTestFixture.cs @@ -54,7 +54,7 @@ public async Task VerifyCanGeneratePocoFactory() [Test] [TestCaseSource(typeof(ExpectedConcreteClasses))] [Category("Expected")] - public async Task VerifyExpectedPocoFactoryMachtes(string className) + public async Task VerifyExpectedPocoFactoryMatches(string className) { var generatedCode = await this.umlCoreDalPocoExtensionsGenerator.GenerateDalPocoFactory(GeneratorSetupFixture.XmiReaderResult, this.umlPocoFactoryDirectoryInfo, diff --git a/SysML2.NET.CodeGenerator/Extensions/PropertyExtension.cs b/SysML2.NET.CodeGenerator/Extensions/PropertyExtension.cs index 5523c1e77..33f9fe851 100644 --- a/SysML2.NET.CodeGenerator/Extensions/PropertyExtension.cs +++ b/SysML2.NET.CodeGenerator/Extensions/PropertyExtension.cs @@ -72,5 +72,17 @@ public static bool QueryIsEnumPropertyWithDefaultValue(this IProperty property) return false; } + + /// + /// Gets the name of the property. + /// + /// The + /// The with the first letter lowered case in case of derived property, in upper case otherwise + public static string QueryPropertyNameBasedOnUmlProperties(this IProperty property) + { + ArgumentNullException.ThrowIfNull(property); + + return property.IsDerived || property.IsDerivedUnion ? StringExtensions.LowerCaseFirstLetter(property.Name) : StringExtensions.CapitalizeFirstLetter(property.Name); + } } } diff --git a/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs b/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs index 86986a187..e701712a8 100644 --- a/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs +++ b/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs @@ -38,7 +38,7 @@ namespace SysML2.NET.CodeGenerator.HandleBarHelpers /// /// A handlebars block helper for the interface /// - public static class PropertyHelper + public static class PropertyHelper { /// /// Registers the @@ -131,13 +131,13 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) } var property = (parameters[0] as IProperty)!; - var generatedClass = (parameters[1] as IClass)!; + var classContext = (parameters[1] as IClass)!; var sb = new StringBuilder(); var propertyName = StringExtensions.CapitalizeFirstLetter(property.Name); - var isRedefinedByPropertyWithTheSameName = property.TryQueryRedefinedByProperty(generatedClass, out var redefiningProperty) && redefiningProperty.Name == property.Name; + var isRedefinedPropertyInContext = property.TryQueryRedefinedByProperty(classContext, out var redefiningProperty); - if (!isRedefinedByPropertyWithTheSameName) + if (!isRedefinedPropertyInContext) { sb.Append(property.Visibility.ToString().ToLower(CultureInfo.InvariantCulture)); sb.Append(' '); @@ -187,14 +187,14 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) propertyName = StringExtensions.LowerCaseFirstLetter(propertyName); } - if (isRedefinedByPropertyWithTheSameName) + if (isRedefinedPropertyInContext) { var owner = (INamedElement)property.Owner; propertyName = $"I{owner.Name}.{propertyName}"; var ownerNamespace = owner.QueryNamespace(); - if (ownerNamespace != generatedClass.QueryNamespace()) + if (ownerNamespace != classContext.QueryNamespace()) { propertyName = $"{ownerNamespace}.{propertyName}"; } @@ -205,45 +205,71 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) if (property.IsReadOnly || property.IsDerived || property.IsDerivedUnion) { - if(isRedefinedByPropertyWithTheSameName) + if (isRedefinedPropertyInContext) { - sb.Append("{ get; }"); + sb.Append($"=> {GetRedefinedPropertyGetterImplementationForDto(property, redefiningProperty, classContext)}"); } else { sb.Append("{ get; internal set; }"); - } - if (property.QueryIsEnumerable()) - { - sb.Append(" = [];"); + if (property.QueryIsEnumerable()) + { + sb.Append(" = [];"); + } } } else { - sb.Append("{ get; set; }"); + if (isRedefinedPropertyInContext) + { + sb.AppendLine("{"); + sb.AppendLine($"\tget => {GetRedefinedPropertyGetterImplementationForDto(property, redefiningProperty, classContext)}"); + var setterImplementation = GetRedefinedPropertySetterImplementationForDto(property, redefiningProperty, classContext); - if (property.QueryIsEnumerable()) + if (string.IsNullOrWhiteSpace(setterImplementation)) + { + sb.AppendLine("\tset { }"); + } + else + { + sb.AppendLine("\tset "); + sb.AppendLine("{"); + sb.AppendLine($"\t{setterImplementation}"); + sb.Append('}'); + } + + sb.Append('}'); + } + else { - sb.Append(" = [];"); + sb.Append("{ get; set; }"); + + if (property.QueryIsEnumerable()) + { + sb.Append(" = [];"); + } } } - - if (property.QueryIsDefaultValueDifferentThanDefault()) + + if (!isRedefinedPropertyInContext) { - if (property.QueryIsString()) + if (property.QueryIsDefaultValueDifferentThanDefault()) { - sb.Append($" = \"{property.QueryDefaultValueAsString()}\";"); + if (property.QueryIsString()) + { + sb.Append($" = \"{property.QueryDefaultValueAsString()}\";"); + } + else + { + sb.Append($" = {property.QueryDefaultValueAsString()};"); + } } - else + else if (property.QueryIsEnumPropertyWithDefaultValue()) { - sb.Append($" = {property.QueryDefaultValueAsString()};"); + sb.Append($" = {StringExtensions.CapitalizeFirstLetter(property.Type.Name)}.{StringExtensions.CapitalizeFirstLetter(property.QueryDefaultValueAsString())};"); } } - else if (property.QueryIsEnumPropertyWithDefaultValue()) - { - sb.Append($" = {StringExtensions.CapitalizeFirstLetter(property.Type.Name)}.{StringExtensions.CapitalizeFirstLetter(property.QueryDefaultValueAsString())};"); - } writer.WriteSafeString(sb + Environment.NewLine); }); @@ -317,18 +343,18 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) throw new ArgumentException("The #Property.WriteForPOCOClass supposed to be have 2 arguments IProperty"); } - if (arguments[1] is not IClass generatedClass) + if (arguments[1] is not IClass classContext) { throw new ArgumentException("The #Property.WriteForPOCOClass supposed to be have an IClass as second argument"); } var sb = new StringBuilder(); - var isRedefinedByPropertyWithTheSameName = property.TryQueryRedefinedByProperty(generatedClass, out var redefiningProperty) && redefiningProperty.Name == property.Name; + var isRedefinedPropertyInContext = property.TryQueryRedefinedByProperty(classContext, out var redefiningProperty); var typeName = property.QueryCSharpTypeName(); var propertyName = StringExtensions.CapitalizeFirstLetter(property.Name); - if (!isRedefinedByPropertyWithTheSameName) + if (!isRedefinedPropertyInContext) { sb.Append(property.Visibility.ToString().ToLower(CultureInfo.InvariantCulture)); sb.Append(' '); @@ -360,14 +386,14 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) propertyName = StringExtensions.LowerCaseFirstLetter(propertyName); } - if (isRedefinedByPropertyWithTheSameName) + if (isRedefinedPropertyInContext) { var owner = (INamedElement)property.Owner; propertyName = $"I{owner.Name}.{propertyName}"; var ownerNamespace = owner.QueryNamespace(); - if (ownerNamespace != generatedClass.QueryNamespace()) + if (ownerNamespace != classContext.QueryNamespace()) { propertyName = $"{ownerNamespace}.{propertyName}"; } @@ -377,10 +403,9 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) if (property.IsDerived || property.IsDerivedUnion) { - if (isRedefinedByPropertyWithTheSameName) + if (isRedefinedPropertyInContext) { - var owningClass = redefiningProperty.Owner as IClass; - sb.Append($"=> throw new InvalidOperationException(\"Redefined by property I{owningClass?.Name}.{StringExtensions.CapitalizeFirstLetter(redefiningProperty.Name)}\");"); + sb.Append($"=> {GetRedefinedPropertyGetterImplementationForPoco(property, redefiningProperty, classContext)}"); } else { @@ -389,10 +414,9 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) } else if (property.IsReadOnly) { - if (isRedefinedByPropertyWithTheSameName) + if (isRedefinedPropertyInContext) { - var owningClass = redefiningProperty.Owner as IClass; - sb.Append($"=> throw new InvalidOperationException(\"Redefined by property I{owningClass?.Name}.{StringExtensions.CapitalizeFirstLetter(redefiningProperty.Name)}\");"); + sb.Append($"=> {GetRedefinedPropertyGetterImplementationForPoco(property, redefiningProperty, classContext)}"); } else { @@ -401,15 +425,39 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) } else { - sb.Append(" { get; set; }"); - - if (property.QueryIsEnumerable()) + if (isRedefinedPropertyInContext) { - sb.Append(" = [];"); + sb.AppendLine("{"); + sb.AppendLine($"\tget => {GetRedefinedPropertyGetterImplementationForPoco(property, redefiningProperty, classContext)}"); + + var setterImplementation = GetRedefinedPropertySetterImplementationForPoco(property, redefiningProperty, classContext); + + if (string.IsNullOrWhiteSpace(setterImplementation)) + { + sb.AppendLine("\tset { }"); + } + else + { + sb.AppendLine("\tset "); + sb.AppendLine("{"); + sb.AppendLine($"\t{setterImplementation}"); + sb.Append('}'); + } + + sb.Append('}'); + } + else + { + sb.Append(" { get; set; }"); + + if (property.QueryIsEnumerable()) + { + sb.Append(" = [];"); + } } } - if (!property.IsDerived || property.IsDerivedUnion) + if ((!property.IsDerived || property.IsDerivedUnion) && !isRedefinedPropertyInContext) { if (property.QueryIsDefaultValueDifferentThanDefault()) { @@ -538,8 +586,7 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) throw new ArgumentException("The #Property.WritePropertyName context supposed to be IProperty"); } - var propertyName = property.IsDerived || property.IsDerivedUnion ? StringExtensions.LowerCaseFirstLetter(property.Name) : StringExtensions.CapitalizeFirstLetter(property.Name); - writer.WriteSafeString(propertyName); + writer.WriteSafeString(property.QueryPropertyNameBasedOnUmlProperties()); }); handlebars.RegisterHelper("Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO", (writer, context, arguments) => @@ -561,17 +608,212 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) var variableName = arguments[2].ToString(); var propertyName = property.IsDerived || property.IsDerivedUnion ? StringExtensions.LowerCaseFirstLetter(property.Name) : StringExtensions.CapitalizeFirstLetter(property.Name); - + if (property.TryQueryRedefinedByProperty(generatedClass, out var redefinitionProperty) && redefinitionProperty.Name == property.Name) { var owner = (INamedElement)property.Owner; - writer.WriteSafeString($"((SysML2.NET.Core.DTO.{owner.QueryNamespace()}.I{owner.Name}){variableName}).{propertyName}"); + writer.WriteSafeString($"((SysML2.NET.Core.DTO.{owner.QueryNamespace()}.I{owner.Name}){variableName}).{propertyName}"); } else { - writer.WriteSafeString($"{variableName}.{propertyName}"); + writer.WriteSafeString($"{variableName}.{propertyName}"); } }); + } + + /// + /// Gets the getter implementation for an that has been redefined, for DTO generation + /// + /// The redefined property + /// The property that redefines + /// Gets the context + /// The getter imlementation + private static string GetRedefinedPropertyGetterImplementationForDto(IProperty redefinedProperty, IProperty redefinition, IClass context) + { + string redefinitionPropertyName; + + if (redefinition.TryQueryRedefinedByProperty(context, out _)) + { + var owner = (INamedElement)redefinition.Owner; + redefinitionPropertyName = $"((SysML2.NET.Core.DTO.{owner.QueryNamespace()}.I{owner.Name})this).{redefinition.QueryPropertyNameBasedOnUmlProperties()}"; + } + else + { + redefinitionPropertyName = $"this.{redefinition.QueryPropertyNameBasedOnUmlProperties()}"; + } + + if (redefinedProperty.QueryIsEnumerable() && redefinition.QueryIsEnumerable()) + { + return $"{redefinitionPropertyName};"; + } + + if (redefinedProperty.QueryIsEnumerable() && !redefinition.QueryIsEnumerable()) + { + return redefinition.QueryIsNullableAndNotString() + ? $"{redefinitionPropertyName}.HasValue ? [{redefinitionPropertyName}.Value] : [];" + : $"[{redefinitionPropertyName}];"; + } + + return redefinition.QueryIsNullableAndNotString() + ? $"{redefinitionPropertyName}.HasValue ? {redefinitionPropertyName}.Value : {(redefinedProperty.QueryIsReferenceProperty() ? "Guid.Empty" : "default")};" + : $"{redefinitionPropertyName};"; + } + + /// + /// Gets the getter implementation for an that has been redefined, for POCO generation + /// + /// The redefined property + /// The property that redefines + /// Gets the context + /// The getter imlementation + private static string GetRedefinedPropertyGetterImplementationForPoco(IProperty redefinedProperty, IProperty redefinition, IClass context) + { + string redefinitionPropertyName; + + if (redefinition.TryQueryRedefinedByProperty(context, out _)) + { + var owner = (INamedElement)redefinition.Owner; + redefinitionPropertyName = $"((SysML2.NET.Core.POCO.{owner.QueryNamespace()}.I{owner.Name})this).{redefinition.QueryPropertyNameBasedOnUmlProperties()}"; + } + else + { + redefinitionPropertyName = $"this.{redefinition.QueryPropertyNameBasedOnUmlProperties()}"; + } + + if (redefinedProperty.QueryIsEnumerable() && redefinition.QueryIsEnumerable()) + { + return $"[..{redefinitionPropertyName}];"; + } + + if (redefinedProperty.QueryIsEnumerable() && !redefinition.QueryIsEnumerable()) + { + if (redefinedProperty.QueryIsReferenceProperty()) + { + return $"{redefinitionPropertyName} != null ? [{redefinitionPropertyName}] : [];"; + } + + if (redefinedProperty.QueryIsString()) + { + return $"string.IsNullOrWhiteSpace({redefinitionPropertyName}) ? [{redefinitionPropertyName}] : [];"; + } + + return redefinition.QueryIsNullableAndNotString() + ? $"{redefinitionPropertyName}.HasValue ? [{redefinitionPropertyName}.Value] : [];" + : $"[{redefinitionPropertyName}];"; + } + + return redefinition.QueryIsNullableAndNotString() && !redefinedProperty.QueryIsReferenceProperty() + ? $"{redefinitionPropertyName}.HasValue ? {redefinitionPropertyName}.Value : default;" + : $"{redefinitionPropertyName};"; + } + + /// + /// Gets the setter implementation for an that has been redefined, for DTO generation + /// + /// The redefined property + /// The property that redefines + /// Gets the context + /// The setter imlementation + private static string GetRedefinedPropertySetterImplementationForDto(IProperty redefinedProperty, IProperty redefinition, IClass context) + { + if (redefinition.IsDerived || redefinition.IsDerivedUnion || redefinition.IsReadOnly) + { + return string.Empty; + } + + string redefinitionPropertyName; + + if (redefinition.TryQueryRedefinedByProperty(context, out _)) + { + var owner = (INamedElement)redefinition.Owner; + redefinitionPropertyName = $"((SysML2.NET.Core.DTO.{owner.QueryNamespace()}.I{owner.Name})this).{redefinition.QueryPropertyNameBasedOnUmlProperties()}"; + } + else + { + redefinitionPropertyName = $"this.{redefinition.QueryPropertyNameBasedOnUmlProperties()}"; + } + + if (redefinedProperty.QueryIsEnumerable() == redefinition.QueryIsEnumerable()) + { + return $"{redefinitionPropertyName} = value;"; + } + + var stringBuilder = new StringBuilder(); + stringBuilder.AppendLine("if(value.Count != 0)"); + stringBuilder.AppendLine("{"); + stringBuilder.AppendLine($"\t{redefinitionPropertyName} = value[0];"); + stringBuilder.AppendLine("}"); + return stringBuilder.ToString(); + } + + /// + /// Gets the setter implementation for an that has been redefined, for POCO generation + /// + /// The redefined property + /// The property that redefines + /// Gets the context + /// The setter imlementation + private static string GetRedefinedPropertySetterImplementationForPoco(IProperty redefinedProperty, IProperty redefinition, IClass context) + { + if (redefinition.IsDerived || redefinition.IsDerivedUnion || redefinition.IsReadOnly) + { + return string.Empty; + } + + string redefinitionPropertyName; + + if (redefinition.TryQueryRedefinedByProperty(context, out _)) + { + var owner = (INamedElement)redefinition.Owner; + redefinitionPropertyName = $"((SysML2.NET.Core.POCO.{owner.QueryNamespace()}.I{owner.Name})this).{redefinition.QueryPropertyNameBasedOnUmlProperties()}"; + } + else + { + redefinitionPropertyName = $"this.{redefinition.QueryPropertyNameBasedOnUmlProperties()}"; + } + + var redefinitionPropertyTypeName = redefinition.QueryIsReferenceProperty() ? $"I{redefinition.Type.Name}" : redefinition.QueryCSharpTypeName(); + + if (redefinedProperty.QueryIsEnumerable() && redefinition.QueryIsEnumerable()) + { + return redefinedProperty.Type == redefinition.Type ? $"{redefinitionPropertyName} = value;" : $"{redefinitionPropertyName} = [..value.OfType<{redefinitionPropertyTypeName}>()];"; + } + + var stringBuilder = new StringBuilder(); + + if (redefinedProperty.QueryIsEnumerable()) + { + if (redefinedProperty.Type == redefinition.Type) + { + stringBuilder.AppendLine("if(value.Count != 0)"); + stringBuilder.AppendLine("{"); + stringBuilder.AppendLine($"\t{redefinitionPropertyName} = value[0];"); + } + else + { + stringBuilder.AppendLine($"if(value.OfType<{redefinitionPropertyTypeName}>().FirstOrDefault() is {{ }} firstValue)"); + stringBuilder.AppendLine("{"); + stringBuilder.AppendLine($"\t{redefinitionPropertyName} = firstValue;"); + } + + stringBuilder.Append('}'); + } + else + { + if (redefinedProperty.Type == redefinition.Type) + { + stringBuilder.Append($"{redefinitionPropertyName} = value;"); + } + else + { + stringBuilder.AppendLine($"if(value is {redefinitionPropertyTypeName} castedValue)"); + stringBuilder.AppendLine("{"); + stringBuilder.AppendLine($"\t{redefinitionPropertyName} = castedValue;"); + stringBuilder.Append('}'); + } + } + + return stringBuilder.ToString(); + } } - } -} \ No newline at end of file +} diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-dal-poco-uml-extensions.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-dal-poco-uml-extensions.hbs index e877310d0..c7be41960 100644 --- a/SysML2.NET.CodeGenerator/Templates/Uml/core-dal-poco-uml-extensions.hbs +++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-dal-poco-uml-extensions.hbs @@ -67,9 +67,11 @@ namespace SysML2.NET.Dal var identifiersOfObjectsToDelete = new List(); + {{#with this as |class |}} {{#each (Class.QueryAllProperties this) as | property |}} {{#unless property.IsDerived }} {{#unless property.IsTransient }} + {{#unless (Property.IsPropertyRedefinedInClass this class)}} {{#if (Property.QueryIsReferenceProperty property)}} {{#if (Property.QueryIsEnumerable property) }} var {{ property.Name}}ToDelete = poco.{{ String.PascalCase property.Name}}.Select(x => x.Id).Except(dto.{{ String.PascalCase property.Name}}); @@ -85,16 +87,14 @@ namespace SysML2.NET.Dal {{/if}} {{else}} - {{#if (Property.IsRedefinedOrRedifines this ../this)}} - ((Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Owner }}.I{{property.Owner.Name}})poco).{{ String.PascalCase property.Name }} = ((Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Owner }}.I{{property.Owner.Name}})dto).{{ String.PascalCase property.Name }}; - {{else}} poco.{{ String.PascalCase property.Name }} = dto.{{ String.PascalCase property.Name }}; - {{/if}} - + {{/if}} {{/unless}} {{/unless}} + {{/unless}} {{/each}} + {{/with}} return identifiersOfObjectsToDelete; } @@ -132,11 +132,13 @@ namespace SysML2.NET.Dal } Lazy lazyPoco; - + + {{#with this as | class |}} {{#each (Class.QueryAllProperties this) as | property |}} {{#unless property.IsDerived }} {{#unless property.IsTransient }} - {{#if (Property.QueryIsReferenceProperty property)}} + {{#unless (Property.IsPropertyRedefinedInClass this class)}} + {{#if (Property.QueryIsReferenceProperty property)}} {{#if (Property.QueryIsEnumerable property) }} var {{ property.Name}}ToAdd = dto.{{ String.PascalCase property.Name}}.Except(poco.{{ String.PascalCase property.Name}}.Select(x => x.Id)); @@ -184,7 +186,9 @@ namespace SysML2.NET.Dal {{/if}} {{/unless}} {{/unless}} + {{/unless}} {{/each}} + {{/with}} } /// @@ -201,10 +205,12 @@ namespace SysML2.NET.Dal var dto = new Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }}(); dto.Id = poco.Id; + {{#with this as | class |}} {{#each (Class.QueryAllProperties this) as | property |}} {{#unless property.IsDerived }} {{#unless property.IsTransient }} - {{#if (Property.QueryIsReferenceProperty property) }} + {{#unless (Property.IsPropertyRedefinedInClass this class)}} + {{#if (Property.QueryIsReferenceProperty property) }} {{#if (Property.QueryIsEnumerable property)}} dto.{{ String.PascalCase property.Name }} = poco.{{ String.PascalCase property.Name }}.Select(x => x.Id).ToList(); {{ else if (Property.QueryIsNullable property)}} @@ -213,16 +219,14 @@ namespace SysML2.NET.Dal dto.{{ String.PascalCase property.Name }} = poco.{{ String.PascalCase property.Name }}.Id; {{/if}} {{ else }} - {{#if (Property.IsRedefinedOrRedifines this ../this)}} - ((Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Owner }}.I{{property.Owner.Name}})dto).{{ String.PascalCase property.Name }} = ((Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Owner }}.I{{property.Owner.Name}})poco).{{ String.PascalCase property.Name }}; - {{else}} dto.{{ String.PascalCase property.Name }} = poco.{{ String.PascalCase property.Name }}; - {{/if}} {{/if}} {{/unless}} {{/unless}} + {{/unless}} {{/each}} - + {{/with}} + return dto; } } diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-deserializer-uml-template.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-deserializer-uml-template.hbs index c45ec131f..698340299 100644 --- a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-deserializer-uml-template.hbs +++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-deserializer-uml-template.hbs @@ -88,7 +88,7 @@ namespace SysML2.NET.Serializer.Json.Core.DTO {{#with this as |class| }} {{ #each (Class.QueryAllProperties this) as | property | }} {{#unless this.IsTransient}} - {{#unless (Property.IsRedefinedByPropertyWithSameName this class)}} + {{#unless (Property.IsPropertyRedefinedInClass this class)}} if (jsonElement.TryGetProperty("{{ property.Name }}"u8, out var {{ property.Name }}Property)) { {{#if (Property.QueryIsReferenceProperty property)}} diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs index e36e89e28..9b702c759 100644 --- a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs +++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs @@ -93,7 +93,7 @@ namespace SysML2.NET.Serializer.Json.Core.DTO {{#with this as |class| }} {{ #each (Class.QueryAllProperties this) as | property | }} {{#unless this.IsTransient}} - {{#unless (Property.IsRedefinedByPropertyWithSameName this class)}} + {{#unless (Property.IsPropertyRedefinedInClass this class)}} {{#if (Property.QueryIsEnumerable property)}} writer.WriteStartArray("{{String.LowerCaseFirstLetter property.Name }}"u8); @@ -185,7 +185,7 @@ namespace SysML2.NET.Serializer.Json.Core.DTO {{ #each (Class.QueryAllProperties this) as | property | }} {{#unless this.IsDerived}} {{#unless this.IsTransient}} - {{#unless (Property.IsRedefinedByPropertyWithSameName this class)}} + {{#unless (Property.IsPropertyRedefinedInClass this class)}} {{#if (Property.QueryIsEnumerable property)}} writer.WriteStartArray("{{String.LowerCaseFirstLetter property.Name }}"u8); diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-class-uml-template.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-class-uml-template.hbs index 3624f207d..abef39168 100644 --- a/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-class-uml-template.hbs +++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-class-uml-template.hbs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace thi using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; {{ #Class.WriteEnumerationNameSpaces this}} {{ #Class.WriteNameSpaces this POCO}} diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-dal-uml-factory.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-dal-uml-factory.hbs index 9386fdc1c..9dc93f17b 100644 --- a/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-dal-uml-factory.hbs +++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-dal-uml-factory.hbs @@ -59,12 +59,10 @@ namespace SysML2.NET.Dal {{#each (Class.QueryAllProperties this) as | property |}} {{#unless property.IsDerived }} {{#unless property.IsTransient }} - {{#unless (Property.QueryIsReferenceProperty property) }} - {{#if (Property.IsRedefinedOrRedifines this ../this)}} - ((Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Owner }}.I{{property.Owner.Name}})poco).{{String.CapitalizeFirstLetter property.Name }} = ((Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Owner }}.I{{property.Owner.Name}})dto).{{String.CapitalizeFirstLetter property.Name }}; - {{else}} + {{#unless (Property.IsPropertyRedefinedInClass this class)}} + {{#unless (Property.QueryIsReferenceProperty property) }} poco.{{String.CapitalizeFirstLetter property.Name }} = dto.{{String.CapitalizeFirstLetter property.Name }}; - {{/if}} + {{/unless}} {{/unless}} {{/unless}} {{/unless}} diff --git a/SysML2.NET.Dal.Tests/AssemblerTestFixture.cs b/SysML2.NET.Dal.Tests/AssemblerTestFixture.cs index 7b78cbb01..62fd27bfe 100644 --- a/SysML2.NET.Dal.Tests/AssemblerTestFixture.cs +++ b/SysML2.NET.Dal.Tests/AssemblerTestFixture.cs @@ -66,8 +66,8 @@ public void Verify_that_synchronize_Works_as_Expected() var membershipDto = new Core.DTO.Root.Namespaces.Membership { Id = Guid.Parse("215054ad-eb1d-45f6-8537-d43a3470e73c"), - Source = new List { packageDto.Id }, - Target = new List { featureDto.Id }, + OwnedRelatedElement = new List { packageDto.Id }, + OwningRelatedElement = featureDto.Id , }; dtos.Add(packageDto); @@ -93,8 +93,20 @@ public void Verify_that_synchronize_Works_as_Expected() membershipPoco = (Core.POCO.Root.Namespaces.Membership)this.lazyPoco.Value; } - Assert.That(membershipPoco.Target.Contains(featurePoco), Is.True); + Assert.That(membershipPoco.OwningRelatedElement, Is.EqualTo(featurePoco)); + + Core.POCO.Root.Elements.IRelationship relation = membershipPoco; + + Assert.That(membershipPoco.MemberElement, Is.Null); + + relation.Target = [featurePoco, membershipPoco]; + using (Assert.EnterMultipleScope()) + { + Assert.That(membershipPoco.MemberElement, Is.EqualTo(featurePoco)); + Assert.That(relation.Target, Is.EquivalentTo([featurePoco])); + } + dtos.Clear(); featureDto.DeclaredName = "some updated feature"; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AcceptActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AcceptActionUsageFactory.cs index bc455593f..9f92e593f 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AcceptActionUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AcceptActionUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Actions.AcceptActionUsage Create(Core.DTO.Systems.Actio poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ActionUsageFactory.cs index 615506454..1a0c0c861 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ActionUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ActionUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Actions.ActionUsage Create(Core.DTO.Systems.Actions.Act poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ActorMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ActorMembershipFactory.cs index 895a78c95..4a5e4671c 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ActorMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ActorMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Systems.Requirements.ActorMembership Create(Core.DTO.Systems.Re poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationDefinitionFactory.cs index 0f9915677..8c4846413 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationDefinitionFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationDefinitionFactory.cs @@ -63,8 +63,7 @@ public Core.POCO.Systems.Allocations.AllocationDefinition Create(Core.DTO.System poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; poco.IsIndividual = dto.IsIndividual; - ((Core.POCO.Systems.Connections.IConnectionDefinition)poco).IsSufficient = ((Core.DTO.Systems.Connections.IConnectionDefinition)dto).IsSufficient; - ((Core.POCO.Core.Types.IType)poco).IsSufficient = ((Core.DTO.Core.Types.IType)dto).IsSufficient; + poco.IsSufficient = dto.IsSufficient; poco.IsVariation = dto.IsVariation; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationUsageFactory.cs index 838954a59..50fcef8d3 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationUsageFactory.cs @@ -72,7 +72,6 @@ public Core.POCO.Systems.Allocations.AllocationUsage Create(Core.DTO.Systems.All poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AnalysisCaseUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AnalysisCaseUsageFactory.cs index 9481caf9e..2d4386a5d 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AnalysisCaseUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AnalysisCaseUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.AnalysisCases.AnalysisCaseUsage Create(Core.DTO.Systems poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AssertConstraintUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AssertConstraintUsageFactory.cs index b83cff42c..44a7b4ba1 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AssertConstraintUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AssertConstraintUsageFactory.cs @@ -72,7 +72,6 @@ public Core.POCO.Systems.Constraints.AssertConstraintUsage Create(Core.DTO.Syste poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AssignmentActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AssignmentActionUsageFactory.cs index 0257d256a..8de845101 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AssignmentActionUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AssignmentActionUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Actions.AssignmentActionUsage Create(Core.DTO.Systems.A poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AttributeUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AttributeUsageFactory.cs index 31412a0be..7f6a6a617 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AttributeUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AttributeUsageFactory.cs @@ -70,7 +70,6 @@ public Core.POCO.Systems.Attributes.AttributeUsage Create(Core.DTO.Systems.Attri poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/BindingConnectorAsUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/BindingConnectorAsUsageFactory.cs index b3be136a2..c378a54ab 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/BindingConnectorAsUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/BindingConnectorAsUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Connections.BindingConnectorAsUsage Create(Core.DTO.Sys poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/CalculationUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/CalculationUsageFactory.cs index 154ede3f3..ef86d59a6 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/CalculationUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/CalculationUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Calculations.CalculationUsage Create(Core.DTO.Systems.C poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/CaseUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/CaseUsageFactory.cs index 4c0db3037..22311744f 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/CaseUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/CaseUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Cases.CaseUsage Create(Core.DTO.Systems.Cases.CaseUsage poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/CollectExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/CollectExpressionFactory.cs index 36910cff2..90e813fbc 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/CollectExpressionFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/CollectExpressionFactory.cs @@ -71,8 +71,7 @@ public Core.POCO.Kernel.Expressions.CollectExpression Create(Core.DTO.Kernel.Exp poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; poco.IsVariable = dto.IsVariable; - ((Core.POCO.Kernel.Expressions.ICollectExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.ICollectExpression)dto).Operator; - ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator; + poco.Operator = dto.Operator; return poco; } diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernDefinitionFactory.cs index eef1fce93..0d6120c4e 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernDefinitionFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernDefinitionFactory.cs @@ -57,7 +57,6 @@ public Core.POCO.Systems.Requirements.ConcernDefinition Create(Core.DTO.Systems. poco.Id = dto.Id; poco.AliasIds = dto.AliasIds; poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; poco.ElementId = dto.ElementId; poco.IsAbstract = dto.IsAbstract; poco.IsImpliedIncluded = dto.IsImpliedIncluded; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernUsageFactory.cs index 2f3c76083..002bd6205 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernUsageFactory.cs @@ -57,7 +57,6 @@ public Core.POCO.Systems.Requirements.ConcernUsage Create(Core.DTO.Systems.Requi poco.Id = dto.Id; poco.AliasIds = dto.AliasIds; poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; poco.Direction = dto.Direction; poco.ElementId = dto.ElementId; poco.IsAbstract = dto.IsAbstract; @@ -71,7 +70,6 @@ public Core.POCO.Systems.Requirements.ConcernUsage Create(Core.DTO.Systems.Requi poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; poco.ReqId = dto.ReqId; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionDefinitionFactory.cs index 753c2480e..56631595d 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionDefinitionFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionDefinitionFactory.cs @@ -63,8 +63,7 @@ public Core.POCO.Systems.Connections.ConnectionDefinition Create(Core.DTO.System poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; poco.IsIndividual = dto.IsIndividual; - ((Core.POCO.Systems.Connections.IConnectionDefinition)poco).IsSufficient = ((Core.DTO.Systems.Connections.IConnectionDefinition)dto).IsSufficient; - ((Core.POCO.Core.Types.IType)poco).IsSufficient = ((Core.DTO.Core.Types.IType)dto).IsSufficient; + poco.IsSufficient = dto.IsSufficient; poco.IsVariation = dto.IsVariation; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionUsageFactory.cs index 3520ac829..db2fcc4af 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionUsageFactory.cs @@ -72,7 +72,6 @@ public Core.POCO.Systems.Connections.ConnectionUsage Create(Core.DTO.Systems.Con poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstraintUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstraintUsageFactory.cs index 3cb862a03..53d18efa1 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstraintUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstraintUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Constraints.ConstraintUsage Create(Core.DTO.Systems.Con poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/DecisionNodeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/DecisionNodeFactory.cs index 967ab496d..e8a3d3075 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/DecisionNodeFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/DecisionNodeFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Actions.DecisionNode Create(Core.DTO.Systems.Actions.De poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ElementFilterMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ElementFilterMembershipFactory.cs index 7e6df47f3..106eca07a 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ElementFilterMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ElementFilterMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Kernel.Packages.ElementFilterMembership Create(Core.DTO.Kernel. poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/EndFeatureMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/EndFeatureMembershipFactory.cs index aae2c5372..fb8696694 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/EndFeatureMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/EndFeatureMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Core.Features.EndFeatureMembership Create(Core.DTO.Core.Feature poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs index c94811773..24d26878f 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs @@ -62,8 +62,7 @@ public Core.POCO.Systems.Enumerations.EnumerationDefinition Create(Core.DTO.Syst poco.IsAbstract = dto.IsAbstract; poco.IsImpliedIncluded = dto.IsImpliedIncluded; poco.IsSufficient = dto.IsSufficient; - ((Core.POCO.Systems.Enumerations.IEnumerationDefinition)poco).IsVariation = ((Core.DTO.Systems.Enumerations.IEnumerationDefinition)dto).IsVariation; - ((Core.POCO.Systems.DefinitionAndUsage.IDefinition)poco).IsVariation = ((Core.DTO.Systems.DefinitionAndUsage.IDefinition)dto).IsVariation; + poco.IsVariation = dto.IsVariation; return poco; } diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationUsageFactory.cs index 924f51e69..8710b09ac 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationUsageFactory.cs @@ -70,7 +70,6 @@ public Core.POCO.Systems.Enumerations.EnumerationUsage Create(Core.DTO.Systems.E poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/EventOccurrenceUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/EventOccurrenceUsageFactory.cs index c345da24d..fe028d282 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/EventOccurrenceUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/EventOccurrenceUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Occurrences.EventOccurrenceUsage Create(Core.DTO.System poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ExhibitStateUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ExhibitStateUsageFactory.cs index c1f165a07..addcf1ee2 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ExhibitStateUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ExhibitStateUsageFactory.cs @@ -72,7 +72,6 @@ public Core.POCO.Systems.States.ExhibitStateUsage Create(Core.DTO.Systems.States poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureChainExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureChainExpressionFactory.cs index 80c286986..2b0a43ad1 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureChainExpressionFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureChainExpressionFactory.cs @@ -71,8 +71,7 @@ public Core.POCO.Kernel.Expressions.FeatureChainExpression Create(Core.DTO.Kerne poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; poco.IsVariable = dto.IsVariable; - ((Core.POCO.Kernel.Expressions.IFeatureChainExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IFeatureChainExpression)dto).Operator; - ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator; + poco.Operator = dto.Operator; return poco; } diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureMembershipFactory.cs index 1fe41a0c8..661f48b94 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Core.Types.FeatureMembership Create(Core.DTO.Core.Types.Feature poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureValueFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureValueFactory.cs index 49aafc328..03f2b47fa 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureValueFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureValueFactory.cs @@ -63,8 +63,6 @@ public Core.POCO.Kernel.FeatureValues.FeatureValue Create(Core.DTO.Kernel.Featur poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; poco.IsInitial = dto.IsInitial; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowUsageFactory.cs index 5cadbd5c5..8748d3ad2 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowUsageFactory.cs @@ -72,7 +72,6 @@ public Core.POCO.Systems.Flows.FlowUsage Create(Core.DTO.Systems.Flows.FlowUsage poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ForLoopActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ForLoopActionUsageFactory.cs index 0ef4155a9..60f5cb7a0 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ForLoopActionUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ForLoopActionUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Actions.ForLoopActionUsage Create(Core.DTO.Systems.Acti poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ForkNodeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ForkNodeFactory.cs index 908ed3998..208fd27bc 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ForkNodeFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ForkNodeFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Actions.ForkNode Create(Core.DTO.Systems.Actions.ForkNo poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs index 836dda199..76fb97027 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs @@ -61,10 +61,7 @@ public Core.POCO.Systems.Requirements.FramedConcernMembership Create(Core.DTO.Sy poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - ((Core.POCO.Systems.Requirements.IFramedConcernMembership)poco).Kind = ((Core.DTO.Systems.Requirements.IFramedConcernMembership)dto).Kind; - ((Core.POCO.Systems.Requirements.IRequirementConstraintMembership)poco).Kind = ((Core.DTO.Systems.Requirements.IRequirementConstraintMembership)dto).Kind; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; + poco.Kind = dto.Kind; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/IfActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/IfActionUsageFactory.cs index 3d4f38614..171f36bcb 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/IfActionUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/IfActionUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Actions.IfActionUsage Create(Core.DTO.Systems.Actions.I poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/IncludeUseCaseUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/IncludeUseCaseUsageFactory.cs index bb9b12b5d..b5f6f0344 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/IncludeUseCaseUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/IncludeUseCaseUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.UseCases.IncludeUseCaseUsage Create(Core.DTO.Systems.Us poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/IndexExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/IndexExpressionFactory.cs index 35dccd207..34fec89b7 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/IndexExpressionFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/IndexExpressionFactory.cs @@ -71,8 +71,7 @@ public Core.POCO.Kernel.Expressions.IndexExpression Create(Core.DTO.Kernel.Expre poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; poco.IsVariable = dto.IsVariable; - ((Core.POCO.Kernel.Expressions.IIndexExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IIndexExpression)dto).Operator; - ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator; + poco.Operator = dto.Operator; return poco; } diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceDefinitionFactory.cs index c743e8c24..a70e05f7f 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceDefinitionFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceDefinitionFactory.cs @@ -63,8 +63,7 @@ public Core.POCO.Systems.Interfaces.InterfaceDefinition Create(Core.DTO.Systems. poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; poco.IsIndividual = dto.IsIndividual; - ((Core.POCO.Systems.Connections.IConnectionDefinition)poco).IsSufficient = ((Core.DTO.Systems.Connections.IConnectionDefinition)dto).IsSufficient; - ((Core.POCO.Core.Types.IType)poco).IsSufficient = ((Core.DTO.Core.Types.IType)dto).IsSufficient; + poco.IsSufficient = dto.IsSufficient; poco.IsVariation = dto.IsVariation; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceUsageFactory.cs index b8919afd2..f6680c62b 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceUsageFactory.cs @@ -72,7 +72,6 @@ public Core.POCO.Systems.Interfaces.InterfaceUsage Create(Core.DTO.Systems.Inter poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ItemUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ItemUsageFactory.cs index 5d6fdce0a..9845e7abb 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ItemUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ItemUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Items.ItemUsage Create(Core.DTO.Systems.Items.ItemUsage poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/JoinNodeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/JoinNodeFactory.cs index 27d87dd43..7ff22c27d 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/JoinNodeFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/JoinNodeFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Actions.JoinNode Create(Core.DTO.Systems.Actions.JoinNo poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipExposeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipExposeFactory.cs index 217f51888..66eafa9b0 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipExposeFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipExposeFactory.cs @@ -61,11 +61,9 @@ public Core.POCO.Systems.Views.MembershipExpose Create(Core.DTO.Systems.Views.Me poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - ((Core.POCO.Root.Namespaces.IImport)poco).IsImportAll = ((Core.DTO.Root.Namespaces.IImport)dto).IsImportAll; - ((Core.POCO.Systems.Views.IExpose)poco).IsImportAll = ((Core.DTO.Systems.Views.IExpose)dto).IsImportAll; + poco.IsImportAll = dto.IsImportAll; poco.IsRecursive = dto.IsRecursive; - ((Core.POCO.Root.Namespaces.IImport)poco).Visibility = ((Core.DTO.Root.Namespaces.IImport)dto).Visibility; - ((Core.POCO.Systems.Views.IExpose)poco).Visibility = ((Core.DTO.Systems.Views.IExpose)dto).Visibility; + poco.Visibility = dto.Visibility; return poco; } diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MergeNodeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MergeNodeFactory.cs index ee65410e6..4a3968dec 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MergeNodeFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MergeNodeFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Actions.MergeNode Create(Core.DTO.Systems.Actions.Merge poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataUsageFactory.cs index 258cef0bd..69eb2e21a 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Metadata.MetadataUsage Create(Core.DTO.Systems.Metadata poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceExposeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceExposeFactory.cs index 150b68eaf..c8f14e0da 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceExposeFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceExposeFactory.cs @@ -61,11 +61,9 @@ public Core.POCO.Systems.Views.NamespaceExpose Create(Core.DTO.Systems.Views.Nam poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - ((Core.POCO.Systems.Views.IExpose)poco).IsImportAll = ((Core.DTO.Systems.Views.IExpose)dto).IsImportAll; - ((Core.POCO.Root.Namespaces.IImport)poco).IsImportAll = ((Core.DTO.Root.Namespaces.IImport)dto).IsImportAll; + poco.IsImportAll = dto.IsImportAll; poco.IsRecursive = dto.IsRecursive; - ((Core.POCO.Systems.Views.IExpose)poco).Visibility = ((Core.DTO.Systems.Views.IExpose)dto).Visibility; - ((Core.POCO.Root.Namespaces.IImport)poco).Visibility = ((Core.DTO.Root.Namespaces.IImport)dto).Visibility; + poco.Visibility = dto.Visibility; return poco; } diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ObjectiveMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ObjectiveMembershipFactory.cs index 1600cb145..f6fbd0a7d 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ObjectiveMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ObjectiveMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Systems.Cases.ObjectiveMembership Create(Core.DTO.Systems.Cases poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/OccurrenceUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/OccurrenceUsageFactory.cs index d182e7760..f1cc85127 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/OccurrenceUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/OccurrenceUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Occurrences.OccurrenceUsage Create(Core.DTO.Systems.Occ poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/OwningMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/OwningMembershipFactory.cs index e34df9565..95e0f1174 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/OwningMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/OwningMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Root.Namespaces.OwningMembership Create(Core.DTO.Root.Namespace poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ParameterMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ParameterMembershipFactory.cs index 491c18879..dab6dd408 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ParameterMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ParameterMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Kernel.Behaviors.ParameterMembership Create(Core.DTO.Kernel.Beh poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/PartUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/PartUsageFactory.cs index 979286869..065833e41 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/PartUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/PartUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Parts.PartUsage Create(Core.DTO.Systems.Parts.PartUsage poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/PerformActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/PerformActionUsageFactory.cs index 868541980..b550dc51c 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/PerformActionUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/PerformActionUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Actions.PerformActionUsage Create(Core.DTO.Systems.Acti poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/PortUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/PortUsageFactory.cs index 5d9fb491a..8c119f654 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/PortUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/PortUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Ports.PortUsage Create(Core.DTO.Systems.Ports.PortUsage poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ReferenceUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ReferenceUsageFactory.cs index 7df4a19ff..93e412ed4 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ReferenceUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ReferenceUsageFactory.cs @@ -70,7 +70,6 @@ public Core.POCO.Systems.DefinitionAndUsage.ReferenceUsage Create(Core.DTO.Syste poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/RenderingUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/RenderingUsageFactory.cs index ceede372b..aad7c7e99 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/RenderingUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/RenderingUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Views.RenderingUsage Create(Core.DTO.Systems.Views.Rend poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementConstraintMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementConstraintMembershipFactory.cs index ff8867ed8..5d3ddac7d 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementConstraintMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementConstraintMembershipFactory.cs @@ -62,8 +62,6 @@ public Core.POCO.Systems.Requirements.RequirementConstraintMembership Create(Cor poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; poco.Kind = dto.Kind; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementDefinitionFactory.cs index acb4785f1..7594ade6f 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementDefinitionFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementDefinitionFactory.cs @@ -57,7 +57,6 @@ public Core.POCO.Systems.Requirements.RequirementDefinition Create(Core.DTO.Syst poco.Id = dto.Id; poco.AliasIds = dto.AliasIds; poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; poco.ElementId = dto.ElementId; poco.IsAbstract = dto.IsAbstract; poco.IsImpliedIncluded = dto.IsImpliedIncluded; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementUsageFactory.cs index 49939bffc..2bd2dd51e 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementUsageFactory.cs @@ -57,7 +57,6 @@ public Core.POCO.Systems.Requirements.RequirementUsage Create(Core.DTO.Systems.R poco.Id = dto.Id; poco.AliasIds = dto.AliasIds; poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; poco.Direction = dto.Direction; poco.ElementId = dto.ElementId; poco.IsAbstract = dto.IsAbstract; @@ -71,7 +70,6 @@ public Core.POCO.Systems.Requirements.RequirementUsage Create(Core.DTO.Systems.R poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; poco.ReqId = dto.ReqId; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementVerificationMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementVerificationMembershipFactory.cs index 800b1f76c..825c21f55 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementVerificationMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementVerificationMembershipFactory.cs @@ -61,10 +61,7 @@ public Core.POCO.Systems.VerificationCases.RequirementVerificationMembership Cre poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - ((Core.POCO.Systems.VerificationCases.IRequirementVerificationMembership)poco).Kind = ((Core.DTO.Systems.VerificationCases.IRequirementVerificationMembership)dto).Kind; - ((Core.POCO.Systems.Requirements.IRequirementConstraintMembership)poco).Kind = ((Core.DTO.Systems.Requirements.IRequirementConstraintMembership)dto).Kind; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; + poco.Kind = dto.Kind; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ResultExpressionMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ResultExpressionMembershipFactory.cs index f957afacf..3c6eb5752 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ResultExpressionMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ResultExpressionMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Kernel.Functions.ResultExpressionMembership Create(Core.DTO.Ker poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ReturnParameterMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ReturnParameterMembershipFactory.cs index b192a8221..92d8a468e 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ReturnParameterMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ReturnParameterMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Kernel.Functions.ReturnParameterMembership Create(Core.DTO.Kern poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SatisfyRequirementUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SatisfyRequirementUsageFactory.cs index 9f6d2eba2..6cfb3a770 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SatisfyRequirementUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SatisfyRequirementUsageFactory.cs @@ -57,7 +57,6 @@ public Core.POCO.Systems.Requirements.SatisfyRequirementUsage Create(Core.DTO.Sy poco.Id = dto.Id; poco.AliasIds = dto.AliasIds; poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; poco.Direction = dto.Direction; poco.ElementId = dto.ElementId; poco.IsAbstract = dto.IsAbstract; @@ -72,7 +71,6 @@ public Core.POCO.Systems.Requirements.SatisfyRequirementUsage Create(Core.DTO.Sy poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; poco.ReqId = dto.ReqId; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SelectExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SelectExpressionFactory.cs index b38a858c5..9603de206 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SelectExpressionFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SelectExpressionFactory.cs @@ -71,8 +71,7 @@ public Core.POCO.Kernel.Expressions.SelectExpression Create(Core.DTO.Kernel.Expr poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; poco.IsVariable = dto.IsVariable; - ((Core.POCO.Kernel.Expressions.ISelectExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.ISelectExpression)dto).Operator; - ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator; + poco.Operator = dto.Operator; return poco; } diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SendActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SendActionUsageFactory.cs index 5c194803f..1d1c60cea 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SendActionUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SendActionUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Actions.SendActionUsage Create(Core.DTO.Systems.Actions poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/StakeholderMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/StakeholderMembershipFactory.cs index bb0fb3e4d..4bea22caf 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/StakeholderMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/StakeholderMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Systems.Requirements.StakeholderMembership Create(Core.DTO.Syst poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/StateSubactionMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/StateSubactionMembershipFactory.cs index dc6f3a8f0..602ac4c2e 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/StateSubactionMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/StateSubactionMembershipFactory.cs @@ -62,8 +62,6 @@ public Core.POCO.Systems.States.StateSubactionMembership Create(Core.DTO.Systems poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; poco.Kind = dto.Kind; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/StateUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/StateUsageFactory.cs index 62cbe00b7..7861d2957 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/StateUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/StateUsageFactory.cs @@ -72,7 +72,6 @@ public Core.POCO.Systems.States.StateUsage Create(Core.DTO.Systems.States.StateU poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SubjectMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SubjectMembershipFactory.cs index 46fbd464d..377ac9eec 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SubjectMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SubjectMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Systems.Requirements.SubjectMembership Create(Core.DTO.Systems. poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionAsUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionAsUsageFactory.cs index 2b82fa92a..e52c2d70d 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionAsUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionAsUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Connections.SuccessionAsUsage Create(Core.DTO.Systems.C poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFlowUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFlowUsageFactory.cs index ab4d06251..f04e43ba2 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFlowUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFlowUsageFactory.cs @@ -72,7 +72,6 @@ public Core.POCO.Systems.Flows.SuccessionFlowUsage Create(Core.DTO.Systems.Flows poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/TerminateActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/TerminateActionUsageFactory.cs index 45830861b..b1ce3a2af 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/TerminateActionUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/TerminateActionUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Actions.TerminateActionUsage Create(Core.DTO.Systems.Ac poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionFeatureMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionFeatureMembershipFactory.cs index 5190acc28..6dc74076e 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionFeatureMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionFeatureMembershipFactory.cs @@ -62,8 +62,6 @@ public Core.POCO.Systems.States.TransitionFeatureMembership Create(Core.DTO.Syst poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; poco.Kind = dto.Kind; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionUsageFactory.cs index 1f158c662..83c63405c 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.States.TransitionUsage Create(Core.DTO.Systems.States.T poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/UsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/UsageFactory.cs index 48ce4641a..5f081bd23 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/UsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/UsageFactory.cs @@ -70,7 +70,6 @@ public Core.POCO.Systems.DefinitionAndUsage.Usage Create(Core.DTO.Systems.Defini poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/UseCaseUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/UseCaseUsageFactory.cs index b818b7483..647042578 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/UseCaseUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/UseCaseUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.UseCases.UseCaseUsage Create(Core.DTO.Systems.UseCases. poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/VariantMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/VariantMembershipFactory.cs index 5da54c4b5..bdaf68867 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/VariantMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/VariantMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Systems.DefinitionAndUsage.VariantMembership Create(Core.DTO.Sy poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/VerificationCaseUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/VerificationCaseUsageFactory.cs index 1950f4783..40fad2523 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/VerificationCaseUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/VerificationCaseUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.VerificationCases.VerificationCaseUsage Create(Core.DTO poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewRenderingMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewRenderingMembershipFactory.cs index abe8b9938..642b76609 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewRenderingMembershipFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewRenderingMembershipFactory.cs @@ -61,8 +61,6 @@ public Core.POCO.Systems.Views.ViewRenderingMembership Create(Core.DTO.Systems.V poco.ElementId = dto.ElementId; poco.IsImplied = dto.IsImplied; poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - poco.MemberShortName = dto.MemberShortName; poco.Visibility = dto.Visibility; return poco; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewUsageFactory.cs index 770450e84..876e0c6d3 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Views.ViewUsage Create(Core.DTO.Systems.Views.ViewUsage poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointDefinitionFactory.cs index ab1119e9e..3d2f38fc9 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointDefinitionFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointDefinitionFactory.cs @@ -57,7 +57,6 @@ public Core.POCO.Systems.Views.ViewpointDefinition Create(Core.DTO.Systems.Views poco.Id = dto.Id; poco.AliasIds = dto.AliasIds; poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; poco.ElementId = dto.ElementId; poco.IsAbstract = dto.IsAbstract; poco.IsImpliedIncluded = dto.IsImpliedIncluded; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointUsageFactory.cs index 60af42402..fdb77be8b 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointUsageFactory.cs @@ -57,7 +57,6 @@ public Core.POCO.Systems.Views.ViewpointUsage Create(Core.DTO.Systems.Views.View poco.Id = dto.Id; poco.AliasIds = dto.AliasIds; poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; poco.Direction = dto.Direction; poco.ElementId = dto.ElementId; poco.IsAbstract = dto.IsAbstract; @@ -71,7 +70,6 @@ public Core.POCO.Systems.Views.ViewpointUsage Create(Core.DTO.Systems.Views.View poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; poco.ReqId = dto.ReqId; diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/WhileLoopActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/WhileLoopActionUsageFactory.cs index bdec50d68..a25d52469 100644 --- a/SysML2.NET.Dal/Core/AutoGenElementFactory/WhileLoopActionUsageFactory.cs +++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/WhileLoopActionUsageFactory.cs @@ -71,7 +71,6 @@ public Core.POCO.Systems.Actions.WhileLoopActionUsage Create(Core.DTO.Systems.Ac poco.IsPortion = dto.IsPortion; poco.IsSufficient = dto.IsSufficient; poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; poco.IsVariation = dto.IsVariation; poco.PortionKind = dto.PortionKind; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AcceptActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AcceptActionUsageExtensions.cs index 174da1e88..89b1fdfe1 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AcceptActionUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AcceptActionUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Actions.AcceptActionUsage ToDto(this Core.POCO.Sy dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActionUsageExtensions.cs index 8d563db75..f4c24e9c7 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActionUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActionUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Actions.ActionUsage ToDto(this Core.POCO.Systems. dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActorMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActorMembershipExtensions.cs index 2f4f625fe..1d031e1e1 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActorMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActorMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Systems.Requirements.ActorMembership ToDto(this Core.POCO dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationDefinitionExtensions.cs index b99e4fbdb..507522316 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationDefinitionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationDefinitionExtensions.cs @@ -83,9 +83,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsIndividual = dto.IsIndividual; - ((Core.POCO.Systems.Connections.IConnectionDefinition)poco).IsSufficient = ((Core.DTO.Systems.Connections.IConnectionDefinition)dto).IsSufficient; - - ((Core.POCO.Core.Types.IType)poco).IsSufficient = ((Core.DTO.Core.Types.IType)dto).IsSufficient; + poco.IsSufficient = dto.IsSufficient; poco.IsVariation = dto.IsVariation; @@ -107,22 +105,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -199,26 +181,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Allocations. poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -243,15 +205,12 @@ public static Core.DTO.Systems.Allocations.AllocationDefinition ToDto(this Core. dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.IsIndividual = poco.IsIndividual; - ((Core.DTO.Systems.Connections.IConnectionDefinition)dto).IsSufficient = ((Core.POCO.Systems.Connections.IConnectionDefinition)poco).IsSufficient; - ((Core.DTO.Core.Types.IType)dto).IsSufficient = ((Core.POCO.Core.Types.IType)poco).IsSufficient; + dto.IsSufficient = poco.IsSufficient; dto.IsVariation = poco.IsVariation; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationUsageExtensions.cs index ce476be11..011b8f244 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationUsageExtensions.cs @@ -101,8 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); @@ -125,22 +123,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.PortionKind = dto.PortionKind; - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -217,26 +199,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Allocations. poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -270,15 +232,12 @@ public static Core.DTO.Systems.Allocations.AllocationUsage ToDto(this Core.POCO. dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; dto.PortionKind = poco.PortionKind; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnalysisCaseUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnalysisCaseUsageExtensions.cs index a373af544..57169f4c7 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnalysisCaseUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnalysisCaseUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.AnalysisCases.AnalysisCaseUsage ToDto(this Core.P dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnnotationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnnotationExtensions.cs index d346f0d07..54a7cf068 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnnotationExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnnotationExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -198,26 +182,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Annotations.Ann poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -245,8 +209,6 @@ public static Core.DTO.Root.Annotations.Annotation ToDto(this Core.POCO.Root.Ann dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssertConstraintUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssertConstraintUsageExtensions.cs index 75f3b1499..ca912f5f2 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssertConstraintUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssertConstraintUsageExtensions.cs @@ -101,8 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -206,7 +204,6 @@ public static Core.DTO.Systems.Constraints.AssertConstraintUsage ToDto(this Core dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssignmentActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssignmentActionUsageExtensions.cs index 27ba258d3..c0b01b1eb 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssignmentActionUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssignmentActionUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Actions.AssignmentActionUsage ToDto(this Core.POC dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationExtensions.cs index 89cf57d7a..b3322d3d0 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationExtensions.cs @@ -101,22 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -193,26 +177,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Associations. poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -241,8 +205,6 @@ public static Core.DTO.Kernel.Associations.Association ToDto(this Core.POCO.Kern dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationStructureExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationStructureExtensions.cs index 0f81e08d5..375ec967c 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationStructureExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationStructureExtensions.cs @@ -101,22 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -193,26 +177,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Associations. poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -241,8 +205,6 @@ public static Core.DTO.Kernel.Associations.AssociationStructure ToDto(this Core. dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AttributeUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AttributeUsageExtensions.cs index 6d4e3374b..6fc8055f0 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AttributeUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AttributeUsageExtensions.cs @@ -97,8 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -198,7 +196,6 @@ public static Core.DTO.Systems.Attributes.AttributeUsage ToDto(this Core.POCO.Sy dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorAsUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorAsUsageExtensions.cs index 759d93606..2f55d2f4b 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorAsUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorAsUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); @@ -121,22 +119,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -213,26 +195,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections. poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -265,14 +227,11 @@ public static Core.DTO.Systems.Connections.BindingConnectorAsUsage ToDto(this Co dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorExtensions.cs index 04dda5309..57e9e1add 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorExtensions.cs @@ -119,22 +119,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -211,26 +195,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Connectors.Bi poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -268,8 +232,6 @@ public static Core.DTO.Kernel.Connectors.BindingConnector ToDto(this Core.POCO.K dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CalculationUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CalculationUsageExtensions.cs index 9ef8c8b9a..605cf9c9b 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CalculationUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CalculationUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Calculations.CalculationUsage ToDto(this Core.POC dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CaseUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CaseUsageExtensions.cs index 0a4db1aa6..77a107e02 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CaseUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CaseUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Cases.CaseUsage ToDto(this Core.POCO.Systems.Case dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CollectExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CollectExpressionExtensions.cs index 62c2f68bc..5d0e07f80 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CollectExpressionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CollectExpressionExtensions.cs @@ -99,9 +99,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsVariable = dto.IsVariable; - ((Core.POCO.Kernel.Expressions.ICollectExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.ICollectExpression)dto).Operator; - - ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator; + poco.Operator = dto.Operator; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -201,8 +199,7 @@ public static Core.DTO.Kernel.Expressions.CollectExpression ToDto(this Core.POCO dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; dto.IsVariable = poco.IsVariable; - ((Core.DTO.Kernel.Expressions.ICollectExpression)dto).Operator = ((Core.POCO.Kernel.Expressions.ICollectExpression)poco).Operator; - ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator = ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator; + dto.Operator = poco.Operator; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernDefinitionExtensions.cs index 5a5de59d2..937a488cb 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernDefinitionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernDefinitionExtensions.cs @@ -71,8 +71,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; - poco.ElementId = dto.ElementId; poco.IsAbstract = dto.IsAbstract; @@ -171,7 +169,6 @@ public static Core.DTO.Systems.Requirements.ConcernDefinition ToDto(this Core.PO dto.Id = poco.Id; dto.AliasIds = poco.AliasIds; dto.DeclaredName = poco.DeclaredName; - dto.DeclaredShortName = poco.DeclaredShortName; dto.ElementId = poco.ElementId; dto.IsAbstract = poco.IsAbstract; dto.IsImpliedIncluded = poco.IsImpliedIncluded; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernUsageExtensions.cs index a46fbce57..5aca4320a 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernUsageExtensions.cs @@ -71,8 +71,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; - poco.Direction = dto.Direction; poco.ElementId = dto.ElementId; @@ -99,8 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -191,7 +187,6 @@ public static Core.DTO.Systems.Requirements.ConcernUsage ToDto(this Core.POCO.Sy dto.Id = poco.Id; dto.AliasIds = poco.AliasIds; dto.DeclaredName = poco.DeclaredName; - dto.DeclaredShortName = poco.DeclaredShortName; dto.Direction = poco.Direction; dto.ElementId = poco.ElementId; dto.IsAbstract = poco.IsAbstract; @@ -205,7 +200,6 @@ public static Core.DTO.Systems.Requirements.ConcernUsage ToDto(this Core.POCO.Sy dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugatedPortTypingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugatedPortTypingExtensions.cs index e8e4ca375..08dde542c 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugatedPortTypingExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugatedPortTypingExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -160,15 +144,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.Conjug poco.ConjugatedPortDefinition = null; } - if (cache.TryGetValue(dto.General, out lazyPoco)) - { - poco.General = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.General = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -207,44 +182,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.Conjug poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - if (cache.TryGetValue(dto.Specific, out lazyPoco)) - { - poco.Specific = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.Specific = null; - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - if (cache.TryGetValue(dto.Type, out lazyPoco)) - { - poco.Type = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.Type = null; - } - if (cache.TryGetValue(dto.TypedFeature, out lazyPoco)) { poco.TypedFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value; @@ -275,17 +212,12 @@ public static Core.DTO.Systems.Ports.ConjugatedPortTyping ToDto(this Core.POCO.S dto.DeclaredName = poco.DeclaredName; dto.DeclaredShortName = poco.DeclaredShortName; dto.ElementId = poco.ElementId; - dto.General = poco.General.Id; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Specific = poco.Specific.Id; - dto.Target = poco.Target.Select(x => x.Id).ToList(); - dto.Type = poco.Type.Id; dto.TypedFeature = poco.TypedFeature.Id; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugationExtensions.cs index fc4d3a857..1710d9ef7 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugationExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugationExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -207,26 +191,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Conjugati poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -255,8 +219,6 @@ public static Core.DTO.Core.Types.Conjugation ToDto(this Core.POCO.Core.Types.Co dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionDefinitionExtensions.cs index 5a65c9158..d49ccd049 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionDefinitionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionDefinitionExtensions.cs @@ -83,9 +83,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsIndividual = dto.IsIndividual; - ((Core.POCO.Systems.Connections.IConnectionDefinition)poco).IsSufficient = ((Core.DTO.Systems.Connections.IConnectionDefinition)dto).IsSufficient; - - ((Core.POCO.Core.Types.IType)poco).IsSufficient = ((Core.DTO.Core.Types.IType)dto).IsSufficient; + poco.IsSufficient = dto.IsSufficient; poco.IsVariation = dto.IsVariation; @@ -107,22 +105,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -199,26 +181,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections. poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -243,15 +205,12 @@ public static Core.DTO.Systems.Connections.ConnectionDefinition ToDto(this Core. dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.IsIndividual = poco.IsIndividual; - ((Core.DTO.Systems.Connections.IConnectionDefinition)dto).IsSufficient = ((Core.POCO.Systems.Connections.IConnectionDefinition)poco).IsSufficient; - ((Core.DTO.Core.Types.IType)dto).IsSufficient = ((Core.POCO.Core.Types.IType)poco).IsSufficient; + dto.IsSufficient = poco.IsSufficient; dto.IsVariation = poco.IsVariation; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionUsageExtensions.cs index 14ecffa2b..806dd22d4 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionUsageExtensions.cs @@ -101,8 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); @@ -125,22 +123,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.PortionKind = dto.PortionKind; - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -217,26 +199,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections. poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -270,15 +232,12 @@ public static Core.DTO.Systems.Connections.ConnectionUsage ToDto(this Core.POCO. dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; dto.PortionKind = poco.PortionKind; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectorExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectorExtensions.cs index fb725520a..2c9d47e52 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectorExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectorExtensions.cs @@ -119,22 +119,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -211,26 +195,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Connectors.Co poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -268,8 +232,6 @@ public static Core.DTO.Kernel.Connectors.Connector ToDto(this Core.POCO.Kernel.C dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstraintUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstraintUsageExtensions.cs index 36788a155..fd38cba98 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstraintUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstraintUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Constraints.ConstraintUsage ToDto(this Core.POCO. dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CrossSubsettingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CrossSubsettingExtensions.cs index 1c376b8a1..aa2d8d376 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CrossSubsettingExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CrossSubsettingExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -160,15 +144,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.CrossS poco.CrossedFeature = null; } - if (cache.TryGetValue(dto.General, out lazyPoco)) - { - poco.General = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.General = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -207,53 +182,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.CrossS poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - if (cache.TryGetValue(dto.Specific, out lazyPoco)) - { - poco.Specific = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.Specific = null; - } - - if (cache.TryGetValue(dto.SubsettedFeature, out lazyPoco)) - { - poco.SubsettedFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value; - } - else - { - poco.SubsettedFeature = null; - } - - if (cache.TryGetValue(dto.SubsettingFeature, out lazyPoco)) - { - poco.SubsettingFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value; - } - else - { - poco.SubsettingFeature = null; - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -275,18 +203,12 @@ public static Core.DTO.Core.Features.CrossSubsetting ToDto(this Core.POCO.Core.F dto.DeclaredName = poco.DeclaredName; dto.DeclaredShortName = poco.DeclaredShortName; dto.ElementId = poco.ElementId; - dto.General = poco.General.Id; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Specific = poco.Specific.Id; - dto.SubsettedFeature = poco.SubsettedFeature.Id; - dto.SubsettingFeature = poco.SubsettingFeature.Id; - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DecisionNodeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DecisionNodeExtensions.cs index 49e8c68aa..971406d8a 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DecisionNodeExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DecisionNodeExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Actions.DecisionNode ToDto(this Core.POCO.Systems dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DependencyExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DependencyExtensions.cs index 2ce40690e..971bc13c8 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DependencyExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DependencyExtensions.cs @@ -105,14 +105,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - var supplierToDelete = poco.Supplier.Select(x => x.Id).Except(dto.Supplier); foreach (var identifier in supplierToDelete) @@ -121,14 +113,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t } - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -215,16 +199,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - var supplierToAdd = dto.Supplier.Except(poco.Supplier.Select(x => x.Id)); foreach (var identifier in supplierToAdd) @@ -235,16 +209,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De } } - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -272,9 +236,7 @@ public static Core.DTO.Root.Dependencies.Dependency ToDto(this Core.POCO.Root.De dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); dto.Supplier = poco.Supplier.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DifferencingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DifferencingExtensions.cs index 61ce3c80e..6e1cc0963 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DifferencingExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DifferencingExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -198,26 +182,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Differenc poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -245,8 +209,6 @@ public static Core.DTO.Core.Types.Differencing ToDto(this Core.POCO.Core.Types.D dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DisjoiningExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DisjoiningExtensions.cs index 6fd8b52bc..02527c1ec 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DisjoiningExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DisjoiningExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -198,26 +182,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Disjoinin poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - if (cache.TryGetValue(dto.TypeDisjoined, out lazyPoco)) { poco.TypeDisjoined = (Core.POCO.Core.Types.Type)lazyPoco.Value; @@ -254,8 +218,6 @@ public static Core.DTO.Core.Types.Disjoining ToDto(this Core.POCO.Core.Types.Dis dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.TypeDisjoined = poco.TypeDisjoined.Id; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ElementFilterMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ElementFilterMembershipExtensions.cs index a6d7cc8e4..01fb15952 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ElementFilterMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ElementFilterMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Packages.Elem Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Packages.Elem poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Kernel.Packages.ElementFilterMembership ToDto(this Core.P dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EndFeatureMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EndFeatureMembershipExtensions.cs index 963535cc1..71bba2588 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EndFeatureMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EndFeatureMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.EndFea Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.EndFea poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Core.Features.EndFeatureMembership ToDto(this Core.POCO.C dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs index a9e1be225..de2516dea 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs @@ -81,9 +81,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsSufficient = dto.IsSufficient; - ((Core.POCO.Systems.Enumerations.IEnumerationDefinition)poco).IsVariation = ((Core.DTO.Systems.Enumerations.IEnumerationDefinition)dto).IsVariation; - - ((Core.POCO.Systems.DefinitionAndUsage.IDefinition)poco).IsVariation = ((Core.DTO.Systems.DefinitionAndUsage.IDefinition)dto).IsVariation; + poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -174,8 +172,7 @@ public static Core.DTO.Systems.Enumerations.EnumerationDefinition ToDto(this Cor dto.IsAbstract = poco.IsAbstract; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.IsSufficient = poco.IsSufficient; - ((Core.DTO.Systems.Enumerations.IEnumerationDefinition)dto).IsVariation = ((Core.POCO.Systems.Enumerations.IEnumerationDefinition)poco).IsVariation; - ((Core.DTO.Systems.DefinitionAndUsage.IDefinition)dto).IsVariation = ((Core.POCO.Systems.DefinitionAndUsage.IDefinition)poco).IsVariation; + dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationUsageExtensions.cs index 170ea392c..e89ac1c9d 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationUsageExtensions.cs @@ -97,8 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -198,7 +196,6 @@ public static Core.DTO.Systems.Enumerations.EnumerationUsage ToDto(this Core.POC dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EventOccurrenceUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EventOccurrenceUsageExtensions.cs index bfead4641..957917855 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EventOccurrenceUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EventOccurrenceUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Occurrences.EventOccurrenceUsage ToDto(this Core. dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ExhibitStateUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ExhibitStateUsageExtensions.cs index bac6c7f20..5a54bece6 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ExhibitStateUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ExhibitStateUsageExtensions.cs @@ -101,8 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -206,7 +204,6 @@ public static Core.DTO.Systems.States.ExhibitStateUsage ToDto(this Core.POCO.Sys dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainExpressionExtensions.cs index 612ec92e0..fc6ce6c92 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainExpressionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainExpressionExtensions.cs @@ -99,9 +99,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsVariable = dto.IsVariable; - ((Core.POCO.Kernel.Expressions.IFeatureChainExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IFeatureChainExpression)dto).Operator; - - ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator; + poco.Operator = dto.Operator; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -201,8 +199,7 @@ public static Core.DTO.Kernel.Expressions.FeatureChainExpression ToDto(this Core dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; dto.IsVariable = poco.IsVariable; - ((Core.DTO.Kernel.Expressions.IFeatureChainExpression)dto).Operator = ((Core.POCO.Kernel.Expressions.IFeatureChainExpression)poco).Operator; - ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator = ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator; + dto.Operator = poco.Operator; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainingExtensions.cs index cd5b31bc8..d46b8bac7 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainingExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainingExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -198,26 +182,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -245,8 +209,6 @@ public static Core.DTO.Core.Features.FeatureChaining ToDto(this Core.POCO.Core.F dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureInvertingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureInvertingExtensions.cs index 348b15f49..52c12318b 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureInvertingExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureInvertingExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -207,26 +191,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -255,8 +219,6 @@ public static Core.DTO.Core.Features.FeatureInverting ToDto(this Core.POCO.Core. dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureMembershipExtensions.cs index 0216cd031..25cea2355 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.FeatureMe Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.FeatureMe poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Core.Types.FeatureMembership ToDto(this Core.POCO.Core.Ty dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs index 2a3a9d52e..45b4d58bc 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -151,15 +135,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur Lazy lazyPoco; - if (cache.TryGetValue(dto.General, out lazyPoco)) - { - poco.General = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.General = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -198,35 +173,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - if (cache.TryGetValue(dto.Specific, out lazyPoco)) - { - poco.Specific = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.Specific = null; - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - if (cache.TryGetValue(dto.Type, out lazyPoco)) { poco.Type = (Core.POCO.Core.Types.Type)lazyPoco.Value; @@ -265,16 +211,12 @@ public static Core.DTO.Core.Features.FeatureTyping ToDto(this Core.POCO.Core.Fea dto.DeclaredName = poco.DeclaredName; dto.DeclaredShortName = poco.DeclaredShortName; dto.ElementId = poco.ElementId; - dto.General = poco.General.Id; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Specific = poco.Specific.Id; - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Type = poco.Type.Id; dto.TypedFeature = poco.TypedFeature.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureValueExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureValueExtensions.cs index bdefa82c0..3607f4834 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureValueExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureValueExtensions.cs @@ -83,10 +83,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsInitial = dto.IsInitial; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -105,22 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -161,15 +141,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.FeatureValues Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -208,26 +179,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.FeatureValues poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -252,15 +203,10 @@ public static Core.DTO.Kernel.FeatureValues.FeatureValue ToDto(this Core.POCO.Ke dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.IsInitial = poco.IsInitial; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowDefinitionExtensions.cs index d73639566..1d6898048 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowDefinitionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowDefinitionExtensions.cs @@ -105,22 +105,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -197,26 +181,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Flows.FlowDe poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -247,8 +211,6 @@ public static Core.DTO.Systems.Flows.FlowDefinition ToDto(this Core.POCO.Systems dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowExtensions.cs index 41e08951e..93d2d21d6 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowExtensions.cs @@ -119,22 +119,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -211,26 +195,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions. poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -268,8 +232,6 @@ public static Core.DTO.Kernel.Interactions.Flow ToDto(this Core.POCO.Kernel.Inte dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowUsageExtensions.cs index aacd7adbb..9081c5cc7 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowUsageExtensions.cs @@ -101,8 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); @@ -125,22 +123,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.PortionKind = dto.PortionKind; - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -217,26 +199,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Flows.FlowUs poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -270,15 +232,12 @@ public static Core.DTO.Systems.Flows.FlowUsage ToDto(this Core.POCO.Systems.Flow dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; dto.PortionKind = poco.PortionKind; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForLoopActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForLoopActionUsageExtensions.cs index 4a7b11448..cdffa0ff0 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForLoopActionUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForLoopActionUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Actions.ForLoopActionUsage ToDto(this Core.POCO.S dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForkNodeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForkNodeExtensions.cs index c89a7a3c1..06e35e9ec 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForkNodeExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForkNodeExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Actions.ForkNode ToDto(this Core.POCO.Systems.Act dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs index c9a2d9602..9f19b6196 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs @@ -79,13 +79,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - ((Core.POCO.Systems.Requirements.IFramedConcernMembership)poco).Kind = ((Core.DTO.Systems.Requirements.IFramedConcernMembership)dto).Kind; - - ((Core.POCO.Systems.Requirements.IRequirementConstraintMembership)poco).Kind = ((Core.DTO.Systems.Requirements.IRequirementConstraintMembership)dto).Kind; - - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; + poco.Kind = dto.Kind; var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); @@ -105,22 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -161,15 +139,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -208,26 +177,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -250,17 +199,11 @@ public static Core.DTO.Systems.Requirements.FramedConcernMembership ToDto(this C dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - ((Core.DTO.Systems.Requirements.IFramedConcernMembership)dto).Kind = ((Core.POCO.Systems.Requirements.IFramedConcernMembership)poco).Kind; - ((Core.DTO.Systems.Requirements.IRequirementConstraintMembership)dto).Kind = ((Core.POCO.Systems.Requirements.IRequirementConstraintMembership)poco).Kind; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; + dto.Kind = poco.Kind; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IfActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IfActionUsageExtensions.cs index 2c1b7c0bb..94888cfe5 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IfActionUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IfActionUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Actions.IfActionUsage ToDto(this Core.POCO.System dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IncludeUseCaseUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IncludeUseCaseUsageExtensions.cs index 9bd28b074..603818f28 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IncludeUseCaseUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IncludeUseCaseUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.UseCases.IncludeUseCaseUsage ToDto(this Core.POCO dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IndexExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IndexExpressionExtensions.cs index 8e16eddb0..3d65c905c 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IndexExpressionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IndexExpressionExtensions.cs @@ -99,9 +99,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsVariable = dto.IsVariable; - ((Core.POCO.Kernel.Expressions.IIndexExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IIndexExpression)dto).Operator; - - ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator; + poco.Operator = dto.Operator; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -201,8 +199,7 @@ public static Core.DTO.Kernel.Expressions.IndexExpression ToDto(this Core.POCO.K dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; dto.IsVariable = poco.IsVariable; - ((Core.DTO.Kernel.Expressions.IIndexExpression)dto).Operator = ((Core.POCO.Kernel.Expressions.IIndexExpression)poco).Operator; - ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator = ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator; + dto.Operator = poco.Operator; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InteractionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InteractionExtensions.cs index 2c3e707e5..8b9f9b94f 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InteractionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InteractionExtensions.cs @@ -101,22 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -193,26 +177,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions. poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -241,8 +205,6 @@ public static Core.DTO.Kernel.Interactions.Interaction ToDto(this Core.POCO.Kern dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceDefinitionExtensions.cs index fd2791618..13f6fb401 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceDefinitionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceDefinitionExtensions.cs @@ -83,9 +83,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsIndividual = dto.IsIndividual; - ((Core.POCO.Systems.Connections.IConnectionDefinition)poco).IsSufficient = ((Core.DTO.Systems.Connections.IConnectionDefinition)dto).IsSufficient; - - ((Core.POCO.Core.Types.IType)poco).IsSufficient = ((Core.DTO.Core.Types.IType)dto).IsSufficient; + poco.IsSufficient = dto.IsSufficient; poco.IsVariation = dto.IsVariation; @@ -107,22 +105,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -199,26 +181,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Interfaces.I poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -243,15 +205,12 @@ public static Core.DTO.Systems.Interfaces.InterfaceDefinition ToDto(this Core.PO dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.IsIndividual = poco.IsIndividual; - ((Core.DTO.Systems.Connections.IConnectionDefinition)dto).IsSufficient = ((Core.POCO.Systems.Connections.IConnectionDefinition)poco).IsSufficient; - ((Core.DTO.Core.Types.IType)dto).IsSufficient = ((Core.POCO.Core.Types.IType)poco).IsSufficient; + dto.IsSufficient = poco.IsSufficient; dto.IsVariation = poco.IsVariation; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceUsageExtensions.cs index 7aaa225b8..883f8f04d 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceUsageExtensions.cs @@ -101,8 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); @@ -125,22 +123,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.PortionKind = dto.PortionKind; - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -217,26 +199,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Interfaces.I poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -270,15 +232,12 @@ public static Core.DTO.Systems.Interfaces.InterfaceUsage ToDto(this Core.POCO.Sy dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; dto.PortionKind = poco.PortionKind; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IntersectingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IntersectingExtensions.cs index 4bef3954f..b5b6ff7c2 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IntersectingExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IntersectingExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -198,26 +182,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Intersect poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -245,8 +209,6 @@ public static Core.DTO.Core.Types.Intersecting ToDto(this Core.POCO.Core.Types.I dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ItemUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ItemUsageExtensions.cs index e82dc44cc..36eace0ca 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ItemUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ItemUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Items.ItemUsage ToDto(this Core.POCO.Systems.Item dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/JoinNodeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/JoinNodeExtensions.cs index dbe912a1c..24e720dba 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/JoinNodeExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/JoinNodeExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Actions.JoinNode ToDto(this Core.POCO.Systems.Act dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExposeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExposeExtensions.cs index f94ac7bc7..da622fd3f 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExposeExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExposeExtensions.cs @@ -79,9 +79,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - ((Core.POCO.Root.Namespaces.IImport)poco).IsImportAll = ((Core.DTO.Root.Namespaces.IImport)dto).IsImportAll; - - ((Core.POCO.Systems.Views.IExpose)poco).IsImportAll = ((Core.DTO.Systems.Views.IExpose)dto).IsImportAll; + poco.IsImportAll = dto.IsImportAll; poco.IsRecursive = dto.IsRecursive; @@ -103,25 +101,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - - ((Core.POCO.Root.Namespaces.IImport)poco).Visibility = ((Core.DTO.Root.Namespaces.IImport)dto).Visibility; - - ((Core.POCO.Systems.Views.IExpose)poco).Visibility = ((Core.DTO.Systems.Views.IExpose)dto).Visibility; + poco.Visibility = dto.Visibility; return identifiersOfObjectsToDelete; @@ -208,26 +188,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.Member poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -251,17 +211,13 @@ public static Core.DTO.Systems.Views.MembershipExpose ToDto(this Core.POCO.Syste dto.ImportedMembership = poco.ImportedMembership.Id; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - ((Core.DTO.Root.Namespaces.IImport)dto).IsImportAll = ((Core.POCO.Root.Namespaces.IImport)poco).IsImportAll; - ((Core.DTO.Systems.Views.IExpose)dto).IsImportAll = ((Core.POCO.Systems.Views.IExpose)poco).IsImportAll; + dto.IsImportAll = poco.IsImportAll; dto.IsRecursive = poco.IsRecursive; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); - ((Core.DTO.Root.Namespaces.IImport)dto).Visibility = ((Core.POCO.Root.Namespaces.IImport)poco).Visibility; - ((Core.DTO.Systems.Views.IExpose)dto).Visibility = ((Core.POCO.Systems.Views.IExpose)poco).Visibility; + dto.Visibility = poco.Visibility; return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExtensions.cs index bd6884884..9561aa74d 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExtensions.cs @@ -101,22 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -204,26 +188,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -253,8 +217,6 @@ public static Core.DTO.Root.Namespaces.Membership ToDto(this Core.POCO.Root.Name dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipImportExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipImportExtensions.cs index aa675de5d..7f432a53e 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipImportExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipImportExtensions.cs @@ -101,22 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -204,26 +188,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -253,8 +217,6 @@ public static Core.DTO.Root.Namespaces.MembershipImport ToDto(this Core.POCO.Roo dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MergeNodeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MergeNodeExtensions.cs index 8313ae60e..9b1024a82 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MergeNodeExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MergeNodeExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Actions.MergeNode ToDto(this Core.POCO.Systems.Ac dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataUsageExtensions.cs index c57463ec7..c541a6389 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Metadata.MetadataUsage ToDto(this Core.POCO.Syste dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceExposeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceExposeExtensions.cs index 1efb3f812..59f472e7f 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceExposeExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceExposeExtensions.cs @@ -79,9 +79,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - ((Core.POCO.Systems.Views.IExpose)poco).IsImportAll = ((Core.DTO.Systems.Views.IExpose)dto).IsImportAll; - - ((Core.POCO.Root.Namespaces.IImport)poco).IsImportAll = ((Core.DTO.Root.Namespaces.IImport)dto).IsImportAll; + poco.IsImportAll = dto.IsImportAll; poco.IsRecursive = dto.IsRecursive; @@ -103,25 +101,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - - ((Core.POCO.Systems.Views.IExpose)poco).Visibility = ((Core.DTO.Systems.Views.IExpose)dto).Visibility; - - ((Core.POCO.Root.Namespaces.IImport)poco).Visibility = ((Core.DTO.Root.Namespaces.IImport)dto).Visibility; + poco.Visibility = dto.Visibility; return identifiersOfObjectsToDelete; @@ -208,26 +188,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.Namesp poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -251,17 +211,13 @@ public static Core.DTO.Systems.Views.NamespaceExpose ToDto(this Core.POCO.System dto.ImportedNamespace = poco.ImportedNamespace.Id; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - ((Core.DTO.Systems.Views.IExpose)dto).IsImportAll = ((Core.POCO.Systems.Views.IExpose)poco).IsImportAll; - ((Core.DTO.Root.Namespaces.IImport)dto).IsImportAll = ((Core.POCO.Root.Namespaces.IImport)poco).IsImportAll; + dto.IsImportAll = poco.IsImportAll; dto.IsRecursive = poco.IsRecursive; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); - ((Core.DTO.Systems.Views.IExpose)dto).Visibility = ((Core.POCO.Systems.Views.IExpose)poco).Visibility; - ((Core.DTO.Root.Namespaces.IImport)dto).Visibility = ((Core.POCO.Root.Namespaces.IImport)poco).Visibility; + dto.Visibility = poco.Visibility; return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceImportExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceImportExtensions.cs index 103ba2d4d..28d050ef2 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceImportExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceImportExtensions.cs @@ -101,22 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -204,26 +188,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Name poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -253,8 +217,6 @@ public static Core.DTO.Root.Namespaces.NamespaceImport ToDto(this Core.POCO.Root dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ObjectiveMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ObjectiveMembershipExtensions.cs index 1928a570f..af2cca058 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ObjectiveMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ObjectiveMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Cases.Object Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Cases.Object poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Systems.Cases.ObjectiveMembership ToDto(this Core.POCO.Sy dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/OccurrenceUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/OccurrenceUsageExtensions.cs index 9280a533e..8d94cd9f9 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/OccurrenceUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/OccurrenceUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Occurrences.OccurrenceUsage ToDto(this Core.POCO. dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs index 2701e6f90..8a9b7046c 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Owni Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Owni poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Root.Namespaces.OwningMembership ToDto(this Core.POCO.Roo dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ParameterMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ParameterMembershipExtensions.cs index 8d37fb08c..c60df04a1 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ParameterMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ParameterMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Behaviors.Par Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Behaviors.Par poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Kernel.Behaviors.ParameterMembership ToDto(this Core.POCO dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PartUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PartUsageExtensions.cs index 232652598..624e883b9 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PartUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PartUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Parts.PartUsage ToDto(this Core.POCO.Systems.Part dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PerformActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PerformActionUsageExtensions.cs index bed18d416..b81d95033 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PerformActionUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PerformActionUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Actions.PerformActionUsage ToDto(this Core.POCO.S dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortConjugationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortConjugationExtensions.cs index 431a3561a..6124e9c32 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortConjugationExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortConjugationExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -169,15 +153,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.PortCo poco.OriginalPortDefinition = null; } - if (cache.TryGetValue(dto.OriginalType, out lazyPoco)) - { - poco.OriginalType = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.OriginalType = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -216,26 +191,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.PortCo poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -260,13 +215,10 @@ public static Core.DTO.Systems.Ports.PortConjugation ToDto(this Core.POCO.System dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.OriginalPortDefinition = poco.OriginalPortDefinition.Id; - dto.OriginalType = poco.OriginalType.Id; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortUsageExtensions.cs index af6c83588..fcbf39ea5 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Ports.PortUsage ToDto(this Core.POCO.Systems.Port dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RedefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RedefinitionExtensions.cs index 94d82fc8e..18d18de0d 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RedefinitionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RedefinitionExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -151,15 +135,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Redefi Lazy lazyPoco; - if (cache.TryGetValue(dto.General, out lazyPoco)) - { - poco.General = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.General = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -216,53 +191,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Redefi poco.RedefiningFeature = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - if (cache.TryGetValue(dto.Specific, out lazyPoco)) - { - poco.Specific = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.Specific = null; - } - - if (cache.TryGetValue(dto.SubsettedFeature, out lazyPoco)) - { - poco.SubsettedFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value; - } - else - { - poco.SubsettedFeature = null; - } - - if (cache.TryGetValue(dto.SubsettingFeature, out lazyPoco)) - { - poco.SubsettingFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value; - } - else - { - poco.SubsettingFeature = null; - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -283,7 +211,6 @@ public static Core.DTO.Core.Features.Redefinition ToDto(this Core.POCO.Core.Feat dto.DeclaredName = poco.DeclaredName; dto.DeclaredShortName = poco.DeclaredShortName; dto.ElementId = poco.ElementId; - dto.General = poco.General.Id; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); @@ -292,11 +219,6 @@ public static Core.DTO.Core.Features.Redefinition ToDto(this Core.POCO.Core.Feat dto.OwningRelationship = poco.OwningRelationship?.Id; dto.RedefinedFeature = poco.RedefinedFeature.Id; dto.RedefiningFeature = poco.RedefiningFeature.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Specific = poco.Specific.Id; - dto.SubsettedFeature = poco.SubsettedFeature.Id; - dto.SubsettingFeature = poco.SubsettingFeature.Id; - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs index 05ed37dd8..ed8a20d99 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -151,15 +135,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Refere Lazy lazyPoco; - if (cache.TryGetValue(dto.General, out lazyPoco)) - { - poco.General = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.General = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -207,53 +182,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Refere poco.ReferencedFeature = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - if (cache.TryGetValue(dto.Specific, out lazyPoco)) - { - poco.Specific = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.Specific = null; - } - - if (cache.TryGetValue(dto.SubsettedFeature, out lazyPoco)) - { - poco.SubsettedFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value; - } - else - { - poco.SubsettedFeature = null; - } - - if (cache.TryGetValue(dto.SubsettingFeature, out lazyPoco)) - { - poco.SubsettingFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value; - } - else - { - poco.SubsettingFeature = null; - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -274,7 +202,6 @@ public static Core.DTO.Core.Features.ReferenceSubsetting ToDto(this Core.POCO.Co dto.DeclaredName = poco.DeclaredName; dto.DeclaredShortName = poco.DeclaredShortName; dto.ElementId = poco.ElementId; - dto.General = poco.General.Id; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); @@ -282,11 +209,6 @@ public static Core.DTO.Core.Features.ReferenceSubsetting ToDto(this Core.POCO.Co dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; dto.ReferencedFeature = poco.ReferencedFeature.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Specific = poco.Specific.Id; - dto.SubsettedFeature = poco.SubsettedFeature.Id; - dto.SubsettingFeature = poco.SubsettingFeature.Id; - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceUsageExtensions.cs index 53ed800f4..10ef1f38a 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceUsageExtensions.cs @@ -97,8 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -198,7 +196,6 @@ public static Core.DTO.Systems.DefinitionAndUsage.ReferenceUsage ToDto(this Core dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RenderingUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RenderingUsageExtensions.cs index 7679749de..dc7f3cb82 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RenderingUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RenderingUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Views.RenderingUsage ToDto(this Core.POCO.Systems dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementConstraintMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementConstraintMembershipExtensions.cs index 456c74cd3..6ba95b2ef 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementConstraintMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementConstraintMembershipExtensions.cs @@ -81,10 +81,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.Kind = dto.Kind; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -103,22 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -159,15 +139,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -206,26 +177,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -249,15 +200,10 @@ public static Core.DTO.Systems.Requirements.RequirementConstraintMembership ToDt dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.Kind = poco.Kind; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementDefinitionExtensions.cs index 929d2d9bc..99c8a9e3d 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementDefinitionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementDefinitionExtensions.cs @@ -71,8 +71,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; - poco.ElementId = dto.ElementId; poco.IsAbstract = dto.IsAbstract; @@ -171,7 +169,6 @@ public static Core.DTO.Systems.Requirements.RequirementDefinition ToDto(this Cor dto.Id = poco.Id; dto.AliasIds = poco.AliasIds; dto.DeclaredName = poco.DeclaredName; - dto.DeclaredShortName = poco.DeclaredShortName; dto.ElementId = poco.ElementId; dto.IsAbstract = poco.IsAbstract; dto.IsImpliedIncluded = poco.IsImpliedIncluded; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs index 382173d0f..8466878bb 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs @@ -71,8 +71,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; - poco.Direction = dto.Direction; poco.ElementId = dto.ElementId; @@ -99,8 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -191,7 +187,6 @@ public static Core.DTO.Systems.Requirements.RequirementUsage ToDto(this Core.POC dto.Id = poco.Id; dto.AliasIds = poco.AliasIds; dto.DeclaredName = poco.DeclaredName; - dto.DeclaredShortName = poco.DeclaredShortName; dto.Direction = poco.Direction; dto.ElementId = poco.ElementId; dto.IsAbstract = poco.IsAbstract; @@ -205,7 +200,6 @@ public static Core.DTO.Systems.Requirements.RequirementUsage ToDto(this Core.POC dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementVerificationMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementVerificationMembershipExtensions.cs index 4c573e1bc..2c50da3e5 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementVerificationMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementVerificationMembershipExtensions.cs @@ -79,13 +79,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - ((Core.POCO.Systems.VerificationCases.IRequirementVerificationMembership)poco).Kind = ((Core.DTO.Systems.VerificationCases.IRequirementVerificationMembership)dto).Kind; - - ((Core.POCO.Systems.Requirements.IRequirementConstraintMembership)poco).Kind = ((Core.DTO.Systems.Requirements.IRequirementConstraintMembership)dto).Kind; - - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; + poco.Kind = dto.Kind; var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); @@ -105,22 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -161,15 +139,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Verification Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -208,26 +177,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Verification poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -250,17 +199,11 @@ public static Core.DTO.Systems.VerificationCases.RequirementVerificationMembersh dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - ((Core.DTO.Systems.VerificationCases.IRequirementVerificationMembership)dto).Kind = ((Core.POCO.Systems.VerificationCases.IRequirementVerificationMembership)poco).Kind; - ((Core.DTO.Systems.Requirements.IRequirementConstraintMembership)dto).Kind = ((Core.POCO.Systems.Requirements.IRequirementConstraintMembership)poco).Kind; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; + dto.Kind = poco.Kind; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ResultExpressionMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ResultExpressionMembershipExtensions.cs index 9fc50c728..1dc15049e 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ResultExpressionMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ResultExpressionMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Res Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Res poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Kernel.Functions.ResultExpressionMembership ToDto(this Co dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReturnParameterMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReturnParameterMembershipExtensions.cs index 403638d45..bf239a014 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReturnParameterMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReturnParameterMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Ret Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Ret poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Kernel.Functions.ReturnParameterMembership ToDto(this Cor dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SatisfyRequirementUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SatisfyRequirementUsageExtensions.cs index ac33c020c..b72bcacc0 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SatisfyRequirementUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SatisfyRequirementUsageExtensions.cs @@ -71,8 +71,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; - poco.Direction = dto.Direction; poco.ElementId = dto.ElementId; @@ -101,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -193,7 +189,6 @@ public static Core.DTO.Systems.Requirements.SatisfyRequirementUsage ToDto(this C dto.Id = poco.Id; dto.AliasIds = poco.AliasIds; dto.DeclaredName = poco.DeclaredName; - dto.DeclaredShortName = poco.DeclaredShortName; dto.Direction = poco.Direction; dto.ElementId = poco.ElementId; dto.IsAbstract = poco.IsAbstract; @@ -208,7 +203,6 @@ public static Core.DTO.Systems.Requirements.SatisfyRequirementUsage ToDto(this C dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs index 8a8848e18..53e8dd625 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs @@ -99,9 +99,7 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsVariable = dto.IsVariable; - ((Core.POCO.Kernel.Expressions.ISelectExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.ISelectExpression)dto).Operator; - - ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator = ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator; + poco.Operator = dto.Operator; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -201,8 +199,7 @@ public static Core.DTO.Kernel.Expressions.SelectExpression ToDto(this Core.POCO. dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; dto.IsVariable = poco.IsVariable; - ((Core.DTO.Kernel.Expressions.ISelectExpression)dto).Operator = ((Core.POCO.Kernel.Expressions.ISelectExpression)poco).Operator; - ((Core.DTO.Kernel.Expressions.IOperatorExpression)dto).Operator = ((Core.POCO.Kernel.Expressions.IOperatorExpression)poco).Operator; + dto.Operator = poco.Operator; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SendActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SendActionUsageExtensions.cs index 33f95b3a7..b5810cda2 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SendActionUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SendActionUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Actions.SendActionUsage ToDto(this Core.POCO.Syst dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SpecializationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SpecializationExtensions.cs index 14ef1812c..7bc5bf0db 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SpecializationExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SpecializationExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -198,16 +182,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Specializ poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - if (cache.TryGetValue(dto.Specific, out lazyPoco)) { poco.Specific = (Core.POCO.Core.Types.Type)lazyPoco.Value; @@ -217,16 +191,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Specializ poco.Specific = null; } - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -254,9 +218,7 @@ public static Core.DTO.Core.Types.Specialization ToDto(this Core.POCO.Core.Types dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); dto.Specific = poco.Specific.Id; - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StakeholderMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StakeholderMembershipExtensions.cs index 5e2bb3ccd..cb79cf9d6 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StakeholderMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StakeholderMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Systems.Requirements.StakeholderMembership ToDto(this Cor dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateSubactionMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateSubactionMembershipExtensions.cs index 95f7f07ed..afdfd5159 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateSubactionMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateSubactionMembershipExtensions.cs @@ -81,10 +81,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.Kind = dto.Kind; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -103,22 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -159,15 +139,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.State Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -206,26 +177,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.State poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -249,15 +200,10 @@ public static Core.DTO.Systems.States.StateSubactionMembership ToDto(this Core.P dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.Kind = poco.Kind; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateUsageExtensions.cs index 4a0e7f56d..40bf71ca8 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateUsageExtensions.cs @@ -101,8 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -206,7 +204,6 @@ public static Core.DTO.Systems.States.StateUsage ToDto(this Core.POCO.Systems.St dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubclassificationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubclassificationExtensions.cs index 8d2ccff99..63e6d25e5 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubclassificationExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubclassificationExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -151,15 +135,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub Lazy lazyPoco; - if (cache.TryGetValue(dto.General, out lazyPoco)) - { - poco.General = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.General = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -198,25 +173,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - if (cache.TryGetValue(dto.Specific, out lazyPoco)) - { - poco.Specific = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.Specific = null; - } - if (cache.TryGetValue(dto.Subclassifier, out lazyPoco)) { poco.Subclassifier = (Core.POCO.Core.Classifiers.Classifier)lazyPoco.Value; @@ -235,16 +191,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub poco.Superclassifier = null; } - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -265,18 +211,14 @@ public static Core.DTO.Core.Classifiers.Subclassification ToDto(this Core.POCO.C dto.DeclaredName = poco.DeclaredName; dto.DeclaredShortName = poco.DeclaredShortName; dto.ElementId = poco.ElementId; - dto.General = poco.General.Id; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Specific = poco.Specific.Id; dto.Subclassifier = poco.Subclassifier.Id; dto.Superclassifier = poco.Superclassifier.Id; - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubjectMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubjectMembershipExtensions.cs index 1b25566fa..1651402f4 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubjectMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubjectMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Systems.Requirements.SubjectMembership ToDto(this Core.PO dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubsettingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubsettingExtensions.cs index a8a02ff08..859da7010 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubsettingExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubsettingExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -151,15 +135,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Subset Lazy lazyPoco; - if (cache.TryGetValue(dto.General, out lazyPoco)) - { - poco.General = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.General = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -198,25 +173,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Subset poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - if (cache.TryGetValue(dto.Specific, out lazyPoco)) - { - poco.Specific = (Core.POCO.Core.Types.Type)lazyPoco.Value; - } - else - { - poco.Specific = null; - } - if (cache.TryGetValue(dto.SubsettedFeature, out lazyPoco)) { poco.SubsettedFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value; @@ -235,16 +191,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Subset poco.SubsettingFeature = null; } - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -265,18 +211,14 @@ public static Core.DTO.Core.Features.Subsetting ToDto(this Core.POCO.Core.Featur dto.DeclaredName = poco.DeclaredName; dto.DeclaredShortName = poco.DeclaredShortName; dto.ElementId = poco.ElementId; - dto.General = poco.General.Id; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Specific = poco.Specific.Id; dto.SubsettedFeature = poco.SubsettedFeature.Id; dto.SubsettingFeature = poco.SubsettingFeature.Id; - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionAsUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionAsUsageExtensions.cs index b7b6634dd..667186182 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionAsUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionAsUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); @@ -121,22 +119,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -213,26 +195,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections. poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -265,14 +227,11 @@ public static Core.DTO.Systems.Connections.SuccessionAsUsage ToDto(this Core.POC dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionExtensions.cs index 9088ea5dd..9ff77a510 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionExtensions.cs @@ -119,22 +119,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -211,26 +195,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Connectors.Su poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -268,8 +232,6 @@ public static Core.DTO.Kernel.Connectors.Succession ToDto(this Core.POCO.Kernel. dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowExtensions.cs index dc9c368ef..f7c0c3714 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowExtensions.cs @@ -119,22 +119,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -211,26 +195,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions. poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -268,8 +232,6 @@ public static Core.DTO.Kernel.Interactions.SuccessionFlow ToDto(this Core.POCO.K dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowUsageExtensions.cs index fcfc89832..75f18fb6d 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowUsageExtensions.cs @@ -101,8 +101,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); @@ -125,22 +123,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.PortionKind = dto.PortionKind; - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -217,26 +199,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Flows.Succes poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -270,15 +232,12 @@ public static Core.DTO.Systems.Flows.SuccessionFlowUsage ToDto(this Core.POCO.Sy dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; dto.PortionKind = poco.PortionKind; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TerminateActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TerminateActionUsageExtensions.cs index fd291db8c..ca198ee03 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TerminateActionUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TerminateActionUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Actions.TerminateActionUsage ToDto(this Core.POCO dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionFeatureMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionFeatureMembershipExtensions.cs index 806f19305..5927a7e27 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionFeatureMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionFeatureMembershipExtensions.cs @@ -81,10 +81,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.Kind = dto.Kind; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -103,22 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -159,15 +139,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.Trans Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -206,26 +177,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.Trans poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -249,15 +200,10 @@ public static Core.DTO.Systems.States.TransitionFeatureMembership ToDto(this Cor dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; dto.Kind = poco.Kind; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionUsageExtensions.cs index 696025536..982d08634 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.States.TransitionUsage ToDto(this Core.POCO.Syste dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TypeFeaturingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TypeFeaturingExtensions.cs index 1c9e6967b..bac2b2b09 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TypeFeaturingExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TypeFeaturingExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -207,26 +191,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.TypeFe poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -255,8 +219,6 @@ public static Core.DTO.Core.Features.TypeFeaturing ToDto(this Core.POCO.Core.Fea dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); return dto; } diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/UnioningExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/UnioningExtensions.cs index f00866321..01957463d 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/UnioningExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/UnioningExtensions.cs @@ -97,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - return identifiersOfObjectsToDelete; } @@ -189,26 +173,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Unioning poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - if (cache.TryGetValue(dto.UnioningType, out lazyPoco)) { poco.UnioningType = (Core.POCO.Core.Types.Type)lazyPoco.Value; @@ -244,8 +208,6 @@ public static Core.DTO.Core.Types.Unioning ToDto(this Core.POCO.Core.Types.Union dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.UnioningType = poco.UnioningType.Id; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/UsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/UsageExtensions.cs index 0ef21c575..70838a207 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/UsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/UsageExtensions.cs @@ -97,8 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -198,7 +196,6 @@ public static Core.DTO.Systems.DefinitionAndUsage.Usage ToDto(this Core.POCO.Sys dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/UseCaseUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/UseCaseUsageExtensions.cs index 0f9bab461..d5d8228c8 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/UseCaseUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/UseCaseUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.UseCases.UseCaseUsage ToDto(this Core.POCO.System dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/VariantMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/VariantMembershipExtensions.cs index ec4c0ad04..17da3c312 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/VariantMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/VariantMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.DefinitionAn Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.DefinitionAn poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Systems.DefinitionAndUsage.VariantMembership ToDto(this C dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/VerificationCaseUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/VerificationCaseUsageExtensions.cs index 01aa5b222..77a61eaad 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/VerificationCaseUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/VerificationCaseUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.VerificationCases.VerificationCaseUsage ToDto(thi dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewRenderingMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewRenderingMembershipExtensions.cs index 3f12eca46..73beb8a64 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewRenderingMembershipExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewRenderingMembershipExtensions.cs @@ -79,10 +79,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsImpliedIncluded = dto.IsImpliedIncluded; - poco.MemberName = dto.MemberName; - - poco.MemberShortName = dto.MemberShortName; - var ownedRelatedElementToDelete = poco.OwnedRelatedElement.Select(x => x.Id).Except(dto.OwnedRelatedElement); foreach (var identifier in ownedRelatedElementToDelete) @@ -101,22 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t identifiersOfObjectsToDelete.AddRange(ownedRelationshipToDelete); - var sourceToDelete = poco.Source.Select(x => x.Id).Except(dto.Source); - - foreach (var identifier in sourceToDelete) - { - poco.Source.Remove(poco.Source.Single(x => x.Id == identifier)); - } - - - var targetToDelete = poco.Target.Select(x => x.Id).Except(dto.Target); - - foreach (var identifier in targetToDelete) - { - poco.Target.Remove(poco.Target.Single(x => x.Id == identifier)); - } - - poco.Visibility = dto.Visibility; @@ -157,15 +137,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.ViewRe Lazy lazyPoco; - if (cache.TryGetValue(dto.MemberElement, out lazyPoco)) - { - poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value; - } - else - { - poco.MemberElement = null; - } - var ownedRelatedElementToAdd = dto.OwnedRelatedElement.Except(poco.OwnedRelatedElement.Select(x => x.Id)); foreach (var identifier in ownedRelatedElementToAdd) @@ -204,26 +175,6 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.ViewRe poco.OwningRelationship = null; } - var sourceToAdd = dto.Source.Except(poco.Source.Select(x => x.Id)); - - foreach (var identifier in sourceToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Source.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - - var targetToAdd = dto.Target.Except(poco.Target.Select(x => x.Id)); - - foreach (var identifier in targetToAdd) - { - if (cache.TryGetValue(identifier, out lazyPoco)) - { - poco.Target.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value); - } - } - } /// @@ -246,15 +197,10 @@ public static Core.DTO.Systems.Views.ViewRenderingMembership ToDto(this Core.POC dto.ElementId = poco.ElementId; dto.IsImplied = poco.IsImplied; dto.IsImpliedIncluded = poco.IsImpliedIncluded; - dto.MemberElement = poco.MemberElement.Id; - dto.MemberName = poco.MemberName; - dto.MemberShortName = poco.MemberShortName; dto.OwnedRelatedElement = poco.OwnedRelatedElement.Select(x => x.Id).ToList(); dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelatedElement = poco.OwningRelatedElement?.Id; dto.OwningRelationship = poco.OwningRelationship?.Id; - dto.Source = poco.Source.Select(x => x.Id).ToList(); - dto.Target = poco.Target.Select(x => x.Id).ToList(); dto.Visibility = poco.Visibility; return dto; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewUsageExtensions.cs index 6f34ee219..e4a039717 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Views.ViewUsage ToDto(this Core.POCO.Systems.View dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewpointDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewpointDefinitionExtensions.cs index 724330efa..0755b14bd 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewpointDefinitionExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewpointDefinitionExtensions.cs @@ -71,8 +71,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; - poco.ElementId = dto.ElementId; poco.IsAbstract = dto.IsAbstract; @@ -171,7 +169,6 @@ public static Core.DTO.Systems.Views.ViewpointDefinition ToDto(this Core.POCO.Sy dto.Id = poco.Id; dto.AliasIds = poco.AliasIds; dto.DeclaredName = poco.DeclaredName; - dto.DeclaredShortName = poco.DeclaredShortName; dto.ElementId = poco.ElementId; dto.IsAbstract = poco.IsAbstract; dto.IsImpliedIncluded = poco.IsImpliedIncluded; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewpointUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewpointUsageExtensions.cs index 451075d86..e88d0b5e9 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewpointUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ViewpointUsageExtensions.cs @@ -71,8 +71,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.DeclaredName = dto.DeclaredName; - poco.DeclaredShortName = dto.DeclaredShortName; - poco.Direction = dto.Direction; poco.ElementId = dto.ElementId; @@ -99,8 +97,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -191,7 +187,6 @@ public static Core.DTO.Systems.Views.ViewpointUsage ToDto(this Core.POCO.Systems dto.Id = poco.Id; dto.AliasIds = poco.AliasIds; dto.DeclaredName = poco.DeclaredName; - dto.DeclaredShortName = poco.DeclaredShortName; dto.Direction = poco.Direction; dto.ElementId = poco.ElementId; dto.IsAbstract = poco.IsAbstract; @@ -205,7 +200,6 @@ public static Core.DTO.Systems.Views.ViewpointUsage ToDto(this Core.POCO.Systems dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/WhileLoopActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/WhileLoopActionUsageExtensions.cs index 9e525d2ee..06325d263 100644 --- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/WhileLoopActionUsageExtensions.cs +++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/WhileLoopActionUsageExtensions.cs @@ -99,8 +99,6 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t poco.IsUnique = dto.IsUnique; - poco.IsVariable = dto.IsVariable; - poco.IsVariation = dto.IsVariation; var ownedRelationshipToDelete = poco.OwnedRelationship.Select(x => x.Id).Except(dto.OwnedRelationship); @@ -203,7 +201,6 @@ public static Core.DTO.Systems.Actions.WhileLoopActionUsage ToDto(this Core.POCO dto.IsPortion = poco.IsPortion; dto.IsSufficient = poco.IsSufficient; dto.IsUnique = poco.IsUnique; - dto.IsVariable = poco.IsVariable; dto.IsVariation = poco.IsVariation; dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList(); dto.OwningRelationship = poco.OwningRelationship?.Id; diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AcceptActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AcceptActionUsageDeSerializer.cs index 376f8e556..762bdce00 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AcceptActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AcceptActionUsageDeSerializer.cs @@ -122,26 +122,6 @@ internal static IAcceptActionUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IAcceptActionUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +204,6 @@ internal static IAcceptActionUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the differencingType Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -748,18 +688,6 @@ internal static IAcceptActionUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isUnique Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1397,26 +1325,6 @@ internal static IAcceptActionUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the nestedViewpoint Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2241,26 +2149,6 @@ internal static IAcceptActionUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the textualRepresentation Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the AcceptActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionDefinitionDeSerializer.cs index 159ff1ce3..1d2e7d0c0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionDefinitionDeSerializer.cs @@ -160,26 +160,6 @@ internal static IActionDefinition DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the differencingType Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the ActionDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionUsageDeSerializer.cs index f05cf5241..1f2c09d22 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionUsageDeSerializer.cs @@ -122,26 +122,6 @@ internal static IActionUsage DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the aliasIds Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IActionUsage DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the declaredShortName Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +204,6 @@ internal static IActionUsage DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the differencingType Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -748,18 +688,6 @@ internal static IActionUsage DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the isUnique Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1397,26 +1325,6 @@ internal static IActionUsage DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the nestedViewpoint Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2168,26 +2076,6 @@ internal static IActionUsage DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the textualRepresentation Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the ActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActorMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActorMembershipDeSerializer.cs index bce9d581a..c385e48f6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActorMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActorMembershipDeSerializer.cs @@ -190,88 +190,6 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isLibraryElement Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the ActorMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the ActorMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -346,31 +264,6 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the ownedElement Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the ActorMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -385,31 +278,6 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the ownedMemberElementId Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the ActorMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -419,31 +287,6 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the ownedMemberName Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberParameter"u8, out var ownedMemberParameterProperty)) - { - if (ownedMemberParameterProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberParameter = Guid.Empty; - logger.LogDebug($"the ActorMembership.ownedMemberParameter property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberParameterProperty.TryGetProperty("@id"u8, out var ownedMemberParameterExternalIdProperty)) - { - var propertyValue = ownedMemberParameterExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberParameter = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberParameter Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) { dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); @@ -676,46 +519,6 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the shortName Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the ActorMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationDefinitionDeSerializer.cs index 55a60e84d..b39600ccb 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationDefinitionDeSerializer.cs @@ -122,26 +122,6 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the allocation Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("associationEnd"u8, out var associationEndProperty)) - { - foreach (var arrayItem in associationEndProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var associationEndExternalIdProperty)) - { - var propertyValue = associationEndExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.associationEnd.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the associationEnd Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("connectionEnd"u8, out var connectionEndProperty)) { foreach (var arrayItem in connectionEndProperty.EnumerateArray()) @@ -274,26 +254,6 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the elementId Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { foreach (var arrayItem in featureProperty.EnumerateArray()) @@ -1636,26 +1596,6 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the qualifiedName Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) { foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) @@ -1685,26 +1625,6 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the shortName Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) { if (sourceTypeProperty.ValueKind == JsonValueKind.Null) @@ -1729,26 +1649,6 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the sourceType Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the AllocationDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) { foreach (var arrayItem in targetTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationUsageDeSerializer.cs index 3b5f19186..d019efd16 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationUsageDeSerializer.cs @@ -122,26 +122,6 @@ internal static IAllocationUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the allocationDefinition Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) - { - foreach (var arrayItem in associationProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) - { - var propertyValue = associationExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.association.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the association Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -162,26 +142,6 @@ internal static IAllocationUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the chainingFeature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("connectionDefinition"u8, out var connectionDefinitionProperty)) - { - foreach (var arrayItem in connectionDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var connectionDefinitionExternalIdProperty)) - { - var propertyValue = connectionDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.connectionDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the connectionDefinition Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) { foreach (var arrayItem in connectorEndProperty.EnumerateArray()) @@ -268,26 +228,6 @@ internal static IAllocationUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the defaultFeaturingType Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -391,26 +331,6 @@ internal static IAllocationUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the elementId Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) @@ -824,18 +744,6 @@ internal static IAllocationUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isUnique Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2279,26 +2187,6 @@ internal static IAllocationUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the qualifiedName Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) @@ -2328,26 +2216,6 @@ internal static IAllocationUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the shortName Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) @@ -2372,26 +2240,6 @@ internal static IAllocationUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the sourceFeature Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) @@ -2432,26 +2280,6 @@ internal static IAllocationUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the textualRepresentation Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the AllocationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseDefinitionDeSerializer.cs index b20a39f4a..b7515a996 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseDefinitionDeSerializer.cs @@ -200,26 +200,6 @@ internal static IAnalysisCaseDefinition DeSerialize(JsonElement jsonElement, Ser logger.LogDebug("the differencingType Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the AnalysisCaseDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseUsageDeSerializer.cs index c83480266..df3ce09f6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnalysisCaseUsageDeSerializer.cs @@ -85,26 +85,6 @@ internal static IAnalysisCaseUsage DeSerialize(JsonElement jsonElement, Serializ } } - if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) - { - foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) - { - var propertyValue = actionDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the actionDefinition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) { foreach (var arrayItem in actorParameterProperty.EnumerateArray()) @@ -166,74 +146,6 @@ internal static IAnalysisCaseUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the analysisCaseDefinition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("calculationDefinition"u8, out var calculationDefinitionProperty)) - { - if (calculationDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.calculationDefinition = null; - } - else - { - if (calculationDefinitionProperty.TryGetProperty("@id"u8, out var calculationDefinitionExternalIdProperty)) - { - var propertyValue = calculationDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.calculationDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the calculationDefinition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("caseDefinition"u8, out var caseDefinitionProperty)) - { - if (caseDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.caseDefinition = null; - } - else - { - if (caseDefinitionProperty.TryGetProperty("@id"u8, out var caseDefinitionExternalIdProperty)) - { - var propertyValue = caseDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.caseDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the caseDefinition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -296,26 +208,6 @@ internal static IAnalysisCaseUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -336,26 +228,6 @@ internal static IAnalysisCaseUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the differencingType Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -548,30 +420,6 @@ internal static IAnalysisCaseUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the featuringType Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) @@ -876,18 +724,6 @@ internal static IAnalysisCaseUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isUnique Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1549,26 +1385,6 @@ internal static IAnalysisCaseUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the objectiveRequirement Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2394,26 +2210,6 @@ internal static IAnalysisCaseUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the textualRepresentation Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the AnalysisCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnnotationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnnotationDeSerializer.cs index 62a55c049..ad7320326 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnnotationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AnnotationDeSerializer.cs @@ -559,46 +559,6 @@ internal static IAnnotation DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the shortName Json property was not found in the Annotation: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Annotation: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Annotation: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssertConstraintUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssertConstraintUsageDeSerializer.cs index 47adf6f14..bfc01ecb2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssertConstraintUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssertConstraintUsageDeSerializer.cs @@ -127,26 +127,6 @@ internal static IAssertConstraintUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the assertedConstraint Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -233,26 +213,6 @@ internal static IAssertConstraintUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the declaredShortName Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -273,26 +233,6 @@ internal static IAssertConstraintUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the differencingType Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -485,30 +425,6 @@ internal static IAssertConstraintUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the featuringType Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) @@ -825,18 +741,6 @@ internal static IAssertConstraintUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isUnique Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2207,30 +2111,6 @@ internal static IAssertConstraintUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the portionKind Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) - { - if (predicateProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.predicate = null; - } - else - { - if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) - { - var propertyValue = predicateExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.predicate = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the predicate Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -2294,26 +2174,6 @@ internal static IAssertConstraintUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the textualRepresentation Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the AssertConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssignmentActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssignmentActionUsageDeSerializer.cs index b8a2848aa..03b56d19a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssignmentActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssignmentActionUsageDeSerializer.cs @@ -122,26 +122,6 @@ internal static IAssignmentActionUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the aliasIds Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IAssignmentActionUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the declaredShortName Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +204,6 @@ internal static IAssignmentActionUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the differencingType Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -748,18 +688,6 @@ internal static IAssignmentActionUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isUnique Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1397,26 +1325,6 @@ internal static IAssignmentActionUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the nestedViewpoint Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2217,26 +2125,6 @@ internal static IAssignmentActionUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the textualRepresentation Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the AssignmentActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationDeSerializer.cs index c58bfc558..b52440a77 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationDeSerializer.cs @@ -214,26 +214,6 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the elementId Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the Association: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { foreach (var arrayItem in featureProperty.EnumerateArray()) @@ -1012,26 +992,6 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the qualifiedName Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the Association: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) { foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) @@ -1061,26 +1021,6 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the shortName Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Association: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) { if (sourceTypeProperty.ValueKind == JsonValueKind.Null) @@ -1105,26 +1045,6 @@ internal static IAssociation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the sourceType Json property was not found in the Association: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Association: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) { foreach (var arrayItem in targetTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationStructureDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationStructureDeSerializer.cs index 3cacc360a..8e1c40c01 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationStructureDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AssociationStructureDeSerializer.cs @@ -214,26 +214,6 @@ internal static IAssociationStructure DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the elementId Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { foreach (var arrayItem in featureProperty.EnumerateArray()) @@ -1012,26 +992,6 @@ internal static IAssociationStructure DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the qualifiedName Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) { foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) @@ -1061,26 +1021,6 @@ internal static IAssociationStructure DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the shortName Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) { if (sourceTypeProperty.ValueKind == JsonValueKind.Null) @@ -1105,26 +1045,6 @@ internal static IAssociationStructure DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the sourceType Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the AssociationStructure: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) { foreach (var arrayItem in targetTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AttributeUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AttributeUsageDeSerializer.cs index 50c43d6e6..0e56bc6c1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AttributeUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AttributeUsageDeSerializer.cs @@ -184,26 +184,6 @@ internal static IAttributeUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -692,18 +672,6 @@ internal static IAttributeUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isUnique Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2063,26 +2031,6 @@ internal static IAttributeUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the textualRepresentation Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the AttributeUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BehaviorDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BehaviorDeSerializer.cs index 78a353892..5db87685e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BehaviorDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BehaviorDeSerializer.cs @@ -140,26 +140,6 @@ internal static IBehavior DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the differencingType Json property was not found in the Behavior: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the Behavior: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { foreach (var arrayItem in documentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorAsUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorAsUsageDeSerializer.cs index 9f883a3bf..3811d985c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorAsUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorAsUsageDeSerializer.cs @@ -351,26 +351,6 @@ internal static IBindingConnectorAsUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the elementId Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) @@ -748,18 +728,6 @@ internal static IBindingConnectorAsUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the isUnique Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2134,26 +2102,6 @@ internal static IBindingConnectorAsUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the qualifiedName Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) @@ -2183,26 +2131,6 @@ internal static IBindingConnectorAsUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the shortName Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) @@ -2227,26 +2155,6 @@ internal static IBindingConnectorAsUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the sourceFeature Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) @@ -2287,26 +2195,6 @@ internal static IBindingConnectorAsUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the textualRepresentation Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the BindingConnectorAsUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorDeSerializer.cs index 873080fc4..a498bd3ae 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BindingConnectorDeSerializer.cs @@ -311,26 +311,6 @@ internal static IBindingConnector DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the elementId Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) @@ -1470,26 +1450,6 @@ internal static IBindingConnector DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the qualifiedName Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) @@ -1519,26 +1479,6 @@ internal static IBindingConnector DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the shortName Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) @@ -1563,26 +1503,6 @@ internal static IBindingConnector DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the sourceFeature Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) @@ -1623,26 +1543,6 @@ internal static IBindingConnector DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the textualRepresentation Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the BindingConnector: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BooleanExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BooleanExpressionDeSerializer.cs index 781633af2..1602d18c4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BooleanExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/BooleanExpressionDeSerializer.cs @@ -102,26 +102,6 @@ internal static IBooleanExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IBooleanExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the differencingType Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -396,30 +356,6 @@ internal static IBooleanExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the featuringType Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the BooleanExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationDefinitionDeSerializer.cs index b0dc86282..dab0c3c63 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationDefinitionDeSerializer.cs @@ -180,26 +180,6 @@ internal static ICalculationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the differencingType Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the CalculationDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationUsageDeSerializer.cs index 15f281a9c..57ce28e30 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CalculationUsageDeSerializer.cs @@ -85,26 +85,6 @@ internal static ICalculationUsage DeSerialize(JsonElement jsonElement, Serializa } } - if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) - { - foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) - { - var propertyValue = actionDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the actionDefinition Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -122,26 +102,6 @@ internal static ICalculationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the aliasIds Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("calculationDefinition"u8, out var calculationDefinitionProperty)) { if (calculationDefinitionProperty.ValueKind == JsonValueKind.Null) @@ -228,26 +188,6 @@ internal static ICalculationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the declaredShortName Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -268,26 +208,6 @@ internal static ICalculationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the differencingType Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -480,30 +400,6 @@ internal static ICalculationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the featuringType Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) @@ -808,18 +704,6 @@ internal static ICalculationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isUnique Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1457,26 +1341,6 @@ internal static ICalculationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the nestedViewpoint Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2253,26 +2117,6 @@ internal static ICalculationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the textualRepresentation Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the CalculationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseDefinitionDeSerializer.cs index 8982f9ec3..416380db0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseDefinitionDeSerializer.cs @@ -200,26 +200,6 @@ internal static ICaseDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the differencingType Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the CaseDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseUsageDeSerializer.cs index e1b553fbe..084877652 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CaseUsageDeSerializer.cs @@ -85,26 +85,6 @@ internal static ICaseUsage DeSerialize(JsonElement jsonElement, SerializationMod } } - if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) - { - foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) - { - var propertyValue = actionDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the actionDefinition Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) { foreach (var arrayItem in actorParameterProperty.EnumerateArray()) @@ -142,50 +122,6 @@ internal static ICaseUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the aliasIds Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("calculationDefinition"u8, out var calculationDefinitionProperty)) - { - if (calculationDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.calculationDefinition = null; - } - else - { - if (calculationDefinitionProperty.TryGetProperty("@id"u8, out var calculationDefinitionExternalIdProperty)) - { - var propertyValue = calculationDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.calculationDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the calculationDefinition Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("caseDefinition"u8, out var caseDefinitionProperty)) { if (caseDefinitionProperty.ValueKind == JsonValueKind.Null) @@ -272,26 +208,6 @@ internal static ICaseUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -312,26 +228,6 @@ internal static ICaseUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the differencingType Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -524,30 +420,6 @@ internal static ICaseUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the featuringType Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) @@ -852,18 +724,6 @@ internal static ICaseUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isUnique Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1525,26 +1385,6 @@ internal static ICaseUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the objectiveRequirement Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2346,26 +2186,6 @@ internal static ICaseUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the textualRepresentation Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the CaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CollectExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CollectExpressionDeSerializer.cs index 14dea6421..47ae1d67d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CollectExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CollectExpressionDeSerializer.cs @@ -122,26 +122,6 @@ internal static ICollectExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the argument Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -224,26 +204,6 @@ internal static ICollectExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the differencingType Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the CollectExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernDefinitionDeSerializer.cs index ace54bacc..2ee8ad757 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernDefinitionDeSerializer.cs @@ -151,15 +151,6 @@ internal static IConcernDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredName Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) - { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the declaredShortName Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -180,26 +171,6 @@ internal static IConcernDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the differencingType Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the ConcernDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernUsageDeSerializer.cs index fc2630a1e..e8a9e3c54 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConcernUsageDeSerializer.cs @@ -142,26 +142,6 @@ internal static IConcernUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the assumedConstraint Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -206,30 +186,6 @@ internal static IConcernUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the concernDefinition Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("constraintDefinition"u8, out var constraintDefinitionProperty)) - { - if (constraintDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.constraintDefinition = null; - } - else - { - if (constraintDefinitionProperty.TryGetProperty("@id"u8, out var constraintDefinitionExternalIdProperty)) - { - var propertyValue = constraintDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.constraintDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the constraintDefinition Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { if (crossFeatureProperty.ValueKind == JsonValueKind.Null) @@ -263,35 +219,6 @@ internal static IConcernUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the declaredName Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) - { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the declaredShortName Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -312,26 +239,6 @@ internal static IConcernUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the differencingType Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -544,30 +451,6 @@ internal static IConcernUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the framedConcern Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) @@ -872,18 +755,6 @@ internal static IConcernUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the isUnique Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2254,30 +2125,6 @@ internal static IConcernUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the portionKind Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) - { - if (predicateProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.predicate = null; - } - else - { - if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) - { - var propertyValue = predicateExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.predicate = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the predicate Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -2316,30 +2163,6 @@ internal static IConcernUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the requiredConstraint Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("requirementDefinition"u8, out var requirementDefinitionProperty)) - { - if (requirementDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.requirementDefinition = null; - } - else - { - if (requirementDefinitionProperty.TryGetProperty("@id"u8, out var requirementDefinitionExternalIdProperty)) - { - var propertyValue = requirementDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.requirementDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the requirementDefinition Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) { if (resultProperty.ValueKind == JsonValueKind.Null) @@ -2456,26 +2279,6 @@ internal static IConcernUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the textualRepresentation Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the ConcernUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortDefinitionDeSerializer.cs index fb3cacf00..7a3aa9688 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortDefinitionDeSerializer.cs @@ -760,30 +760,6 @@ internal static IConjugatedPortDefinition DeSerialize(JsonElement jsonElement, S logger.LogDebug("the ownedConcern Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty)) - { - if (ownedConjugatorProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedConjugator = null; - } - else - { - if (ownedConjugatorProperty.TryGetProperty("@id"u8, out var ownedConjugatorExternalIdProperty)) - { - var propertyValue = ownedConjugatorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedConjugator = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedConjugator Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty)) { foreach (var arrayItem in ownedConnectionProperty.EnumerateArray()) @@ -1537,30 +1513,6 @@ internal static IConjugatedPortDefinition DeSerialize(JsonElement jsonElement, S logger.LogDebug("the owningMembership Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty)) - { - if (owningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningNamespace = null; - } - else - { - if (owningNamespaceProperty.TryGetProperty("@id"u8, out var owningNamespaceExternalIdProperty)) - { - var propertyValue = owningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningNamespace Json property was not found in the ConjugatedPortDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty)) { if (owningRelationshipProperty.ValueKind == JsonValueKind.Null) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortTypingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortTypingDeSerializer.cs index c1a42249b..6ddcf4d6d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortTypingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugatedPortTypingDeSerializer.cs @@ -179,31 +179,6 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the elementId Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("general"u8, out var generalProperty)) - { - if (generalProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.General = Guid.Empty; - logger.LogDebug($"the ConjugatedPortTyping.General property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) - { - var propertyValue = generalExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.General = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the general Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -473,30 +448,6 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the owningRelationship Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) - { - if (owningTypeProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningType = null; - } - else - { - if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) - { - var propertyValue = owningTypeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningType = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningType Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("portDefinition"u8, out var portDefinitionProperty)) { if (portDefinitionProperty.ValueKind == JsonValueKind.Null) @@ -560,71 +511,6 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the shortName Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("specific"u8, out var specificProperty)) - { - if (specificProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.Specific = Guid.Empty; - logger.LogDebug($"the ConjugatedPortTyping.Specific property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) - { - var propertyValue = specificExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Specific = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the specific Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) @@ -645,31 +531,6 @@ internal static IConjugatedPortTyping DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the textualRepresentation Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - if (typeProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.Type = Guid.Empty; - logger.LogDebug($"the ConjugatedPortTyping.Type property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (typeProperty.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Type = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the ConjugatedPortTyping: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("typedFeature"u8, out var typedFeatureProperty)) { if (typedFeatureProperty.ValueKind == JsonValueKind.Null) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugationDeSerializer.cs index 6a50baaf5..8c67f66e6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConjugationDeSerializer.cs @@ -511,46 +511,6 @@ internal static IConjugation DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the shortName Json property was not found in the Conjugation: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Conjugation: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Conjugation: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionDefinitionDeSerializer.cs index 987dc3356..81a9b347d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionDefinitionDeSerializer.cs @@ -102,26 +102,6 @@ internal static IConnectionDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the aliasIds Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("associationEnd"u8, out var associationEndProperty)) - { - foreach (var arrayItem in associationEndProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var associationEndExternalIdProperty)) - { - var propertyValue = associationEndExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.associationEnd.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the associationEnd Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("connectionEnd"u8, out var connectionEndProperty)) { foreach (var arrayItem in connectionEndProperty.EnumerateArray()) @@ -254,26 +234,6 @@ internal static IConnectionDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the elementId Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { foreach (var arrayItem in featureProperty.EnumerateArray()) @@ -1616,26 +1576,6 @@ internal static IConnectionDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the qualifiedName Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) { foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) @@ -1665,26 +1605,6 @@ internal static IConnectionDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the shortName Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) { if (sourceTypeProperty.ValueKind == JsonValueKind.Null) @@ -1709,26 +1629,6 @@ internal static IConnectionDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the sourceType Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the ConnectionDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) { foreach (var arrayItem in targetTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionUsageDeSerializer.cs index 7f01feb14..bc1601c8d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectionUsageDeSerializer.cs @@ -102,26 +102,6 @@ internal static IConnectionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) - { - foreach (var arrayItem in associationProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) - { - var propertyValue = associationExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.association.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the association Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -248,26 +228,6 @@ internal static IConnectionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the defaultFeaturingType Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -371,26 +331,6 @@ internal static IConnectionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the elementId Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) @@ -804,18 +744,6 @@ internal static IConnectionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isUnique Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2259,26 +2187,6 @@ internal static IConnectionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the qualifiedName Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) @@ -2308,26 +2216,6 @@ internal static IConnectionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the shortName Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) @@ -2352,26 +2240,6 @@ internal static IConnectionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the sourceFeature Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) @@ -2412,26 +2280,6 @@ internal static IConnectionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the textualRepresentation Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the ConnectionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectorDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectorDeSerializer.cs index 7804189e0..9972c691e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectorDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConnectorDeSerializer.cs @@ -311,26 +311,6 @@ internal static IConnector DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the elementId Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the Connector: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) @@ -1470,26 +1450,6 @@ internal static IConnector DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the qualifiedName Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the Connector: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) @@ -1519,26 +1479,6 @@ internal static IConnector DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the shortName Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Connector: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) @@ -1563,26 +1503,6 @@ internal static IConnector DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the sourceFeature Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Connector: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) @@ -1623,26 +1543,6 @@ internal static IConnector DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the textualRepresentation Json property was not found in the Connector: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the Connector: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintDefinitionDeSerializer.cs index 41e4ed892..f15cd625a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintDefinitionDeSerializer.cs @@ -140,26 +140,6 @@ internal static IConstraintDefinition DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the differencingType Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the ConstraintDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintUsageDeSerializer.cs index 057588a2a..139fe6759 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstraintUsageDeSerializer.cs @@ -102,26 +102,6 @@ internal static IConstraintUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -208,26 +188,6 @@ internal static IConstraintUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -248,26 +208,6 @@ internal static IConstraintUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the differencingType Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -460,30 +400,6 @@ internal static IConstraintUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the featuringType Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) @@ -788,18 +704,6 @@ internal static IConstraintUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isUnique Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2170,30 +2074,6 @@ internal static IConstraintUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the portionKind Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) - { - if (predicateProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.predicate = null; - } - else - { - if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) - { - var propertyValue = predicateExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.predicate = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the predicate Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -2257,26 +2137,6 @@ internal static IConstraintUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the textualRepresentation Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the ConstraintUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstructorExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstructorExpressionDeSerializer.cs index 026c328f3..5175885dc 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstructorExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ConstructorExpressionDeSerializer.cs @@ -122,26 +122,6 @@ internal static IConstructorExpression DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the argument Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -224,26 +204,6 @@ internal static IConstructorExpression DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the differencingType Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the ConstructorExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CrossSubsettingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CrossSubsettingDeSerializer.cs index 34fd09f6f..31358403e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CrossSubsettingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/CrossSubsettingDeSerializer.cs @@ -204,31 +204,6 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the elementId Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("general"u8, out var generalProperty)) - { - if (generalProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.General = Guid.Empty; - logger.LogDebug($"the CrossSubsetting.General property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) - { - var propertyValue = generalExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.General = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the general Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -378,30 +353,6 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the owner Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningFeature"u8, out var owningFeatureProperty)) - { - if (owningFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningFeature = null; - } - else - { - if (owningFeatureProperty.TryGetProperty("@id"u8, out var owningFeatureExternalIdProperty)) - { - var propertyValue = owningFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningFeature Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) { if (owningMembershipProperty.ValueKind == JsonValueKind.Null) @@ -498,30 +449,6 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the owningRelationship Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) - { - if (owningTypeProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningType = null; - } - else - { - if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) - { - var propertyValue = owningTypeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningType = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningType Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -560,121 +487,6 @@ internal static ICrossSubsetting DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the shortName Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("specific"u8, out var specificProperty)) - { - if (specificProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.Specific = Guid.Empty; - logger.LogDebug($"the CrossSubsetting.Specific property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) - { - var propertyValue = specificExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Specific = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the specific Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("subsettedFeature"u8, out var subsettedFeatureProperty)) - { - if (subsettedFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.SubsettedFeature = Guid.Empty; - logger.LogDebug($"the CrossSubsetting.SubsettedFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureExternalIdProperty)) - { - var propertyValue = subsettedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.SubsettedFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the subsettedFeature Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("subsettingFeature"u8, out var subsettingFeatureProperty)) - { - if (subsettingFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.SubsettingFeature = Guid.Empty; - logger.LogDebug($"the CrossSubsetting.SubsettingFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureExternalIdProperty)) - { - var propertyValue = subsettingFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.SubsettingFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the subsettingFeature Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the CrossSubsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DecisionNodeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DecisionNodeDeSerializer.cs index ec1839e2d..7c0ce12df 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DecisionNodeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DecisionNodeDeSerializer.cs @@ -122,26 +122,6 @@ internal static IDecisionNode DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the aliasIds Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IDecisionNode DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the declaredShortName Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +204,6 @@ internal static IDecisionNode DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the differencingType Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -748,18 +688,6 @@ internal static IDecisionNode DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the isUnique Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1397,26 +1325,6 @@ internal static IDecisionNode DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the nestedViewpoint Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2168,26 +2076,6 @@ internal static IDecisionNode DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the textualRepresentation Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the DecisionNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DependencyDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DependencyDeSerializer.cs index 2aca80a1b..2b067afa0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DependencyDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DependencyDeSerializer.cs @@ -457,26 +457,6 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the shortName Json property was not found in the Dependency: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Dependency: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("supplier"u8, out var supplierProperty)) { foreach (var arrayItem in supplierProperty.EnumerateArray()) @@ -497,26 +477,6 @@ internal static IDependency DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the supplier Json property was not found in the Dependency: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Dependency: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DifferencingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DifferencingDeSerializer.cs index 10821b979..a68ae10b8 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DifferencingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DifferencingDeSerializer.cs @@ -462,46 +462,6 @@ internal static IDifferencing DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the shortName Json property was not found in the Differencing: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Differencing: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Differencing: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DisjoiningDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DisjoiningDeSerializer.cs index 8d81e2389..52ac91956 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DisjoiningDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DisjoiningDeSerializer.cs @@ -486,46 +486,6 @@ internal static IDisjoining DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the shortName Json property was not found in the Disjoining: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Disjoining: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Disjoining: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DocumentationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DocumentationDeSerializer.cs index 7d79f6488..ef2474fbb 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DocumentationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/DocumentationDeSerializer.cs @@ -102,26 +102,6 @@ internal static IDocumentation DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the aliasIds Json property was not found in the Documentation: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("annotatedElement"u8, out var annotatedElementProperty)) - { - foreach (var arrayItem in annotatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var annotatedElementExternalIdProperty)) - { - var propertyValue = annotatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.annotatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the annotatedElement Json property was not found in the Documentation: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("annotation"u8, out var annotationProperty)) { foreach (var arrayItem in annotationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ElementFilterMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ElementFilterMembershipDeSerializer.cs index c26a749c4..03238716c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ElementFilterMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ElementFilterMembershipDeSerializer.cs @@ -215,54 +215,6 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the isLibraryElement Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the ElementFilterMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) { if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) @@ -288,15 +240,6 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the membershipOwningNamespace Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -346,31 +289,6 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the ownedElement Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the ElementFilterMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -601,46 +519,6 @@ internal static IElementFilterMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the shortName Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the ElementFilterMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EndFeatureMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EndFeatureMembershipDeSerializer.cs index ce3ecb6a1..253686a4f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EndFeatureMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EndFeatureMembershipDeSerializer.cs @@ -190,88 +190,6 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isLibraryElement Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the EndFeatureMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the EndFeatureMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -321,31 +239,6 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the ownedElement Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the EndFeatureMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -626,46 +519,6 @@ internal static IEndFeatureMembership DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the shortName Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the EndFeatureMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs index b671b297a..5f6b5ecd9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs @@ -1597,26 +1597,6 @@ internal static IEnumerationDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the usage Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("variant"u8, out var variantProperty)) - { - foreach (var arrayItem in variantProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var variantExternalIdProperty)) - { - var propertyValue = variantExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.variant.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the variant Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty)) { foreach (var arrayItem in variantMembershipProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationUsageDeSerializer.cs index 2f8060b9d..5ab6f0b1e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EnumerationUsageDeSerializer.cs @@ -102,26 +102,6 @@ internal static IEnumerationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the aliasIds Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("attributeDefinition"u8, out var attributeDefinitionProperty)) - { - foreach (var arrayItem in attributeDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var attributeDefinitionExternalIdProperty)) - { - var propertyValue = attributeDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.attributeDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the attributeDefinition Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -184,26 +164,6 @@ internal static IEnumerationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the declaredShortName Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -717,18 +677,6 @@ internal static IEnumerationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isUnique Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2088,26 +2036,6 @@ internal static IEnumerationUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the textualRepresentation Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the EnumerationUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EventOccurrenceUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EventOccurrenceUsageDeSerializer.cs index d7b505c8d..1423c1099 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EventOccurrenceUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/EventOccurrenceUsageDeSerializer.cs @@ -164,26 +164,6 @@ internal static IEventOccurrenceUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the declaredShortName Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -733,18 +713,6 @@ internal static IEventOccurrenceUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isUnique Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2133,26 +2101,6 @@ internal static IEventOccurrenceUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the textualRepresentation Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the EventOccurrenceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExhibitStateUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExhibitStateUsageDeSerializer.cs index f609ce229..80e06e7d2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExhibitStateUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExhibitStateUsageDeSerializer.cs @@ -85,26 +85,6 @@ internal static IExhibitStateUsage DeSerialize(JsonElement jsonElement, Serializ } } - if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) - { - foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) - { - var propertyValue = actionDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the actionDefinition Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -122,26 +102,6 @@ internal static IExhibitStateUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +164,6 @@ internal static IExhibitStateUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the declaredShortName Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +184,6 @@ internal static IExhibitStateUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the differencingType Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -419,31 +339,6 @@ internal static IExhibitStateUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the entryAction Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("eventOccurrence"u8, out var eventOccurrenceProperty)) - { - if (eventOccurrenceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.eventOccurrence = Guid.Empty; - logger.LogDebug($"the ExhibitStateUsage.eventOccurrence property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (eventOccurrenceProperty.TryGetProperty("@id"u8, out var eventOccurrenceExternalIdProperty)) - { - var propertyValue = eventOccurrenceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.eventOccurrence = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the eventOccurrence Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("exhibitedState"u8, out var exhibitedStateProperty)) { if (exhibitedStateProperty.ValueKind == JsonValueKind.Null) @@ -882,18 +777,6 @@ internal static IExhibitStateUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isUnique Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1531,26 +1414,6 @@ internal static IExhibitStateUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the nestedViewpoint Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2255,31 +2118,6 @@ internal static IExhibitStateUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the parameter Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("performedAction"u8, out var performedActionProperty)) - { - if (performedActionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.performedAction = Guid.Empty; - logger.LogDebug($"the ExhibitStateUsage.performedAction property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (performedActionProperty.TryGetProperty("@id"u8, out var performedActionExternalIdProperty)) - { - var propertyValue = performedActionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.performedAction = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the performedAction Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) { dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); @@ -2347,26 +2185,6 @@ internal static IExhibitStateUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the textualRepresentation Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the ExhibitStateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExpressionDeSerializer.cs index eb0ea2578..36c568c9e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ExpressionDeSerializer.cs @@ -102,26 +102,6 @@ internal static IExpression DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the aliasIds Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the Expression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IExpression DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the differencingType Json property was not found in the Expression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the Expression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainExpressionDeSerializer.cs index 03f2b0b8c..649acd652 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainExpressionDeSerializer.cs @@ -122,26 +122,6 @@ internal static IFeatureChainExpression DeSerialize(JsonElement jsonElement, Ser logger.LogDebug("the argument Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -224,26 +204,6 @@ internal static IFeatureChainExpression DeSerialize(JsonElement jsonElement, Ser logger.LogDebug("the differencingType Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the FeatureChainExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainingDeSerializer.cs index e42128434..aaf371048 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureChainingDeSerializer.cs @@ -487,46 +487,6 @@ internal static IFeatureChaining DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the shortName Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the FeatureChaining: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureInvertingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureInvertingDeSerializer.cs index 9daca1de9..a429798b8 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureInvertingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureInvertingDeSerializer.cs @@ -511,46 +511,6 @@ internal static IFeatureInverting DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the shortName Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the FeatureInverting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureMembershipDeSerializer.cs index 34fc3a904..de7b52753 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureMembershipDeSerializer.cs @@ -190,88 +190,6 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isLibraryElement Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the FeatureMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the FeatureMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -321,31 +239,6 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the ownedElement Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the FeatureMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -626,46 +519,6 @@ internal static IFeatureMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the shortName Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the FeatureMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureReferenceExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureReferenceExpressionDeSerializer.cs index 2c3041842..168524fef 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureReferenceExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureReferenceExpressionDeSerializer.cs @@ -102,26 +102,6 @@ internal static IFeatureReferenceExpression DeSerialize(JsonElement jsonElement, logger.LogDebug("the aliasIds Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IFeatureReferenceExpression DeSerialize(JsonElement jsonElement, logger.LogDebug("the differencingType Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the FeatureReferenceExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs index 9a2071fc2..9b59656a1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs @@ -154,31 +154,6 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the elementId Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("general"u8, out var generalProperty)) - { - if (generalProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.General = Guid.Empty; - logger.LogDebug($"the FeatureTyping.General property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) - { - var propertyValue = generalExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.General = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the general Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -448,30 +423,6 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the owningRelationship Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) - { - if (owningTypeProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningType = null; - } - else - { - if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) - { - var propertyValue = owningTypeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningType = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningType Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -510,71 +461,6 @@ internal static IFeatureTyping DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the shortName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("specific"u8, out var specificProperty)) - { - if (specificProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.Specific = Guid.Empty; - logger.LogDebug($"the FeatureTyping.Specific property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) - { - var propertyValue = specificExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Specific = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the specific Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureValueDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureValueDeSerializer.cs index af2474949..eaf01ab57 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureValueDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FeatureValueDeSerializer.cs @@ -239,54 +239,6 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the isLibraryElement Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the FeatureValue.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) { if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) @@ -312,15 +264,6 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the membershipOwningNamespace Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -370,31 +313,6 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the ownedElement Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the FeatureValue.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -625,46 +543,6 @@ internal static IFeatureValue DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the shortName Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the FeatureValue: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDeSerializer.cs index 7d28ee1dd..18274448b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDeSerializer.cs @@ -102,46 +102,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the aliasIds Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) - { - foreach (var arrayItem in associationProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) - { - var propertyValue = associationExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.association.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the association Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -268,26 +228,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the differencingType Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -331,26 +271,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the elementId Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) @@ -1594,26 +1514,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the qualifiedName Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) @@ -1643,26 +1543,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the shortName Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) @@ -1711,26 +1591,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the sourceOutputFeature Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) @@ -1795,26 +1655,6 @@ internal static IFlow DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the textualRepresentation Json property was not found in the Flow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the Flow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDefinitionDeSerializer.cs index 5bc71ebb5..ea2a84f98 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowDefinitionDeSerializer.cs @@ -122,26 +122,6 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("associationEnd"u8, out var associationEndProperty)) - { - foreach (var arrayItem in associationEndProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var associationEndExternalIdProperty)) - { - var propertyValue = associationEndExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.associationEnd.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the associationEnd Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -180,26 +160,6 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the differencingType Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -254,26 +214,6 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { foreach (var arrayItem in featureProperty.EnumerateArray()) @@ -1656,26 +1596,6 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the qualifiedName Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) { foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) @@ -1705,26 +1625,6 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the shortName Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) { if (sourceTypeProperty.ValueKind == JsonValueKind.Null) @@ -1769,26 +1669,6 @@ internal static IFlowDefinition DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the step Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the FlowDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) { foreach (var arrayItem in targetTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowUsageDeSerializer.cs index 78be2d4a1..df6aa0989 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FlowUsageDeSerializer.cs @@ -85,26 +85,6 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod } } - if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) - { - foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) - { - var propertyValue = actionDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the actionDefinition Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -122,46 +102,6 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the aliasIds Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) - { - foreach (var arrayItem in associationProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) - { - var propertyValue = associationExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.association.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the association Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -268,26 +208,6 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the defaultFeaturingType Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -308,26 +228,6 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the differencingType Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -391,26 +291,6 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the elementId Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) @@ -664,26 +544,6 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the input Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("interaction"u8, out var interactionProperty)) - { - foreach (var arrayItem in interactionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var interactionExternalIdProperty)) - { - var propertyValue = interactionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.interaction.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the interaction Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) @@ -884,18 +744,6 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isUnique Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1533,26 +1381,6 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the nestedViewpoint Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2363,26 +2191,6 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the qualifiedName Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) @@ -2412,26 +2220,6 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the shortName Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) @@ -2480,26 +2268,6 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the sourceOutputFeature Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) @@ -2564,26 +2332,6 @@ internal static IFlowUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the textualRepresentation Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the FlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForLoopActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForLoopActionUsageDeSerializer.cs index 51a8995f1..45c80aa84 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForLoopActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForLoopActionUsageDeSerializer.cs @@ -122,26 +122,6 @@ internal static IForLoopActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the aliasIds Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("bodyAction"u8, out var bodyActionProperty)) { if (bodyActionProperty.ValueKind == JsonValueKind.Null) @@ -229,26 +209,6 @@ internal static IForLoopActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the declaredShortName Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -269,26 +229,6 @@ internal static IForLoopActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the differencingType Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -773,18 +713,6 @@ internal static IForLoopActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the isUnique Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1447,26 +1375,6 @@ internal static IForLoopActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the nestedViewpoint Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2243,26 +2151,6 @@ internal static IForLoopActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the textualRepresentation Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the ForLoopActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForkNodeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForkNodeDeSerializer.cs index f602ffd16..ff52253f1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForkNodeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ForkNodeDeSerializer.cs @@ -122,26 +122,6 @@ internal static IForkNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the aliasIds Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the ForkNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IForkNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the declaredShortName Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the ForkNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +204,6 @@ internal static IForkNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the differencingType Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the ForkNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -748,18 +688,6 @@ internal static IForkNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the isUnique Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the ForkNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1397,26 +1325,6 @@ internal static IForkNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the nestedViewpoint Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the ForkNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2168,26 +2076,6 @@ internal static IForkNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the textualRepresentation Json property was not found in the ForkNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the ForkNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs index 87b926421..5ca7e477a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs @@ -199,88 +199,6 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the kind Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the FramedConcernMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the FramedConcernMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -335,31 +253,6 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the ownedConcern Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) - { - if (ownedConstraintProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedConstraint = Guid.Empty; - logger.LogDebug($"the FramedConcernMembership.ownedConstraint property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedConstraintProperty.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) - { - var propertyValue = ownedConstraintExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedConstraint = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedConstraint Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) { foreach (var arrayItem in ownedElementProperty.EnumerateArray()) @@ -380,31 +273,6 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the ownedElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the FramedConcernMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -419,31 +287,6 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the ownedMemberElementId Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the FramedConcernMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -681,31 +524,6 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the referencedConcern Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("referencedConstraint"u8, out var referencedConstraintProperty)) - { - if (referencedConstraintProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.referencedConstraint = Guid.Empty; - logger.LogDebug($"the FramedConcernMembership.referencedConstraint property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (referencedConstraintProperty.TryGetProperty("@id"u8, out var referencedConstraintExternalIdProperty)) - { - var propertyValue = referencedConstraintExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.referencedConstraint = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the referencedConstraint Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) { foreach (var arrayItem in relatedElementProperty.EnumerateArray()) @@ -735,46 +553,6 @@ internal static IFramedConcernMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the shortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FunctionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FunctionDeSerializer.cs index 2a015b152..ed9627980 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FunctionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/FunctionDeSerializer.cs @@ -140,26 +140,6 @@ internal static IFunction DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the differencingType Json property was not found in the Function: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the Function: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { foreach (var arrayItem in documentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IfActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IfActionUsageDeSerializer.cs index 52ba8569c..dfe0dccaa 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IfActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IfActionUsageDeSerializer.cs @@ -122,26 +122,6 @@ internal static IIfActionUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the aliasIds Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IIfActionUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the declaredShortName Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +204,6 @@ internal static IIfActionUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the differencingType Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -797,18 +737,6 @@ internal static IIfActionUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the isUnique Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1446,26 +1374,6 @@ internal static IIfActionUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the nestedViewpoint Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2242,26 +2150,6 @@ internal static IIfActionUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the thenAction Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the IfActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IncludeUseCaseUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IncludeUseCaseUsageDeSerializer.cs index bf8379009..855e1ed66 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IncludeUseCaseUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IncludeUseCaseUsageDeSerializer.cs @@ -85,26 +85,6 @@ internal static IIncludeUseCaseUsage DeSerialize(JsonElement jsonElement, Serial } } - if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) - { - foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) - { - var propertyValue = actionDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the actionDefinition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) { foreach (var arrayItem in actorParameterProperty.EnumerateArray()) @@ -142,74 +122,6 @@ internal static IIncludeUseCaseUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the aliasIds Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("calculationDefinition"u8, out var calculationDefinitionProperty)) - { - if (calculationDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.calculationDefinition = null; - } - else - { - if (calculationDefinitionProperty.TryGetProperty("@id"u8, out var calculationDefinitionExternalIdProperty)) - { - var propertyValue = calculationDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.calculationDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the calculationDefinition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("caseDefinition"u8, out var caseDefinitionProperty)) - { - if (caseDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.caseDefinition = null; - } - else - { - if (caseDefinitionProperty.TryGetProperty("@id"u8, out var caseDefinitionExternalIdProperty)) - { - var propertyValue = caseDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.caseDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the caseDefinition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -272,26 +184,6 @@ internal static IIncludeUseCaseUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the declaredShortName Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -312,26 +204,6 @@ internal static IIncludeUseCaseUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the differencingType Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -439,31 +311,6 @@ internal static IIncludeUseCaseUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the endOwningType Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("eventOccurrence"u8, out var eventOccurrenceProperty)) - { - if (eventOccurrenceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.eventOccurrence = Guid.Empty; - logger.LogDebug($"the IncludeUseCaseUsage.eventOccurrence property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (eventOccurrenceProperty.TryGetProperty("@id"u8, out var eventOccurrenceExternalIdProperty)) - { - var propertyValue = eventOccurrenceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.eventOccurrence = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the eventOccurrence Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { foreach (var arrayItem in featureProperty.EnumerateArray()) @@ -549,30 +396,6 @@ internal static IIncludeUseCaseUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the featuringType Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) @@ -897,18 +720,6 @@ internal static IIncludeUseCaseUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isUnique Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1570,26 +1381,6 @@ internal static IIncludeUseCaseUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the objectiveRequirement Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2294,31 +2085,6 @@ internal static IIncludeUseCaseUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the parameter Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("performedAction"u8, out var performedActionProperty)) - { - if (performedActionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.performedAction = Guid.Empty; - logger.LogDebug($"the IncludeUseCaseUsage.performedAction property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (performedActionProperty.TryGetProperty("@id"u8, out var performedActionExternalIdProperty)) - { - var propertyValue = performedActionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.performedAction = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the performedAction Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) { dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); @@ -2416,26 +2182,6 @@ internal static IIncludeUseCaseUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the textualRepresentation Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the IncludeUseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IndexExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IndexExpressionDeSerializer.cs index 4c0786ff5..dd1bedcd3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IndexExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IndexExpressionDeSerializer.cs @@ -122,26 +122,6 @@ internal static IIndexExpression DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the argument Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -224,26 +204,6 @@ internal static IIndexExpression DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the differencingType Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the IndexExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InteractionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InteractionDeSerializer.cs index f108ff284..6154990d5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InteractionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InteractionDeSerializer.cs @@ -160,26 +160,6 @@ internal static IInteraction DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the differencingType Json property was not found in the Interaction: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the Interaction: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { foreach (var arrayItem in documentationProperty.EnumerateArray()) @@ -214,26 +194,6 @@ internal static IInteraction DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the elementId Json property was not found in the Interaction: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the Interaction: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { foreach (var arrayItem in featureProperty.EnumerateArray()) @@ -1032,26 +992,6 @@ internal static IInteraction DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the qualifiedName Json property was not found in the Interaction: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the Interaction: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) { foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) @@ -1081,26 +1021,6 @@ internal static IInteraction DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the shortName Json property was not found in the Interaction: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Interaction: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) { if (sourceTypeProperty.ValueKind == JsonValueKind.Null) @@ -1145,26 +1065,6 @@ internal static IInteraction DeSerialize(JsonElement jsonElement, SerializationM logger.LogDebug("the step Json property was not found in the Interaction: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Interaction: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) { foreach (var arrayItem in targetTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceDefinitionDeSerializer.cs index cf8f045d1..3f423c5e0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceDefinitionDeSerializer.cs @@ -102,46 +102,6 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the aliasIds Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("associationEnd"u8, out var associationEndProperty)) - { - foreach (var arrayItem in associationEndProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var associationEndExternalIdProperty)) - { - var propertyValue = associationEndExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.associationEnd.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the associationEnd Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("connectionEnd"u8, out var connectionEndProperty)) - { - foreach (var arrayItem in connectionEndProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var connectionEndExternalIdProperty)) - { - var propertyValue = connectionEndExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.connectionEnd.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the connectionEnd Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty)) { dtoInstance.DeclaredName = declaredNameProperty.GetString(); @@ -254,26 +214,6 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the elementId Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { foreach (var arrayItem in featureProperty.EnumerateArray()) @@ -1636,26 +1576,6 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the qualifiedName Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty)) { foreach (var arrayItem in relatedTypeProperty.EnumerateArray()) @@ -1685,26 +1605,6 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the shortName Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty)) { if (sourceTypeProperty.ValueKind == JsonValueKind.Null) @@ -1729,26 +1629,6 @@ internal static IInterfaceDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the sourceType Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the InterfaceDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty)) { foreach (var arrayItem in targetTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceUsageDeSerializer.cs index 569c14b88..6b5935f4a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InterfaceUsageDeSerializer.cs @@ -102,26 +102,6 @@ internal static IInterfaceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) - { - foreach (var arrayItem in associationProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) - { - var propertyValue = associationExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.association.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the association Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -142,26 +122,6 @@ internal static IInterfaceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the chainingFeature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("connectionDefinition"u8, out var connectionDefinitionProperty)) - { - foreach (var arrayItem in connectionDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var connectionDefinitionExternalIdProperty)) - { - var propertyValue = connectionDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.connectionDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the connectionDefinition Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty)) { foreach (var arrayItem in connectorEndProperty.EnumerateArray()) @@ -248,26 +208,6 @@ internal static IInterfaceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the defaultFeaturingType Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -371,26 +311,6 @@ internal static IInterfaceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) @@ -824,18 +744,6 @@ internal static IInterfaceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isUnique Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2279,26 +2187,6 @@ internal static IInterfaceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the qualifiedName Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) @@ -2328,26 +2216,6 @@ internal static IInterfaceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the shortName Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) @@ -2372,26 +2240,6 @@ internal static IInterfaceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the sourceFeature Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) @@ -2432,26 +2280,6 @@ internal static IInterfaceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the textualRepresentation Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the InterfaceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IntersectingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IntersectingDeSerializer.cs index ba4802347..548c74a1a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IntersectingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/IntersectingDeSerializer.cs @@ -462,46 +462,6 @@ internal static IIntersecting DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the shortName Json property was not found in the Intersecting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Intersecting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Intersecting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvariantDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvariantDeSerializer.cs index 260495f87..a0b1b176e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvariantDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvariantDeSerializer.cs @@ -102,26 +102,6 @@ internal static IInvariant DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the aliasIds Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the Invariant: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IInvariant DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the differencingType Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the Invariant: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -396,30 +356,6 @@ internal static IInvariant DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the featuringType Json property was not found in the Invariant: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the Invariant: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvocationExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvocationExpressionDeSerializer.cs index de39b65e8..36b3e0268 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvocationExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/InvocationExpressionDeSerializer.cs @@ -122,26 +122,6 @@ internal static IInvocationExpression DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the argument Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -224,26 +204,6 @@ internal static IInvocationExpression DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the differencingType Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the InvocationExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ItemUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ItemUsageDeSerializer.cs index e32c2120f..167e8defd 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ItemUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ItemUsageDeSerializer.cs @@ -164,26 +164,6 @@ internal static IItemUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -708,18 +688,6 @@ internal static IItemUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isUnique Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2128,26 +2096,6 @@ internal static IItemUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the textualRepresentation Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the ItemUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/JoinNodeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/JoinNodeDeSerializer.cs index 210c3af58..f347d8abc 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/JoinNodeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/JoinNodeDeSerializer.cs @@ -122,26 +122,6 @@ internal static IJoinNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the aliasIds Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the JoinNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IJoinNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the declaredShortName Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the JoinNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +204,6 @@ internal static IJoinNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the differencingType Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the JoinNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -748,18 +688,6 @@ internal static IJoinNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the isUnique Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the JoinNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1397,26 +1325,6 @@ internal static IJoinNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the nestedViewpoint Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the JoinNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2168,26 +2076,6 @@ internal static IJoinNode DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the textualRepresentation Json property was not found in the JoinNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the JoinNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralBooleanDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralBooleanDeSerializer.cs index ac06d9cc1..3c6697d6b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralBooleanDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralBooleanDeSerializer.cs @@ -102,26 +102,6 @@ internal static ILiteralBoolean DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static ILiteralBoolean DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the differencingType Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the LiteralBoolean: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralExpressionDeSerializer.cs index 4bf1cd28a..51ab2a763 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralExpressionDeSerializer.cs @@ -102,26 +102,6 @@ internal static ILiteralExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the aliasIds Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static ILiteralExpression DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the differencingType Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the LiteralExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralInfinityDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralInfinityDeSerializer.cs index eaa8e2b6f..9a08669a7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralInfinityDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralInfinityDeSerializer.cs @@ -102,26 +102,6 @@ internal static ILiteralInfinity DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static ILiteralInfinity DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the differencingType Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the LiteralInfinity: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs index 4dd76ec80..517fdfb83 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs @@ -102,26 +102,6 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static ILiteralInteger DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the differencingType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs index ce5eeea58..9215456a4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs @@ -102,26 +102,6 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static ILiteralRational DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the differencingType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralStringDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralStringDeSerializer.cs index eee40a435..2feba9e8d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralStringDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/LiteralStringDeSerializer.cs @@ -102,26 +102,6 @@ internal static ILiteralString DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the aliasIds Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the LiteralString: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static ILiteralString DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the differencingType Json property was not found in the LiteralString: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the LiteralString: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipDeSerializer.cs index 003829e81..dc72c2180 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipDeSerializer.cs @@ -519,46 +519,6 @@ internal static IMembership DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the shortName Json property was not found in the Membership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Membership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Membership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipExposeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipExposeDeSerializer.cs index eb8a7d14b..30ab3e5d3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipExposeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipExposeDeSerializer.cs @@ -536,46 +536,6 @@ internal static IMembershipExpose DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the shortName Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the MembershipExpose: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipImportDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipImportDeSerializer.cs index 2881c8255..cc114a086 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipImportDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MembershipImportDeSerializer.cs @@ -536,46 +536,6 @@ internal static IMembershipImport DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the shortName Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the MembershipImport: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MergeNodeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MergeNodeDeSerializer.cs index 1df549445..e188ae323 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MergeNodeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MergeNodeDeSerializer.cs @@ -122,26 +122,6 @@ internal static IMergeNode DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the aliasIds Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the MergeNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IMergeNode DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the MergeNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +204,6 @@ internal static IMergeNode DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the differencingType Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the MergeNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -748,18 +688,6 @@ internal static IMergeNode DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isUnique Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the MergeNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1397,26 +1325,6 @@ internal static IMergeNode DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the nestedViewpoint Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the MergeNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2168,26 +2076,6 @@ internal static IMergeNode DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the textualRepresentation Json property was not found in the MergeNode: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the MergeNode: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataAccessExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataAccessExpressionDeSerializer.cs index ca2b4d312..288252064 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataAccessExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataAccessExpressionDeSerializer.cs @@ -102,26 +102,6 @@ internal static IMetadataAccessExpression DeSerialize(JsonElement jsonElement, S logger.LogDebug("the aliasIds Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IMetadataAccessExpression DeSerialize(JsonElement jsonElement, S logger.LogDebug("the differencingType Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the MetadataAccessExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataUsageDeSerializer.cs index 93811eed0..78239bdb7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/MetadataUsageDeSerializer.cs @@ -204,26 +204,6 @@ internal static IMetadataUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the declaredShortName Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -748,18 +728,6 @@ internal static IMetadataUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the isUnique Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -772,26 +740,6 @@ internal static IMetadataUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the isVariation Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("itemDefinition"u8, out var itemDefinitionProperty)) - { - foreach (var arrayItem in itemDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var itemDefinitionExternalIdProperty)) - { - var propertyValue = itemDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.itemDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the itemDefinition Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty)) { if (mayTimeVaryProperty.ValueKind != JsonValueKind.Null) @@ -844,30 +792,6 @@ internal static IMetadataUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the membership Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("metaclass"u8, out var metaclassProperty)) - { - if (metaclassProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.metaclass = null; - } - else - { - if (metaclassProperty.TryGetProperty("@id"u8, out var metaclassExternalIdProperty)) - { - var propertyValue = metaclassExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.metaclass = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the metaclass Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("metadataDefinition"u8, out var metadataDefinitionProperty)) { if (metadataDefinitionProperty.ValueKind == JsonValueKind.Null) @@ -2260,26 +2184,6 @@ internal static IMetadataUsage DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the textualRepresentation Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the MetadataUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceExposeDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceExposeDeSerializer.cs index d2a342e5f..ed4752202 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceExposeDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceExposeDeSerializer.cs @@ -536,46 +536,6 @@ internal static INamespaceExpose DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the shortName Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the NamespaceExpose: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceImportDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceImportDeSerializer.cs index 03c358ebf..43ba727ae 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceImportDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NamespaceImportDeSerializer.cs @@ -536,46 +536,6 @@ internal static INamespaceImport DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the shortName Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the NamespaceImport: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NullExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NullExpressionDeSerializer.cs index f4363f9e5..4028dd4cf 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NullExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/NullExpressionDeSerializer.cs @@ -102,26 +102,6 @@ internal static INullExpression DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the NullExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static INullExpression DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the differencingType Json property was not found in the NullExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the NullExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ObjectiveMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ObjectiveMembershipDeSerializer.cs index 021d4bcd1..431d1e3b1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ObjectiveMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ObjectiveMembershipDeSerializer.cs @@ -190,88 +190,6 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isLibraryElement Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the ObjectiveMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the ObjectiveMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -321,31 +239,6 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the ownedElement Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the ObjectiveMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -360,31 +253,6 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the ownedMemberElementId Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the ObjectiveMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -651,46 +519,6 @@ internal static IObjectiveMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the shortName Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the ObjectiveMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OccurrenceUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OccurrenceUsageDeSerializer.cs index d17de40df..3e5a8f336 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OccurrenceUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OccurrenceUsageDeSerializer.cs @@ -164,26 +164,6 @@ internal static IOccurrenceUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -708,18 +688,6 @@ internal static IOccurrenceUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isUnique Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2108,26 +2076,6 @@ internal static IOccurrenceUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the textualRepresentation Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the OccurrenceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OperatorExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OperatorExpressionDeSerializer.cs index 407e8a165..5264146be 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OperatorExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OperatorExpressionDeSerializer.cs @@ -122,26 +122,6 @@ internal static IOperatorExpression DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the argument Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -224,26 +204,6 @@ internal static IOperatorExpression DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the differencingType Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the OperatorExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs index c56d9d3e2..b8b123b85 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs @@ -190,54 +190,6 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isLibraryElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the OwningMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) { if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) @@ -263,15 +215,6 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the membershipOwningNamespace Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -576,46 +519,6 @@ internal static IOwningMembership DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the shortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the OwningMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ParameterMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ParameterMembershipDeSerializer.cs index ca25990b3..1cc4d5345 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ParameterMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ParameterMembershipDeSerializer.cs @@ -190,88 +190,6 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isLibraryElement Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the ParameterMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the ParameterMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -321,31 +239,6 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the ownedElement Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the ParameterMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -360,31 +253,6 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the ownedMemberElementId Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the ParameterMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -651,46 +519,6 @@ internal static IParameterMembership DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the shortName Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the ParameterMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PartUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PartUsageDeSerializer.cs index b3700babd..c57f954b7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PartUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PartUsageDeSerializer.cs @@ -164,26 +164,6 @@ internal static IPartUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the PartUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -708,18 +688,6 @@ internal static IPartUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isUnique Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the PartUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2148,26 +2116,6 @@ internal static IPartUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the textualRepresentation Json property was not found in the PartUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the PartUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PerformActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PerformActionUsageDeSerializer.cs index 2b976b721..e9cecde99 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PerformActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PerformActionUsageDeSerializer.cs @@ -122,26 +122,6 @@ internal static IPerformActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the aliasIds Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static IPerformActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the declaredShortName Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +204,6 @@ internal static IPerformActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the differencingType Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -371,31 +311,6 @@ internal static IPerformActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the endOwningType Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("eventOccurrence"u8, out var eventOccurrenceProperty)) - { - if (eventOccurrenceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.eventOccurrence = Guid.Empty; - logger.LogDebug($"the PerformActionUsage.eventOccurrence property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (eventOccurrenceProperty.TryGetProperty("@id"u8, out var eventOccurrenceExternalIdProperty)) - { - var propertyValue = eventOccurrenceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.eventOccurrence = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the eventOccurrence Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("feature"u8, out var featureProperty)) { foreach (var arrayItem in featureProperty.EnumerateArray()) @@ -773,18 +688,6 @@ internal static IPerformActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the isUnique Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1422,26 +1325,6 @@ internal static IPerformActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the nestedViewpoint Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2218,26 +2101,6 @@ internal static IPerformActionUsage DeSerialize(JsonElement jsonElement, Seriali logger.LogDebug("the textualRepresentation Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the PerformActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortConjugationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortConjugationDeSerializer.cs index 48b53fc75..475f7fc6d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortConjugationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortConjugationDeSerializer.cs @@ -274,31 +274,6 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the originalPortDefinition Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("originalType"u8, out var originalTypeProperty)) - { - if (originalTypeProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.OriginalType = Guid.Empty; - logger.LogDebug($"the PortConjugation.OriginalType property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (originalTypeProperty.TryGetProperty("@id"u8, out var originalTypeExternalIdProperty)) - { - var propertyValue = originalTypeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.OriginalType = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the originalType Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty)) { foreach (var arrayItem in ownedAnnotationProperty.EnumerateArray()) @@ -499,30 +474,6 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the owningRelationship Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) - { - if (owningTypeProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningType = null; - } - else - { - if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) - { - var propertyValue = owningTypeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningType = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningType Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -561,46 +512,6 @@ internal static IPortConjugation DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the shortName Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the PortConjugation: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortUsageDeSerializer.cs index 1ce2d8221..c5a10e72d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PortUsageDeSerializer.cs @@ -164,26 +164,6 @@ internal static IPortUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the PortUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -708,18 +688,6 @@ internal static IPortUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isUnique Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the PortUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1357,26 +1325,6 @@ internal static IPortUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the nestedViewpoint Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the PortUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2128,26 +2076,6 @@ internal static IPortUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the textualRepresentation Json property was not found in the PortUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the PortUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PredicateDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PredicateDeSerializer.cs index 03773a2b2..6b7a37b29 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PredicateDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/PredicateDeSerializer.cs @@ -140,26 +140,6 @@ internal static IPredicate DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the differencingType Json property was not found in the Predicate: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the Predicate: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty)) { foreach (var arrayItem in documentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RedefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RedefinitionDeSerializer.cs index e46ab1e62..22e070e65 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RedefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RedefinitionDeSerializer.cs @@ -154,31 +154,6 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the elementId Json property was not found in the Redefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("general"u8, out var generalProperty)) - { - if (generalProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.General = Guid.Empty; - logger.LogDebug($"the Redefinition.General property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) - { - var propertyValue = generalExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.General = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the general Json property was not found in the Redefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -448,30 +423,6 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the owningRelationship Json property was not found in the Redefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) - { - if (owningTypeProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningType = null; - } - else - { - if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) - { - var propertyValue = owningTypeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningType = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningType Json property was not found in the Redefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -560,121 +511,6 @@ internal static IRedefinition DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the shortName Json property was not found in the Redefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Redefinition: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("specific"u8, out var specificProperty)) - { - if (specificProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.Specific = Guid.Empty; - logger.LogDebug($"the Redefinition.Specific property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) - { - var propertyValue = specificExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Specific = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the specific Json property was not found in the Redefinition: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("subsettedFeature"u8, out var subsettedFeatureProperty)) - { - if (subsettedFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.SubsettedFeature = Guid.Empty; - logger.LogDebug($"the Redefinition.SubsettedFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureExternalIdProperty)) - { - var propertyValue = subsettedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.SubsettedFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the subsettedFeature Json property was not found in the Redefinition: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("subsettingFeature"u8, out var subsettingFeatureProperty)) - { - if (subsettingFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.SubsettingFeature = Guid.Empty; - logger.LogDebug($"the Redefinition.SubsettingFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureExternalIdProperty)) - { - var propertyValue = subsettingFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.SubsettingFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the subsettingFeature Json property was not found in the Redefinition: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Redefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs index 1c1770955..270fd317c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs @@ -154,31 +154,6 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the elementId Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("general"u8, out var generalProperty)) - { - if (generalProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.General = Guid.Empty; - logger.LogDebug($"the ReferenceSubsetting.General property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) - { - var propertyValue = generalExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.General = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the general Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -328,30 +303,6 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the owner Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningFeature"u8, out var owningFeatureProperty)) - { - if (owningFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningFeature = null; - } - else - { - if (owningFeatureProperty.TryGetProperty("@id"u8, out var owningFeatureExternalIdProperty)) - { - var propertyValue = owningFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty)) { if (owningMembershipProperty.ValueKind == JsonValueKind.Null) @@ -448,30 +399,6 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the owningRelationship Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) - { - if (owningTypeProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningType = null; - } - else - { - if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) - { - var propertyValue = owningTypeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningType = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningType Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -560,121 +487,6 @@ internal static IReferenceSubsetting DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the shortName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("specific"u8, out var specificProperty)) - { - if (specificProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.Specific = Guid.Empty; - logger.LogDebug($"the ReferenceSubsetting.Specific property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) - { - var propertyValue = specificExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Specific = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the specific Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("subsettedFeature"u8, out var subsettedFeatureProperty)) - { - if (subsettedFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.SubsettedFeature = Guid.Empty; - logger.LogDebug($"the ReferenceSubsetting.SubsettedFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (subsettedFeatureProperty.TryGetProperty("@id"u8, out var subsettedFeatureExternalIdProperty)) - { - var propertyValue = subsettedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.SubsettedFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the subsettedFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("subsettingFeature"u8, out var subsettingFeatureProperty)) - { - if (subsettingFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.SubsettingFeature = Guid.Empty; - logger.LogDebug($"the ReferenceSubsetting.SubsettingFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (subsettingFeatureProperty.TryGetProperty("@id"u8, out var subsettingFeatureExternalIdProperty)) - { - var propertyValue = subsettingFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.SubsettingFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the subsettingFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceUsageDeSerializer.cs index 38d1ca304..404bbd2ce 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReferenceUsageDeSerializer.cs @@ -672,18 +672,6 @@ internal static IReferenceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isUnique Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2043,26 +2031,6 @@ internal static IReferenceUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the textualRepresentation Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the ReferenceUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RenderingUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RenderingUsageDeSerializer.cs index ab78a79b6..7ab5accd4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RenderingUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RenderingUsageDeSerializer.cs @@ -164,26 +164,6 @@ internal static IRenderingUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredShortName Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -708,18 +688,6 @@ internal static IRenderingUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isUnique Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2081,26 +2049,6 @@ internal static IRenderingUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the owningUsage Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("partDefinition"u8, out var partDefinitionProperty)) - { - foreach (var arrayItem in partDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var partDefinitionExternalIdProperty)) - { - var propertyValue = partDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.partDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the partDefinition Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) { dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); @@ -2172,26 +2120,6 @@ internal static IRenderingUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the textualRepresentation Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the RenderingUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementConstraintMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementConstraintMembershipDeSerializer.cs index b65ae7f36..5d3811ca9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementConstraintMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementConstraintMembershipDeSerializer.cs @@ -199,88 +199,6 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle logger.LogDebug("the kind Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the RequirementConstraintMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the RequirementConstraintMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -355,31 +273,6 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle logger.LogDebug("the ownedElement Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the RequirementConstraintMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -394,31 +287,6 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle logger.LogDebug("the ownedMemberElementId Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the RequirementConstraintMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -685,46 +553,6 @@ internal static IRequirementConstraintMembership DeSerialize(JsonElement jsonEle logger.LogDebug("the shortName Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the RequirementConstraintMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementDefinitionDeSerializer.cs index 63bc63656..c6770de7c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementDefinitionDeSerializer.cs @@ -151,15 +151,6 @@ internal static IRequirementDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the declaredName Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) - { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the declaredShortName Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -180,26 +171,6 @@ internal static IRequirementDefinition DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the differencingType Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the RequirementDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs index c14e6a734..f5bfccd7b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs @@ -142,26 +142,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the assumedConstraint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -182,30 +162,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the chainingFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("constraintDefinition"u8, out var constraintDefinitionProperty)) - { - if (constraintDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.constraintDefinition = null; - } - else - { - if (constraintDefinitionProperty.TryGetProperty("@id"u8, out var constraintDefinitionExternalIdProperty)) - { - var propertyValue = constraintDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.constraintDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the constraintDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { if (crossFeatureProperty.ValueKind == JsonValueKind.Null) @@ -239,35 +195,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the declaredName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) - { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the declaredShortName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -288,26 +215,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the differencingType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -520,30 +427,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the framedConcern Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) @@ -848,18 +731,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the isUnique Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2230,30 +2101,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the portionKind Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) - { - if (predicateProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.predicate = null; - } - else - { - if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) - { - var propertyValue = predicateExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.predicate = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the predicate Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -2432,26 +2279,6 @@ internal static IRequirementUsage DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the textualRepresentation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementVerificationMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementVerificationMembershipDeSerializer.cs index 359dbd85f..1f479ae4f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementVerificationMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/RequirementVerificationMembershipDeSerializer.cs @@ -199,88 +199,6 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the kind Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the RequirementVerificationMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the RequirementVerificationMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -310,31 +228,6 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the ownedAnnotation Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty)) - { - if (ownedConstraintProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedConstraint = Guid.Empty; - logger.LogDebug($"the RequirementVerificationMembership.ownedConstraint property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedConstraintProperty.TryGetProperty("@id"u8, out var ownedConstraintExternalIdProperty)) - { - var propertyValue = ownedConstraintExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedConstraint = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedConstraint Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty)) { foreach (var arrayItem in ownedElementProperty.EnumerateArray()) @@ -355,31 +248,6 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the ownedElement Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the RequirementVerificationMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -394,31 +262,6 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the ownedMemberElementId Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the RequirementVerificationMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -656,31 +499,6 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the qualifiedName Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("referencedConstraint"u8, out var referencedConstraintProperty)) - { - if (referencedConstraintProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.referencedConstraint = Guid.Empty; - logger.LogDebug($"the RequirementVerificationMembership.referencedConstraint property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (referencedConstraintProperty.TryGetProperty("@id"u8, out var referencedConstraintExternalIdProperty)) - { - var propertyValue = referencedConstraintExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.referencedConstraint = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the referencedConstraint Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) { foreach (var arrayItem in relatedElementProperty.EnumerateArray()) @@ -710,46 +528,6 @@ internal static IRequirementVerificationMembership DeSerialize(JsonElement jsonE logger.LogDebug("the shortName Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the RequirementVerificationMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ResultExpressionMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ResultExpressionMembershipDeSerializer.cs index 89706c57b..5a8b579af 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ResultExpressionMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ResultExpressionMembershipDeSerializer.cs @@ -190,88 +190,6 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the isLibraryElement Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the ResultExpressionMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the ResultExpressionMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -321,31 +239,6 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the ownedElement Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the ResultExpressionMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -360,31 +253,6 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the ownedMemberElementId Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the ResultExpressionMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -651,46 +519,6 @@ internal static IResultExpressionMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the shortName Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the ResultExpressionMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReturnParameterMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReturnParameterMembershipDeSerializer.cs index fa8b3468b..684a33825 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReturnParameterMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ReturnParameterMembershipDeSerializer.cs @@ -190,88 +190,6 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the isLibraryElement Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the ReturnParameterMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the ReturnParameterMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -321,31 +239,6 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the ownedElement Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the ReturnParameterMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -360,31 +253,6 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the ownedMemberElementId Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the ReturnParameterMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -651,46 +519,6 @@ internal static IReturnParameterMembership DeSerialize(JsonElement jsonElement, logger.LogDebug("the shortName Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the ReturnParameterMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SatisfyRequirementUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SatisfyRequirementUsageDeSerializer.cs index eeac4bca6..ecfa3fd14 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SatisfyRequirementUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SatisfyRequirementUsageDeSerializer.cs @@ -122,31 +122,6 @@ internal static ISatisfyRequirementUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the aliasIds Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("assertedConstraint"u8, out var assertedConstraintProperty)) - { - if (assertedConstraintProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.assertedConstraint = Guid.Empty; - logger.LogDebug($"the SatisfyRequirementUsage.assertedConstraint property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (assertedConstraintProperty.TryGetProperty("@id"u8, out var assertedConstraintExternalIdProperty)) - { - var propertyValue = assertedConstraintExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.assertedConstraint = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the assertedConstraint Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("assumedConstraint"u8, out var assumedConstraintProperty)) { foreach (var arrayItem in assumedConstraintProperty.EnumerateArray()) @@ -167,26 +142,6 @@ internal static ISatisfyRequirementUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the assumedConstraint Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -207,30 +162,6 @@ internal static ISatisfyRequirementUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the chainingFeature Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("constraintDefinition"u8, out var constraintDefinitionProperty)) - { - if (constraintDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.constraintDefinition = null; - } - else - { - if (constraintDefinitionProperty.TryGetProperty("@id"u8, out var constraintDefinitionExternalIdProperty)) - { - var propertyValue = constraintDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.constraintDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the constraintDefinition Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { if (crossFeatureProperty.ValueKind == JsonValueKind.Null) @@ -264,35 +195,6 @@ internal static ISatisfyRequirementUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the declaredName Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) - { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the declaredShortName Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -313,26 +215,6 @@ internal static ISatisfyRequirementUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the differencingType Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -545,30 +427,6 @@ internal static ISatisfyRequirementUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the framedConcern Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) @@ -885,18 +743,6 @@ internal static ISatisfyRequirementUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the isUnique Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2267,30 +2113,6 @@ internal static ISatisfyRequirementUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the portionKind Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) - { - if (predicateProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.predicate = null; - } - else - { - if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) - { - var propertyValue = predicateExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.predicate = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the predicate Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -2519,26 +2341,6 @@ internal static ISatisfyRequirementUsage DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the textualRepresentation Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the SatisfyRequirementUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs index 8aa221790..e45512bf5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs @@ -122,26 +122,6 @@ internal static ISelectExpression DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the argument Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -224,26 +204,6 @@ internal static ISelectExpression DeSerialize(JsonElement jsonElement, Serializa logger.LogDebug("the differencingType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SendActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SendActionUsageDeSerializer.cs index e03647c31..6198c2cfe 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SendActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SendActionUsageDeSerializer.cs @@ -122,26 +122,6 @@ internal static ISendActionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static ISendActionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +204,6 @@ internal static ISendActionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the differencingType Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -748,18 +688,6 @@ internal static ISendActionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isUnique Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1397,26 +1325,6 @@ internal static ISendActionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the nestedViewpoint Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2241,26 +2149,6 @@ internal static ISendActionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the textualRepresentation Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the SendActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SpecializationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SpecializationDeSerializer.cs index 67a6ce0a3..0ac1e8b73 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SpecializationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SpecializationDeSerializer.cs @@ -486,26 +486,6 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the shortName Json property was not found in the Specialization: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Specialization: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("specific"u8, out var specificProperty)) { if (specificProperty.ValueKind == JsonValueKind.Null) @@ -531,26 +511,6 @@ internal static ISpecialization DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the specific Json property was not found in the Specialization: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Specialization: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StakeholderMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StakeholderMembershipDeSerializer.cs index 9e152946f..4287c5b3f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StakeholderMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StakeholderMembershipDeSerializer.cs @@ -190,88 +190,6 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isLibraryElement Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the StakeholderMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the StakeholderMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -321,31 +239,6 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the ownedElement Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the StakeholderMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -360,31 +253,6 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the ownedMemberElementId Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the StakeholderMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -394,31 +262,6 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the ownedMemberName Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberParameter"u8, out var ownedMemberParameterProperty)) - { - if (ownedMemberParameterProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberParameter = Guid.Empty; - logger.LogDebug($"the StakeholderMembership.ownedMemberParameter property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberParameterProperty.TryGetProperty("@id"u8, out var ownedMemberParameterExternalIdProperty)) - { - var propertyValue = ownedMemberParameterExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberParameter = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberParameter Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) { dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); @@ -676,46 +519,6 @@ internal static IStakeholderMembership DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the shortName Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the StakeholderMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateDefinitionDeSerializer.cs index b579ed0f8..4a7315db6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateDefinitionDeSerializer.cs @@ -160,26 +160,6 @@ internal static IStateDefinition DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the differencingType Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the StateDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateSubactionMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateSubactionMembershipDeSerializer.cs index eda93d91f..ee0dda473 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateSubactionMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateSubactionMembershipDeSerializer.cs @@ -224,88 +224,6 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S logger.LogDebug("the kind Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the StateSubactionMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the StateSubactionMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -355,31 +273,6 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S logger.LogDebug("the ownedElement Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the StateSubactionMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -394,31 +287,6 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S logger.LogDebug("the ownedMemberElementId Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the StateSubactionMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -660,46 +528,6 @@ internal static IStateSubactionMembership DeSerialize(JsonElement jsonElement, S logger.LogDebug("the shortName Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the StateSubactionMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateUsageDeSerializer.cs index a33757d08..1be5e6c5e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StateUsageDeSerializer.cs @@ -85,26 +85,6 @@ internal static IStateUsage DeSerialize(JsonElement jsonElement, SerializationMo } } - if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) - { - foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) - { - var propertyValue = actionDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the actionDefinition Json property was not found in the StateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -122,26 +102,6 @@ internal static IStateUsage DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the aliasIds Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the StateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +164,6 @@ internal static IStateUsage DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the declaredShortName Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the StateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +184,6 @@ internal static IStateUsage DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the differencingType Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the StateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -832,18 +752,6 @@ internal static IStateUsage DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the isUnique Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the StateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1481,26 +1389,6 @@ internal static IStateUsage DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the nestedViewpoint Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the StateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2272,26 +2160,6 @@ internal static IStateUsage DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the textualRepresentation Json property was not found in the StateUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the StateUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StepDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StepDeSerializer.cs index 787c6f8a1..5dc285642 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StepDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/StepDeSerializer.cs @@ -204,26 +204,6 @@ internal static IStep DeSerialize(JsonElement jsonElement, SerializationModeKind logger.LogDebug("the differencingType Json property was not found in the Step: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the Step: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs index d3b6c8591..76f5ed37f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs @@ -154,31 +154,6 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the elementId Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("general"u8, out var generalProperty)) - { - if (generalProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.General = Guid.Empty; - logger.LogDebug($"the Subclassification.General property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) - { - var propertyValue = generalExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.General = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the general Json property was not found in the Subclassification: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -448,30 +423,6 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the owningRelationship Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) - { - if (owningTypeProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningType = null; - } - else - { - if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) - { - var propertyValue = owningTypeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningType = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningType Json property was not found in the Subclassification: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -510,51 +461,6 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the shortName Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Subclassification: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("specific"u8, out var specificProperty)) - { - if (specificProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.Specific = Guid.Empty; - logger.LogDebug($"the Subclassification.Specific property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) - { - var propertyValue = specificExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Specific = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the specific Json property was not found in the Subclassification: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("subclassifier"u8, out var subclassifierProperty)) { if (subclassifierProperty.ValueKind == JsonValueKind.Null) @@ -605,26 +511,6 @@ internal static ISubclassification DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the superclassifier Json property was not found in the Subclassification: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Subclassification: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubjectMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubjectMembershipDeSerializer.cs index 28a417462..d4717f933 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubjectMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubjectMembershipDeSerializer.cs @@ -190,88 +190,6 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isLibraryElement Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the SubjectMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the SubjectMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -321,31 +239,6 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the ownedElement Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the SubjectMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -360,31 +253,6 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the ownedMemberElementId Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the SubjectMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -394,31 +262,6 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the ownedMemberName Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberParameter"u8, out var ownedMemberParameterProperty)) - { - if (ownedMemberParameterProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberParameter = Guid.Empty; - logger.LogDebug($"the SubjectMembership.ownedMemberParameter property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberParameterProperty.TryGetProperty("@id"u8, out var ownedMemberParameterExternalIdProperty)) - { - var propertyValue = ownedMemberParameterExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberParameter = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberParameter Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty)) { dtoInstance.ownedMemberShortName = ownedMemberShortNameProperty.GetString(); @@ -676,46 +519,6 @@ internal static ISubjectMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the shortName Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the SubjectMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubsettingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubsettingDeSerializer.cs index 7fc7dda6b..813d9ed8e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubsettingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SubsettingDeSerializer.cs @@ -154,31 +154,6 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the elementId Json property was not found in the Subsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("general"u8, out var generalProperty)) - { - if (generalProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.General = Guid.Empty; - logger.LogDebug($"the Subsetting.General property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (generalProperty.TryGetProperty("@id"u8, out var generalExternalIdProperty)) - { - var propertyValue = generalExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.General = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the general Json property was not found in the Subsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty)) { if (isImpliedProperty.ValueKind != JsonValueKind.Null) @@ -448,30 +423,6 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the owningRelationship Json property was not found in the Subsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty)) - { - if (owningTypeProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.owningType = null; - } - else - { - if (owningTypeProperty.TryGetProperty("@id"u8, out var owningTypeExternalIdProperty)) - { - var propertyValue = owningTypeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.owningType = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the owningType Json property was not found in the Subsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -510,51 +461,6 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the shortName Json property was not found in the Subsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Subsetting: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("specific"u8, out var specificProperty)) - { - if (specificProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.Specific = Guid.Empty; - logger.LogDebug($"the Subsetting.Specific property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (specificProperty.TryGetProperty("@id"u8, out var specificExternalIdProperty)) - { - var propertyValue = specificExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Specific = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the specific Json property was not found in the Subsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("subsettedFeature"u8, out var subsettedFeatureProperty)) { if (subsettedFeatureProperty.ValueKind == JsonValueKind.Null) @@ -605,26 +511,6 @@ internal static ISubsetting DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the subsettingFeature Json property was not found in the Subsetting: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Subsetting: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionAsUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionAsUsageDeSerializer.cs index 53ad56008..6722dc40f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionAsUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionAsUsageDeSerializer.cs @@ -351,26 +351,6 @@ internal static ISuccessionAsUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the elementId Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) @@ -748,18 +728,6 @@ internal static ISuccessionAsUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isUnique Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2134,26 +2102,6 @@ internal static ISuccessionAsUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the qualifiedName Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) @@ -2183,26 +2131,6 @@ internal static ISuccessionAsUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the shortName Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) @@ -2227,26 +2155,6 @@ internal static ISuccessionAsUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the sourceFeature Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) @@ -2287,26 +2195,6 @@ internal static ISuccessionAsUsage DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the textualRepresentation Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the SuccessionAsUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionDeSerializer.cs index ba0e122e7..058b78990 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionDeSerializer.cs @@ -311,26 +311,6 @@ internal static ISuccession DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the elementId Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the Succession: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) @@ -1470,26 +1450,6 @@ internal static ISuccession DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the qualifiedName Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the Succession: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) @@ -1519,26 +1479,6 @@ internal static ISuccession DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the shortName Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Succession: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) @@ -1563,26 +1503,6 @@ internal static ISuccession DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the sourceFeature Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Succession: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) @@ -1623,26 +1543,6 @@ internal static ISuccession DeSerialize(JsonElement jsonElement, SerializationMo logger.LogDebug("the textualRepresentation Json property was not found in the Succession: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the Succession: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowDeSerializer.cs index 2d1576408..1a275b785 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowDeSerializer.cs @@ -102,46 +102,6 @@ internal static ISuccessionFlow DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the aliasIds Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) - { - foreach (var arrayItem in associationProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) - { - var propertyValue = associationExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.association.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the association Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -268,26 +228,6 @@ internal static ISuccessionFlow DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the differencingType Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); @@ -331,26 +271,6 @@ internal static ISuccessionFlow DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the elementId Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) @@ -1594,26 +1514,6 @@ internal static ISuccessionFlow DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the qualifiedName Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) @@ -1643,26 +1543,6 @@ internal static ISuccessionFlow DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the shortName Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) @@ -1711,26 +1591,6 @@ internal static ISuccessionFlow DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the sourceOutputFeature Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) @@ -1795,26 +1655,6 @@ internal static ISuccessionFlow DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the textualRepresentation Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the SuccessionFlow: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowUsageDeSerializer.cs index 151725626..ee81280b5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/SuccessionFlowUsageDeSerializer.cs @@ -85,26 +85,6 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial } } - if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) - { - foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) - { - var propertyValue = actionDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the actionDefinition Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty)) { foreach (var arrayItem in aliasIdsProperty.EnumerateArray()) @@ -122,46 +102,6 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the aliasIds Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("association"u8, out var associationProperty)) - { - foreach (var arrayItem in associationProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var associationExternalIdProperty)) - { - var propertyValue = associationExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.association.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the association Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -268,26 +208,6 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the defaultFeaturingType Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -308,26 +228,6 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the differencingType Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -391,26 +291,6 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the elementId Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty)) - { - foreach (var arrayItem in endFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var endFeatureExternalIdProperty)) - { - var propertyValue = endFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.endFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the endFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty)) { if (endOwningTypeProperty.ValueKind == JsonValueKind.Null) @@ -664,26 +544,6 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the input Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("interaction"u8, out var interactionProperty)) - { - foreach (var arrayItem in interactionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var interactionExternalIdProperty)) - { - var propertyValue = interactionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.interaction.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the interaction Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty)) { foreach (var arrayItem in intersectingTypeProperty.EnumerateArray()) @@ -884,18 +744,6 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the isUnique Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1533,26 +1381,6 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the nestedViewpoint Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2363,26 +2191,6 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the qualifiedName Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty)) - { - foreach (var arrayItem in relatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var relatedElementExternalIdProperty)) - { - var propertyValue = relatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.relatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the relatedElement Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty)) { foreach (var arrayItem in relatedFeatureProperty.EnumerateArray()) @@ -2412,26 +2220,6 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the shortName Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty)) { if (sourceFeatureProperty.ValueKind == JsonValueKind.Null) @@ -2480,26 +2268,6 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the sourceOutputFeature Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty)) { foreach (var arrayItem in targetFeatureProperty.EnumerateArray()) @@ -2564,26 +2332,6 @@ internal static ISuccessionFlowUsage DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the textualRepresentation Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the SuccessionFlowUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TerminateActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TerminateActionUsageDeSerializer.cs index f01fbf7f4..06fde9ed9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TerminateActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TerminateActionUsageDeSerializer.cs @@ -122,26 +122,6 @@ internal static ITerminateActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the aliasIds Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static ITerminateActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the declaredShortName Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +204,6 @@ internal static ITerminateActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the differencingType Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -748,18 +688,6 @@ internal static ITerminateActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isUnique Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1397,26 +1325,6 @@ internal static ITerminateActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the nestedViewpoint Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2192,26 +2100,6 @@ internal static ITerminateActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the textualRepresentation Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the TerminateActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs index c2e0f2eb9..1925ce768 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs @@ -102,26 +102,6 @@ internal static ITextualRepresentation DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the aliasIds Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("annotatedElement"u8, out var annotatedElementProperty)) - { - foreach (var arrayItem in annotatedElementProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var annotatedElementExternalIdProperty)) - { - var propertyValue = annotatedElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.annotatedElement.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the annotatedElement Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("annotation"u8, out var annotationProperty)) { foreach (var arrayItem in annotationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionFeatureMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionFeatureMembershipDeSerializer.cs index f497f3566..91f135568 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionFeatureMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionFeatureMembershipDeSerializer.cs @@ -199,88 +199,6 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement logger.LogDebug("the kind Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the TransitionFeatureMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the TransitionFeatureMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -330,31 +248,6 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement logger.LogDebug("the ownedElement Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the TransitionFeatureMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -369,31 +262,6 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement logger.LogDebug("the ownedMemberElementId Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the TransitionFeatureMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -635,46 +503,6 @@ internal static ITransitionFeatureMembership DeSerialize(JsonElement jsonElement logger.LogDebug("the shortName Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the TransitionFeatureMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionUsageDeSerializer.cs index b86ba4950..e945b2d8e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TransitionUsageDeSerializer.cs @@ -122,26 +122,6 @@ internal static ITransitionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the aliasIds Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -204,26 +184,6 @@ internal static ITransitionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the declaredShortName Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -244,26 +204,6 @@ internal static ITransitionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the differencingType Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -788,18 +728,6 @@ internal static ITransitionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the isUnique Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1437,26 +1365,6 @@ internal static ITransitionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the nestedViewpoint Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2303,26 +2211,6 @@ internal static ITransitionUsage DeSerialize(JsonElement jsonElement, Serializat logger.LogDebug("the triggerAction Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the TransitionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TriggerInvocationExpressionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TriggerInvocationExpressionDeSerializer.cs index fef85e248..b2b2f1742 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TriggerInvocationExpressionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TriggerInvocationExpressionDeSerializer.cs @@ -122,26 +122,6 @@ internal static ITriggerInvocationExpression DeSerialize(JsonElement jsonElement logger.LogDebug("the argument Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -224,26 +204,6 @@ internal static ITriggerInvocationExpression DeSerialize(JsonElement jsonElement logger.LogDebug("the differencingType Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the TriggerInvocationExpression: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("direction"u8, out var directionProperty)) { dtoInstance.Direction = FeatureDirectionKindDeSerializer.DeserializeNullable(directionProperty.GetString()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TypeFeaturingDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TypeFeaturingDeSerializer.cs index 4f244b7ec..e30c12dfe 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TypeFeaturingDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/TypeFeaturingDeSerializer.cs @@ -511,46 +511,6 @@ internal static ITypeFeaturing DeSerialize(JsonElement jsonElement, Serializatio logger.LogDebug("the shortName Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the TypeFeaturing: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UnioningDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UnioningDeSerializer.cs index dbabcc148..18ee981b7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UnioningDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UnioningDeSerializer.cs @@ -437,46 +437,6 @@ internal static IUnioning DeSerialize(JsonElement jsonElement, SerializationMode logger.LogDebug("the shortName Json property was not found in the Unioning: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the Unioning: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the Unioning: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UsageDeSerializer.cs index 0704bcbc4..5deaec1ce 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UsageDeSerializer.cs @@ -672,18 +672,6 @@ internal static IUsage DeSerialize(JsonElement jsonElement, SerializationModeKin logger.LogDebug("the isUnique Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the Usage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2043,26 +2031,6 @@ internal static IUsage DeSerialize(JsonElement jsonElement, SerializationModeKin logger.LogDebug("the textualRepresentation Json property was not found in the Usage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the Usage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseDefinitionDeSerializer.cs index 700ca6d4c..bab006b7a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseDefinitionDeSerializer.cs @@ -200,26 +200,6 @@ internal static IUseCaseDefinition DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the differencingType Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the UseCaseDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseUsageDeSerializer.cs index 1d3665e6a..f0bca3b35 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/UseCaseUsageDeSerializer.cs @@ -85,26 +85,6 @@ internal static IUseCaseUsage DeSerialize(JsonElement jsonElement, Serialization } } - if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) - { - foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) - { - var propertyValue = actionDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the actionDefinition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) { foreach (var arrayItem in actorParameterProperty.EnumerateArray()) @@ -142,74 +122,6 @@ internal static IUseCaseUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the aliasIds Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("calculationDefinition"u8, out var calculationDefinitionProperty)) - { - if (calculationDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.calculationDefinition = null; - } - else - { - if (calculationDefinitionProperty.TryGetProperty("@id"u8, out var calculationDefinitionExternalIdProperty)) - { - var propertyValue = calculationDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.calculationDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the calculationDefinition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("caseDefinition"u8, out var caseDefinitionProperty)) - { - if (caseDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.caseDefinition = null; - } - else - { - if (caseDefinitionProperty.TryGetProperty("@id"u8, out var caseDefinitionExternalIdProperty)) - { - var propertyValue = caseDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.caseDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the caseDefinition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -272,26 +184,6 @@ internal static IUseCaseUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the declaredShortName Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -312,26 +204,6 @@ internal static IUseCaseUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the differencingType Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -524,30 +396,6 @@ internal static IUseCaseUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the featuringType Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) @@ -872,18 +720,6 @@ internal static IUseCaseUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the isUnique Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1545,26 +1381,6 @@ internal static IUseCaseUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the objectiveRequirement Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2366,26 +2182,6 @@ internal static IUseCaseUsage DeSerialize(JsonElement jsonElement, Serialization logger.LogDebug("the textualRepresentation Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the UseCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VariantMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VariantMembershipDeSerializer.cs index 171df3be7..0d7119f0a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VariantMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VariantMembershipDeSerializer.cs @@ -190,54 +190,6 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the isLibraryElement Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the VariantMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) { if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) @@ -263,15 +215,6 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the membershipOwningNamespace Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -321,31 +264,6 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the ownedElement Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the VariantMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -601,46 +519,6 @@ internal static IVariantMembership DeSerialize(JsonElement jsonElement, Serializ logger.LogDebug("the shortName Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the VariantMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseDefinitionDeSerializer.cs index 1bed35eb5..b68a900ca 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseDefinitionDeSerializer.cs @@ -200,26 +200,6 @@ internal static IVerificationCaseDefinition DeSerialize(JsonElement jsonElement, logger.LogDebug("the differencingType Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the VerificationCaseDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseUsageDeSerializer.cs index ea87d72df..3a0d89f89 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/VerificationCaseUsageDeSerializer.cs @@ -85,26 +85,6 @@ internal static IVerificationCaseUsage DeSerialize(JsonElement jsonElement, Seri } } - if (jsonElement.TryGetProperty("actionDefinition"u8, out var actionDefinitionProperty)) - { - foreach (var arrayItem in actionDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var actionDefinitionExternalIdProperty)) - { - var propertyValue = actionDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.actionDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the actionDefinition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("actorParameter"u8, out var actorParameterProperty)) { foreach (var arrayItem in actorParameterProperty.EnumerateArray()) @@ -142,50 +122,6 @@ internal static IVerificationCaseUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the aliasIds Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("calculationDefinition"u8, out var calculationDefinitionProperty)) - { - if (calculationDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.calculationDefinition = null; - } - else - { - if (calculationDefinitionProperty.TryGetProperty("@id"u8, out var calculationDefinitionExternalIdProperty)) - { - var propertyValue = calculationDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.calculationDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the calculationDefinition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("caseDefinition"u8, out var caseDefinitionProperty)) { if (caseDefinitionProperty.ValueKind == JsonValueKind.Null) @@ -272,26 +208,6 @@ internal static IVerificationCaseUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the declaredShortName Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -312,26 +228,6 @@ internal static IVerificationCaseUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the differencingType Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -524,30 +420,6 @@ internal static IVerificationCaseUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the featuringType Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) @@ -852,18 +724,6 @@ internal static IVerificationCaseUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the isUnique Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1525,26 +1385,6 @@ internal static IVerificationCaseUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the objectiveRequirement Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2346,26 +2186,6 @@ internal static IVerificationCaseUsage DeSerialize(JsonElement jsonElement, Seri logger.LogDebug("the textualRepresentation Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the VerificationCaseUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewRenderingMembershipDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewRenderingMembershipDeSerializer.cs index e943f7ed6..c29fdb66b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewRenderingMembershipDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewRenderingMembershipDeSerializer.cs @@ -190,88 +190,6 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the isLibraryElement Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty)) - { - if (memberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.MemberElement = Guid.Empty; - logger.LogDebug($"the ViewRenderingMembership.MemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (memberElementProperty.TryGetProperty("@id"u8, out var memberElementExternalIdProperty)) - { - var propertyValue = memberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.MemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the memberElement Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty)) - { - var propertyValue = memberElementIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.memberElementId = propertyValue; - } - } - else - { - logger.LogDebug("the memberElementId Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty)) - { - dtoInstance.MemberName = memberNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberName Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty)) - { - if (membershipOwningNamespaceProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.membershipOwningNamespace = Guid.Empty; - logger.LogDebug($"the ViewRenderingMembership.membershipOwningNamespace property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (membershipOwningNamespaceProperty.TryGetProperty("@id"u8, out var membershipOwningNamespaceExternalIdProperty)) - { - var propertyValue = membershipOwningNamespaceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.membershipOwningNamespace = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the membershipOwningNamespace Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty)) - { - dtoInstance.MemberShortName = memberShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the memberShortName Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("name"u8, out var nameProperty)) { dtoInstance.name = nameProperty.GetString(); @@ -321,31 +239,6 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the ownedElement Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty)) - { - if (ownedMemberElementProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberElement = Guid.Empty; - logger.LogDebug($"the ViewRenderingMembership.ownedMemberElement property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberElementProperty.TryGetProperty("@id"u8, out var ownedMemberElementExternalIdProperty)) - { - var propertyValue = ownedMemberElementExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberElement = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberElement Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty)) { var propertyValue = ownedMemberElementIdProperty.GetString(); @@ -360,31 +253,6 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the ownedMemberElementId Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("ownedMemberFeature"u8, out var ownedMemberFeatureProperty)) - { - if (ownedMemberFeatureProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.ownedMemberFeature = Guid.Empty; - logger.LogDebug($"the ViewRenderingMembership.ownedMemberFeature property was not found in the Json. The value is set to Guid.Empty"); - } - else - { - if (ownedMemberFeatureProperty.TryGetProperty("@id"u8, out var ownedMemberFeatureExternalIdProperty)) - { - var propertyValue = ownedMemberFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.ownedMemberFeature = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the ownedMemberFeature Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty)) { dtoInstance.ownedMemberName = ownedMemberNameProperty.GetString(); @@ -676,46 +544,6 @@ internal static IViewRenderingMembership DeSerialize(JsonElement jsonElement, Se logger.LogDebug("the shortName Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("source"u8, out var sourceProperty)) - { - foreach (var arrayItem in sourceProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var sourceExternalIdProperty)) - { - var propertyValue = sourceExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Source.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the source Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("target"u8, out var targetProperty)) - { - foreach (var arrayItem in targetProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var targetExternalIdProperty)) - { - var propertyValue = targetExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.Target.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the target Json property was not found in the ViewRenderingMembership: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty)) { foreach (var arrayItem in textualRepresentationProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewUsageDeSerializer.cs index 1a2c99573..5e4a2407d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewUsageDeSerializer.cs @@ -164,26 +164,6 @@ internal static IViewUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the declaredShortName Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -728,18 +708,6 @@ internal static IViewUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the isUnique Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2101,26 +2069,6 @@ internal static IViewUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the owningUsage Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("partDefinition"u8, out var partDefinitionProperty)) - { - foreach (var arrayItem in partDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var partDefinitionExternalIdProperty)) - { - var propertyValue = partDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.partDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the partDefinition Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty)) { dtoInstance.PortionKind = PortionKindDeSerializer.DeserializeNullable(portionKindProperty.GetString()); @@ -2188,26 +2136,6 @@ internal static IViewUsage DeSerialize(JsonElement jsonElement, SerializationMod logger.LogDebug("the textualRepresentation Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the ViewUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointDefinitionDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointDefinitionDeSerializer.cs index 03291984b..3035dfbb0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointDefinitionDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointDefinitionDeSerializer.cs @@ -151,15 +151,6 @@ internal static IViewpointDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the declaredName Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) - { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the declaredShortName Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -180,26 +171,6 @@ internal static IViewpointDefinition DeSerialize(JsonElement jsonElement, Serial logger.LogDebug("the differencingType Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the ViewpointDefinition: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointUsageDeSerializer.cs index edbd8f2f0..3a92734e3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ViewpointUsageDeSerializer.cs @@ -142,26 +142,6 @@ internal static IViewpointUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the assumedConstraint Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty)) { foreach (var arrayItem in chainingFeatureProperty.EnumerateArray()) @@ -182,30 +162,6 @@ internal static IViewpointUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the chainingFeature Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("constraintDefinition"u8, out var constraintDefinitionProperty)) - { - if (constraintDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.constraintDefinition = null; - } - else - { - if (constraintDefinitionProperty.TryGetProperty("@id"u8, out var constraintDefinitionExternalIdProperty)) - { - var propertyValue = constraintDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.constraintDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the constraintDefinition Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty)) { if (crossFeatureProperty.ValueKind == JsonValueKind.Null) @@ -239,35 +195,6 @@ internal static IViewpointUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the declaredName Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty)) - { - dtoInstance.DeclaredShortName = declaredShortNameProperty.GetString(); - } - else - { - logger.LogDebug("the declaredShortName Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); - } - - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -288,26 +215,6 @@ internal static IViewpointUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the differencingType Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -520,30 +427,6 @@ internal static IViewpointUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the framedConcern Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("function"u8, out var functionProperty)) - { - if (functionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.function = null; - } - else - { - if (functionProperty.TryGetProperty("@id"u8, out var functionExternalIdProperty)) - { - var propertyValue = functionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.function = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the function Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty)) { foreach (var arrayItem in importedMembershipProperty.EnumerateArray()) @@ -848,18 +731,6 @@ internal static IViewpointUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the isUnique Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -2230,30 +2101,6 @@ internal static IViewpointUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the portionKind Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("predicate"u8, out var predicateProperty)) - { - if (predicateProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.predicate = null; - } - else - { - if (predicateProperty.TryGetProperty("@id"u8, out var predicateExternalIdProperty)) - { - var propertyValue = predicateExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.predicate = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the predicate Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty)) { dtoInstance.qualifiedName = qualifiedNameProperty.GetString(); @@ -2292,30 +2139,6 @@ internal static IViewpointUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the requiredConstraint Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("requirementDefinition"u8, out var requirementDefinitionProperty)) - { - if (requirementDefinitionProperty.ValueKind == JsonValueKind.Null) - { - dtoInstance.requirementDefinition = null; - } - else - { - if (requirementDefinitionProperty.TryGetProperty("@id"u8, out var requirementDefinitionExternalIdProperty)) - { - var propertyValue = requirementDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.requirementDefinition = Guid.Parse(propertyValue); - } - } - } - } - else - { - logger.LogDebug("the requirementDefinition Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("result"u8, out var resultProperty)) { if (resultProperty.ValueKind == JsonValueKind.Null) @@ -2432,26 +2255,6 @@ internal static IViewpointUsage DeSerialize(JsonElement jsonElement, Serializati logger.LogDebug("the textualRepresentation Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the ViewpointUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/WhileLoopActionUsageDeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/WhileLoopActionUsageDeSerializer.cs index a0752a0f6..1d076c818 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/WhileLoopActionUsageDeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/WhileLoopActionUsageDeSerializer.cs @@ -122,26 +122,6 @@ internal static IWhileLoopActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the aliasIds Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("behavior"u8, out var behaviorProperty)) - { - foreach (var arrayItem in behaviorProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var behaviorExternalIdProperty)) - { - var propertyValue = behaviorExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.behavior.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the behavior Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("bodyAction"u8, out var bodyActionProperty)) { if (bodyActionProperty.ValueKind == JsonValueKind.Null) @@ -229,26 +209,6 @@ internal static IWhileLoopActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the declaredShortName Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty)) - { - foreach (var arrayItem in definitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var definitionExternalIdProperty)) - { - var propertyValue = definitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.definition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the definition Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty)) { foreach (var arrayItem in differencingTypeProperty.EnumerateArray()) @@ -269,26 +229,6 @@ internal static IWhileLoopActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the differencingType Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty)) - { - foreach (var arrayItem in directedFeatureProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var directedFeatureExternalIdProperty)) - { - var propertyValue = directedFeatureExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.directedFeature.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the directedFeature Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty)) { foreach (var arrayItem in directedUsageProperty.EnumerateArray()) @@ -773,18 +713,6 @@ internal static IWhileLoopActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the isUnique Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty)) - { - if (isVariableProperty.ValueKind != JsonValueKind.Null) - { - dtoInstance.IsVariable = isVariableProperty.GetBoolean(); - } - } - else - { - logger.LogDebug("the isVariable Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty)) { if (isVariationProperty.ValueKind != JsonValueKind.Null) @@ -1422,26 +1350,6 @@ internal static IWhileLoopActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the nestedViewpoint Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty)) - { - foreach (var arrayItem in occurrenceDefinitionProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var occurrenceDefinitionExternalIdProperty)) - { - var propertyValue = occurrenceDefinitionExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.occurrenceDefinition.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the occurrenceDefinition Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("output"u8, out var outputProperty)) { foreach (var arrayItem in outputProperty.EnumerateArray()) @@ -2193,26 +2101,6 @@ internal static IWhileLoopActionUsage DeSerialize(JsonElement jsonElement, Seria logger.LogDebug("the textualRepresentation Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); } - if (jsonElement.TryGetProperty("type"u8, out var typeProperty)) - { - foreach (var arrayItem in typeProperty.EnumerateArray()) - { - if (arrayItem.TryGetProperty("@id"u8, out var typeExternalIdProperty)) - { - var propertyValue = typeExternalIdProperty.GetString(); - - if (propertyValue != null) - { - dtoInstance.type.Add(Guid.Parse(propertyValue)); - } - } - } - } - else - { - logger.LogDebug("the type Json property was not found in the WhileLoopActionUsage: { Id }", dtoInstance.Id); - } - if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty)) { foreach (var arrayItem in unioningTypeProperty.EnumerateArray()) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AcceptActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AcceptActionUsageSerializer.cs index a8749e83e..f648a7542 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AcceptActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AcceptActionUsageSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAcceptActionUsage iAcc writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iAcceptActionUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iAcceptActionUsage.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAcceptActionUsage iAcc writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAcceptActionUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iAcceptActionUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iAcceptActionUsage.differencingType) @@ -179,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAcceptActionUsage iAcc writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iAcceptActionUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iAcceptActionUsage.directedUsage) @@ -413,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAcceptActionUsage iAcc writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAcceptActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iAcceptActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAcceptActionUsage.IsVariation); @@ -787,18 +748,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAcceptActionUsage iAcc writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iAcceptActionUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iAcceptActionUsage.output) @@ -1280,18 +1229,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAcceptActionUsage iAcc writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iAcceptActionUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iAcceptActionUsage.unioningType) @@ -1415,9 +1352,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAcceptActionUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAcceptActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iAcceptActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAcceptActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionDefinitionSerializer.cs index 8e56c9e40..221da9f6c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionDefinitionSerializer.cs @@ -129,18 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(IActionDefinition iActi writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iActionDefinition.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iActionDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionUsageSerializer.cs index 0e6897c9b..27fc0394a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionUsageSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IActionUsage iActionUsa writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iActionUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iActionUsage.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IActionUsage iActionUsa writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iActionUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iActionUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iActionUsage.differencingType) @@ -179,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IActionUsage iActionUsa writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iActionUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iActionUsage.directedUsage) @@ -413,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(IActionUsage iActionUsa writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iActionUsage.IsVariation); @@ -787,18 +748,6 @@ private static void SerializeAsJsonWithDerivedProperties(IActionUsage iActionUsa writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iActionUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iActionUsage.output) @@ -1246,18 +1195,6 @@ private static void SerializeAsJsonWithDerivedProperties(IActionUsage iActionUsa writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iActionUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iActionUsage.unioningType) @@ -1381,9 +1318,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IActionUsage iAction writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActorMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActorMembershipSerializer.cs index f25a12ede..fad73c2fd 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActorMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActorMembershipSerializer.cs @@ -129,27 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(IActorMembership iActor writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iActorMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iActorMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iActorMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iActorMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iActorMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iActorMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iActorMembership.name); @@ -183,30 +162,12 @@ private static void SerializeAsJsonWithDerivedProperties(IActorMembership iActor writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iActorMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iActorMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iActorMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iActorMembership.ownedMemberName); - writer.WritePropertyName("ownedMemberParameter"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iActorMembership.ownedMemberParameter); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberShortName"u8); writer.WriteStringValue(iActorMembership.ownedMemberShortName); @@ -328,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IActorMembership iActor writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iActorMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iActorMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iActorMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iActorMembership.textualRepresentation) @@ -404,18 +341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IActorMembership iAc writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iActorMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iActorMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iActorMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iActorMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iActorMembership.OwnedRelatedElement) @@ -468,30 +393,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IActorMembership iAc writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iActorMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iActorMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iActorMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationDefinitionSerializer.cs index 2d3ab961a..7cc8b57f7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationDefinitionSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationDefinition i writer.WriteEndArray(); - writer.WriteStartArray("associationEnd"u8); - - foreach (var item in iAllocationDefinition.associationEnd) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("connectionEnd"u8); foreach (var item in iAllocationDefinition.connectionEnd) @@ -192,18 +180,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationDefinition i writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAllocationDefinition.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iAllocationDefinition.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("feature"u8); foreach (var item in iAllocationDefinition.feature) @@ -968,18 +944,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationDefinition i writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iAllocationDefinition.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iAllocationDefinition.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedType"u8); foreach (var item in iAllocationDefinition.relatedType) @@ -995,18 +959,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationDefinition i writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iAllocationDefinition.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iAllocationDefinition.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceType"u8); if (iAllocationDefinition.sourceType.HasValue) @@ -1021,18 +973,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationDefinition i writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iAllocationDefinition.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetType"u8); foreach (var item in iAllocationDefinition.targetType) @@ -1206,30 +1146,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAllocationDefinitio writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iAllocationDefinition.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iAllocationDefinition.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationUsageSerializer.cs index 37021417b..11b72e5de 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationUsageSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WriteEndArray(); - writer.WriteStartArray("association"u8); - - foreach (var item in iAllocationUsage.association) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iAllocationUsage.chainingFeature) @@ -135,18 +123,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WriteEndArray(); - writer.WriteStartArray("connectionDefinition"u8); - - foreach (var item in iAllocationUsage.connectionDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("connectorEnd"u8); foreach (var item in iAllocationUsage.connectorEnd) @@ -193,18 +169,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WriteNullValue(); } - writer.WriteStartArray("definition"u8); - - foreach (var item in iAllocationUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iAllocationUsage.differencingType) @@ -267,18 +231,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAllocationUsage.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iAllocationUsage.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("endOwningType"u8); if (iAllocationUsage.endOwningType.HasValue) @@ -454,9 +406,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAllocationUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iAllocationUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAllocationUsage.IsVariation); @@ -1310,18 +1259,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iAllocationUsage.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iAllocationUsage.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedFeature"u8); foreach (var item in iAllocationUsage.relatedFeature) @@ -1337,18 +1274,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iAllocationUsage.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iAllocationUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceFeature"u8); if (iAllocationUsage.sourceFeature.HasValue) @@ -1363,18 +1288,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iAllocationUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetFeature"u8); foreach (var item in iAllocationUsage.targetFeature) @@ -1399,18 +1312,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iAllocationUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iAllocationUsage.unioningType) @@ -1537,9 +1438,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAllocationUsage iAl writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAllocationUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iAllocationUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAllocationUsage.IsVariation); @@ -1606,30 +1504,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAllocationUsage iAl writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iAllocationUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iAllocationUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseDefinitionSerializer.cs index f742dd3f5..87947cec5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseDefinitionSerializer.cs @@ -153,18 +153,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseDefinition writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iAnalysisCaseDefinition.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iAnalysisCaseDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseUsageSerializer.cs index 012b27025..2a4434a04 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseUsageSerializer.cs @@ -90,18 +90,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAnalysisCaseUsage, Utf8JsonWriter writer) { - writer.WriteStartArray("actionDefinition"u8); - - foreach (var item in iAnalysisCaseUsage.actionDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("actorParameter"u8); foreach (var item in iAnalysisCaseUsage.actorParameter) @@ -137,46 +125,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WriteNullValue(); } - writer.WriteStartArray("behavior"u8); - - foreach (var item in iAnalysisCaseUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("calculationDefinition"u8); - - if (iAnalysisCaseUsage.calculationDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAnalysisCaseUsage.calculationDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - - writer.WritePropertyName("caseDefinition"u8); - - if (iAnalysisCaseUsage.caseDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAnalysisCaseUsage.caseDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iAnalysisCaseUsage.chainingFeature) @@ -209,18 +157,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAnalysisCaseUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iAnalysisCaseUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iAnalysisCaseUsage.differencingType) @@ -233,18 +169,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iAnalysisCaseUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iAnalysisCaseUsage.directedUsage) @@ -351,20 +275,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iAnalysisCaseUsage.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAnalysisCaseUsage.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iAnalysisCaseUsage.importedMembership) @@ -484,9 +394,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAnalysisCaseUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iAnalysisCaseUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAnalysisCaseUsage.IsVariation); @@ -872,18 +779,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WriteNullValue(); } - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iAnalysisCaseUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iAnalysisCaseUsage.output) @@ -1357,18 +1252,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iAnalysisCaseUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iAnalysisCaseUsage.unioningType) @@ -1492,9 +1375,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAnalysisCaseUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAnalysisCaseUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iAnalysisCaseUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAnalysisCaseUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotationSerializer.cs index 87e741a60..280cc1587 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotationSerializer.cs @@ -322,30 +322,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAnnotation iAnnotation writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iAnnotation.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iAnnotation.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iAnnotation.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iAnnotation.textualRepresentation) @@ -453,30 +429,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAnnotation iAnnotat writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iAnnotation.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iAnnotation.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssertConstraintUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssertConstraintUsageSerializer.cs index ced1492cd..b150b6f58 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssertConstraintUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssertConstraintUsageSerializer.cs @@ -105,18 +105,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WriteStringValue(iAssertConstraintUsage.assertedConstraint); writer.WriteEndObject(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iAssertConstraintUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iAssertConstraintUsage.chainingFeature) @@ -163,18 +151,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAssertConstraintUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iAssertConstraintUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iAssertConstraintUsage.differencingType) @@ -187,18 +163,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iAssertConstraintUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iAssertConstraintUsage.directedUsage) @@ -305,20 +269,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iAssertConstraintUsage.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAssertConstraintUsage.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iAssertConstraintUsage.importedMembership) @@ -441,9 +391,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAssertConstraintUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iAssertConstraintUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAssertConstraintUsage.IsVariation); @@ -1256,20 +1203,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WriteNullValue(); } - writer.WritePropertyName("predicate"u8); - - if (iAssertConstraintUsage.predicate.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iAssertConstraintUsage.predicate.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iAssertConstraintUsage.qualifiedName); @@ -1294,18 +1227,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iAssertConstraintUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iAssertConstraintUsage.unioningType) @@ -1432,9 +1353,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAssertConstraintUsa writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAssertConstraintUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iAssertConstraintUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAssertConstraintUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssignmentActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssignmentActionUsageSerializer.cs index 934f374a5..22787040a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssignmentActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssignmentActionUsageSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssignmentActionUsage writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iAssignmentActionUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iAssignmentActionUsage.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssignmentActionUsage writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAssignmentActionUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iAssignmentActionUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iAssignmentActionUsage.differencingType) @@ -179,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssignmentActionUsage writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iAssignmentActionUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iAssignmentActionUsage.directedUsage) @@ -413,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssignmentActionUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAssignmentActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iAssignmentActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAssignmentActionUsage.IsVariation); @@ -787,18 +748,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssignmentActionUsage writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iAssignmentActionUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iAssignmentActionUsage.output) @@ -1266,18 +1215,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssignmentActionUsage writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iAssignmentActionUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iAssignmentActionUsage.unioningType) @@ -1415,9 +1352,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAssignmentActionUsa writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAssignmentActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iAssignmentActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAssignmentActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationSerializer.cs index e44811c10..58b929d5a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationSerializer.cs @@ -156,18 +156,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAssociation.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iAssociation.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("feature"u8); foreach (var item in iAssociation.feature) @@ -602,18 +590,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iAssociation.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iAssociation.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedType"u8); foreach (var item in iAssociation.relatedType) @@ -629,18 +605,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iAssociation.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iAssociation.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceType"u8); if (iAssociation.sourceType.HasValue) @@ -655,18 +619,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iAssociation.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetType"u8); foreach (var item in iAssociation.targetType) @@ -798,30 +750,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAssociation iAssoci writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iAssociation.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iAssociation.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationStructureSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationStructureSerializer.cs index e8567da85..129f1acc7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationStructureSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationStructureSerializer.cs @@ -156,18 +156,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociationStructure i writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAssociationStructure.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iAssociationStructure.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("feature"u8); foreach (var item in iAssociationStructure.feature) @@ -602,18 +590,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociationStructure i writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iAssociationStructure.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iAssociationStructure.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedType"u8); foreach (var item in iAssociationStructure.relatedType) @@ -629,18 +605,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociationStructure i writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iAssociationStructure.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iAssociationStructure.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceType"u8); if (iAssociationStructure.sourceType.HasValue) @@ -655,18 +619,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociationStructure i writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iAssociationStructure.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetType"u8); foreach (var item in iAssociationStructure.targetType) @@ -798,30 +750,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAssociationStructur writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iAssociationStructure.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iAssociationStructure.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeUsageSerializer.cs index 96b582967..9ee6c0a9b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeUsageSerializer.cs @@ -143,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAttributeUsage iAttrib writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAttributeUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iAttributeUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iAttributeUsage.differencingType) @@ -384,9 +372,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAttributeUsage iAttrib writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAttributeUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iAttributeUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAttributeUsage.IsVariation); @@ -1182,18 +1167,6 @@ private static void SerializeAsJsonWithDerivedProperties(IAttributeUsage iAttrib writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iAttributeUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iAttributeUsage.unioningType) @@ -1314,9 +1287,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAttributeUsage iAtt writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAttributeUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iAttributeUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAttributeUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BehaviorSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BehaviorSerializer.cs index e58666eb6..f955de774 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BehaviorSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BehaviorSerializer.cs @@ -117,18 +117,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBehavior iBehavior, Ut writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iBehavior.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("documentation"u8); foreach (var item in iBehavior.documentation) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorAsUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorAsUsageSerializer.cs index 5e2537057..1386ef0c0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorAsUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorAsUsageSerializer.cs @@ -243,18 +243,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnectorAsUsag writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iBindingConnectorAsUsage.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iBindingConnectorAsUsage.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("endOwningType"u8); if (iBindingConnectorAsUsage.endOwningType.HasValue) @@ -413,9 +401,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnectorAsUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iBindingConnectorAsUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iBindingConnectorAsUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iBindingConnectorAsUsage.IsVariation); @@ -1222,18 +1207,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnectorAsUsag writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iBindingConnectorAsUsage.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iBindingConnectorAsUsage.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedFeature"u8); foreach (var item in iBindingConnectorAsUsage.relatedFeature) @@ -1249,18 +1222,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnectorAsUsag writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iBindingConnectorAsUsage.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iBindingConnectorAsUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceFeature"u8); if (iBindingConnectorAsUsage.sourceFeature.HasValue) @@ -1275,18 +1236,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnectorAsUsag writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iBindingConnectorAsUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetFeature"u8); foreach (var item in iBindingConnectorAsUsage.targetFeature) @@ -1311,18 +1260,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnectorAsUsag writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iBindingConnectorAsUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iBindingConnectorAsUsage.unioningType) @@ -1446,9 +1383,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IBindingConnectorAsU writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iBindingConnectorAsUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iBindingConnectorAsUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iBindingConnectorAsUsage.IsVariation); @@ -1504,30 +1438,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IBindingConnectorAsU writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iBindingConnectorAsUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iBindingConnectorAsUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorSerializer.cs index 03d73ea50..cf5ba5a69 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorSerializer.cs @@ -219,18 +219,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnector iBind writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iBindingConnector.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iBindingConnector.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("endOwningType"u8); if (iBindingConnector.endOwningType.HasValue) @@ -837,18 +825,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnector iBind writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iBindingConnector.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iBindingConnector.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedFeature"u8); foreach (var item in iBindingConnector.relatedFeature) @@ -864,18 +840,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnector iBind writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iBindingConnector.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iBindingConnector.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceFeature"u8); if (iBindingConnector.sourceFeature.HasValue) @@ -890,18 +854,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnector iBind writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iBindingConnector.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetFeature"u8); foreach (var item in iBindingConnector.targetFeature) @@ -926,18 +878,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnector iBind writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iBindingConnector.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iBindingConnector.unioningType) @@ -1080,30 +1020,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IBindingConnector iB writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iBindingConnector.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iBindingConnector.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BooleanExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BooleanExpressionSerializer.cs index 12e369a9e..c9f8d255c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BooleanExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BooleanExpressionSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBooleanExpression iBoo writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iBooleanExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iBooleanExpression.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBooleanExpression iBoo writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iBooleanExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iBooleanExpression.Direction.HasValue) @@ -261,20 +237,6 @@ private static void SerializeAsJsonWithDerivedProperties(IBooleanExpression iBoo writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iBooleanExpression.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iBooleanExpression.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iBooleanExpression.importedMembership) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationDefinitionSerializer.cs index 5ca4fbc12..f675895d7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationDefinitionSerializer.cs @@ -141,18 +141,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationDefinition writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iCalculationDefinition.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iCalculationDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationUsageSerializer.cs index d02ff2e1c..02e9b53df 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationUsageSerializer.cs @@ -90,18 +90,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalculationUsage, Utf8JsonWriter writer) { - writer.WriteStartArray("actionDefinition"u8); - - foreach (var item in iCalculationUsage.actionDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("aliasIds"u8); foreach (var item in iCalculationUsage.AliasIds) @@ -111,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iCalculationUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("calculationDefinition"u8); if (iCalculationUsage.calculationDefinition.HasValue) @@ -169,18 +145,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iCalculationUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iCalculationUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iCalculationUsage.differencingType) @@ -193,18 +157,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iCalculationUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iCalculationUsage.directedUsage) @@ -311,20 +263,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iCalculationUsage.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCalculationUsage.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iCalculationUsage.importedMembership) @@ -444,9 +382,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iCalculationUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iCalculationUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iCalculationUsage.IsVariation); @@ -818,18 +753,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iCalculationUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iCalculationUsage.output) @@ -1283,18 +1206,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iCalculationUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iCalculationUsage.unioningType) @@ -1418,9 +1329,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ICalculationUsage iC writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iCalculationUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iCalculationUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iCalculationUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseDefinitionSerializer.cs index 4990f2870..78c23aca4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseDefinitionSerializer.cs @@ -153,18 +153,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseDefinition iCaseDe writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iCaseDefinition.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iCaseDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseUsageSerializer.cs index 765d122c3..0421fb3eb 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseUsageSerializer.cs @@ -90,18 +90,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, Utf8JsonWriter writer) { - writer.WriteStartArray("actionDefinition"u8); - - foreach (var item in iCaseUsage.actionDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("actorParameter"u8); foreach (var item in iCaseUsage.actorParameter) @@ -123,32 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iCaseUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("calculationDefinition"u8); - - if (iCaseUsage.calculationDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCaseUsage.calculationDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("caseDefinition"u8); if (iCaseUsage.caseDefinition.HasValue) @@ -195,18 +157,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iCaseUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iCaseUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iCaseUsage.differencingType) @@ -219,18 +169,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iCaseUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iCaseUsage.directedUsage) @@ -337,20 +275,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iCaseUsage.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCaseUsage.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iCaseUsage.importedMembership) @@ -470,9 +394,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iCaseUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iCaseUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iCaseUsage.IsVariation); @@ -858,18 +779,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WriteNullValue(); } - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iCaseUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iCaseUsage.output) @@ -1329,18 +1238,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iCaseUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iCaseUsage.unioningType) @@ -1464,9 +1361,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ICaseUsage iCaseUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iCaseUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iCaseUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iCaseUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CollectExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CollectExpressionSerializer.cs index 9c70e0566..19d587cf2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CollectExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CollectExpressionSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICollectExpression iCol writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iCollectExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iCollectExpression.chainingFeature) @@ -167,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICollectExpression iCol writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iCollectExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iCollectExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernDefinitionSerializer.cs index 7d9eb8a33..526307256 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernDefinitionSerializer.cs @@ -126,9 +126,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernDefinition iCon writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iConcernDefinition.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iConcernDefinition.DeclaredShortName); - writer.WriteStartArray("differencingType"u8); foreach (var item in iConcernDefinition.differencingType) @@ -141,18 +138,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernDefinition iCon writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iConcernDefinition.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iConcernDefinition.directedUsage) @@ -1114,9 +1099,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConcernDefinition i writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iConcernDefinition.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iConcernDefinition.DeclaredShortName); - writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConcernDefinition.ElementId); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernUsageSerializer.cs index d1fbe9bea..b8e2a0062 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernUsageSerializer.cs @@ -123,18 +123,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iConcernUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iConcernUsage.chainingFeature) @@ -161,20 +149,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteNullValue(); } - writer.WritePropertyName("constraintDefinition"u8); - - if (iConcernUsage.constraintDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConcernUsage.constraintDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("crossFeature"u8); if (iConcernUsage.crossFeature.HasValue) @@ -192,21 +166,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iConcernUsage.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iConcernUsage.DeclaredShortName); - - writer.WriteStartArray("definition"u8); - - foreach (var item in iConcernUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iConcernUsage.differencingType) @@ -219,18 +178,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iConcernUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iConcernUsage.directedUsage) @@ -349,20 +296,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iConcernUsage.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConcernUsage.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iConcernUsage.importedMembership) @@ -482,9 +415,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iConcernUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iConcernUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConcernUsage.IsVariation); @@ -1297,20 +1227,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteNullValue(); } - writer.WritePropertyName("predicate"u8); - - if (iConcernUsage.predicate.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConcernUsage.predicate.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iConcernUsage.qualifiedName); @@ -1329,20 +1245,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteEndArray(); - writer.WritePropertyName("requirementDefinition"u8); - - if (iConcernUsage.requirementDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConcernUsage.requirementDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("result"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -1391,18 +1293,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iConcernUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iConcernUsage.unioningType) @@ -1476,9 +1366,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConcernUsage iConce writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iConcernUsage.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iConcernUsage.DeclaredShortName); - writer.WritePropertyName("direction"u8); if (iConcernUsage.Direction.HasValue) @@ -1526,9 +1413,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConcernUsage iConce writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iConcernUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iConcernUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConcernUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortDefinitionSerializer.cs index 9d0308bb4..be51892a5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortDefinitionSerializer.cs @@ -442,20 +442,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortDefiniti writer.WriteEndArray(); - writer.WritePropertyName("ownedConjugator"u8); - - if (iConjugatedPortDefinition.ownedConjugator.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConjugatedPortDefinition.ownedConjugator.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("ownedConnection"u8); foreach (var item in iConjugatedPortDefinition.ownedConnection) @@ -898,20 +884,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortDefiniti writer.WriteNullValue(); } - writer.WritePropertyName("owningNamespace"u8); - - if (iConjugatedPortDefinition.owningNamespace.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConjugatedPortDefinition.owningNamespace.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("owningRelationship"u8); if (iConjugatedPortDefinition.OwningRelationship.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortTypingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortTypingSerializer.cs index 0c4c135fd..0540fa4c1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortTypingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortTypingSerializer.cs @@ -126,12 +126,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortTyping i writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConjugatedPortTyping.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConjugatedPortTyping.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iConjugatedPortTyping.IsImplied); @@ -276,20 +270,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortTyping i writer.WriteNullValue(); } - writer.WritePropertyName("owningType"u8); - - if (iConjugatedPortTyping.owningType.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConjugatedPortTyping.owningType.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("portDefinition"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -314,36 +294,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortTyping i writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iConjugatedPortTyping.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iConjugatedPortTyping.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConjugatedPortTyping.Specific); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iConjugatedPortTyping.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iConjugatedPortTyping.textualRepresentation) @@ -356,12 +306,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortTyping i writer.WriteEndArray(); - writer.WritePropertyName("type"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConjugatedPortTyping.Type); - writer.WriteEndObject(); - writer.WritePropertyName("typedFeature"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -405,12 +349,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConjugatedPortTypin writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConjugatedPortTyping.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConjugatedPortTyping.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iConjugatedPortTyping.IsImplied); @@ -469,42 +407,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConjugatedPortTypin writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iConjugatedPortTyping.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConjugatedPortTyping.Specific); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iConjugatedPortTyping.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("type"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConjugatedPortTyping.Type); - writer.WriteEndObject(); - writer.WritePropertyName("typedFeature"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugationSerializer.cs index 42c98f245..6048338cb 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugationSerializer.cs @@ -294,30 +294,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugation iConjugati writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iConjugation.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iConjugation.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iConjugation.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iConjugation.textualRepresentation) @@ -431,30 +407,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConjugation iConjug writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iConjugation.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iConjugation.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionDefinitionSerializer.cs index 45b9881bd..4a5fe947e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionDefinitionSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionDefinition i writer.WriteEndArray(); - writer.WriteStartArray("associationEnd"u8); - - foreach (var item in iConnectionDefinition.associationEnd) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("connectionEnd"u8); foreach (var item in iConnectionDefinition.connectionEnd) @@ -180,18 +168,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionDefinition i writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConnectionDefinition.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iConnectionDefinition.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("feature"u8); foreach (var item in iConnectionDefinition.feature) @@ -956,18 +932,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionDefinition i writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iConnectionDefinition.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iConnectionDefinition.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedType"u8); foreach (var item in iConnectionDefinition.relatedType) @@ -983,18 +947,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionDefinition i writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iConnectionDefinition.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iConnectionDefinition.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceType"u8); if (iConnectionDefinition.sourceType.HasValue) @@ -1009,18 +961,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionDefinition i writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iConnectionDefinition.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetType"u8); foreach (var item in iConnectionDefinition.targetType) @@ -1194,30 +1134,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConnectionDefinitio writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iConnectionDefinition.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iConnectionDefinition.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionUsageSerializer.cs index 50abf1f1e..0e4217b98 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionUsageSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WriteEndArray(); - writer.WriteStartArray("association"u8); - - foreach (var item in iConnectionUsage.association) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iConnectionUsage.chainingFeature) @@ -181,18 +169,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WriteNullValue(); } - writer.WriteStartArray("definition"u8); - - foreach (var item in iConnectionUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iConnectionUsage.differencingType) @@ -255,18 +231,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConnectionUsage.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iConnectionUsage.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("endOwningType"u8); if (iConnectionUsage.endOwningType.HasValue) @@ -442,9 +406,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iConnectionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iConnectionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConnectionUsage.IsVariation); @@ -1298,18 +1259,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iConnectionUsage.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iConnectionUsage.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedFeature"u8); foreach (var item in iConnectionUsage.relatedFeature) @@ -1325,18 +1274,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iConnectionUsage.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iConnectionUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceFeature"u8); if (iConnectionUsage.sourceFeature.HasValue) @@ -1351,18 +1288,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iConnectionUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetFeature"u8); foreach (var item in iConnectionUsage.targetFeature) @@ -1387,18 +1312,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iConnectionUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iConnectionUsage.unioningType) @@ -1525,9 +1438,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConnectionUsage iCo writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iConnectionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iConnectionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConnectionUsage.IsVariation); @@ -1594,30 +1504,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConnectionUsage iCo writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iConnectionUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iConnectionUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectorSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectorSerializer.cs index 8b5bfd563..1958cdb97 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectorSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectorSerializer.cs @@ -219,18 +219,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnector iConnector, writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConnector.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iConnector.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("endOwningType"u8); if (iConnector.endOwningType.HasValue) @@ -837,18 +825,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnector iConnector, writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iConnector.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iConnector.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedFeature"u8); foreach (var item in iConnector.relatedFeature) @@ -864,18 +840,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnector iConnector, writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iConnector.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iConnector.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceFeature"u8); if (iConnector.sourceFeature.HasValue) @@ -890,18 +854,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnector iConnector, writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iConnector.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetFeature"u8); foreach (var item in iConnector.targetFeature) @@ -926,18 +878,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConnector iConnector, writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iConnector.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iConnector.unioningType) @@ -1080,30 +1020,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConnector iConnecto writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iConnector.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iConnector.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintDefinitionSerializer.cs index 734cfa695..f88cfa78e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintDefinitionSerializer.cs @@ -117,18 +117,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintDefinition i writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iConstraintDefinition.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iConstraintDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintUsageSerializer.cs index adc7cc8d6..6d927e69c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintUsageSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iConstraintUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iConstraintUsage.chainingFeature) @@ -157,18 +145,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iConstraintUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iConstraintUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iConstraintUsage.differencingType) @@ -181,18 +157,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iConstraintUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iConstraintUsage.directedUsage) @@ -299,20 +263,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iConstraintUsage.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConstraintUsage.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iConstraintUsage.importedMembership) @@ -432,9 +382,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iConstraintUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iConstraintUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConstraintUsage.IsVariation); @@ -1247,20 +1194,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WriteNullValue(); } - writer.WritePropertyName("predicate"u8); - - if (iConstraintUsage.predicate.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iConstraintUsage.predicate.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iConstraintUsage.qualifiedName); @@ -1285,18 +1218,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iConstraintUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iConstraintUsage.unioningType) @@ -1420,9 +1341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConstraintUsage iCo writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iConstraintUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iConstraintUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConstraintUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstructorExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstructorExpressionSerializer.cs index 2eb7f9b68..85fa1ac08 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstructorExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstructorExpressionSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConstructorExpression writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iConstructorExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iConstructorExpression.chainingFeature) @@ -167,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IConstructorExpression writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iConstructorExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iConstructorExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CrossSubsettingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CrossSubsettingSerializer.cs index a1bb15fac..22e3f7c19 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CrossSubsettingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CrossSubsettingSerializer.cs @@ -132,12 +132,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICrossSubsetting iCross writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iCrossSubsetting.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCrossSubsetting.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iCrossSubsetting.IsImplied); @@ -212,20 +206,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICrossSubsetting iCross writer.WriteNullValue(); } - writer.WritePropertyName("owningFeature"u8); - - if (iCrossSubsetting.owningFeature.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCrossSubsetting.owningFeature.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("owningMembership"u8); if (iCrossSubsetting.owningMembership.HasValue) @@ -282,20 +262,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICrossSubsetting iCross writer.WriteNullValue(); } - writer.WritePropertyName("owningType"u8); - - if (iCrossSubsetting.owningType.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCrossSubsetting.owningType.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iCrossSubsetting.qualifiedName); @@ -314,48 +280,6 @@ private static void SerializeAsJsonWithDerivedProperties(ICrossSubsetting iCross writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iCrossSubsetting.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iCrossSubsetting.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCrossSubsetting.Specific); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettedFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCrossSubsetting.SubsettedFeature); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettingFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCrossSubsetting.SubsettingFeature); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iCrossSubsetting.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iCrossSubsetting.textualRepresentation) @@ -405,12 +329,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ICrossSubsetting iCr writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iCrossSubsetting.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCrossSubsetting.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iCrossSubsetting.IsImplied); @@ -469,48 +387,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ICrossSubsetting iCr writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iCrossSubsetting.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCrossSubsetting.Specific); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettedFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCrossSubsetting.SubsettedFeature); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettingFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iCrossSubsetting.SubsettingFeature); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iCrossSubsetting.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DecisionNodeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DecisionNodeSerializer.cs index 991935cc5..327589ef1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DecisionNodeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DecisionNodeSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IDecisionNode iDecision writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iDecisionNode.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iDecisionNode.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IDecisionNode iDecision writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iDecisionNode.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iDecisionNode.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iDecisionNode.differencingType) @@ -179,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IDecisionNode iDecision writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iDecisionNode.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iDecisionNode.directedUsage) @@ -413,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(IDecisionNode iDecision writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iDecisionNode.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iDecisionNode.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iDecisionNode.IsVariation); @@ -787,18 +748,6 @@ private static void SerializeAsJsonWithDerivedProperties(IDecisionNode iDecision writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iDecisionNode.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iDecisionNode.output) @@ -1246,18 +1195,6 @@ private static void SerializeAsJsonWithDerivedProperties(IDecisionNode iDecision writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iDecisionNode.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iDecisionNode.unioningType) @@ -1381,9 +1318,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDecisionNode iDecis writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iDecisionNode.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iDecisionNode.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iDecisionNode.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DependencySerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DependencySerializer.cs index 1a08b3d3f..3106b838c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DependencySerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DependencySerializer.cs @@ -280,18 +280,6 @@ private static void SerializeAsJsonWithDerivedProperties(IDependency iDependency writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iDependency.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iDependency.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("supplier"u8); foreach (var item in iDependency.Supplier) @@ -304,18 +292,6 @@ private static void SerializeAsJsonWithDerivedProperties(IDependency iDependency writer.WriteEndArray(); - writer.WriteStartArray("target"u8); - - foreach (var item in iDependency.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iDependency.textualRepresentation) @@ -429,18 +405,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDependency iDepende writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iDependency.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("supplier"u8); foreach (var item in iDependency.Supplier) @@ -453,18 +417,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDependency iDepende writer.WriteEndArray(); - writer.WriteStartArray("target"u8); - - foreach (var item in iDependency.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DifferencingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DifferencingSerializer.cs index 7817b0671..b6a67767d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DifferencingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DifferencingSerializer.cs @@ -274,30 +274,6 @@ private static void SerializeAsJsonWithDerivedProperties(IDifferencing iDifferen writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iDifferencing.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iDifferencing.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iDifferencing.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iDifferencing.textualRepresentation) @@ -411,30 +387,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDifferencing iDiffe writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iDifferencing.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iDifferencing.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DisjoiningSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DisjoiningSerializer.cs index b5430030a..b6d600474 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DisjoiningSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DisjoiningSerializer.cs @@ -288,30 +288,6 @@ private static void SerializeAsJsonWithDerivedProperties(IDisjoining iDisjoining writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iDisjoining.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iDisjoining.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iDisjoining.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iDisjoining.textualRepresentation) @@ -425,30 +401,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDisjoining iDisjoin writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iDisjoining.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iDisjoining.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("typeDisjoined"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DocumentationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DocumentationSerializer.cs index 7f80fd834..f9b96f305 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DocumentationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DocumentationSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IDocumentation iDocumen writer.WriteEndArray(); - writer.WriteStartArray("annotatedElement"u8); - - foreach (var item in iDocumentation.annotatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("annotation"u8); foreach (var item in iDocumentation.annotation) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ElementFilterMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ElementFilterMembershipSerializer.cs index 8c0f4738a..1be196b0e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ElementFilterMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ElementFilterMembershipSerializer.cs @@ -135,27 +135,12 @@ private static void SerializeAsJsonWithDerivedProperties(IElementFilterMembershi writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iElementFilterMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iElementFilterMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iElementFilterMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iElementFilterMembership.MemberName); - writer.WritePropertyName("membershipOwningNamespace"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iElementFilterMembership.membershipOwningNamespace); writer.WriteEndObject(); - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iElementFilterMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iElementFilterMembership.name); @@ -183,12 +168,6 @@ private static void SerializeAsJsonWithDerivedProperties(IElementFilterMembershi writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iElementFilterMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iElementFilterMembership.ownedMemberElementId); @@ -310,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IElementFilterMembershi writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iElementFilterMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iElementFilterMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iElementFilterMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iElementFilterMembership.textualRepresentation) @@ -386,18 +341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IElementFilterMember writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iElementFilterMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iElementFilterMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iElementFilterMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iElementFilterMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iElementFilterMembership.OwnedRelatedElement) @@ -450,30 +393,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IElementFilterMember writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iElementFilterMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iElementFilterMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iElementFilterMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EndFeatureMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EndFeatureMembershipSerializer.cs index a202f4258..b6c6302cb 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EndFeatureMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EndFeatureMembershipSerializer.cs @@ -129,27 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(IEndFeatureMembership i writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iEndFeatureMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iEndFeatureMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iEndFeatureMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iEndFeatureMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iEndFeatureMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iEndFeatureMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iEndFeatureMembership.name); @@ -177,12 +156,6 @@ private static void SerializeAsJsonWithDerivedProperties(IEndFeatureMembership i writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iEndFeatureMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iEndFeatureMembership.ownedMemberElementId); @@ -316,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IEndFeatureMembership i writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iEndFeatureMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iEndFeatureMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iEndFeatureMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iEndFeatureMembership.textualRepresentation) @@ -392,18 +341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IEndFeatureMembershi writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iEndFeatureMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iEndFeatureMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iEndFeatureMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iEndFeatureMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iEndFeatureMembership.OwnedRelatedElement) @@ -456,30 +393,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IEndFeatureMembershi writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iEndFeatureMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iEndFeatureMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iEndFeatureMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs index 3aacc384f..3de4215f9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs @@ -951,18 +951,6 @@ private static void SerializeAsJsonWithDerivedProperties(IEnumerationDefinition writer.WriteEndArray(); - writer.WriteStartArray("variant"u8); - - foreach (var item in iEnumerationDefinition.variant) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("variantMembership"u8); foreach (var item in iEnumerationDefinition.variantMembership) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationUsageSerializer.cs index 1092b6293..e7be50066 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationUsageSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IEnumerationUsage iEnum writer.WriteEndArray(); - writer.WriteStartArray("attributeDefinition"u8); - - foreach (var item in iEnumerationUsage.attributeDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iEnumerationUsage.chainingFeature) @@ -143,18 +131,6 @@ private static void SerializeAsJsonWithDerivedProperties(IEnumerationUsage iEnum writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iEnumerationUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iEnumerationUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iEnumerationUsage.differencingType) @@ -390,9 +366,6 @@ private static void SerializeAsJsonWithDerivedProperties(IEnumerationUsage iEnum writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iEnumerationUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iEnumerationUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iEnumerationUsage.IsVariation); @@ -1188,18 +1161,6 @@ private static void SerializeAsJsonWithDerivedProperties(IEnumerationUsage iEnum writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iEnumerationUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iEnumerationUsage.unioningType) @@ -1320,9 +1281,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IEnumerationUsage iE writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iEnumerationUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iEnumerationUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iEnumerationUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EventOccurrenceUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EventOccurrenceUsageSerializer.cs index 4a4eac4b4..4fa2e2045 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EventOccurrenceUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EventOccurrenceUsageSerializer.cs @@ -131,18 +131,6 @@ private static void SerializeAsJsonWithDerivedProperties(IEventOccurrenceUsage i writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iEventOccurrenceUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iEventOccurrenceUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iEventOccurrenceUsage.differencingType) @@ -395,9 +383,6 @@ private static void SerializeAsJsonWithDerivedProperties(IEventOccurrenceUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iEventOccurrenceUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iEventOccurrenceUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iEventOccurrenceUsage.IsVariation); @@ -1216,18 +1201,6 @@ private static void SerializeAsJsonWithDerivedProperties(IEventOccurrenceUsage i writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iEventOccurrenceUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iEventOccurrenceUsage.unioningType) @@ -1351,9 +1324,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IEventOccurrenceUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iEventOccurrenceUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iEventOccurrenceUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iEventOccurrenceUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExhibitStateUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExhibitStateUsageSerializer.cs index a45d265f8..1c0f12f07 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExhibitStateUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExhibitStateUsageSerializer.cs @@ -90,18 +90,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExhibitStateUsage, Utf8JsonWriter writer) { - writer.WriteStartArray("actionDefinition"u8); - - foreach (var item in iExhibitStateUsage.actionDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("aliasIds"u8); foreach (var item in iExhibitStateUsage.AliasIds) @@ -111,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iExhibitStateUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iExhibitStateUsage.chainingFeature) @@ -155,18 +131,6 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iExhibitStateUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iExhibitStateUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iExhibitStateUsage.differencingType) @@ -179,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iExhibitStateUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iExhibitStateUsage.directedUsage) @@ -283,12 +235,6 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WriteNullValue(); } - writer.WritePropertyName("eventOccurrence"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iExhibitStateUsage.eventOccurrence); - writer.WriteEndObject(); - writer.WritePropertyName("exhibitedState"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -470,9 +416,6 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iExhibitStateUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iExhibitStateUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iExhibitStateUsage.IsVariation); @@ -844,18 +787,6 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iExhibitStateUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iExhibitStateUsage.output) @@ -1274,12 +1205,6 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WriteEndArray(); - writer.WritePropertyName("performedAction"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iExhibitStateUsage.performedAction); - writer.WriteEndObject(); - writer.WritePropertyName("portionKind"u8); if (iExhibitStateUsage.PortionKind.HasValue) @@ -1321,18 +1246,6 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iExhibitStateUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iExhibitStateUsage.unioningType) @@ -1459,9 +1372,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IExhibitStateUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iExhibitStateUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iExhibitStateUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iExhibitStateUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExpressionSerializer.cs index e01b64ff2..9a3c195f5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExpressionSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IExpression iExpression writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iExpression.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IExpression iExpression writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainExpressionSerializer.cs index 6969680c9..94b567a1e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainExpressionSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureChainExpression writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iFeatureChainExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iFeatureChainExpression.chainingFeature) @@ -167,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureChainExpression writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iFeatureChainExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iFeatureChainExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainingSerializer.cs index 9f6ac232f..fc28688ee 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainingSerializer.cs @@ -280,30 +280,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureChaining iFeatu writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFeatureChaining.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iFeatureChaining.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFeatureChaining.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFeatureChaining.textualRepresentation) @@ -411,30 +387,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureChaining iFe writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iFeatureChaining.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFeatureChaining.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureInvertingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureInvertingSerializer.cs index 52287485c..8a8439571 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureInvertingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureInvertingSerializer.cs @@ -294,30 +294,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureInverting iFeat writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFeatureInverting.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iFeatureInverting.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFeatureInverting.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFeatureInverting.textualRepresentation) @@ -431,30 +407,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureInverting iF writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iFeatureInverting.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFeatureInverting.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureMembershipSerializer.cs index 220065d67..8f8139e7e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureMembershipSerializer.cs @@ -129,27 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureMembership iFea writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iFeatureMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iFeatureMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iFeatureMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iFeatureMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iFeatureMembership.name); @@ -177,12 +156,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureMembership iFea writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iFeatureMembership.ownedMemberElementId); @@ -316,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureMembership iFea writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFeatureMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iFeatureMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFeatureMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFeatureMembership.textualRepresentation) @@ -392,18 +341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureMembership i writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFeatureMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iFeatureMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iFeatureMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFeatureMembership.OwnedRelatedElement) @@ -456,30 +393,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureMembership i writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iFeatureMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFeatureMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iFeatureMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureReferenceExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureReferenceExpressionSerializer.cs index 983a1fd20..a9da01dee 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureReferenceExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureReferenceExpressionSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureReferenceExpres writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iFeatureReferenceExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iFeatureReferenceExpression.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureReferenceExpres writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iFeatureReferenceExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iFeatureReferenceExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureTypingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureTypingSerializer.cs index 873c27be2..118362af5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureTypingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureTypingSerializer.cs @@ -120,12 +120,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeature writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureTyping.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureTyping.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iFeatureTyping.IsImplied); @@ -270,20 +264,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeature writer.WriteNullValue(); } - writer.WritePropertyName("owningType"u8); - - if (iFeatureTyping.owningType.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureTyping.owningType.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iFeatureTyping.qualifiedName); @@ -302,36 +282,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeature writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFeatureTyping.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iFeatureTyping.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureTyping.Specific); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFeatureTyping.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFeatureTyping.textualRepresentation) @@ -387,12 +337,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureTyping iFeat writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureTyping.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureTyping.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iFeatureTyping.IsImplied); @@ -451,36 +395,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureTyping iFeat writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iFeatureTyping.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureTyping.Specific); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFeatureTyping.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("type"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureValueSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureValueSerializer.cs index a04266da5..921568b1e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureValueSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureValueSerializer.cs @@ -141,27 +141,12 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureValue iFeatureV writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iFeatureValue.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureValue.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iFeatureValue.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iFeatureValue.MemberName); - writer.WritePropertyName("membershipOwningNamespace"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFeatureValue.membershipOwningNamespace); writer.WriteEndObject(); - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iFeatureValue.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iFeatureValue.name); @@ -189,12 +174,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureValue iFeatureV writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureValue.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iFeatureValue.ownedMemberElementId); @@ -316,30 +295,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureValue iFeatureV writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFeatureValue.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iFeatureValue.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFeatureValue.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFeatureValue.textualRepresentation) @@ -404,18 +359,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureValue iFeatu writer.WritePropertyName("isInitial"u8); writer.WriteBooleanValue(iFeatureValue.IsInitial); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFeatureValue.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iFeatureValue.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iFeatureValue.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFeatureValue.OwnedRelatedElement) @@ -468,30 +411,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureValue iFeatu writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iFeatureValue.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFeatureValue.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iFeatureValue.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowDefinitionSerializer.cs index 10afd769c..faf42f181 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowDefinitionSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowDefinition iFlowDe writer.WriteEndArray(); - writer.WriteStartArray("associationEnd"u8); - - foreach (var item in iFlowDefinition.associationEnd) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iFlowDefinition.DeclaredName); @@ -141,18 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowDefinition iFlowDe writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iFlowDefinition.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iFlowDefinition.directedUsage) @@ -180,18 +156,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowDefinition iFlowDe writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFlowDefinition.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iFlowDefinition.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("feature"u8); foreach (var item in iFlowDefinition.feature) @@ -980,18 +944,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowDefinition iFlowDe writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iFlowDefinition.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iFlowDefinition.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedType"u8); foreach (var item in iFlowDefinition.relatedType) @@ -1007,18 +959,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowDefinition iFlowDe writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFlowDefinition.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iFlowDefinition.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceType"u8); if (iFlowDefinition.sourceType.HasValue) @@ -1045,18 +985,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowDefinition iFlowDe writer.WriteEndArray(); - writer.WriteStartArray("target"u8); - - foreach (var item in iFlowDefinition.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetType"u8); foreach (var item in iFlowDefinition.targetType) @@ -1230,30 +1158,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFlowDefinition iFlo writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iFlowDefinition.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFlowDefinition.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowSerializer.cs index 348f2753c..37d58e0ae 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowSerializer.cs @@ -99,30 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteEndArray(); - writer.WriteStartArray("association"u8); - - foreach (var item in iFlow.association) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("behavior"u8); - - foreach (var item in iFlow.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iFlow.chainingFeature) @@ -193,18 +169,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iFlow.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iFlow.Direction.HasValue) @@ -231,18 +195,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFlow.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iFlow.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("endOwningType"u8); if (iFlow.endOwningType.HasValue) @@ -911,18 +863,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iFlow.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iFlow.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedFeature"u8); foreach (var item in iFlow.relatedFeature) @@ -938,18 +878,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFlow.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iFlow.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceFeature"u8); if (iFlow.sourceFeature.HasValue) @@ -978,18 +906,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iFlow.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetFeature"u8); foreach (var item in iFlow.targetFeature) @@ -1028,18 +944,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iFlow.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iFlow.unioningType) @@ -1182,30 +1086,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFlow iFlow, Utf8Jso writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iFlow.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFlow.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowUsageSerializer.cs index 5fc2e8b76..1fdc628d8 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowUsageSerializer.cs @@ -90,18 +90,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, Utf8JsonWriter writer) { - writer.WriteStartArray("actionDefinition"u8); - - foreach (var item in iFlowUsage.actionDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("aliasIds"u8); foreach (var item in iFlowUsage.AliasIds) @@ -111,30 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteEndArray(); - writer.WriteStartArray("association"u8); - - foreach (var item in iFlowUsage.association) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("behavior"u8); - - foreach (var item in iFlowUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iFlowUsage.chainingFeature) @@ -193,18 +157,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteNullValue(); } - writer.WriteStartArray("definition"u8); - - foreach (var item in iFlowUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iFlowUsage.differencingType) @@ -217,18 +169,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iFlowUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iFlowUsage.directedUsage) @@ -267,18 +207,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFlowUsage.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iFlowUsage.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("endOwningType"u8); if (iFlowUsage.endOwningType.HasValue) @@ -421,18 +349,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteEndArray(); - writer.WriteStartArray("interaction"u8); - - foreach (var item in iFlowUsage.interaction) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("intersectingType"u8); foreach (var item in iFlowUsage.intersectingType) @@ -490,9 +406,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iFlowUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iFlowUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iFlowUsage.IsVariation); @@ -864,18 +777,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iFlowUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iFlowUsage.output) @@ -1360,18 +1261,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iFlowUsage.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iFlowUsage.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedFeature"u8); foreach (var item in iFlowUsage.relatedFeature) @@ -1387,18 +1276,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFlowUsage.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iFlowUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceFeature"u8); if (iFlowUsage.sourceFeature.HasValue) @@ -1427,18 +1304,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iFlowUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetFeature"u8); foreach (var item in iFlowUsage.targetFeature) @@ -1477,18 +1342,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iFlowUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iFlowUsage.unioningType) @@ -1615,9 +1468,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFlowUsage iFlowUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iFlowUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iFlowUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iFlowUsage.IsVariation); @@ -1684,30 +1534,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFlowUsage iFlowUsag writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iFlowUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFlowUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForLoopActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForLoopActionUsageSerializer.cs index 8f81fd3c6..42b274985 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForLoopActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForLoopActionUsageSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IForLoopActionUsage iFo writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iForLoopActionUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("bodyAction"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -161,18 +149,6 @@ private static void SerializeAsJsonWithDerivedProperties(IForLoopActionUsage iFo writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iForLoopActionUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iForLoopActionUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iForLoopActionUsage.differencingType) @@ -185,18 +161,6 @@ private static void SerializeAsJsonWithDerivedProperties(IForLoopActionUsage iFo writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iForLoopActionUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iForLoopActionUsage.directedUsage) @@ -419,9 +383,6 @@ private static void SerializeAsJsonWithDerivedProperties(IForLoopActionUsage iFo writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iForLoopActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iForLoopActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iForLoopActionUsage.IsVariation); @@ -799,18 +760,6 @@ private static void SerializeAsJsonWithDerivedProperties(IForLoopActionUsage iFo writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iForLoopActionUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iForLoopActionUsage.output) @@ -1264,18 +1213,6 @@ private static void SerializeAsJsonWithDerivedProperties(IForLoopActionUsage iFo writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iForLoopActionUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iForLoopActionUsage.unioningType) @@ -1399,9 +1336,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IForLoopActionUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iForLoopActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iForLoopActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iForLoopActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForkNodeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForkNodeSerializer.cs index 1edb675d1..5b187da07 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForkNodeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForkNodeSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IForkNode iForkNode, Ut writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iForkNode.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iForkNode.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IForkNode iForkNode, Ut writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iForkNode.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iForkNode.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iForkNode.differencingType) @@ -179,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IForkNode iForkNode, Ut writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iForkNode.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iForkNode.directedUsage) @@ -413,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(IForkNode iForkNode, Ut writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iForkNode.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iForkNode.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iForkNode.IsVariation); @@ -787,18 +748,6 @@ private static void SerializeAsJsonWithDerivedProperties(IForkNode iForkNode, Ut writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iForkNode.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iForkNode.output) @@ -1246,18 +1195,6 @@ private static void SerializeAsJsonWithDerivedProperties(IForkNode iForkNode, Ut writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iForkNode.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iForkNode.unioningType) @@ -1381,9 +1318,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IForkNode iForkNode, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iForkNode.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iForkNode.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iForkNode.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs index fdf04e9fd..58590c353 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs @@ -132,27 +132,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WritePropertyName("kind"u8); writer.WriteStringValue(iFramedConcernMembership.Kind.ToString().ToLower()); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iFramedConcernMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iFramedConcernMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iFramedConcernMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iFramedConcernMembership.name); @@ -174,12 +153,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WriteStringValue(iFramedConcernMembership.ownedConcern); writer.WriteEndObject(); - writer.WritePropertyName("ownedConstraint"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.ownedConstraint); - writer.WriteEndObject(); - writer.WriteStartArray("ownedElement"u8); foreach (var item in iFramedConcernMembership.ownedElement) @@ -192,21 +165,9 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iFramedConcernMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iFramedConcernMembership.ownedMemberName); @@ -322,12 +283,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WriteStringValue(iFramedConcernMembership.referencedConcern); writer.WriteEndObject(); - writer.WritePropertyName("referencedConstraint"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.referencedConstraint); - writer.WriteEndObject(); - writer.WriteStartArray("relatedElement"u8); foreach (var item in iFramedConcernMembership.relatedElement) @@ -343,30 +298,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFramedConcernMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iFramedConcernMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFramedConcernMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFramedConcernMembership.textualRepresentation) @@ -422,18 +353,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFramedConcernMember writer.WritePropertyName("kind"u8); writer.WriteStringValue(iFramedConcernMembership.Kind.ToString().ToLower()); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iFramedConcernMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iFramedConcernMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iFramedConcernMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFramedConcernMembership.OwnedRelatedElement) @@ -486,30 +405,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFramedConcernMember writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iFramedConcernMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iFramedConcernMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iFramedConcernMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FunctionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FunctionSerializer.cs index efcb94e02..be342ec94 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FunctionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FunctionSerializer.cs @@ -117,18 +117,6 @@ private static void SerializeAsJsonWithDerivedProperties(IFunction iFunction, Ut writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iFunction.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("documentation"u8); foreach (var item in iFunction.documentation) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IfActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IfActionUsageSerializer.cs index 16693470c..ea6b02df4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IfActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IfActionUsageSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIfActionUsage iIfActio writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iIfActionUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iIfActionUsage.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIfActionUsage iIfActio writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iIfActionUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iIfActionUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iIfActionUsage.differencingType) @@ -179,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIfActionUsage iIfActio writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iIfActionUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iIfActionUsage.directedUsage) @@ -433,9 +397,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIfActionUsage iIfActio writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iIfActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iIfActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iIfActionUsage.IsVariation); @@ -807,18 +768,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIfActionUsage iIfActio writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iIfActionUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iIfActionUsage.output) @@ -1272,18 +1221,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIfActionUsage iIfActio writer.WriteStringValue(iIfActionUsage.thenAction); writer.WriteEndObject(); - writer.WriteStartArray("type"u8); - - foreach (var item in iIfActionUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iIfActionUsage.unioningType) @@ -1407,9 +1344,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IIfActionUsage iIfAc writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iIfActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iIfActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iIfActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IncludeUseCaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IncludeUseCaseUsageSerializer.cs index 4452ea202..02c2cf691 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IncludeUseCaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IncludeUseCaseUsageSerializer.cs @@ -90,18 +90,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iIncludeUseCaseUsage, Utf8JsonWriter writer) { - writer.WriteStartArray("actionDefinition"u8); - - foreach (var item in iIncludeUseCaseUsage.actionDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("actorParameter"u8); foreach (var item in iIncludeUseCaseUsage.actorParameter) @@ -123,46 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iIncludeUseCaseUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("calculationDefinition"u8); - - if (iIncludeUseCaseUsage.calculationDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iIncludeUseCaseUsage.calculationDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - - writer.WritePropertyName("caseDefinition"u8); - - if (iIncludeUseCaseUsage.caseDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iIncludeUseCaseUsage.caseDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iIncludeUseCaseUsage.chainingFeature) @@ -195,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iIncludeUseCaseUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iIncludeUseCaseUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iIncludeUseCaseUsage.differencingType) @@ -219,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iIncludeUseCaseUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iIncludeUseCaseUsage.directedUsage) @@ -295,12 +219,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteNullValue(); } - writer.WritePropertyName("eventOccurrence"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iIncludeUseCaseUsage.eventOccurrence); - writer.WriteEndObject(); - writer.WriteStartArray("feature"u8); foreach (var item in iIncludeUseCaseUsage.feature) @@ -343,20 +261,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iIncludeUseCaseUsage.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iIncludeUseCaseUsage.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iIncludeUseCaseUsage.importedMembership) @@ -488,9 +392,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iIncludeUseCaseUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iIncludeUseCaseUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iIncludeUseCaseUsage.IsVariation); @@ -876,18 +777,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteNullValue(); } - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iIncludeUseCaseUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iIncludeUseCaseUsage.output) @@ -1306,12 +1195,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteEndArray(); - writer.WritePropertyName("performedAction"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iIncludeUseCaseUsage.performedAction); - writer.WriteEndObject(); - writer.WritePropertyName("portionKind"u8); if (iIncludeUseCaseUsage.PortionKind.HasValue) @@ -1353,18 +1236,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iIncludeUseCaseUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iIncludeUseCaseUsage.unioningType) @@ -1508,9 +1379,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IIncludeUseCaseUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iIncludeUseCaseUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iIncludeUseCaseUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iIncludeUseCaseUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IndexExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IndexExpressionSerializer.cs index 1826106be..1e93fe383 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IndexExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IndexExpressionSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIndexExpression iIndex writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iIndexExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iIndexExpression.chainingFeature) @@ -167,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIndexExpression iIndex writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iIndexExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iIndexExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InteractionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InteractionSerializer.cs index 9f5316bbc..bcaba6aeb 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InteractionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InteractionSerializer.cs @@ -129,18 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInteraction iInteracti writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iInteraction.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("documentation"u8); foreach (var item in iInteraction.documentation) @@ -156,18 +144,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInteraction iInteracti writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iInteraction.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iInteraction.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("feature"u8); foreach (var item in iInteraction.feature) @@ -614,18 +590,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInteraction iInteracti writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iInteraction.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iInteraction.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedType"u8); foreach (var item in iInteraction.relatedType) @@ -641,18 +605,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInteraction iInteracti writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iInteraction.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iInteraction.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceType"u8); if (iInteraction.sourceType.HasValue) @@ -679,18 +631,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInteraction iInteracti writer.WriteEndArray(); - writer.WriteStartArray("target"u8); - - foreach (var item in iInteraction.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetType"u8); foreach (var item in iInteraction.targetType) @@ -822,30 +762,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IInteraction iIntera writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iInteraction.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iInteraction.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceDefinitionSerializer.cs index f7b68da90..fcff6321e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceDefinitionSerializer.cs @@ -99,30 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceDefinition iI writer.WriteEndArray(); - writer.WriteStartArray("associationEnd"u8); - - foreach (var item in iInterfaceDefinition.associationEnd) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("connectionEnd"u8); - - foreach (var item in iInterfaceDefinition.connectionEnd) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iInterfaceDefinition.DeclaredName); @@ -180,18 +156,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceDefinition iI writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iInterfaceDefinition.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iInterfaceDefinition.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("feature"u8); foreach (var item in iInterfaceDefinition.feature) @@ -968,18 +932,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceDefinition iI writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iInterfaceDefinition.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iInterfaceDefinition.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedType"u8); foreach (var item in iInterfaceDefinition.relatedType) @@ -995,18 +947,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceDefinition iI writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iInterfaceDefinition.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iInterfaceDefinition.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceType"u8); if (iInterfaceDefinition.sourceType.HasValue) @@ -1021,18 +961,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceDefinition iI writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iInterfaceDefinition.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetType"u8); foreach (var item in iInterfaceDefinition.targetType) @@ -1206,30 +1134,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IInterfaceDefinition writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iInterfaceDefinition.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iInterfaceDefinition.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceUsageSerializer.cs index 7f4c43b42..2ece7f6f2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceUsageSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WriteEndArray(); - writer.WriteStartArray("association"u8); - - foreach (var item in iInterfaceUsage.association) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iInterfaceUsage.chainingFeature) @@ -123,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WriteEndArray(); - writer.WriteStartArray("connectionDefinition"u8); - - foreach (var item in iInterfaceUsage.connectionDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("connectorEnd"u8); foreach (var item in iInterfaceUsage.connectorEnd) @@ -181,18 +157,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WriteNullValue(); } - writer.WriteStartArray("definition"u8); - - foreach (var item in iInterfaceUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iInterfaceUsage.differencingType) @@ -255,18 +219,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iInterfaceUsage.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iInterfaceUsage.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("endOwningType"u8); if (iInterfaceUsage.endOwningType.HasValue) @@ -454,9 +406,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iInterfaceUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iInterfaceUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iInterfaceUsage.IsVariation); @@ -1310,18 +1259,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iInterfaceUsage.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iInterfaceUsage.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedFeature"u8); foreach (var item in iInterfaceUsage.relatedFeature) @@ -1337,18 +1274,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iInterfaceUsage.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iInterfaceUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceFeature"u8); if (iInterfaceUsage.sourceFeature.HasValue) @@ -1363,18 +1288,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iInterfaceUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetFeature"u8); foreach (var item in iInterfaceUsage.targetFeature) @@ -1399,18 +1312,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iInterfaceUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iInterfaceUsage.unioningType) @@ -1537,9 +1438,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IInterfaceUsage iInt writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iInterfaceUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iInterfaceUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iInterfaceUsage.IsVariation); @@ -1606,30 +1504,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IInterfaceUsage iInt writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iInterfaceUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iInterfaceUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IntersectingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IntersectingSerializer.cs index 8b6ed17f5..008502683 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IntersectingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IntersectingSerializer.cs @@ -274,30 +274,6 @@ private static void SerializeAsJsonWithDerivedProperties(IIntersecting iIntersec writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iIntersecting.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iIntersecting.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iIntersecting.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iIntersecting.textualRepresentation) @@ -411,30 +387,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IIntersecting iInter writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iIntersecting.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iIntersecting.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvariantSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvariantSerializer.cs index 4ec041e1a..14ea396e3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvariantSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvariantSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInvariant iInvariant, writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iInvariant.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iInvariant.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInvariant iInvariant, writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iInvariant.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iInvariant.Direction.HasValue) @@ -261,20 +237,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInvariant iInvariant, writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iInvariant.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iInvariant.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iInvariant.importedMembership) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvocationExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvocationExpressionSerializer.cs index e6881d8dc..1a2386df8 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvocationExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvocationExpressionSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInvocationExpression i writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iInvocationExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iInvocationExpression.chainingFeature) @@ -167,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IInvocationExpression i writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iInvocationExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iInvocationExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemUsageSerializer.cs index bb530128b..bde5e9b99 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemUsageSerializer.cs @@ -131,18 +131,6 @@ private static void SerializeAsJsonWithDerivedProperties(IItemUsage iItemUsage, writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iItemUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iItemUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iItemUsage.differencingType) @@ -389,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(IItemUsage iItemUsage, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iItemUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iItemUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iItemUsage.IsVariation); @@ -1222,18 +1207,6 @@ private static void SerializeAsJsonWithDerivedProperties(IItemUsage iItemUsage, writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iItemUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iItemUsage.unioningType) @@ -1357,9 +1330,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IItemUsage iItemUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iItemUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iItemUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iItemUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/JoinNodeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/JoinNodeSerializer.cs index 6cb90c1ca..89c5b62e0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/JoinNodeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/JoinNodeSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IJoinNode iJoinNode, Ut writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iJoinNode.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iJoinNode.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IJoinNode iJoinNode, Ut writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iJoinNode.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iJoinNode.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iJoinNode.differencingType) @@ -179,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IJoinNode iJoinNode, Ut writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iJoinNode.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iJoinNode.directedUsage) @@ -413,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(IJoinNode iJoinNode, Ut writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iJoinNode.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iJoinNode.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iJoinNode.IsVariation); @@ -787,18 +748,6 @@ private static void SerializeAsJsonWithDerivedProperties(IJoinNode iJoinNode, Ut writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iJoinNode.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iJoinNode.output) @@ -1246,18 +1195,6 @@ private static void SerializeAsJsonWithDerivedProperties(IJoinNode iJoinNode, Ut writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iJoinNode.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iJoinNode.unioningType) @@ -1381,9 +1318,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IJoinNode iJoinNode, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iJoinNode.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iJoinNode.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iJoinNode.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralBooleanSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralBooleanSerializer.cs index 9c7b6edc5..2d03380b6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralBooleanSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralBooleanSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralBoolean iLitera writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iLiteralBoolean.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralBoolean.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralBoolean iLitera writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iLiteralBoolean.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iLiteralBoolean.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralExpressionSerializer.cs index 29ae6e75f..e31dcaefa 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralExpressionSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralExpression iLit writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iLiteralExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralExpression.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralExpression iLit writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iLiteralExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iLiteralExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralInfinitySerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralInfinitySerializer.cs index fef42a5f9..873161765 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralInfinitySerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralInfinitySerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralInfinity iLiter writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iLiteralInfinity.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralInfinity.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralInfinity iLiter writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iLiteralInfinity.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iLiteralInfinity.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralIntegerSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralIntegerSerializer.cs index 8d33deb7b..c18bd1ef8 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralIntegerSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralIntegerSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralInteger iLitera writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iLiteralInteger.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralInteger.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralInteger iLitera writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iLiteralInteger.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iLiteralInteger.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralRationalSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralRationalSerializer.cs index cb68b6d8f..4a846a883 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralRationalSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralRationalSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralRational iLiter writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iLiteralRational.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralRational.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralRational iLiter writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iLiteralRational.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iLiteralRational.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralStringSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralStringSerializer.cs index 5bb725436..89ddecf83 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralStringSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralStringSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralString iLiteral writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iLiteralString.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralString.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralString iLiteral writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iLiteralString.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iLiteralString.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipExposeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipExposeSerializer.cs index 513455c37..6115b5a11 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipExposeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipExposeSerializer.cs @@ -292,30 +292,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMembershipExpose iMemb writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iMembershipExpose.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iMembershipExpose.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iMembershipExpose.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iMembershipExpose.textualRepresentation) @@ -432,30 +408,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IMembershipExpose iM writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iMembershipExpose.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iMembershipExpose.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iMembershipExpose.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipImportSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipImportSerializer.cs index f40156e2b..1fdcefc22 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipImportSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipImportSerializer.cs @@ -292,30 +292,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMembershipImport iMemb writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iMembershipImport.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iMembershipImport.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iMembershipImport.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iMembershipImport.textualRepresentation) @@ -432,30 +408,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IMembershipImport iM writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iMembershipImport.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iMembershipImport.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iMembershipImport.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipSerializer.cs index c5c24186b..364b39927 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipSerializer.cs @@ -289,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMembership iMembership writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iMembership.textualRepresentation) @@ -429,30 +405,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IMembership iMembers writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MergeNodeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MergeNodeSerializer.cs index a29173118..b2ece18b2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MergeNodeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MergeNodeSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMergeNode iMergeNode, writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iMergeNode.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iMergeNode.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMergeNode iMergeNode, writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMergeNode.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iMergeNode.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iMergeNode.differencingType) @@ -179,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMergeNode iMergeNode, writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iMergeNode.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iMergeNode.directedUsage) @@ -413,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMergeNode iMergeNode, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iMergeNode.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iMergeNode.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iMergeNode.IsVariation); @@ -787,18 +748,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMergeNode iMergeNode, writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iMergeNode.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iMergeNode.output) @@ -1246,18 +1195,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMergeNode iMergeNode, writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iMergeNode.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iMergeNode.unioningType) @@ -1381,9 +1318,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IMergeNode iMergeNod writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iMergeNode.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iMergeNode.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iMergeNode.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataAccessExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataAccessExpressionSerializer.cs index 5d7952c15..358cda8eb 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataAccessExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataAccessExpressionSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMetadataAccessExpressi writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iMetadataAccessExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iMetadataAccessExpression.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMetadataAccessExpressi writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iMetadataAccessExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iMetadataAccessExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataUsageSerializer.cs index 1a10098f6..41ae0b5af 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataUsageSerializer.cs @@ -155,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMetadataUsage iMetadat writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMetadataUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iMetadataUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iMetadataUsage.differencingType) @@ -413,24 +401,9 @@ private static void SerializeAsJsonWithDerivedProperties(IMetadataUsage iMetadat writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iMetadataUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iMetadataUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iMetadataUsage.IsVariation); - writer.WriteStartArray("itemDefinition"u8); - - foreach (var item in iMetadataUsage.itemDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("mayTimeVary"u8); writer.WriteBooleanValue(iMetadataUsage.mayTimeVary); @@ -458,20 +431,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMetadataUsage iMetadat writer.WriteEndArray(); - writer.WritePropertyName("metaclass"u8); - - if (iMetadataUsage.metaclass.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iMetadataUsage.metaclass.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("metadataDefinition"u8); if (iMetadataUsage.metadataDefinition.HasValue) @@ -1300,18 +1259,6 @@ private static void SerializeAsJsonWithDerivedProperties(IMetadataUsage iMetadat writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iMetadataUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iMetadataUsage.unioningType) @@ -1435,9 +1382,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IMetadataUsage iMeta writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iMetadataUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iMetadataUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iMetadataUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceExposeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceExposeSerializer.cs index 81ff12cee..ede6b8858 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceExposeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceExposeSerializer.cs @@ -292,30 +292,6 @@ private static void SerializeAsJsonWithDerivedProperties(INamespaceExpose iNames writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iNamespaceExpose.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iNamespaceExpose.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iNamespaceExpose.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iNamespaceExpose.textualRepresentation) @@ -432,30 +408,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(INamespaceExpose iNa writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iNamespaceExpose.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iNamespaceExpose.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iNamespaceExpose.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceImportSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceImportSerializer.cs index 416a11046..f522294ed 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceImportSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceImportSerializer.cs @@ -292,30 +292,6 @@ private static void SerializeAsJsonWithDerivedProperties(INamespaceImport iNames writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iNamespaceImport.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iNamespaceImport.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iNamespaceImport.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iNamespaceImport.textualRepresentation) @@ -432,30 +408,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(INamespaceImport iNa writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iNamespaceImport.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iNamespaceImport.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iNamespaceImport.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NullExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NullExpressionSerializer.cs index e1506118b..a00109d99 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NullExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NullExpressionSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(INullExpression iNullEx writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iNullExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iNullExpression.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(INullExpression iNullEx writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iNullExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iNullExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ObjectiveMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ObjectiveMembershipSerializer.cs index 2286bca8e..e29721ba1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ObjectiveMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ObjectiveMembershipSerializer.cs @@ -129,27 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(IObjectiveMembership iO writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iObjectiveMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iObjectiveMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iObjectiveMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iObjectiveMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iObjectiveMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iObjectiveMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iObjectiveMembership.name); @@ -177,21 +156,9 @@ private static void SerializeAsJsonWithDerivedProperties(IObjectiveMembership iO writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iObjectiveMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iObjectiveMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iObjectiveMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iObjectiveMembership.ownedMemberName); @@ -322,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IObjectiveMembership iO writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iObjectiveMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iObjectiveMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iObjectiveMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iObjectiveMembership.textualRepresentation) @@ -398,18 +341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IObjectiveMembership writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iObjectiveMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iObjectiveMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iObjectiveMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iObjectiveMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iObjectiveMembership.OwnedRelatedElement) @@ -462,30 +393,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IObjectiveMembership writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iObjectiveMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iObjectiveMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iObjectiveMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceUsageSerializer.cs index 5c374b436..4886f4805 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceUsageSerializer.cs @@ -131,18 +131,6 @@ private static void SerializeAsJsonWithDerivedProperties(IOccurrenceUsage iOccur writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iOccurrenceUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iOccurrenceUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iOccurrenceUsage.differencingType) @@ -389,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(IOccurrenceUsage iOccur writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iOccurrenceUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iOccurrenceUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iOccurrenceUsage.IsVariation); @@ -1210,18 +1195,6 @@ private static void SerializeAsJsonWithDerivedProperties(IOccurrenceUsage iOccur writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iOccurrenceUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iOccurrenceUsage.unioningType) @@ -1345,9 +1318,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IOccurrenceUsage iOc writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iOccurrenceUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iOccurrenceUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iOccurrenceUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OperatorExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OperatorExpressionSerializer.cs index ffb80ee74..f326dfc3b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OperatorExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OperatorExpressionSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IOperatorExpression iOp writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iOperatorExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iOperatorExpression.chainingFeature) @@ -167,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IOperatorExpression iOp writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iOperatorExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iOperatorExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OwningMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OwningMembershipSerializer.cs index 826c6e206..b791fcdb4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OwningMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OwningMembershipSerializer.cs @@ -129,27 +129,12 @@ private static void SerializeAsJsonWithDerivedProperties(IOwningMembership iOwni writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iOwningMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iOwningMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iOwningMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iOwningMembership.MemberName); - writer.WritePropertyName("membershipOwningNamespace"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iOwningMembership.membershipOwningNamespace); writer.WriteEndObject(); - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iOwningMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iOwningMembership.name); @@ -304,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IOwningMembership iOwni writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iOwningMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iOwningMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iOwningMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iOwningMembership.textualRepresentation) @@ -380,18 +341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IOwningMembership iO writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iOwningMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iOwningMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iOwningMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iOwningMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iOwningMembership.OwnedRelatedElement) @@ -444,30 +393,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IOwningMembership iO writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iOwningMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iOwningMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iOwningMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ParameterMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ParameterMembershipSerializer.cs index efc6b0502..94ecce419 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ParameterMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ParameterMembershipSerializer.cs @@ -129,27 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(IParameterMembership iP writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iParameterMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iParameterMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iParameterMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iParameterMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iParameterMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iParameterMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iParameterMembership.name); @@ -177,21 +156,9 @@ private static void SerializeAsJsonWithDerivedProperties(IParameterMembership iP writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iParameterMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iParameterMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iParameterMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iParameterMembership.ownedMemberName); @@ -322,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IParameterMembership iP writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iParameterMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iParameterMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iParameterMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iParameterMembership.textualRepresentation) @@ -398,18 +341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IParameterMembership writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iParameterMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iParameterMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iParameterMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iParameterMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iParameterMembership.OwnedRelatedElement) @@ -462,30 +393,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IParameterMembership writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iParameterMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iParameterMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iParameterMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartUsageSerializer.cs index 433e6293a..a63a10d79 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartUsageSerializer.cs @@ -131,18 +131,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPartUsage iPartUsage, writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iPartUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iPartUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iPartUsage.differencingType) @@ -389,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPartUsage iPartUsage, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iPartUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iPartUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPartUsage.IsVariation); @@ -1234,18 +1219,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPartUsage iPartUsage, writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iPartUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iPartUsage.unioningType) @@ -1369,9 +1342,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IPartUsage iPartUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iPartUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iPartUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPartUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PerformActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PerformActionUsageSerializer.cs index 820b123d8..6ef126d74 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PerformActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PerformActionUsageSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iPerformActionUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iPerformActionUsage.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iPerformActionUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iPerformActionUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iPerformActionUsage.differencingType) @@ -179,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iPerformActionUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iPerformActionUsage.directedUsage) @@ -255,12 +219,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WriteNullValue(); } - writer.WritePropertyName("eventOccurrence"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iPerformActionUsage.eventOccurrence); - writer.WriteEndObject(); - writer.WriteStartArray("feature"u8); foreach (var item in iPerformActionUsage.feature) @@ -419,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iPerformActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iPerformActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPerformActionUsage.IsVariation); @@ -793,18 +748,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iPerformActionUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iPerformActionUsage.output) @@ -1258,18 +1201,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iPerformActionUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iPerformActionUsage.unioningType) @@ -1393,9 +1324,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IPerformActionUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iPerformActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iPerformActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPerformActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortConjugationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortConjugationSerializer.cs index 0c50afab7..430bbf608 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortConjugationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortConjugationSerializer.cs @@ -150,12 +150,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPortConjugation iPortC writer.WriteStringValue(iPortConjugation.OriginalPortDefinition); writer.WriteEndObject(); - writer.WritePropertyName("originalType"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iPortConjugation.OriginalType); - writer.WriteEndObject(); - writer.WriteStartArray("ownedAnnotation"u8); foreach (var item in iPortConjugation.ownedAnnotation) @@ -274,20 +268,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPortConjugation iPortC writer.WriteNullValue(); } - writer.WritePropertyName("owningType"u8); - - if (iPortConjugation.owningType.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iPortConjugation.owningType.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iPortConjugation.qualifiedName); @@ -306,30 +286,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPortConjugation iPortC writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iPortConjugation.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iPortConjugation.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iPortConjugation.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iPortConjugation.textualRepresentation) @@ -391,12 +347,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IPortConjugation iPo writer.WriteStringValue(iPortConjugation.OriginalPortDefinition); writer.WriteEndObject(); - writer.WritePropertyName("originalType"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iPortConjugation.OriginalType); - writer.WriteEndObject(); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iPortConjugation.OwnedRelatedElement) @@ -449,30 +399,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IPortConjugation iPo writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iPortConjugation.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iPortConjugation.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortUsageSerializer.cs index 76a3e3362..5170f5013 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortUsageSerializer.cs @@ -131,18 +131,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPortUsage iPortUsage, writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iPortUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iPortUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iPortUsage.differencingType) @@ -389,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPortUsage iPortUsage, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iPortUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iPortUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPortUsage.IsVariation); @@ -763,18 +748,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPortUsage iPortUsage, writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iPortUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iPortUsage.output) @@ -1222,18 +1195,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPortUsage iPortUsage, writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iPortUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iPortUsage.unioningType) @@ -1357,9 +1318,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IPortUsage iPortUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iPortUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iPortUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPortUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PredicateSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PredicateSerializer.cs index 168b210bf..c4336bd9c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PredicateSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PredicateSerializer.cs @@ -117,18 +117,6 @@ private static void SerializeAsJsonWithDerivedProperties(IPredicate iPredicate, writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iPredicate.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("documentation"u8); foreach (var item in iPredicate.documentation) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RedefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RedefinitionSerializer.cs index f72a33363..ea80bd33e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RedefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RedefinitionSerializer.cs @@ -120,12 +120,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRedefinition iRedefini writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iRedefinition.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRedefinition.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iRedefinition.IsImplied); @@ -270,20 +264,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRedefinition iRedefini writer.WriteNullValue(); } - writer.WritePropertyName("owningType"u8); - - if (iRedefinition.owningType.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRedefinition.owningType.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iRedefinition.qualifiedName); @@ -314,48 +294,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRedefinition iRedefini writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iRedefinition.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iRedefinition.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRedefinition.Specific); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettedFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRedefinition.SubsettedFeature); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettingFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRedefinition.SubsettingFeature); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iRedefinition.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iRedefinition.textualRepresentation) @@ -399,12 +337,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRedefinition iRedef writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iRedefinition.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRedefinition.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iRedefinition.IsImplied); @@ -475,48 +407,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRedefinition iRedef writer.WriteStringValue(iRedefinition.RedefiningFeature); writer.WriteEndObject(); - writer.WriteStartArray("source"u8); - - foreach (var item in iRedefinition.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRedefinition.Specific); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettedFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRedefinition.SubsettedFeature); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettingFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRedefinition.SubsettingFeature); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iRedefinition.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs index 9472218f7..da2ac9e21 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs @@ -120,12 +120,6 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iReferenceSubsetting.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iReferenceSubsetting.IsImplied); @@ -200,20 +194,6 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WriteNullValue(); } - writer.WritePropertyName("owningFeature"u8); - - if (iReferenceSubsetting.owningFeature.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.owningFeature.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("owningMembership"u8); if (iReferenceSubsetting.owningMembership.HasValue) @@ -270,20 +250,6 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WriteNullValue(); } - writer.WritePropertyName("owningType"u8); - - if (iReferenceSubsetting.owningType.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.owningType.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iReferenceSubsetting.qualifiedName); @@ -314,48 +280,6 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iReferenceSubsetting.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iReferenceSubsetting.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.Specific); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettedFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.SubsettedFeature); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettingFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.SubsettingFeature); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iReferenceSubsetting.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iReferenceSubsetting.textualRepresentation) @@ -399,12 +323,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReferenceSubsetting writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iReferenceSubsetting.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iReferenceSubsetting.IsImplied); @@ -469,48 +387,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReferenceSubsetting writer.WriteStringValue(iReferenceSubsetting.ReferencedFeature); writer.WriteEndObject(); - writer.WriteStartArray("source"u8); - - foreach (var item in iReferenceSubsetting.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.Specific); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettedFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.SubsettedFeature); - writer.WriteEndObject(); - - writer.WritePropertyName("subsettingFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReferenceSubsetting.SubsettingFeature); - writer.WriteEndObject(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iReferenceSubsetting.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceUsageSerializer.cs index 215b11424..04065163d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceUsageSerializer.cs @@ -372,9 +372,6 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceUsage iRefere writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iReferenceUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iReferenceUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iReferenceUsage.IsVariation); @@ -1170,18 +1167,6 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceUsage iRefere writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iReferenceUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iReferenceUsage.unioningType) @@ -1302,9 +1287,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReferenceUsage iRef writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iReferenceUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iReferenceUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iReferenceUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingUsageSerializer.cs index 058a23b35..f92882263 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingUsageSerializer.cs @@ -131,18 +131,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRenderingUsage iRender writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iRenderingUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iRenderingUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iRenderingUsage.differencingType) @@ -389,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRenderingUsage iRender writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iRenderingUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iRenderingUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iRenderingUsage.IsVariation); @@ -1193,18 +1178,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRenderingUsage iRender writer.WriteNullValue(); } - writer.WriteStartArray("partDefinition"u8); - - foreach (var item in iRenderingUsage.partDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("portionKind"u8); if (iRenderingUsage.PortionKind.HasValue) @@ -1248,18 +1221,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRenderingUsage iRender writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iRenderingUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iRenderingUsage.unioningType) @@ -1383,9 +1344,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRenderingUsage iRen writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iRenderingUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iRenderingUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iRenderingUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementConstraintMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementConstraintMembershipSerializer.cs index 1436df696..f190c29ee 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementConstraintMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementConstraintMembershipSerializer.cs @@ -132,27 +132,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementConstraintM writer.WritePropertyName("kind"u8); writer.WriteStringValue(iRequirementConstraintMembership.Kind.ToString().ToLower()); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementConstraintMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iRequirementConstraintMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iRequirementConstraintMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementConstraintMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iRequirementConstraintMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iRequirementConstraintMembership.name); @@ -186,21 +165,9 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementConstraintM writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementConstraintMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iRequirementConstraintMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementConstraintMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iRequirementConstraintMembership.ownedMemberName); @@ -331,30 +298,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementConstraintM writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iRequirementConstraintMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iRequirementConstraintMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iRequirementConstraintMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iRequirementConstraintMembership.textualRepresentation) @@ -410,18 +353,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementConstrai writer.WritePropertyName("kind"u8); writer.WriteStringValue(iRequirementConstraintMembership.Kind.ToString().ToLower()); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementConstraintMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iRequirementConstraintMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iRequirementConstraintMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iRequirementConstraintMembership.OwnedRelatedElement) @@ -474,30 +405,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementConstrai writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iRequirementConstraintMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iRequirementConstraintMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iRequirementConstraintMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementDefinitionSerializer.cs index 7757bd62c..dc42b9067 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementDefinitionSerializer.cs @@ -126,9 +126,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementDefinition writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iRequirementDefinition.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iRequirementDefinition.DeclaredShortName); - writer.WriteStartArray("differencingType"u8); foreach (var item in iRequirementDefinition.differencingType) @@ -141,18 +138,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementDefinition writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iRequirementDefinition.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iRequirementDefinition.directedUsage) @@ -1114,9 +1099,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementDefiniti writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iRequirementDefinition.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iRequirementDefinition.DeclaredShortName); - writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iRequirementDefinition.ElementId); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementUsageSerializer.cs index d540eaab0..6a8372a23 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementUsageSerializer.cs @@ -123,18 +123,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iRequirementUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iRequirementUsage.chainingFeature) @@ -147,20 +135,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); - writer.WritePropertyName("constraintDefinition"u8); - - if (iRequirementUsage.constraintDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementUsage.constraintDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("crossFeature"u8); if (iRequirementUsage.crossFeature.HasValue) @@ -178,21 +152,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iRequirementUsage.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iRequirementUsage.DeclaredShortName); - - writer.WriteStartArray("definition"u8); - - foreach (var item in iRequirementUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iRequirementUsage.differencingType) @@ -205,18 +164,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iRequirementUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iRequirementUsage.directedUsage) @@ -335,20 +282,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iRequirementUsage.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementUsage.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iRequirementUsage.importedMembership) @@ -468,9 +401,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iRequirementUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iRequirementUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iRequirementUsage.IsVariation); @@ -1283,20 +1213,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteNullValue(); } - writer.WritePropertyName("predicate"u8); - - if (iRequirementUsage.predicate.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementUsage.predicate.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iRequirementUsage.qualifiedName); @@ -1377,18 +1293,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iRequirementUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iRequirementUsage.unioningType) @@ -1462,9 +1366,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementUsage iR writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iRequirementUsage.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iRequirementUsage.DeclaredShortName); - writer.WritePropertyName("direction"u8); if (iRequirementUsage.Direction.HasValue) @@ -1512,9 +1413,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementUsage iR writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iRequirementUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iRequirementUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iRequirementUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementVerificationMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementVerificationMembershipSerializer.cs index e68ed91dc..0d06e9539 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementVerificationMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementVerificationMembershipSerializer.cs @@ -132,27 +132,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementVerificatio writer.WritePropertyName("kind"u8); writer.WriteStringValue(iRequirementVerificationMembership.Kind.ToString().ToLower()); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementVerificationMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iRequirementVerificationMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iRequirementVerificationMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementVerificationMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iRequirementVerificationMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iRequirementVerificationMembership.name); @@ -168,12 +147,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementVerificatio writer.WriteEndArray(); - writer.WritePropertyName("ownedConstraint"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementVerificationMembership.ownedConstraint); - writer.WriteEndObject(); - writer.WriteStartArray("ownedElement"u8); foreach (var item in iRequirementVerificationMembership.ownedElement) @@ -186,21 +159,9 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementVerificatio writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementVerificationMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iRequirementVerificationMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementVerificationMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iRequirementVerificationMembership.ownedMemberName); @@ -316,12 +277,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementVerificatio writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iRequirementVerificationMembership.qualifiedName); - writer.WritePropertyName("referencedConstraint"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementVerificationMembership.referencedConstraint); - writer.WriteEndObject(); - writer.WriteStartArray("relatedElement"u8); foreach (var item in iRequirementVerificationMembership.relatedElement) @@ -337,30 +292,6 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementVerificatio writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iRequirementVerificationMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iRequirementVerificationMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iRequirementVerificationMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iRequirementVerificationMembership.textualRepresentation) @@ -422,18 +353,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementVerifica writer.WritePropertyName("kind"u8); writer.WriteStringValue(iRequirementVerificationMembership.Kind.ToString().ToLower()); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iRequirementVerificationMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iRequirementVerificationMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iRequirementVerificationMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iRequirementVerificationMembership.OwnedRelatedElement) @@ -486,30 +405,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementVerifica writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iRequirementVerificationMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iRequirementVerificationMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iRequirementVerificationMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ResultExpressionMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ResultExpressionMembershipSerializer.cs index e6ec5ea9e..abe4dfd28 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ResultExpressionMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ResultExpressionMembershipSerializer.cs @@ -129,27 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(IResultExpressionMember writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iResultExpressionMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iResultExpressionMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iResultExpressionMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iResultExpressionMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iResultExpressionMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iResultExpressionMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iResultExpressionMembership.name); @@ -177,21 +156,9 @@ private static void SerializeAsJsonWithDerivedProperties(IResultExpressionMember writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iResultExpressionMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iResultExpressionMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iResultExpressionMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iResultExpressionMembership.ownedMemberName); @@ -322,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IResultExpressionMember writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iResultExpressionMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iResultExpressionMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iResultExpressionMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iResultExpressionMembership.textualRepresentation) @@ -398,18 +341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IResultExpressionMem writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iResultExpressionMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iResultExpressionMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iResultExpressionMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iResultExpressionMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iResultExpressionMembership.OwnedRelatedElement) @@ -462,30 +393,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IResultExpressionMem writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iResultExpressionMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iResultExpressionMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iResultExpressionMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReturnParameterMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReturnParameterMembershipSerializer.cs index 5d7a2f911..7f9fc21ff 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReturnParameterMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReturnParameterMembershipSerializer.cs @@ -129,27 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(IReturnParameterMembers writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iReturnParameterMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReturnParameterMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iReturnParameterMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iReturnParameterMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReturnParameterMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iReturnParameterMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iReturnParameterMembership.name); @@ -177,21 +156,9 @@ private static void SerializeAsJsonWithDerivedProperties(IReturnParameterMembers writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReturnParameterMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iReturnParameterMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReturnParameterMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iReturnParameterMembership.ownedMemberName); @@ -322,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IReturnParameterMembers writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iReturnParameterMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iReturnParameterMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iReturnParameterMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iReturnParameterMembership.textualRepresentation) @@ -398,18 +341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReturnParameterMemb writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iReturnParameterMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iReturnParameterMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iReturnParameterMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iReturnParameterMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iReturnParameterMembership.OwnedRelatedElement) @@ -462,30 +393,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReturnParameterMemb writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iReturnParameterMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iReturnParameterMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iReturnParameterMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SatisfyRequirementUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SatisfyRequirementUsageSerializer.cs index c3a1e7e03..0cc613693 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SatisfyRequirementUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SatisfyRequirementUsageSerializer.cs @@ -111,12 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteEndArray(); - writer.WritePropertyName("assertedConstraint"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSatisfyRequirementUsage.assertedConstraint); - writer.WriteEndObject(); - writer.WriteStartArray("assumedConstraint"u8); foreach (var item in iSatisfyRequirementUsage.assumedConstraint) @@ -129,18 +123,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iSatisfyRequirementUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iSatisfyRequirementUsage.chainingFeature) @@ -153,20 +135,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteEndArray(); - writer.WritePropertyName("constraintDefinition"u8); - - if (iSatisfyRequirementUsage.constraintDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSatisfyRequirementUsage.constraintDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("crossFeature"u8); if (iSatisfyRequirementUsage.crossFeature.HasValue) @@ -184,21 +152,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iSatisfyRequirementUsage.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iSatisfyRequirementUsage.DeclaredShortName); - - writer.WriteStartArray("definition"u8); - - foreach (var item in iSatisfyRequirementUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iSatisfyRequirementUsage.differencingType) @@ -211,18 +164,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iSatisfyRequirementUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iSatisfyRequirementUsage.directedUsage) @@ -341,20 +282,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iSatisfyRequirementUsage.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSatisfyRequirementUsage.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iSatisfyRequirementUsage.importedMembership) @@ -477,9 +404,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSatisfyRequirementUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iSatisfyRequirementUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSatisfyRequirementUsage.IsVariation); @@ -1292,20 +1216,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteNullValue(); } - writer.WritePropertyName("predicate"u8); - - if (iSatisfyRequirementUsage.predicate.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSatisfyRequirementUsage.predicate.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSatisfyRequirementUsage.qualifiedName); @@ -1398,18 +1308,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iSatisfyRequirementUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iSatisfyRequirementUsage.unioningType) @@ -1483,9 +1381,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISatisfyRequirementU writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iSatisfyRequirementUsage.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iSatisfyRequirementUsage.DeclaredShortName); - writer.WritePropertyName("direction"u8); if (iSatisfyRequirementUsage.Direction.HasValue) @@ -1536,9 +1431,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISatisfyRequirementU writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSatisfyRequirementUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iSatisfyRequirementUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSatisfyRequirementUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SelectExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SelectExpressionSerializer.cs index 7628ed59c..94de8a171 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SelectExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SelectExpressionSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISelectExpression iSele writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iSelectExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iSelectExpression.chainingFeature) @@ -167,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISelectExpression iSele writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iSelectExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iSelectExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SendActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SendActionUsageSerializer.cs index 37fa218f6..d284cc8f0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SendActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SendActionUsageSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISendActionUsage iSendA writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iSendActionUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iSendActionUsage.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISendActionUsage iSendA writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iSendActionUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iSendActionUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iSendActionUsage.differencingType) @@ -179,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISendActionUsage iSendA writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iSendActionUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iSendActionUsage.directedUsage) @@ -413,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISendActionUsage iSendA writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSendActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iSendActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSendActionUsage.IsVariation); @@ -787,18 +748,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISendActionUsage iSendA writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iSendActionUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iSendActionUsage.output) @@ -1280,18 +1229,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISendActionUsage iSendA writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iSendActionUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iSendActionUsage.unioningType) @@ -1415,9 +1352,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISendActionUsage iSe writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSendActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iSendActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSendActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SpecializationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SpecializationSerializer.cs index 70a5df007..be53421be 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SpecializationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SpecializationSerializer.cs @@ -288,36 +288,12 @@ private static void SerializeAsJsonWithDerivedProperties(ISpecialization iSpecia writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSpecialization.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iSpecialization.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("specific"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iSpecialization.Specific); writer.WriteEndObject(); - writer.WriteStartArray("target"u8); - - foreach (var item in iSpecialization.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iSpecialization.textualRepresentation) @@ -425,36 +401,12 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISpecialization iSpe writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iSpecialization.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("specific"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iSpecialization.Specific); writer.WriteEndObject(); - writer.WriteStartArray("target"u8); - - foreach (var item in iSpecialization.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StakeholderMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StakeholderMembershipSerializer.cs index 2d756998f..930a5dd93 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StakeholderMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StakeholderMembershipSerializer.cs @@ -129,27 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(IStakeholderMembership writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iStakeholderMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStakeholderMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iStakeholderMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iStakeholderMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStakeholderMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iStakeholderMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iStakeholderMembership.name); @@ -177,30 +156,12 @@ private static void SerializeAsJsonWithDerivedProperties(IStakeholderMembership writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStakeholderMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iStakeholderMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStakeholderMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iStakeholderMembership.ownedMemberName); - writer.WritePropertyName("ownedMemberParameter"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStakeholderMembership.ownedMemberParameter); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberShortName"u8); writer.WriteStringValue(iStakeholderMembership.ownedMemberShortName); @@ -328,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IStakeholderMembership writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iStakeholderMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iStakeholderMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iStakeholderMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iStakeholderMembership.textualRepresentation) @@ -404,18 +341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IStakeholderMembersh writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iStakeholderMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStakeholderMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iStakeholderMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iStakeholderMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iStakeholderMembership.OwnedRelatedElement) @@ -468,30 +393,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IStakeholderMembersh writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iStakeholderMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iStakeholderMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iStakeholderMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateDefinitionSerializer.cs index 37c97add6..7cfbf66fe 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateDefinitionSerializer.cs @@ -129,18 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(IStateDefinition iState writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iStateDefinition.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iStateDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateSubactionMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateSubactionMembershipSerializer.cs index d22eb9832..95c61efa1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateSubactionMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateSubactionMembershipSerializer.cs @@ -138,27 +138,6 @@ private static void SerializeAsJsonWithDerivedProperties(IStateSubactionMembersh writer.WritePropertyName("kind"u8); writer.WriteStringValue(iStateSubactionMembership.Kind.ToString().ToLower()); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStateSubactionMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iStateSubactionMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iStateSubactionMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStateSubactionMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iStateSubactionMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iStateSubactionMembership.name); @@ -186,21 +165,9 @@ private static void SerializeAsJsonWithDerivedProperties(IStateSubactionMembersh writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStateSubactionMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iStateSubactionMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStateSubactionMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iStateSubactionMembership.ownedMemberName); @@ -325,30 +292,6 @@ private static void SerializeAsJsonWithDerivedProperties(IStateSubactionMembersh writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iStateSubactionMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iStateSubactionMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iStateSubactionMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iStateSubactionMembership.textualRepresentation) @@ -404,18 +347,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IStateSubactionMembe writer.WritePropertyName("kind"u8); writer.WriteStringValue(iStateSubactionMembership.Kind.ToString().ToLower()); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iStateSubactionMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iStateSubactionMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iStateSubactionMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iStateSubactionMembership.OwnedRelatedElement) @@ -468,30 +399,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IStateSubactionMembe writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iStateSubactionMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iStateSubactionMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iStateSubactionMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateUsageSerializer.cs index 68a9e645b..0077ce51c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateUsageSerializer.cs @@ -90,18 +90,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage, Utf8JsonWriter writer) { - writer.WriteStartArray("actionDefinition"u8); - - foreach (var item in iStateUsage.actionDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("aliasIds"u8); foreach (var item in iStateUsage.AliasIds) @@ -111,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iStateUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iStateUsage.chainingFeature) @@ -155,18 +131,6 @@ private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iStateUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iStateUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iStateUsage.differencingType) @@ -179,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iStateUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iStateUsage.directedUsage) @@ -458,9 +410,6 @@ private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iStateUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iStateUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iStateUsage.IsVariation); @@ -832,18 +781,6 @@ private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iStateUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iStateUsage.output) @@ -1303,18 +1240,6 @@ private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iStateUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iStateUsage.unioningType) @@ -1441,9 +1366,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IStateUsage iStateUs writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iStateUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iStateUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iStateUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StepSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StepSerializer.cs index a26af8942..f85c94b7a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StepSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StepSerializer.cs @@ -155,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IStep iStep, Utf8JsonWr writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iStep.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iStep.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubclassificationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubclassificationSerializer.cs index f7d0327fa..3c0bdb8ea 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubclassificationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubclassificationSerializer.cs @@ -120,12 +120,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubclassification.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubclassification.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iSubclassification.IsImplied); @@ -270,20 +264,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WriteNullValue(); } - writer.WritePropertyName("owningType"u8); - - if (iSubclassification.owningType.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubclassification.owningType.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSubclassification.qualifiedName); @@ -302,24 +282,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSubclassification.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iSubclassification.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubclassification.Specific); - writer.WriteEndObject(); - writer.WritePropertyName("subclassifier"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -332,18 +294,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WriteStringValue(iSubclassification.Superclassifier); writer.WriteEndObject(); - writer.WriteStartArray("target"u8); - - foreach (var item in iSubclassification.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iSubclassification.textualRepresentation) @@ -387,12 +337,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification i writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubclassification.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubclassification.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iSubclassification.IsImplied); @@ -451,24 +395,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification i writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iSubclassification.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubclassification.Specific); - writer.WriteEndObject(); - writer.WritePropertyName("subclassifier"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -481,18 +407,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification i writer.WriteStringValue(iSubclassification.Superclassifier); writer.WriteEndObject(); - writer.WriteStartArray("target"u8); - - foreach (var item in iSubclassification.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubjectMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubjectMembershipSerializer.cs index 99dacad08..4d5926a28 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubjectMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubjectMembershipSerializer.cs @@ -129,27 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubjectMembership iSub writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iSubjectMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubjectMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iSubjectMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iSubjectMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubjectMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iSubjectMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iSubjectMembership.name); @@ -177,30 +156,12 @@ private static void SerializeAsJsonWithDerivedProperties(ISubjectMembership iSub writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubjectMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iSubjectMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubjectMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iSubjectMembership.ownedMemberName); - writer.WritePropertyName("ownedMemberParameter"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubjectMembership.ownedMemberParameter); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberShortName"u8); writer.WriteStringValue(iSubjectMembership.ownedMemberShortName); @@ -328,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubjectMembership iSub writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSubjectMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iSubjectMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iSubjectMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iSubjectMembership.textualRepresentation) @@ -404,18 +341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubjectMembership i writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iSubjectMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubjectMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iSubjectMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iSubjectMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iSubjectMembership.OwnedRelatedElement) @@ -468,30 +393,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubjectMembership i writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iSubjectMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iSubjectMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iSubjectMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubsettingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubsettingSerializer.cs index 9f19296f2..53902ed26 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubsettingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubsettingSerializer.cs @@ -120,12 +120,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubsetting iSubsetting writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubsetting.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubsetting.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iSubsetting.IsImplied); @@ -270,20 +264,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubsetting iSubsetting writer.WriteNullValue(); } - writer.WritePropertyName("owningType"u8); - - if (iSubsetting.owningType.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubsetting.owningType.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSubsetting.qualifiedName); @@ -302,24 +282,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubsetting iSubsetting writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSubsetting.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iSubsetting.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubsetting.Specific); - writer.WriteEndObject(); - writer.WritePropertyName("subsettedFeature"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -332,18 +294,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISubsetting iSubsetting writer.WriteStringValue(iSubsetting.SubsettingFeature); writer.WriteEndObject(); - writer.WriteStartArray("target"u8); - - foreach (var item in iSubsetting.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iSubsetting.textualRepresentation) @@ -387,12 +337,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubsetting iSubsett writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubsetting.ElementId); - writer.WritePropertyName("general"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubsetting.General); - writer.WriteEndObject(); - writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iSubsetting.IsImplied); @@ -451,24 +395,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubsetting iSubsett writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iSubsetting.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("specific"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iSubsetting.Specific); - writer.WriteEndObject(); - writer.WritePropertyName("subsettedFeature"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -481,18 +407,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubsetting iSubsett writer.WriteStringValue(iSubsetting.SubsettingFeature); writer.WriteEndObject(); - writer.WriteStartArray("target"u8); - - foreach (var item in iSubsetting.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionAsUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionAsUsageSerializer.cs index e9b6ebb53..4f3460ef2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionAsUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionAsUsageSerializer.cs @@ -243,18 +243,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionAsUsage iSuc writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSuccessionAsUsage.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iSuccessionAsUsage.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("endOwningType"u8); if (iSuccessionAsUsage.endOwningType.HasValue) @@ -413,9 +401,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionAsUsage iSuc writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSuccessionAsUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iSuccessionAsUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSuccessionAsUsage.IsVariation); @@ -1222,18 +1207,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionAsUsage iSuc writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSuccessionAsUsage.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iSuccessionAsUsage.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedFeature"u8); foreach (var item in iSuccessionAsUsage.relatedFeature) @@ -1249,18 +1222,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionAsUsage iSuc writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSuccessionAsUsage.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iSuccessionAsUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceFeature"u8); if (iSuccessionAsUsage.sourceFeature.HasValue) @@ -1275,18 +1236,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionAsUsage iSuc writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iSuccessionAsUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetFeature"u8); foreach (var item in iSuccessionAsUsage.targetFeature) @@ -1311,18 +1260,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionAsUsage iSuc writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iSuccessionAsUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iSuccessionAsUsage.unioningType) @@ -1446,9 +1383,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISuccessionAsUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSuccessionAsUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iSuccessionAsUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSuccessionAsUsage.IsVariation); @@ -1504,30 +1438,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISuccessionAsUsage i writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iSuccessionAsUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iSuccessionAsUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowSerializer.cs index 87b1f3383..0c37d91e0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowSerializer.cs @@ -99,30 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WriteEndArray(); - writer.WriteStartArray("association"u8); - - foreach (var item in iSuccessionFlow.association) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("behavior"u8); - - foreach (var item in iSuccessionFlow.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iSuccessionFlow.chainingFeature) @@ -193,18 +169,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iSuccessionFlow.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iSuccessionFlow.Direction.HasValue) @@ -231,18 +195,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSuccessionFlow.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iSuccessionFlow.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("endOwningType"u8); if (iSuccessionFlow.endOwningType.HasValue) @@ -911,18 +863,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSuccessionFlow.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iSuccessionFlow.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedFeature"u8); foreach (var item in iSuccessionFlow.relatedFeature) @@ -938,18 +878,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSuccessionFlow.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iSuccessionFlow.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceFeature"u8); if (iSuccessionFlow.sourceFeature.HasValue) @@ -978,18 +906,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iSuccessionFlow.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetFeature"u8); foreach (var item in iSuccessionFlow.targetFeature) @@ -1028,18 +944,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iSuccessionFlow.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iSuccessionFlow.unioningType) @@ -1182,30 +1086,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISuccessionFlow iSuc writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iSuccessionFlow.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iSuccessionFlow.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowUsageSerializer.cs index c8a5a2c15..863b631df 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowUsageSerializer.cs @@ -90,18 +90,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iSuccessionFlowUsage, Utf8JsonWriter writer) { - writer.WriteStartArray("actionDefinition"u8); - - foreach (var item in iSuccessionFlowUsage.actionDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("aliasIds"u8); foreach (var item in iSuccessionFlowUsage.AliasIds) @@ -111,30 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteEndArray(); - writer.WriteStartArray("association"u8); - - foreach (var item in iSuccessionFlowUsage.association) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("behavior"u8); - - foreach (var item in iSuccessionFlowUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iSuccessionFlowUsage.chainingFeature) @@ -193,18 +157,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteNullValue(); } - writer.WriteStartArray("definition"u8); - - foreach (var item in iSuccessionFlowUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iSuccessionFlowUsage.differencingType) @@ -217,18 +169,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iSuccessionFlowUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iSuccessionFlowUsage.directedUsage) @@ -267,18 +207,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSuccessionFlowUsage.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iSuccessionFlowUsage.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("endOwningType"u8); if (iSuccessionFlowUsage.endOwningType.HasValue) @@ -421,18 +349,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteEndArray(); - writer.WriteStartArray("interaction"u8); - - foreach (var item in iSuccessionFlowUsage.interaction) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("intersectingType"u8); foreach (var item in iSuccessionFlowUsage.intersectingType) @@ -490,9 +406,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSuccessionFlowUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iSuccessionFlowUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSuccessionFlowUsage.IsVariation); @@ -864,18 +777,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iSuccessionFlowUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iSuccessionFlowUsage.output) @@ -1360,18 +1261,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSuccessionFlowUsage.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iSuccessionFlowUsage.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedFeature"u8); foreach (var item in iSuccessionFlowUsage.relatedFeature) @@ -1387,18 +1276,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSuccessionFlowUsage.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iSuccessionFlowUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceFeature"u8); if (iSuccessionFlowUsage.sourceFeature.HasValue) @@ -1427,18 +1304,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iSuccessionFlowUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetFeature"u8); foreach (var item in iSuccessionFlowUsage.targetFeature) @@ -1477,18 +1342,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iSuccessionFlowUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iSuccessionFlowUsage.unioningType) @@ -1615,9 +1468,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISuccessionFlowUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSuccessionFlowUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iSuccessionFlowUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSuccessionFlowUsage.IsVariation); @@ -1684,30 +1534,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISuccessionFlowUsage writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iSuccessionFlowUsage.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iSuccessionFlowUsage.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionSerializer.cs index bcabcd1d6..0feb7953b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionSerializer.cs @@ -219,18 +219,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccession iSuccession writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSuccession.ElementId); - writer.WriteStartArray("endFeature"u8); - - foreach (var item in iSuccession.endFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("endOwningType"u8); if (iSuccession.endOwningType.HasValue) @@ -837,18 +825,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccession iSuccession writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSuccession.qualifiedName); - writer.WriteStartArray("relatedElement"u8); - - foreach (var item in iSuccession.relatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("relatedFeature"u8); foreach (var item in iSuccession.relatedFeature) @@ -864,18 +840,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccession iSuccession writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSuccession.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iSuccession.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("sourceFeature"u8); if (iSuccession.sourceFeature.HasValue) @@ -890,18 +854,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccession iSuccession writer.WriteNullValue(); } - writer.WriteStartArray("target"u8); - - foreach (var item in iSuccession.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("targetFeature"u8); foreach (var item in iSuccession.targetFeature) @@ -926,18 +878,6 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccession iSuccession writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iSuccession.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iSuccession.unioningType) @@ -1080,30 +1020,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISuccession iSuccess writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iSuccession.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iSuccession.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TerminateActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TerminateActionUsageSerializer.cs index 40bfa6ea9..81ef1975d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TerminateActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TerminateActionUsageSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITerminateActionUsage i writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iTerminateActionUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iTerminateActionUsage.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITerminateActionUsage i writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iTerminateActionUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iTerminateActionUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iTerminateActionUsage.differencingType) @@ -179,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITerminateActionUsage i writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iTerminateActionUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iTerminateActionUsage.directedUsage) @@ -413,9 +377,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITerminateActionUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iTerminateActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iTerminateActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iTerminateActionUsage.IsVariation); @@ -787,18 +748,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITerminateActionUsage i writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iTerminateActionUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iTerminateActionUsage.output) @@ -1260,18 +1209,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITerminateActionUsage i writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iTerminateActionUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iTerminateActionUsage.unioningType) @@ -1395,9 +1332,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ITerminateActionUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iTerminateActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iTerminateActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iTerminateActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TextualRepresentationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TextualRepresentationSerializer.cs index b91f87283..4ace894eb 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TextualRepresentationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TextualRepresentationSerializer.cs @@ -99,18 +99,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITextualRepresentation writer.WriteEndArray(); - writer.WriteStartArray("annotatedElement"u8); - - foreach (var item in iTextualRepresentation.annotatedElement) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("annotation"u8); foreach (var item in iTextualRepresentation.annotation) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionFeatureMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionFeatureMembershipSerializer.cs index ab97c610a..2ddfdc7e2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionFeatureMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionFeatureMembershipSerializer.cs @@ -132,27 +132,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionFeatureMembe writer.WritePropertyName("kind"u8); writer.WriteStringValue(iTransitionFeatureMembership.Kind.ToString().ToLower()); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iTransitionFeatureMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iTransitionFeatureMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iTransitionFeatureMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iTransitionFeatureMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iTransitionFeatureMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iTransitionFeatureMembership.name); @@ -180,21 +159,9 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionFeatureMembe writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iTransitionFeatureMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iTransitionFeatureMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iTransitionFeatureMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iTransitionFeatureMembership.ownedMemberName); @@ -319,30 +286,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionFeatureMembe writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iTransitionFeatureMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iTransitionFeatureMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iTransitionFeatureMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iTransitionFeatureMembership.textualRepresentation) @@ -404,18 +347,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ITransitionFeatureMe writer.WritePropertyName("kind"u8); writer.WriteStringValue(iTransitionFeatureMembership.Kind.ToString().ToLower()); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iTransitionFeatureMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iTransitionFeatureMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iTransitionFeatureMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iTransitionFeatureMembership.OwnedRelatedElement) @@ -468,30 +399,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ITransitionFeatureMe writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iTransitionFeatureMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iTransitionFeatureMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iTransitionFeatureMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionUsageSerializer.cs index b6f4d8bf3..ab61ac939 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionUsageSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionUsage iTrans writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iTransitionUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iTransitionUsage.chainingFeature) @@ -155,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionUsage iTrans writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iTransitionUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iTransitionUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iTransitionUsage.differencingType) @@ -179,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionUsage iTrans writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iTransitionUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iTransitionUsage.directedUsage) @@ -437,9 +401,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionUsage iTrans writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iTransitionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iTransitionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iTransitionUsage.IsVariation); @@ -811,18 +772,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionUsage iTrans writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iTransitionUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iTransitionUsage.output) @@ -1300,18 +1249,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionUsage iTrans writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iTransitionUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iTransitionUsage.unioningType) @@ -1435,9 +1372,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ITransitionUsage iTr writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iTransitionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iTransitionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iTransitionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TriggerInvocationExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TriggerInvocationExpressionSerializer.cs index 18a8ee81f..6fbdef8da 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TriggerInvocationExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TriggerInvocationExpressionSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITriggerInvocationExpre writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iTriggerInvocationExpression.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iTriggerInvocationExpression.chainingFeature) @@ -167,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITriggerInvocationExpre writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iTriggerInvocationExpression.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("direction"u8); if (iTriggerInvocationExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeFeaturingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeFeaturingSerializer.cs index ce6e1ed2a..f3ea460b8 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeFeaturingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeFeaturingSerializer.cs @@ -294,30 +294,6 @@ private static void SerializeAsJsonWithDerivedProperties(ITypeFeaturing iTypeFea writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iTypeFeaturing.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iTypeFeaturing.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iTypeFeaturing.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iTypeFeaturing.textualRepresentation) @@ -431,30 +407,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(ITypeFeaturing iType writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iTypeFeaturing.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iTypeFeaturing.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UnioningSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UnioningSerializer.cs index fe29b36e6..2df7426e5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UnioningSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UnioningSerializer.cs @@ -268,30 +268,6 @@ private static void SerializeAsJsonWithDerivedProperties(IUnioning iUnioning, Ut writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iUnioning.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iUnioning.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iUnioning.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iUnioning.textualRepresentation) @@ -405,30 +381,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IUnioning iUnioning, writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iUnioning.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iUnioning.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("unioningType"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UsageSerializer.cs index 8fc211dbf..5be79da85 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UsageSerializer.cs @@ -372,9 +372,6 @@ private static void SerializeAsJsonWithDerivedProperties(IUsage iUsage, Utf8Json writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUsage.IsVariation); @@ -1170,18 +1167,6 @@ private static void SerializeAsJsonWithDerivedProperties(IUsage iUsage, Utf8Json writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iUsage.unioningType) @@ -1302,9 +1287,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IUsage iUsage, Utf8J writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseDefinitionSerializer.cs index 19ee6a0bc..a3954c49a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseDefinitionSerializer.cs @@ -153,18 +153,6 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseDefinition iUse writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iUseCaseDefinition.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iUseCaseDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseUsageSerializer.cs index 8849f1134..71f0672a9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseUsageSerializer.cs @@ -90,18 +90,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseUsage, Utf8JsonWriter writer) { - writer.WriteStartArray("actionDefinition"u8); - - foreach (var item in iUseCaseUsage.actionDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("actorParameter"u8); foreach (var item in iUseCaseUsage.actorParameter) @@ -123,46 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iUseCaseUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("calculationDefinition"u8); - - if (iUseCaseUsage.calculationDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iUseCaseUsage.calculationDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - - writer.WritePropertyName("caseDefinition"u8); - - if (iUseCaseUsage.caseDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iUseCaseUsage.caseDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iUseCaseUsage.chainingFeature) @@ -195,18 +143,6 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iUseCaseUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iUseCaseUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iUseCaseUsage.differencingType) @@ -219,18 +155,6 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iUseCaseUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iUseCaseUsage.directedUsage) @@ -337,20 +261,6 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iUseCaseUsage.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iUseCaseUsage.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iUseCaseUsage.importedMembership) @@ -482,9 +392,6 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iUseCaseUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iUseCaseUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUseCaseUsage.IsVariation); @@ -870,18 +777,6 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WriteNullValue(); } - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iUseCaseUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iUseCaseUsage.output) @@ -1341,18 +1236,6 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iUseCaseUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iUseCaseUsage.unioningType) @@ -1490,9 +1373,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IUseCaseUsage iUseCa writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iUseCaseUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iUseCaseUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUseCaseUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VariantMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VariantMembershipSerializer.cs index abc69a919..3c37fba79 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VariantMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VariantMembershipSerializer.cs @@ -129,27 +129,12 @@ private static void SerializeAsJsonWithDerivedProperties(IVariantMembership iVar writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iVariantMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iVariantMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iVariantMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iVariantMembership.MemberName); - writer.WritePropertyName("membershipOwningNamespace"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iVariantMembership.membershipOwningNamespace); writer.WriteEndObject(); - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iVariantMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iVariantMembership.name); @@ -177,12 +162,6 @@ private static void SerializeAsJsonWithDerivedProperties(IVariantMembership iVar writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iVariantMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iVariantMembership.ownedMemberElementId); @@ -310,30 +289,6 @@ private static void SerializeAsJsonWithDerivedProperties(IVariantMembership iVar writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iVariantMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iVariantMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iVariantMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iVariantMembership.textualRepresentation) @@ -386,18 +341,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IVariantMembership i writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iVariantMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iVariantMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iVariantMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iVariantMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iVariantMembership.OwnedRelatedElement) @@ -450,30 +393,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IVariantMembership i writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iVariantMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iVariantMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iVariantMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseDefinitionSerializer.cs index d82e55a7b..1ff8f0adf 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseDefinitionSerializer.cs @@ -153,18 +153,6 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseDefini writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iVerificationCaseDefinition.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iVerificationCaseDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseUsageSerializer.cs index 566e060f2..332c4f985 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseUsageSerializer.cs @@ -90,18 +90,6 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage iVerificationCaseUsage, Utf8JsonWriter writer) { - writer.WriteStartArray("actionDefinition"u8); - - foreach (var item in iVerificationCaseUsage.actionDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("actorParameter"u8); foreach (var item in iVerificationCaseUsage.actorParameter) @@ -123,32 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iVerificationCaseUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WritePropertyName("calculationDefinition"u8); - - if (iVerificationCaseUsage.calculationDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iVerificationCaseUsage.calculationDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("caseDefinition"u8); if (iVerificationCaseUsage.caseDefinition.HasValue) @@ -195,18 +157,6 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iVerificationCaseUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iVerificationCaseUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iVerificationCaseUsage.differencingType) @@ -219,18 +169,6 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iVerificationCaseUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iVerificationCaseUsage.directedUsage) @@ -337,20 +275,6 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iVerificationCaseUsage.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iVerificationCaseUsage.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iVerificationCaseUsage.importedMembership) @@ -470,9 +394,6 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iVerificationCaseUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iVerificationCaseUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iVerificationCaseUsage.IsVariation); @@ -858,18 +779,6 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WriteNullValue(); } - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iVerificationCaseUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iVerificationCaseUsage.output) @@ -1329,18 +1238,6 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iVerificationCaseUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iVerificationCaseUsage.unioningType) @@ -1490,9 +1387,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IVerificationCaseUsa writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iVerificationCaseUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iVerificationCaseUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iVerificationCaseUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewRenderingMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewRenderingMembershipSerializer.cs index a3d446a43..9afc1354f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewRenderingMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewRenderingMembershipSerializer.cs @@ -129,27 +129,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewRenderingMembershi writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iViewRenderingMembership.isLibraryElement); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iViewRenderingMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberElementId"u8); - writer.WriteStringValue(iViewRenderingMembership.memberElementId); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iViewRenderingMembership.MemberName); - - writer.WritePropertyName("membershipOwningNamespace"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iViewRenderingMembership.membershipOwningNamespace); - writer.WriteEndObject(); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iViewRenderingMembership.MemberShortName); - writer.WritePropertyName("name"u8); writer.WriteStringValue(iViewRenderingMembership.name); @@ -177,21 +156,9 @@ private static void SerializeAsJsonWithDerivedProperties(IViewRenderingMembershi writer.WriteEndArray(); - writer.WritePropertyName("ownedMemberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iViewRenderingMembership.ownedMemberElement); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iViewRenderingMembership.ownedMemberElementId); - writer.WritePropertyName("ownedMemberFeature"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iViewRenderingMembership.ownedMemberFeature); - writer.WriteEndObject(); - writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iViewRenderingMembership.ownedMemberName); @@ -328,30 +295,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewRenderingMembershi writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iViewRenderingMembership.shortName); - writer.WriteStartArray("source"u8); - - foreach (var item in iViewRenderingMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iViewRenderingMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iViewRenderingMembership.textualRepresentation) @@ -404,18 +347,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IViewRenderingMember writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iViewRenderingMembership.IsImpliedIncluded); - writer.WritePropertyName("memberElement"u8); - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iViewRenderingMembership.MemberElement); - writer.WriteEndObject(); - - writer.WritePropertyName("memberName"u8); - writer.WriteStringValue(iViewRenderingMembership.MemberName); - - writer.WritePropertyName("memberShortName"u8); - writer.WriteStringValue(iViewRenderingMembership.MemberShortName); - writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iViewRenderingMembership.OwnedRelatedElement) @@ -468,30 +399,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IViewRenderingMember writer.WriteNullValue(); } - writer.WriteStartArray("source"u8); - - foreach (var item in iViewRenderingMembership.Source) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - - writer.WriteStartArray("target"u8); - - foreach (var item in iViewRenderingMembership.Target) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iViewRenderingMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewUsageSerializer.cs index a561a7bb3..d8111a81d 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewUsageSerializer.cs @@ -131,18 +131,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewUsage iViewUsage, writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iViewUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iViewUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iViewUsage.differencingType) @@ -401,9 +389,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewUsage iViewUsage, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iViewUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iViewUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iViewUsage.IsVariation); @@ -1205,18 +1190,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewUsage iViewUsage, writer.WriteNullValue(); } - writer.WriteStartArray("partDefinition"u8); - - foreach (var item in iViewUsage.partDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("portionKind"u8); if (iViewUsage.PortionKind.HasValue) @@ -1258,18 +1231,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewUsage iViewUsage, writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iViewUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iViewUsage.unioningType) @@ -1433,9 +1394,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IViewUsage iViewUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iViewUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iViewUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iViewUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointDefinitionSerializer.cs index d5d617e02..05a16d5d0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointDefinitionSerializer.cs @@ -126,9 +126,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointDefinition iV writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iViewpointDefinition.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iViewpointDefinition.DeclaredShortName); - writer.WriteStartArray("differencingType"u8); foreach (var item in iViewpointDefinition.differencingType) @@ -141,18 +138,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointDefinition iV writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iViewpointDefinition.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iViewpointDefinition.directedUsage) @@ -1126,9 +1111,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IViewpointDefinition writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iViewpointDefinition.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iViewpointDefinition.DeclaredShortName); - writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iViewpointDefinition.ElementId); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointUsageSerializer.cs index f2b23fb3a..745254e3e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointUsageSerializer.cs @@ -123,18 +123,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iViewpointUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("chainingFeature"u8); foreach (var item in iViewpointUsage.chainingFeature) @@ -147,20 +135,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteEndArray(); - writer.WritePropertyName("constraintDefinition"u8); - - if (iViewpointUsage.constraintDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iViewpointUsage.constraintDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("crossFeature"u8); if (iViewpointUsage.crossFeature.HasValue) @@ -178,21 +152,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iViewpointUsage.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iViewpointUsage.DeclaredShortName); - - writer.WriteStartArray("definition"u8); - - foreach (var item in iViewpointUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iViewpointUsage.differencingType) @@ -205,18 +164,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iViewpointUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iViewpointUsage.directedUsage) @@ -335,20 +282,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteEndArray(); - writer.WritePropertyName("function"u8); - - if (iViewpointUsage.function.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iViewpointUsage.function.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WriteStartArray("importedMembership"u8); foreach (var item in iViewpointUsage.importedMembership) @@ -468,9 +401,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iViewpointUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iViewpointUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iViewpointUsage.IsVariation); @@ -1283,20 +1213,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteNullValue(); } - writer.WritePropertyName("predicate"u8); - - if (iViewpointUsage.predicate.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iViewpointUsage.predicate.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iViewpointUsage.qualifiedName); @@ -1315,20 +1231,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteEndArray(); - writer.WritePropertyName("requirementDefinition"u8); - - if (iViewpointUsage.requirementDefinition.HasValue) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(iViewpointUsage.requirementDefinition.Value); - writer.WriteEndObject(); - } - else - { - writer.WriteNullValue(); - } - writer.WritePropertyName("result"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -1377,18 +1279,6 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iViewpointUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iViewpointUsage.unioningType) @@ -1488,9 +1378,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IViewpointUsage iVie writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iViewpointUsage.DeclaredName); - writer.WritePropertyName("declaredShortName"u8); - writer.WriteStringValue(iViewpointUsage.DeclaredShortName); - writer.WritePropertyName("direction"u8); if (iViewpointUsage.Direction.HasValue) @@ -1538,9 +1425,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IViewpointUsage iVie writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iViewpointUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iViewpointUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iViewpointUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/WhileLoopActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/WhileLoopActionUsageSerializer.cs index 2978bff40..3d30a8d18 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/WhileLoopActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/WhileLoopActionUsageSerializer.cs @@ -111,18 +111,6 @@ private static void SerializeAsJsonWithDerivedProperties(IWhileLoopActionUsage i writer.WriteEndArray(); - writer.WriteStartArray("behavior"u8); - - foreach (var item in iWhileLoopActionUsage.behavior) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WritePropertyName("bodyAction"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -161,18 +149,6 @@ private static void SerializeAsJsonWithDerivedProperties(IWhileLoopActionUsage i writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iWhileLoopActionUsage.DeclaredShortName); - writer.WriteStartArray("definition"u8); - - foreach (var item in iWhileLoopActionUsage.definition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("differencingType"u8); foreach (var item in iWhileLoopActionUsage.differencingType) @@ -185,18 +161,6 @@ private static void SerializeAsJsonWithDerivedProperties(IWhileLoopActionUsage i writer.WriteEndArray(); - writer.WriteStartArray("directedFeature"u8); - - foreach (var item in iWhileLoopActionUsage.directedFeature) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("directedUsage"u8); foreach (var item in iWhileLoopActionUsage.directedUsage) @@ -419,9 +383,6 @@ private static void SerializeAsJsonWithDerivedProperties(IWhileLoopActionUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iWhileLoopActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iWhileLoopActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iWhileLoopActionUsage.IsVariation); @@ -793,18 +754,6 @@ private static void SerializeAsJsonWithDerivedProperties(IWhileLoopActionUsage i writer.WriteEndArray(); - writer.WriteStartArray("occurrenceDefinition"u8); - - foreach (var item in iWhileLoopActionUsage.occurrenceDefinition) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("output"u8); foreach (var item in iWhileLoopActionUsage.output) @@ -1252,18 +1201,6 @@ private static void SerializeAsJsonWithDerivedProperties(IWhileLoopActionUsage i writer.WriteEndArray(); - writer.WriteStartArray("type"u8); - - foreach (var item in iWhileLoopActionUsage.type) - { - writer.WriteStartObject(); - writer.WritePropertyName("@id"u8); - writer.WriteStringValue(item); - writer.WriteEndObject(); - } - - writer.WriteEndArray(); - writer.WriteStartArray("unioningType"u8); foreach (var item in iWhileLoopActionUsage.unioningType) @@ -1407,9 +1344,6 @@ private static void SerializeAsJsonWithoutDerivedProperties(IWhileLoopActionUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iWhileLoopActionUsage.IsUnique); - writer.WritePropertyName("isVariable"u8); - writer.WriteBooleanValue(iWhileLoopActionUsage.IsVariable); - writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iWhileLoopActionUsage.IsVariation); diff --git a/SysML2.NET/Core/AutoGenDto/AcceptActionUsage.cs b/SysML2.NET/Core/AutoGenDto/AcceptActionUsage.cs index 24c545403..764185489 100644 --- a/SysML2.NET/Core/AutoGenDto/AcceptActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AcceptActionUsage.cs @@ -75,7 +75,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -125,7 +125,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -147,7 +147,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -416,7 +416,11 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -703,7 +707,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1082,7 +1086,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ActionDefinition.cs b/SysML2.NET/Core/AutoGenDto/ActionDefinition.cs index 1912add73..2c3520ac5 100644 --- a/SysML2.NET/Core/AutoGenDto/ActionDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ActionDefinition.cs @@ -101,7 +101,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/ActionUsage.cs b/SysML2.NET/Core/AutoGenDto/ActionUsage.cs index c5c92f6c8..844262be6 100644 --- a/SysML2.NET/Core/AutoGenDto/ActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ActionUsage.cs @@ -76,7 +76,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -126,7 +126,7 @@ public partial class ActionUsage : IActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -148,7 +148,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -417,7 +417,11 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -704,7 +708,7 @@ public partial class ActionUsage : IActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1058,7 +1062,7 @@ public partial class ActionUsage : IActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ActorMembership.cs b/SysML2.NET/Core/AutoGenDto/ActorMembership.cs index 0e61a0cde..9cf0359c6 100644 --- a/SysML2.NET/Core/AutoGenDto/ActorMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ActorMembership.cs @@ -122,7 +122,11 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -130,7 +134,7 @@ public partial class ActorMembership : IActorMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -138,7 +142,11 @@ public partial class ActorMembership : IActorMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -149,7 +157,7 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -157,7 +165,11 @@ public partial class ActorMembership : IActorMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -204,7 +216,7 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -222,7 +234,7 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => ((SysML2.NET.Core.DTO.Kernel.Behaviors.IParameterMembership)this).ownedMemberParameter; /// /// The name of the ownedMemberElement. @@ -239,7 +251,7 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IActorMembership.OwnedActorParameter")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public Guid ownedMemberParameter { get; internal set; } + Guid Kernel.Behaviors.IParameterMembership.ownedMemberParameter => this.ownedActorParameter; /// /// The shortName of the ownedMemberElement. @@ -353,7 +365,11 @@ public partial class ActorMembership : IActorMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -362,7 +378,18 @@ public partial class ActorMembership : IActorMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/AllocationDefinition.cs b/SysML2.NET/Core/AutoGenDto/AllocationDefinition.cs index a8dbec302..8a3a66af7 100644 --- a/SysML2.NET/Core/AutoGenDto/AllocationDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/AllocationDefinition.cs @@ -74,7 +74,7 @@ public partial class AllocationDefinition : IAllocationDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List associationEnd { get; internal set; } = []; + List Kernel.Associations.IAssociation.associationEnd => this.connectionEnd; /// /// The Usages that define the things related by the ConnectionDefinition. @@ -155,7 +155,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => ((SysML2.NET.Core.DTO.Kernel.Associations.IAssociation)this).associationEnd; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -287,7 +287,14 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_b9102da_1564072709069_937523_30797", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IConnectionDefinition.IsSufficient")] [Implements(implementation: "IType.IsSufficient")] - bool Core.Types.IType.IsSufficient { get; set; } + bool Core.Types.IType.IsSufficient + { + get => this.IsSufficient; + set + { + this.IsSufficient = value; + } + } /// /// Whether this Definition is for a variation point or not. If true, then all the memberships of the @@ -778,7 +785,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedType; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -806,7 +813,11 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType.HasValue ? [this.sourceType.Value] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -824,7 +835,11 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetType; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenDto/AllocationUsage.cs b/SysML2.NET/Core/AutoGenDto/AllocationUsage.cs index d261026e8..07e184549 100644 --- a/SysML2.NET/Core/AutoGenDto/AllocationUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AllocationUsage.cs @@ -70,7 +70,7 @@ public partial class AllocationUsage : IAllocationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - public List association { get; internal set; } = []; + List Kernel.Connectors.IConnector.association => ((SysML2.NET.Core.DTO.Systems.Connections.IConnectionUsage)this).connectionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -94,7 +94,7 @@ public partial class AllocationUsage : IAllocationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedByProperty("IAllocationUsage.AllocationDefinition")] [Implements(implementation: "IConnectionUsage.ConnectionDefinition")] - public List connectionDefinition { get; internal set; } = []; + List Systems.Connections.IConnectionUsage.connectionDefinition => this.allocationDefinition; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -151,7 +151,7 @@ public partial class AllocationUsage : IAllocationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -215,7 +215,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.connectorEnd; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -450,7 +450,11 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1094,7 +1098,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedFeature; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1122,7 +1126,11 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature.HasValue ? [this.sourceFeature.Value] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1140,7 +1148,11 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetFeature; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1170,7 +1182,7 @@ public partial class AllocationUsage : IAllocationUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/AnalysisCaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/AnalysisCaseDefinition.cs index 6e4e9a548..9aab7bef6 100644 --- a/SysML2.NET/Core/AutoGenDto/AnalysisCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/AnalysisCaseDefinition.cs @@ -117,7 +117,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/AnalysisCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/AnalysisCaseUsage.cs index 971a4783a..17e67e5bc 100644 --- a/SysML2.NET/Core/AutoGenDto/AnalysisCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AnalysisCaseUsage.cs @@ -57,7 +57,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition { get; internal set; } = []; + List Systems.Actions.IActionUsage.actionDefinition => ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.HasValue ? [((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.Value] : []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -90,7 +90,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -102,7 +102,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public Guid? calculationDefinition { get; internal set; } + Guid? Systems.Calculations.ICalculationUsage.calculationDefinition => ((SysML2.NET.Core.DTO.Systems.Cases.ICaseUsage)this).caseDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Cases.ICaseUsage)this).caseDefinition.Value : Guid.Empty; /// /// The CaseDefinition that is the type of this CaseUsage. @@ -111,7 +111,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [RedefinedByProperty("IAnalysisCaseUsage.AnalysisCaseDefinition")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public Guid? caseDefinition { get; internal set; } + Guid? Systems.Cases.ICaseUsage.caseDefinition => this.analysisCaseDefinition.HasValue ? this.analysisCaseDefinition.Value : Guid.Empty; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -161,7 +161,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -183,7 +183,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -278,7 +278,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? Kernel.Functions.IExpression.function => ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -469,7 +469,11 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -764,7 +768,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1147,7 +1151,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Annotation.cs b/SysML2.NET/Core/AutoGenDto/Annotation.cs index 930d819e7..9fff5f956 100644 --- a/SysML2.NET/Core/AutoGenDto/Annotation.cs +++ b/SysML2.NET/Core/AutoGenDto/Annotation.cs @@ -280,7 +280,11 @@ public partial class Annotation : IAnnotation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAnnotation.AnnotatingElement")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.annotatingElement]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -289,7 +293,18 @@ public partial class Annotation : IAnnotation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAnnotation.AnnotatedElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.AnnotatedElement]; + set + { + if (value.Count != 0) + { + this.AnnotatedElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/AssertConstraintUsage.cs b/SysML2.NET/Core/AutoGenDto/AssertConstraintUsage.cs index 609c64600..a9f42e68a 100644 --- a/SysML2.NET/Core/AutoGenDto/AssertConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AssertConstraintUsage.cs @@ -72,7 +72,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -132,7 +132,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -154,7 +154,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -249,7 +249,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? Kernel.Functions.IExpression.function => ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.HasValue ? ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -447,7 +447,11 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1054,7 +1058,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? predicate { get; internal set; } + Guid? Kernel.Functions.IBooleanExpression.predicate => this.constraintDefinition.HasValue ? this.constraintDefinition.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1107,7 +1111,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/AssignmentActionUsage.cs b/SysML2.NET/Core/AutoGenDto/AssignmentActionUsage.cs index a34135849..924fcc24e 100644 --- a/SysML2.NET/Core/AutoGenDto/AssignmentActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AssignmentActionUsage.cs @@ -74,7 +74,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -124,7 +124,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -146,7 +146,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -415,7 +415,11 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -702,7 +706,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1073,7 +1077,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Association.cs b/SysML2.NET/Core/AutoGenDto/Association.cs index a273194cc..08a982042 100644 --- a/SysML2.NET/Core/AutoGenDto/Association.cs +++ b/SysML2.NET/Core/AutoGenDto/Association.cs @@ -127,7 +127,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.associationEnd; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -507,7 +507,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedType; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -535,7 +535,11 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType.HasValue ? [this.sourceType.Value] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -553,7 +557,11 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetType; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenDto/AssociationStructure.cs b/SysML2.NET/Core/AutoGenDto/AssociationStructure.cs index 16d925212..8702684e1 100644 --- a/SysML2.NET/Core/AutoGenDto/AssociationStructure.cs +++ b/SysML2.NET/Core/AutoGenDto/AssociationStructure.cs @@ -127,7 +127,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.associationEnd; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -507,7 +507,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedType; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -535,7 +535,11 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType.HasValue ? [this.sourceType.Value] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -553,7 +557,11 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetType; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenDto/AttributeUsage.cs b/SysML2.NET/Core/AutoGenDto/AttributeUsage.cs index 295f7a73a..02c83b9c4 100644 --- a/SysML2.NET/Core/AutoGenDto/AttributeUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AttributeUsage.cs @@ -116,7 +116,7 @@ public partial class AttributeUsage : IAttributeUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IAttributeUsage.AttributeDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.attributeDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -371,7 +371,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IAttributeUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.isReference { get; } + bool Systems.DefinitionAndUsage.IUsage.isReference => this.isReference; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -399,7 +399,11 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1011,7 +1015,7 @@ public partial class AttributeUsage : IAttributeUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Behavior.cs b/SysML2.NET/Core/AutoGenDto/Behavior.cs index 82db7598c..65d11f912 100644 --- a/SysML2.NET/Core/AutoGenDto/Behavior.cs +++ b/SysML2.NET/Core/AutoGenDto/Behavior.cs @@ -90,7 +90,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The Documentation owned by this Element. diff --git a/SysML2.NET/Core/AutoGenDto/BindingConnector.cs b/SysML2.NET/Core/AutoGenDto/BindingConnector.cs index d8a63e56c..7adc99e72 100644 --- a/SysML2.NET/Core/AutoGenDto/BindingConnector.cs +++ b/SysML2.NET/Core/AutoGenDto/BindingConnector.cs @@ -172,7 +172,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.connectorEnd; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -733,7 +733,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedFeature; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -761,7 +761,11 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature.HasValue ? [this.sourceFeature.Value] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -779,7 +783,11 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetFeature; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -809,7 +817,7 @@ public partial class BindingConnector : IBindingConnector [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => this.association; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/BindingConnectorAsUsage.cs b/SysML2.NET/Core/AutoGenDto/BindingConnectorAsUsage.cs index 924c84523..977b0ae53 100644 --- a/SysML2.NET/Core/AutoGenDto/BindingConnectorAsUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/BindingConnectorAsUsage.cs @@ -191,7 +191,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.connectorEnd; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -410,7 +410,11 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1017,7 +1021,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedFeature; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1045,7 +1049,11 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature.HasValue ? [this.sourceFeature.Value] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1063,7 +1071,11 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetFeature; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1093,7 +1105,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => this.association; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/BooleanExpression.cs b/SysML2.NET/Core/AutoGenDto/BooleanExpression.cs index 38cc56225..9a73a13e3 100644 --- a/SysML2.NET/Core/AutoGenDto/BooleanExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/BooleanExpression.cs @@ -60,7 +60,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,7 +121,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -207,7 +207,7 @@ public partial class BooleanExpression : IBooleanExpression [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? IExpression.function => this.predicate.HasValue ? this.predicate.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. diff --git a/SysML2.NET/Core/AutoGenDto/CalculationDefinition.cs b/SysML2.NET/Core/AutoGenDto/CalculationDefinition.cs index ece4682df..f6521667d 100644 --- a/SysML2.NET/Core/AutoGenDto/CalculationDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/CalculationDefinition.cs @@ -110,7 +110,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/CalculationUsage.cs b/SysML2.NET/Core/AutoGenDto/CalculationUsage.cs index 4a6fb4448..0993fed41 100644 --- a/SysML2.NET/Core/AutoGenDto/CalculationUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/CalculationUsage.cs @@ -61,7 +61,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition { get; internal set; } = []; + List Systems.Actions.IActionUsage.actionDefinition => this.calculationDefinition.HasValue ? [this.calculationDefinition.Value] : []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -77,7 +77,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -138,7 +138,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -160,7 +160,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -255,7 +255,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? Kernel.Functions.IExpression.function => this.calculationDefinition.HasValue ? this.calculationDefinition.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -446,7 +446,11 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -733,7 +737,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1098,7 +1102,7 @@ public partial class CalculationUsage : ICalculationUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/CaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/CaseDefinition.cs index ead008ce8..12469b108 100644 --- a/SysML2.NET/Core/AutoGenDto/CaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/CaseDefinition.cs @@ -119,7 +119,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/CaseUsage.cs b/SysML2.NET/Core/AutoGenDto/CaseUsage.cs index 7bfa16665..feb4e0e65 100644 --- a/SysML2.NET/Core/AutoGenDto/CaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/CaseUsage.cs @@ -57,7 +57,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition { get; internal set; } = []; + List Systems.Actions.IActionUsage.actionDefinition => ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.HasValue ? [((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.Value] : []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -82,7 +82,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -94,7 +94,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public Guid? calculationDefinition { get; internal set; } + Guid? Systems.Calculations.ICalculationUsage.calculationDefinition => this.caseDefinition.HasValue ? this.caseDefinition.Value : Guid.Empty; /// /// The CaseDefinition that is the type of this CaseUsage. @@ -152,7 +152,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -174,7 +174,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -269,7 +269,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? Kernel.Functions.IExpression.function => ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -460,7 +460,11 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -755,7 +759,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1129,7 +1133,7 @@ public partial class CaseUsage : ICaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/CollectExpression.cs b/SysML2.NET/Core/AutoGenDto/CollectExpression.cs index 37ca36a89..ed77c376e 100644 --- a/SysML2.NET/Core/AutoGenDto/CollectExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/CollectExpression.cs @@ -70,7 +70,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -131,7 +131,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -443,7 +443,14 @@ public partial class CollectExpression : ICollectExpression [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)] [RedefinedByProperty("ICollectExpression.Operator")] [Implements(implementation: "IOperatorExpression.Operator")] - string IOperatorExpression.Operator { get; set; } + string IOperatorExpression.Operator + { + get => this.Operator; + set + { + this.Operator = value; + } + } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. diff --git a/SysML2.NET/Core/AutoGenDto/ConcernDefinition.cs b/SysML2.NET/Core/AutoGenDto/ConcernDefinition.cs index b46f0d1c9..f7cf3be0a 100644 --- a/SysML2.NET/Core/AutoGenDto/ConcernDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ConcernDefinition.cs @@ -88,7 +88,14 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementDefinition.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -110,7 +117,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/ConcernUsage.cs b/SysML2.NET/Core/AutoGenDto/ConcernUsage.cs index aa602bb6f..7ea8d5613 100644 --- a/SysML2.NET/Core/AutoGenDto/ConcernUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ConcernUsage.cs @@ -82,7 +82,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -113,7 +113,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public Guid? constraintDefinition { get; internal set; } + Guid? Systems.Constraints.IConstraintUsage.constraintDefinition => ((SysML2.NET.Core.DTO.Systems.Requirements.IRequirementUsage)this).requirementDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Requirements.IRequirementUsage)this).requirementDefinition.Value : Guid.Empty; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -141,7 +141,14 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementUsage.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -152,7 +159,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -174,7 +181,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -278,7 +285,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? Kernel.Functions.IExpression.function => ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.HasValue ? ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -469,7 +476,11 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1076,7 +1087,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? predicate { get; internal set; } + Guid? Kernel.Functions.IBooleanExpression.predicate => ((SysML2.NET.Core.DTO.Systems.Constraints.IConstraintUsage)this).constraintDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Constraints.IConstraintUsage)this).constraintDefinition.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1117,7 +1128,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [RedefinedByProperty("IConcernUsage.ConcernDefinition")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public Guid? requirementDefinition { get; internal set; } + Guid? IRequirementUsage.requirementDefinition => this.concernDefinition.HasValue ? this.concernDefinition.Value : Guid.Empty; /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1184,7 +1195,7 @@ public partial class ConcernUsage : IConcernUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ConjugatedPortDefinition.cs b/SysML2.NET/Core/AutoGenDto/ConjugatedPortDefinition.cs index b49c7a795..8b57f4057 100644 --- a/SysML2.NET/Core/AutoGenDto/ConjugatedPortDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ConjugatedPortDefinition.cs @@ -387,7 +387,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [RedefinedByProperty("IConjugatedPortDefinition.OwnedPortConjugator")] [Implements(implementation: "IType.OwnedConjugator")] - public Guid? ownedConjugator { get; internal set; } + Guid? Core.Types.IType.ownedConjugator => this.ownedPortConjugator; /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -716,7 +716,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [RedefinedByProperty("IConjugatedPortDefinition.OriginalPortDefinition")] [Implements(implementation: "IElement.OwningNamespace")] - public Guid? owningNamespace { get; internal set; } + Guid? Root.Elements.IElement.owningNamespace => this.originalPortDefinition; /// /// The Relationship for which this Element is an ownedRelatedElement, if any. diff --git a/SysML2.NET/Core/AutoGenDto/ConjugatedPortTyping.cs b/SysML2.NET/Core/AutoGenDto/ConjugatedPortTyping.cs index 299490ee7..7b9448907 100644 --- a/SysML2.NET/Core/AutoGenDto/ConjugatedPortTyping.cs +++ b/SysML2.NET/Core/AutoGenDto/ConjugatedPortTyping.cs @@ -104,7 +104,14 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IFeatureTyping.Type")] [Implements(implementation: "ISpecialization.General")] - public Guid General { get; set; } + Guid Core.Types.ISpecialization.General + { + get => ((SysML2.NET.Core.DTO.Core.Features.IFeatureTyping)this).Type; + set + { + ((SysML2.NET.Core.DTO.Core.Features.IFeatureTyping)this).Type = value; + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -235,7 +242,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IFeatureTyping.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? owningType { get; internal set; } + Guid? Core.Types.ISpecialization.owningType => this.owningFeature.HasValue ? this.owningFeature.Value : Guid.Empty; /// /// The originalPortDefinition of the conjugatedPortDefinition of this ConjugatedPortTyping. @@ -281,7 +288,18 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific = value[0]; + } + + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -290,7 +308,14 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureTyping.TypedFeature")] [Implements(implementation: "ISpecialization.Specific")] - public Guid Specific { get; set; } + Guid Core.Types.ISpecialization.Specific + { + get => this.TypedFeature; + set + { + this.TypedFeature = value; + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -299,7 +324,18 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. @@ -317,7 +353,14 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_563969_43273")] [RedefinedByProperty("IConjugatedPortTyping.ConjugatedPortDefinition")] [Implements(implementation: "IFeatureTyping.Type")] - public Guid Type { get; set; } + Guid Core.Features.IFeatureTyping.Type + { + get => this.ConjugatedPortDefinition; + set + { + this.ConjugatedPortDefinition = value; + } + } /// /// The Feature that has a type determined by this FeatureTyping. diff --git a/SysML2.NET/Core/AutoGenDto/Conjugation.cs b/SysML2.NET/Core/AutoGenDto/Conjugation.cs index 49148cdd5..f2ea46895 100644 --- a/SysML2.NET/Core/AutoGenDto/Conjugation.cs +++ b/SysML2.NET/Core/AutoGenDto/Conjugation.cs @@ -267,7 +267,18 @@ public partial class Conjugation : IConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConjugation.ConjugatedType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.ConjugatedType]; + set + { + if (value.Count != 0) + { + this.ConjugatedType = value[0]; + } + + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -276,7 +287,18 @@ public partial class Conjugation : IConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConjugation.OriginalType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.OriginalType]; + set + { + if (value.Count != 0) + { + this.OriginalType = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/ConnectionDefinition.cs b/SysML2.NET/Core/AutoGenDto/ConnectionDefinition.cs index 82c7b6440..8d553e9fd 100644 --- a/SysML2.NET/Core/AutoGenDto/ConnectionDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ConnectionDefinition.cs @@ -63,7 +63,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List associationEnd { get; internal set; } = []; + List Kernel.Associations.IAssociation.associationEnd => this.connectionEnd; /// /// The Usages that define the things related by the ConnectionDefinition. @@ -144,7 +144,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => ((SysML2.NET.Core.DTO.Kernel.Associations.IAssociation)this).associationEnd; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -276,7 +276,14 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_b9102da_1564072709069_937523_30797", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IConnectionDefinition.IsSufficient")] [Implements(implementation: "IType.IsSufficient")] - bool Core.Types.IType.IsSufficient { get; set; } + bool Core.Types.IType.IsSufficient + { + get => this.IsSufficient; + set + { + this.IsSufficient = value; + } + } /// /// Whether this Definition is for a variation point or not. If true, then all the memberships of the @@ -767,7 +774,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedType; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -795,7 +802,11 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType.HasValue ? [this.sourceType.Value] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -813,7 +824,11 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetType; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs b/SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs index b3050938e..d5f35cbac 100644 --- a/SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs @@ -64,7 +64,7 @@ public partial class ConnectionUsage : IConnectionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - public List association { get; internal set; } = []; + List Kernel.Connectors.IConnector.association => this.connectionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -144,7 +144,7 @@ public partial class ConnectionUsage : IConnectionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -208,7 +208,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.connectorEnd; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -443,7 +443,11 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1087,7 +1091,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedFeature; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1115,7 +1119,11 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature.HasValue ? [this.sourceFeature.Value] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1133,7 +1141,11 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetFeature; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1163,7 +1175,7 @@ public partial class ConnectionUsage : IConnectionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Connector.cs b/SysML2.NET/Core/AutoGenDto/Connector.cs index 4d40fc855..0c07ff2ae 100644 --- a/SysML2.NET/Core/AutoGenDto/Connector.cs +++ b/SysML2.NET/Core/AutoGenDto/Connector.cs @@ -176,7 +176,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.connectorEnd; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -737,7 +737,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedFeature; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -765,7 +765,11 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature.HasValue ? [this.sourceFeature.Value] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -783,7 +787,11 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetFeature; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -813,7 +821,7 @@ public partial class Connector : IConnector [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => this.association; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ConstraintDefinition.cs b/SysML2.NET/Core/AutoGenDto/ConstraintDefinition.cs index e9ef3a7d0..d2ecbe989 100644 --- a/SysML2.NET/Core/AutoGenDto/ConstraintDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ConstraintDefinition.cs @@ -91,7 +91,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs b/SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs index 12a15b12b..bc641e888 100644 --- a/SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs @@ -65,7 +65,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -125,7 +125,7 @@ public partial class ConstraintUsage : IConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -147,7 +147,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -242,7 +242,7 @@ public partial class ConstraintUsage : IConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? Kernel.Functions.IExpression.function => ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.HasValue ? ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -433,7 +433,11 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1040,7 +1044,7 @@ public partial class ConstraintUsage : IConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? predicate { get; internal set; } + Guid? Kernel.Functions.IBooleanExpression.predicate => this.constraintDefinition.HasValue ? this.constraintDefinition.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1093,7 +1097,7 @@ public partial class ConstraintUsage : IConstraintUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ConstructorExpression.cs b/SysML2.NET/Core/AutoGenDto/ConstructorExpression.cs index b06ca0a4a..429b6ba9f 100644 --- a/SysML2.NET/Core/AutoGenDto/ConstructorExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/ConstructorExpression.cs @@ -71,7 +71,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -132,7 +132,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/CrossSubsetting.cs b/SysML2.NET/Core/AutoGenDto/CrossSubsetting.cs index f715c6659..744827bdc 100644 --- a/SysML2.NET/Core/AutoGenDto/CrossSubsetting.cs +++ b/SysML2.NET/Core/AutoGenDto/CrossSubsetting.cs @@ -122,7 +122,14 @@ public partial class CrossSubsetting : ICrossSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubsetting.SubsettedFeature")] [Implements(implementation: "ISpecialization.General")] - public Guid General { get; set; } + Guid Core.Types.ISpecialization.General + { + get => ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettedFeature; + set + { + ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettedFeature = value; + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -210,7 +217,7 @@ public partial class CrossSubsetting : ICrossSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [RedefinedByProperty("ICrossSubsetting.CrossingFeature")] [Implements(implementation: "ISubsetting.OwningFeature")] - public Guid? owningFeature { get; internal set; } + Guid? ISubsetting.owningFeature => this.crossingFeature; /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -254,7 +261,7 @@ public partial class CrossSubsetting : ICrossSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? owningType { get; internal set; } + Guid? Core.Types.ISpecialization.owningType => ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).owningFeature.HasValue ? ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).owningFeature.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -293,7 +300,18 @@ public partial class CrossSubsetting : ICrossSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific = value[0]; + } + + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -302,7 +320,14 @@ public partial class CrossSubsetting : ICrossSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubsetting.SubsettingFeature")] [Implements(implementation: "ISpecialization.Specific")] - public Guid Specific { get; set; } + Guid Core.Types.ISpecialization.Specific + { + get => ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettingFeature; + set + { + ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettingFeature = value; + } + } /// /// The Feature that is subsetted by the subsettingFeature of this Subsetting. @@ -311,7 +336,14 @@ public partial class CrossSubsetting : ICrossSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_563969_43273")] [RedefinedByProperty("ICrossSubsetting.CrossedFeature")] [Implements(implementation: "ISubsetting.SubsettedFeature")] - public Guid SubsettedFeature { get; set; } + Guid ISubsetting.SubsettedFeature + { + get => this.CrossedFeature; + set + { + this.CrossedFeature = value; + } + } /// /// The Feature that is a subset of the subsettedFeature of this Subsetting. @@ -320,7 +352,11 @@ public partial class CrossSubsetting : ICrossSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ICrossSubsetting.CrossingFeature")] [Implements(implementation: "ISubsetting.SubsettingFeature")] - public Guid SubsettingFeature { get; set; } + Guid ISubsetting.SubsettingFeature + { + get => this.crossingFeature; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -329,7 +365,18 @@ public partial class CrossSubsetting : ICrossSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/DecisionNode.cs b/SysML2.NET/Core/AutoGenDto/DecisionNode.cs index c92bf2916..747258564 100644 --- a/SysML2.NET/Core/AutoGenDto/DecisionNode.cs +++ b/SysML2.NET/Core/AutoGenDto/DecisionNode.cs @@ -71,7 +71,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,7 +121,7 @@ public partial class DecisionNode : IDecisionNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -143,7 +143,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -412,7 +412,11 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -699,7 +703,7 @@ public partial class DecisionNode : IDecisionNode [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1053,7 +1057,7 @@ public partial class DecisionNode : IDecisionNode [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Dependency.cs b/SysML2.NET/Core/AutoGenDto/Dependency.cs index 0db729ab8..7f971d53b 100644 --- a/SysML2.NET/Core/AutoGenDto/Dependency.cs +++ b/SysML2.NET/Core/AutoGenDto/Dependency.cs @@ -246,7 +246,14 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDependency.Client")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.Client; + set + { + this.Client = value; + } + } /// /// The Element or Elements on which the client Elements depend in some respect. @@ -263,7 +270,14 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDependency.Supplier")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.Supplier; + set + { + this.Supplier = value; + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/Differencing.cs b/SysML2.NET/Core/AutoGenDto/Differencing.cs index 1af90a92b..b9cf07760 100644 --- a/SysML2.NET/Core/AutoGenDto/Differencing.cs +++ b/SysML2.NET/Core/AutoGenDto/Differencing.cs @@ -245,7 +245,11 @@ public partial class Differencing : IDifferencing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDifferencing.TypeDifferenced")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.typeDifferenced]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -254,7 +258,18 @@ public partial class Differencing : IDifferencing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDifferencing.DifferencingType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.DifferencingType]; + set + { + if (value.Count != 0) + { + this.DifferencingType = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/Disjoining.cs b/SysML2.NET/Core/AutoGenDto/Disjoining.cs index 012527f58..b693cdfd1 100644 --- a/SysML2.NET/Core/AutoGenDto/Disjoining.cs +++ b/SysML2.NET/Core/AutoGenDto/Disjoining.cs @@ -255,7 +255,18 @@ public partial class Disjoining : IDisjoining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDisjoining.TypeDisjoined")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.TypeDisjoined]; + set + { + if (value.Count != 0) + { + this.TypeDisjoined = value[0]; + } + + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -264,7 +275,18 @@ public partial class Disjoining : IDisjoining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDisjoining.DisjoiningType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.DisjoiningType]; + set + { + if (value.Count != 0) + { + this.DisjoiningType = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/Documentation.cs b/SysML2.NET/Core/AutoGenDto/Documentation.cs index c003f4b8b..677ca6a6f 100644 --- a/SysML2.NET/Core/AutoGenDto/Documentation.cs +++ b/SysML2.NET/Core/AutoGenDto/Documentation.cs @@ -59,7 +59,7 @@ public partial class Documentation : IDocumentation [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IDocumentation.DocumentedElement")] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List annotatedElement { get; internal set; } = []; + List IAnnotatingElement.annotatedElement => [this.documentedElement]; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the diff --git a/SysML2.NET/Core/AutoGenDto/ElementFilterMembership.cs b/SysML2.NET/Core/AutoGenDto/ElementFilterMembership.cs index 85a5e65e9..b75e4222d 100644 --- a/SysML2.NET/Core/AutoGenDto/ElementFilterMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ElementFilterMembership.cs @@ -132,7 +132,11 @@ public partial class ElementFilterMembership : IElementFilterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -140,7 +144,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -148,7 +152,11 @@ public partial class ElementFilterMembership : IElementFilterMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -166,7 +174,11 @@ public partial class ElementFilterMembership : IElementFilterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -205,7 +217,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IElementFilterMembership.Condition")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => this.condition; /// /// The elementId of the ownedMemberElement. @@ -326,7 +338,11 @@ public partial class ElementFilterMembership : IElementFilterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -335,7 +351,18 @@ public partial class ElementFilterMembership : IElementFilterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/EndFeatureMembership.cs b/SysML2.NET/Core/AutoGenDto/EndFeatureMembership.cs index 9c28351b7..ba16deb07 100644 --- a/SysML2.NET/Core/AutoGenDto/EndFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/EndFeatureMembership.cs @@ -121,7 +121,11 @@ public partial class EndFeatureMembership : IEndFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -129,7 +133,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -137,7 +141,11 @@ public partial class EndFeatureMembership : IEndFeatureMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -148,7 +156,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -156,7 +164,11 @@ public partial class EndFeatureMembership : IEndFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -195,7 +207,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -220,7 +232,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IEndFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - Guid Core.Types.IFeatureMembership.ownedMemberFeature { get; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedMemberFeature; /// /// The name of the ownedMemberElement. @@ -342,7 +354,11 @@ public partial class EndFeatureMembership : IEndFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -351,7 +367,18 @@ public partial class EndFeatureMembership : IEndFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/EnumerationDefinition.cs b/SysML2.NET/Core/AutoGenDto/EnumerationDefinition.cs index c702c31c6..8de6689fe 100644 --- a/SysML2.NET/Core/AutoGenDto/EnumerationDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/EnumerationDefinition.cs @@ -259,7 +259,14 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1590978283180_265362_419", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEnumerationDefinition.IsVariation")] [Implements(implementation: "IDefinition.IsVariation")] - bool Systems.DefinitionAndUsage.IDefinition.IsVariation { get; set; } + bool Systems.DefinitionAndUsage.IDefinition.IsVariation + { + get => this.IsVariation; + set + { + this.IsVariation = value; + } + } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -765,7 +772,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [RedefinedByProperty("IEnumerationDefinition.EnumeratedValue")] [Implements(implementation: "IDefinition.Variant")] - public List variant { get; internal set; } = []; + List Systems.DefinitionAndUsage.IDefinition.variant => this.enumeratedValue; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then diff --git a/SysML2.NET/Core/AutoGenDto/EnumerationUsage.cs b/SysML2.NET/Core/AutoGenDto/EnumerationUsage.cs index 0c82e2382..b29a21099 100644 --- a/SysML2.NET/Core/AutoGenDto/EnumerationUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/EnumerationUsage.cs @@ -62,7 +62,7 @@ public partial class EnumerationUsage : IEnumerationUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IEnumerationUsage.EnumerationDefinition")] [Implements(implementation: "IAttributeUsage.AttributeDefinition")] - public List attributeDefinition { get; internal set; } = []; + List Systems.Attributes.IAttributeUsage.attributeDefinition => [this.enumerationDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -112,7 +112,7 @@ public partial class EnumerationUsage : IEnumerationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IAttributeUsage.AttributeDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Attributes.IAttributeUsage)this).attributeDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -375,7 +375,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IAttributeUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.isReference { get; } + bool Systems.DefinitionAndUsage.IUsage.isReference => this.isReference; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -403,7 +403,11 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1015,7 +1019,7 @@ public partial class EnumerationUsage : IEnumerationUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/EventOccurrenceUsage.cs b/SysML2.NET/Core/AutoGenDto/EventOccurrenceUsage.cs index dc71f6c21..82ede305d 100644 --- a/SysML2.NET/Core/AutoGenDto/EventOccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/EventOccurrenceUsage.cs @@ -106,7 +106,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -386,7 +386,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.isReference { get; } + bool Systems.DefinitionAndUsage.IUsage.isReference => this.isReference; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -414,7 +414,11 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1045,7 +1049,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ExhibitStateUsage.cs b/SysML2.NET/Core/AutoGenDto/ExhibitStateUsage.cs index 155b5d41c..7e21eae73 100644 --- a/SysML2.NET/Core/AutoGenDto/ExhibitStateUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ExhibitStateUsage.cs @@ -60,7 +60,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IStateUsage.StateDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition { get; internal set; } = []; + List Systems.Actions.IActionUsage.actionDefinition => this.stateDefinition; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -76,7 +76,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -126,7 +126,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -148,7 +148,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -228,7 +228,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IPerformActionUsage.PerformedAction")] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public Guid eventOccurrence { get; internal set; } + Guid Systems.Occurrences.IEventOccurrenceUsage.eventOccurrence => ((SysML2.NET.Core.DTO.Systems.Actions.IPerformActionUsage)this).performedAction; /// /// The StateUsage to be exhibited by the ExhibitStateUsage. It is the performedAction of the @@ -445,7 +445,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.isReference { get; } + bool Systems.DefinitionAndUsage.IUsage.isReference => this.isReference; /// /// Always true for an EventOccurrenceUsage. @@ -481,7 +481,11 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -768,7 +772,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1081,7 +1085,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622831790393_676695_195")] [RedefinedByProperty("IExhibitStateUsage.ExhibitedState")] [Implements(implementation: "IPerformActionUsage.PerformedAction")] - public Guid performedAction { get; internal set; } + Guid Systems.Actions.IPerformActionUsage.performedAction => this.exhibitedState; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1141,7 +1145,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Expression.cs b/SysML2.NET/Core/AutoGenDto/Expression.cs index 3bd744fee..c4dff1f3e 100644 --- a/SysML2.NET/Core/AutoGenDto/Expression.cs +++ b/SysML2.NET/Core/AutoGenDto/Expression.cs @@ -64,7 +64,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -125,7 +125,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/FeatureChainExpression.cs b/SysML2.NET/Core/AutoGenDto/FeatureChainExpression.cs index 4ed94ea35..8f3bb3822 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureChainExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureChainExpression.cs @@ -71,7 +71,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -132,7 +132,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -444,7 +444,14 @@ public partial class FeatureChainExpression : IFeatureChainExpression [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)] [RedefinedByProperty("IFeatureChainExpression.Operator")] [Implements(implementation: "IOperatorExpression.Operator")] - string IOperatorExpression.Operator { get; set; } + string IOperatorExpression.Operator + { + get => this.Operator; + set + { + this.Operator = value; + } + } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. diff --git a/SysML2.NET/Core/AutoGenDto/FeatureChaining.cs b/SysML2.NET/Core/AutoGenDto/FeatureChaining.cs index 3a255eff6..f5a2e1df7 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureChaining.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureChaining.cs @@ -255,7 +255,11 @@ public partial class FeatureChaining : IFeatureChaining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IFeatureChaining.FeatureChained")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.featureChained]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -264,7 +268,18 @@ public partial class FeatureChaining : IFeatureChaining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IFeatureChaining.ChainingFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.ChainingFeature]; + set + { + if (value.Count != 0) + { + this.ChainingFeature = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/FeatureInverting.cs b/SysML2.NET/Core/AutoGenDto/FeatureInverting.cs index 3d79d2f18..da4b3361e 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureInverting.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureInverting.cs @@ -264,7 +264,18 @@ public partial class FeatureInverting : IFeatureInverting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IFeatureInverting.FeatureInverted")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.FeatureInverted]; + set + { + if (value.Count != 0) + { + this.FeatureInverted = value[0]; + } + + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -273,7 +284,18 @@ public partial class FeatureInverting : IFeatureInverting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IFeatureInverting.InvertingFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.InvertingFeature]; + set + { + if (value.Count != 0) + { + this.InvertingFeature = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/FeatureMembership.cs b/SysML2.NET/Core/AutoGenDto/FeatureMembership.cs index 938b118b8..3d5756584 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureMembership.cs @@ -124,7 +124,11 @@ public partial class FeatureMembership : IFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -132,7 +136,7 @@ public partial class FeatureMembership : IFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -140,7 +144,11 @@ public partial class FeatureMembership : IFeatureMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -151,7 +159,7 @@ public partial class FeatureMembership : IFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -159,7 +167,11 @@ public partial class FeatureMembership : IFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -198,7 +210,7 @@ public partial class FeatureMembership : IFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => this.ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -337,7 +349,11 @@ public partial class FeatureMembership : IFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -346,7 +362,18 @@ public partial class FeatureMembership : IFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/FeatureReferenceExpression.cs b/SysML2.NET/Core/AutoGenDto/FeatureReferenceExpression.cs index 4984d6d99..c44936033 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureReferenceExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureReferenceExpression.cs @@ -60,7 +60,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,7 +121,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/FeatureTyping.cs b/SysML2.NET/Core/AutoGenDto/FeatureTyping.cs index 4b65ddecf..e16c8d484 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureTyping.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureTyping.cs @@ -96,7 +96,14 @@ public partial class FeatureTyping : IFeatureTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IFeatureTyping.Type")] [Implements(implementation: "ISpecialization.General")] - public Guid General { get; set; } + Guid Core.Types.ISpecialization.General + { + get => this.Type; + set + { + this.Type = value; + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -227,7 +234,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IFeatureTyping.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? owningType { get; internal set; } + Guid? Core.Types.ISpecialization.owningType => this.owningFeature.HasValue ? this.owningFeature.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -266,7 +273,18 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific = value[0]; + } + + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -275,7 +293,14 @@ public partial class FeatureTyping : IFeatureTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureTyping.TypedFeature")] [Implements(implementation: "ISpecialization.Specific")] - public Guid Specific { get; set; } + Guid Core.Types.ISpecialization.Specific + { + get => this.TypedFeature; + set + { + this.TypedFeature = value; + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -284,7 +309,18 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/FeatureValue.cs b/SysML2.NET/Core/AutoGenDto/FeatureValue.cs index 26094d236..a9b5d2296 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureValue.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureValue.cs @@ -152,7 +152,11 @@ public partial class FeatureValue : IFeatureValue [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -160,7 +164,7 @@ public partial class FeatureValue : IFeatureValue [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -168,7 +172,11 @@ public partial class FeatureValue : IFeatureValue [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -186,7 +194,11 @@ public partial class FeatureValue : IFeatureValue [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -225,7 +237,7 @@ public partial class FeatureValue : IFeatureValue [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureValue.Value")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => this.value; /// /// The elementId of the ownedMemberElement. @@ -346,7 +358,11 @@ public partial class FeatureValue : IFeatureValue [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -355,7 +371,18 @@ public partial class FeatureValue : IFeatureValue [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/Flow.cs b/SysML2.NET/Core/AutoGenDto/Flow.cs index bedd547b6..57dba1544 100644 --- a/SysML2.NET/Core/AutoGenDto/Flow.cs +++ b/SysML2.NET/Core/AutoGenDto/Flow.cs @@ -62,7 +62,7 @@ public partial class Flow : IFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List association { get; internal set; } = []; + List Kernel.Connectors.IConnector.association => this.interaction; /// /// The Behaviors that type this Step. @@ -71,7 +71,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.interaction; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -151,7 +151,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -185,7 +185,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.connectorEnd; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -788,7 +788,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedFeature; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -816,7 +816,11 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature.HasValue ? [this.sourceFeature.Value] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -842,7 +846,11 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetFeature; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -880,7 +888,7 @@ public partial class Flow : IFlow [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Kernel.Connectors.IConnector)this).association; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/FlowDefinition.cs b/SysML2.NET/Core/AutoGenDto/FlowDefinition.cs index f480de242..1790ef0a9 100644 --- a/SysML2.NET/Core/AutoGenDto/FlowDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/FlowDefinition.cs @@ -73,7 +73,7 @@ public partial class FlowDefinition : IFlowDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IFlowDefinition.FlowEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List associationEnd { get; internal set; } = []; + List Kernel.Associations.IAssociation.associationEnd => this.flowEnd; /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Definition that are directedFeatures. @@ -147,7 +147,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => ((SysML2.NET.Core.DTO.Kernel.Associations.IAssociation)this).associationEnd; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -778,7 +778,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedType; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -806,7 +806,11 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType.HasValue ? [this.sourceType.Value] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -832,7 +836,11 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetType; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenDto/FlowUsage.cs b/SysML2.NET/Core/AutoGenDto/FlowUsage.cs index 8e4dfb40d..5d14116d0 100644 --- a/SysML2.NET/Core/AutoGenDto/FlowUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/FlowUsage.cs @@ -59,7 +59,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition { get; internal set; } = []; + List Systems.Actions.IActionUsage.actionDefinition => this.flowDefinition; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -75,7 +75,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List association { get; internal set; } = []; + List Kernel.Connectors.IConnector.association => ((SysML2.NET.Core.DTO.Kernel.Interactions.IFlow)this).interaction; /// /// The Behaviors that type this Step. @@ -84,7 +84,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Interactions.IFlow)this).interaction; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -153,7 +153,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -175,7 +175,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -218,7 +218,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.connectorEnd; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -333,7 +333,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IFlow.Interaction")] - public List interaction { get; internal set; } = []; + List Kernel.Interactions.IFlow.interaction => this.flowDefinition; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -483,7 +483,11 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -770,7 +774,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1134,7 +1138,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedFeature; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1162,7 +1166,11 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature.HasValue ? [this.sourceFeature.Value] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1188,7 +1196,11 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetFeature; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1226,7 +1238,7 @@ public partial class FlowUsage : IFlowUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ForLoopActionUsage.cs b/SysML2.NET/Core/AutoGenDto/ForLoopActionUsage.cs index 3ee6d9e7f..8dc76a0e0 100644 --- a/SysML2.NET/Core/AutoGenDto/ForLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ForLoopActionUsage.cs @@ -73,7 +73,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The ActionUsage to be performed repeatedly by the LoopActionUsage. It is the second parameter of the @@ -131,7 +131,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -153,7 +153,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -422,7 +422,11 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -718,7 +722,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1081,7 +1085,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ForkNode.cs b/SysML2.NET/Core/AutoGenDto/ForkNode.cs index 78a958f2f..c60d018fd 100644 --- a/SysML2.NET/Core/AutoGenDto/ForkNode.cs +++ b/SysML2.NET/Core/AutoGenDto/ForkNode.cs @@ -72,7 +72,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -122,7 +122,7 @@ public partial class ForkNode : IForkNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -144,7 +144,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -413,7 +413,11 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -700,7 +704,7 @@ public partial class ForkNode : IForkNode [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1054,7 +1058,7 @@ public partial class ForkNode : IForkNode [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/FramedConcernMembership.cs b/SysML2.NET/Core/AutoGenDto/FramedConcernMembership.cs index c9e319f74..34a029bc1 100644 --- a/SysML2.NET/Core/AutoGenDto/FramedConcernMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/FramedConcernMembership.cs @@ -128,7 +128,14 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_2_12e503d9_1584048161309_821854_390", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IFramedConcernMembership.Kind")] [Implements(implementation: "IRequirementConstraintMembership.Kind")] - RequirementConstraintKind IRequirementConstraintMembership.Kind { get; set; } + RequirementConstraintKind IRequirementConstraintMembership.Kind + { + get => this.Kind; + set + { + this.Kind = value; + } + } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -137,7 +144,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -145,7 +156,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -153,7 +164,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -164,7 +179,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -172,7 +187,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -209,7 +228,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IFramedConcernMembership.OwnedConcern")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public Guid ownedConstraint { get; internal set; } + Guid IRequirementConstraintMembership.ownedConstraint => this.ownedConcern; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -228,7 +247,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -246,7 +265,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => ((SysML2.NET.Core.DTO.Systems.Requirements.IRequirementConstraintMembership)this).ownedConstraint; /// /// The name of the ownedMemberElement. @@ -361,7 +380,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IFramedConcernMembership.ReferencedConcern")] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public Guid referencedConstraint { get; internal set; } + Guid IRequirementConstraintMembership.referencedConstraint => this.referencedConcern; /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -388,7 +407,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -397,7 +420,18 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/Function.cs b/SysML2.NET/Core/AutoGenDto/Function.cs index 20366c9b1..54841071e 100644 --- a/SysML2.NET/Core/AutoGenDto/Function.cs +++ b/SysML2.NET/Core/AutoGenDto/Function.cs @@ -91,7 +91,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The Documentation owned by this Element. diff --git a/SysML2.NET/Core/AutoGenDto/IfActionUsage.cs b/SysML2.NET/Core/AutoGenDto/IfActionUsage.cs index c4370f07e..b64247c03 100644 --- a/SysML2.NET/Core/AutoGenDto/IfActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IfActionUsage.cs @@ -73,7 +73,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -123,7 +123,7 @@ public partial class IfActionUsage : IIfActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -145,7 +145,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -430,7 +430,11 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -717,7 +721,7 @@ public partial class IfActionUsage : IIfActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1079,7 +1083,7 @@ public partial class IfActionUsage : IIfActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/IncludeUseCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/IncludeUseCaseUsage.cs index 647646aaf..9607424b1 100644 --- a/SysML2.NET/Core/AutoGenDto/IncludeUseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IncludeUseCaseUsage.cs @@ -60,7 +60,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition { get; internal set; } = []; + List Systems.Actions.IActionUsage.actionDefinition => ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.HasValue ? [((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.Value] : []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -85,7 +85,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -97,7 +97,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public Guid? calculationDefinition { get; internal set; } + Guid? Systems.Calculations.ICalculationUsage.calculationDefinition => ((SysML2.NET.Core.DTO.Systems.Cases.ICaseUsage)this).caseDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Cases.ICaseUsage)this).caseDefinition.Value : Guid.Empty; /// /// The CaseDefinition that is the type of this CaseUsage. @@ -106,7 +106,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [RedefinedByProperty("IUseCaseUsage.UseCaseDefinition")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public Guid? caseDefinition { get; internal set; } + Guid? Systems.Cases.ICaseUsage.caseDefinition => this.useCaseDefinition.HasValue ? this.useCaseDefinition.Value : Guid.Empty; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -156,7 +156,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -178,7 +178,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -240,7 +240,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IPerformActionUsage.PerformedAction")] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public Guid eventOccurrence { get; internal set; } + Guid Systems.Occurrences.IEventOccurrenceUsage.eventOccurrence => ((SysML2.NET.Core.DTO.Systems.Actions.IPerformActionUsage)this).performedAction; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -283,7 +283,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? Kernel.Functions.IExpression.function => ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -455,7 +455,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.isReference { get; } + bool Systems.DefinitionAndUsage.IUsage.isReference => this.isReference; /// /// Always true for an EventOccurrenceUsage. @@ -491,7 +491,11 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -786,7 +790,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1099,7 +1103,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622831790393_676695_195")] [RedefinedByProperty("IIncludeUseCaseUsage.UseCaseIncluded")] [Implements(implementation: "IPerformActionUsage.PerformedAction")] - public Guid performedAction { get; internal set; } + Guid Systems.Actions.IPerformActionUsage.performedAction => this.useCaseIncluded; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1170,7 +1174,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/IndexExpression.cs b/SysML2.NET/Core/AutoGenDto/IndexExpression.cs index aa5de4ff9..12b00a719 100644 --- a/SysML2.NET/Core/AutoGenDto/IndexExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/IndexExpression.cs @@ -70,7 +70,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -131,7 +131,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -443,7 +443,14 @@ public partial class IndexExpression : IIndexExpression [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)] [RedefinedByProperty("IIndexExpression.Operator")] [Implements(implementation: "IOperatorExpression.Operator")] - string IOperatorExpression.Operator { get; set; } + string IOperatorExpression.Operator + { + get => this.Operator; + set + { + this.Operator = value; + } + } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. diff --git a/SysML2.NET/Core/AutoGenDto/Interaction.cs b/SysML2.NET/Core/AutoGenDto/Interaction.cs index 4584491ec..17b3e62ff 100644 --- a/SysML2.NET/Core/AutoGenDto/Interaction.cs +++ b/SysML2.NET/Core/AutoGenDto/Interaction.cs @@ -101,7 +101,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The Documentation owned by this Element. @@ -127,7 +127,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.associationEnd; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -516,7 +516,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedType; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -544,7 +544,11 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType.HasValue ? [this.sourceType.Value] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -570,7 +574,11 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetType; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenDto/InterfaceDefinition.cs b/SysML2.NET/Core/AutoGenDto/InterfaceDefinition.cs index cc5f8418a..028d62d3d 100644 --- a/SysML2.NET/Core/AutoGenDto/InterfaceDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/InterfaceDefinition.cs @@ -62,7 +62,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List associationEnd { get; internal set; } = []; + List Kernel.Associations.IAssociation.associationEnd => ((SysML2.NET.Core.DTO.Systems.Connections.IConnectionDefinition)this).connectionEnd; /// /// The Usages that define the things related by the ConnectionDefinition. @@ -71,7 +71,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] [RedefinedByProperty("IInterfaceDefinition.InterfaceEnd")] [Implements(implementation: "IConnectionDefinition.ConnectionEnd")] - public List connectionEnd { get; internal set; } = []; + List Systems.Connections.IConnectionDefinition.connectionEnd => this.interfaceEnd; /// /// The declared name of this Element. @@ -144,7 +144,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => ((SysML2.NET.Core.DTO.Kernel.Associations.IAssociation)this).associationEnd; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -284,7 +284,14 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_b9102da_1564072709069_937523_30797", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IConnectionDefinition.IsSufficient")] [Implements(implementation: "IType.IsSufficient")] - bool Core.Types.IType.IsSufficient { get; set; } + bool Core.Types.IType.IsSufficient + { + get => this.IsSufficient; + set + { + this.IsSufficient = value; + } + } /// /// Whether this Definition is for a variation point or not. If true, then all the memberships of the @@ -775,7 +782,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedType; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -803,7 +810,11 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType.HasValue ? [this.sourceType.Value] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -821,7 +832,11 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetType; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs b/SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs index f0bbbdf96..9af488386 100644 --- a/SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs @@ -62,7 +62,7 @@ public partial class InterfaceUsage : IInterfaceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - public List association { get; internal set; } = []; + List Kernel.Connectors.IConnector.association => ((SysML2.NET.Core.DTO.Systems.Connections.IConnectionUsage)this).connectionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -86,7 +86,7 @@ public partial class InterfaceUsage : IInterfaceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedByProperty("IInterfaceUsage.InterfaceDefinition")] [Implements(implementation: "IConnectionUsage.ConnectionDefinition")] - public List connectionDefinition { get; internal set; } = []; + List Systems.Connections.IConnectionUsage.connectionDefinition => this.interfaceDefinition; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -143,7 +143,7 @@ public partial class InterfaceUsage : IInterfaceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -207,7 +207,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.connectorEnd; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -450,7 +450,11 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1094,7 +1098,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedFeature; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1122,7 +1126,11 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature.HasValue ? [this.sourceFeature.Value] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1140,7 +1148,11 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetFeature; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1170,7 +1182,7 @@ public partial class InterfaceUsage : IInterfaceUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Intersecting.cs b/SysML2.NET/Core/AutoGenDto/Intersecting.cs index 0d06edaf3..155e2fe85 100644 --- a/SysML2.NET/Core/AutoGenDto/Intersecting.cs +++ b/SysML2.NET/Core/AutoGenDto/Intersecting.cs @@ -245,7 +245,11 @@ public partial class Intersecting : IIntersecting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IIntersecting.TypeIntersected")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.typeIntersected]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -254,7 +258,18 @@ public partial class Intersecting : IIntersecting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IIntersecting.IntersectingType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.IntersectingType]; + set + { + if (value.Count != 0) + { + this.IntersectingType = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/Invariant.cs b/SysML2.NET/Core/AutoGenDto/Invariant.cs index bcc453843..d12f89535 100644 --- a/SysML2.NET/Core/AutoGenDto/Invariant.cs +++ b/SysML2.NET/Core/AutoGenDto/Invariant.cs @@ -61,7 +61,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -122,7 +122,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -208,7 +208,7 @@ public partial class Invariant : IInvariant [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? IExpression.function => this.predicate.HasValue ? this.predicate.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. diff --git a/SysML2.NET/Core/AutoGenDto/InvocationExpression.cs b/SysML2.NET/Core/AutoGenDto/InvocationExpression.cs index 8c48a74b3..81e2efa38 100644 --- a/SysML2.NET/Core/AutoGenDto/InvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/InvocationExpression.cs @@ -74,7 +74,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -135,7 +135,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/ItemUsage.cs b/SysML2.NET/Core/AutoGenDto/ItemUsage.cs index d3c49906f..542817a6c 100644 --- a/SysML2.NET/Core/AutoGenDto/ItemUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ItemUsage.cs @@ -105,7 +105,7 @@ public partial class ItemUsage : IItemUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -395,7 +395,11 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1036,7 +1040,7 @@ public partial class ItemUsage : IItemUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/JoinNode.cs b/SysML2.NET/Core/AutoGenDto/JoinNode.cs index 6d2553f84..176ac037a 100644 --- a/SysML2.NET/Core/AutoGenDto/JoinNode.cs +++ b/SysML2.NET/Core/AutoGenDto/JoinNode.cs @@ -72,7 +72,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -122,7 +122,7 @@ public partial class JoinNode : IJoinNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -144,7 +144,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -413,7 +413,11 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -700,7 +704,7 @@ public partial class JoinNode : IJoinNode [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1054,7 +1058,7 @@ public partial class JoinNode : IJoinNode [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs b/SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs index 460d2ff47..c289a7b7e 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs @@ -60,7 +60,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,7 +121,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/LiteralExpression.cs b/SysML2.NET/Core/AutoGenDto/LiteralExpression.cs index 95dd119c7..a0613eada 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralExpression.cs @@ -60,7 +60,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,7 +121,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs b/SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs index 10d62150b..ec571d780 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs @@ -60,7 +60,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,7 +121,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/LiteralInteger.cs b/SysML2.NET/Core/AutoGenDto/LiteralInteger.cs index 74af44a3f..7ee066492 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralInteger.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralInteger.cs @@ -60,7 +60,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,7 +121,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/LiteralRational.cs b/SysML2.NET/Core/AutoGenDto/LiteralRational.cs index 1423b7b95..9db8ca0df 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralRational.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralRational.cs @@ -60,7 +60,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,7 +121,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/LiteralString.cs b/SysML2.NET/Core/AutoGenDto/LiteralString.cs index 34135decb..e9c6accfb 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralString.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralString.cs @@ -60,7 +60,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,7 +121,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/Membership.cs b/SysML2.NET/Core/AutoGenDto/Membership.cs index 862883ed5..4facf846f 100644 --- a/SysML2.NET/Core/AutoGenDto/Membership.cs +++ b/SysML2.NET/Core/AutoGenDto/Membership.cs @@ -281,7 +281,11 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -290,7 +294,18 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.MemberElement]; + set + { + if (value.Count != 0) + { + this.MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/MembershipExpose.cs b/SysML2.NET/Core/AutoGenDto/MembershipExpose.cs index 1109c11e5..014218ee2 100644 --- a/SysML2.NET/Core/AutoGenDto/MembershipExpose.cs +++ b/SysML2.NET/Core/AutoGenDto/MembershipExpose.cs @@ -139,7 +139,14 @@ public partial class MembershipExpose : IMembershipExpose [Property(xmiId: "_19_0_4_12e503d9_1622577942205_869984_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IExpose.IsImportAll")] [Implements(implementation: "IImport.IsImportAll")] - bool Root.Namespaces.IImport.IsImportAll { get; set; } + bool Root.Namespaces.IImport.IsImportAll + { + get => this.IsImportAll; + set + { + this.IsImportAll = value; + } + } /// /// An Expose always imports all Elements, regardless of visibility (isImportAll = true). @@ -286,7 +293,11 @@ public partial class MembershipExpose : IMembershipExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IImport.ImportOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.importOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -295,7 +306,18 @@ public partial class MembershipExpose : IMembershipExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembershipImport.ImportedMembership")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.ImportedMembership]; + set + { + if (value.Count != 0) + { + this.ImportedMembership = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. @@ -313,7 +335,14 @@ public partial class MembershipExpose : IMembershipExpose [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")] [RedefinedByProperty("IExpose.Visibility")] [Implements(implementation: "IImport.Visibility")] - VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } = VisibilityKind.Private; + VisibilityKind Root.Namespaces.IImport.Visibility + { + get => this.Visibility; + set + { + this.Visibility = value; + } + } /// /// An Expose always has protected visibility. diff --git a/SysML2.NET/Core/AutoGenDto/MembershipImport.cs b/SysML2.NET/Core/AutoGenDto/MembershipImport.cs index d21d2ac88..32e3facdb 100644 --- a/SysML2.NET/Core/AutoGenDto/MembershipImport.cs +++ b/SysML2.NET/Core/AutoGenDto/MembershipImport.cs @@ -277,7 +277,11 @@ public partial class MembershipImport : IMembershipImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IImport.ImportOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.importOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -286,7 +290,18 @@ public partial class MembershipImport : IMembershipImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembershipImport.ImportedMembership")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.ImportedMembership]; + set + { + if (value.Count != 0) + { + this.ImportedMembership = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/MergeNode.cs b/SysML2.NET/Core/AutoGenDto/MergeNode.cs index 4e5f0ebe5..ca403b7a6 100644 --- a/SysML2.NET/Core/AutoGenDto/MergeNode.cs +++ b/SysML2.NET/Core/AutoGenDto/MergeNode.cs @@ -72,7 +72,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -122,7 +122,7 @@ public partial class MergeNode : IMergeNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -144,7 +144,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -413,7 +413,11 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -700,7 +704,7 @@ public partial class MergeNode : IMergeNode [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1054,7 +1058,7 @@ public partial class MergeNode : IMergeNode [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/MetadataAccessExpression.cs b/SysML2.NET/Core/AutoGenDto/MetadataAccessExpression.cs index 24de6c8bf..3a49c431c 100644 --- a/SysML2.NET/Core/AutoGenDto/MetadataAccessExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/MetadataAccessExpression.cs @@ -63,7 +63,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -124,7 +124,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/MetadataUsage.cs b/SysML2.NET/Core/AutoGenDto/MetadataUsage.cs index 364a01c33..25719e64b 100644 --- a/SysML2.NET/Core/AutoGenDto/MetadataUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/MetadataUsage.cs @@ -124,7 +124,7 @@ public partial class MetadataUsage : IMetadataUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -414,7 +414,11 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -433,7 +437,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IMetadataUsage.MetadataDefinition")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List itemDefinition { get; internal set; } = []; + List Systems.Items.IItemUsage.itemDefinition => this.metadataDefinition.HasValue ? [this.metadataDefinition.Value] : []; /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -471,7 +475,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IMetadataUsage.MetadataDefinition")] [Implements(implementation: "IMetadataFeature.Metaclass")] - public Guid? metaclass { get; internal set; } + Guid? Kernel.Metadata.IMetadataFeature.metaclass => this.metadataDefinition.HasValue ? this.metadataDefinition.Value : Guid.Empty; /// /// The MetadataDefinition that is the definition of this MetadataUsage. @@ -1093,7 +1097,7 @@ public partial class MetadataUsage : IMetadataUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/NamespaceExpose.cs b/SysML2.NET/Core/AutoGenDto/NamespaceExpose.cs index 7ed161067..0194dd6e2 100644 --- a/SysML2.NET/Core/AutoGenDto/NamespaceExpose.cs +++ b/SysML2.NET/Core/AutoGenDto/NamespaceExpose.cs @@ -147,7 +147,14 @@ public partial class NamespaceExpose : INamespaceExpose [Property(xmiId: "_19_0_4_12e503d9_1622577942205_869984_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IExpose.IsImportAll")] [Implements(implementation: "IImport.IsImportAll")] - bool Root.Namespaces.IImport.IsImportAll { get; set; } + bool Root.Namespaces.IImport.IsImportAll + { + get => this.IsImportAll; + set + { + this.IsImportAll = value; + } + } /// /// Whether this Element is contained in the ownership tree of a library model. @@ -286,7 +293,11 @@ public partial class NamespaceExpose : INamespaceExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IImport.ImportOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.importOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -295,7 +306,18 @@ public partial class NamespaceExpose : INamespaceExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("INamespaceImport.ImportedNamespace")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.ImportedNamespace]; + set + { + if (value.Count != 0) + { + this.ImportedNamespace = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. @@ -321,7 +343,14 @@ public partial class NamespaceExpose : INamespaceExpose [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")] [RedefinedByProperty("IExpose.Visibility")] [Implements(implementation: "IImport.Visibility")] - VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } = VisibilityKind.Private; + VisibilityKind Root.Namespaces.IImport.Visibility + { + get => this.Visibility; + set + { + this.Visibility = value; + } + } } } diff --git a/SysML2.NET/Core/AutoGenDto/NamespaceImport.cs b/SysML2.NET/Core/AutoGenDto/NamespaceImport.cs index 967bbaabe..9f1a72e00 100644 --- a/SysML2.NET/Core/AutoGenDto/NamespaceImport.cs +++ b/SysML2.NET/Core/AutoGenDto/NamespaceImport.cs @@ -278,7 +278,11 @@ public partial class NamespaceImport : INamespaceImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IImport.ImportOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.importOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -287,7 +291,18 @@ public partial class NamespaceImport : INamespaceImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("INamespaceImport.ImportedNamespace")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.ImportedNamespace]; + set + { + if (value.Count != 0) + { + this.ImportedNamespace = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/NullExpression.cs b/SysML2.NET/Core/AutoGenDto/NullExpression.cs index 6fdae7d13..6aaafa867 100644 --- a/SysML2.NET/Core/AutoGenDto/NullExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/NullExpression.cs @@ -60,7 +60,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,7 +121,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/ObjectiveMembership.cs b/SysML2.NET/Core/AutoGenDto/ObjectiveMembership.cs index ef2a1d05c..e6843fac6 100644 --- a/SysML2.NET/Core/AutoGenDto/ObjectiveMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ObjectiveMembership.cs @@ -121,7 +121,11 @@ public partial class ObjectiveMembership : IObjectiveMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -129,7 +133,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -137,7 +141,11 @@ public partial class ObjectiveMembership : IObjectiveMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -148,7 +156,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -156,7 +164,11 @@ public partial class ObjectiveMembership : IObjectiveMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -195,7 +207,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -213,7 +225,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IObjectiveMembership.OwnedObjectiveRequirement")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedObjectiveRequirement; /// /// The name of the ownedMemberElement. @@ -343,7 +355,11 @@ public partial class ObjectiveMembership : IObjectiveMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -352,7 +368,18 @@ public partial class ObjectiveMembership : IObjectiveMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs b/SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs index ecda5e10a..0ec1e9955 100644 --- a/SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs @@ -105,7 +105,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -395,7 +395,11 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1026,7 +1030,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/OperatorExpression.cs b/SysML2.NET/Core/AutoGenDto/OperatorExpression.cs index 6dfb62832..492b4f355 100644 --- a/SysML2.NET/Core/AutoGenDto/OperatorExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/OperatorExpression.cs @@ -70,7 +70,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -131,7 +131,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/OwningMembership.cs b/SysML2.NET/Core/AutoGenDto/OwningMembership.cs index bf5ffa86b..c614e2c3f 100644 --- a/SysML2.NET/Core/AutoGenDto/OwningMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/OwningMembership.cs @@ -120,7 +120,11 @@ public partial class OwningMembership : IOwningMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid IMembership.MemberElement + { + get => this.ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -128,7 +132,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -136,7 +140,11 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -154,7 +162,11 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -313,7 +325,11 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -322,7 +338,18 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/ParameterMembership.cs b/SysML2.NET/Core/AutoGenDto/ParameterMembership.cs index bd81f0940..de965cc72 100644 --- a/SysML2.NET/Core/AutoGenDto/ParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ParameterMembership.cs @@ -122,7 +122,11 @@ public partial class ParameterMembership : IParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -130,7 +134,7 @@ public partial class ParameterMembership : IParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -138,7 +142,11 @@ public partial class ParameterMembership : IParameterMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -149,7 +157,7 @@ public partial class ParameterMembership : IParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -157,7 +165,11 @@ public partial class ParameterMembership : IParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -196,7 +208,7 @@ public partial class ParameterMembership : IParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -214,7 +226,7 @@ public partial class ParameterMembership : IParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedMemberParameter; /// /// The name of the ownedMemberElement. @@ -344,7 +356,11 @@ public partial class ParameterMembership : IParameterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -353,7 +369,18 @@ public partial class ParameterMembership : IParameterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/PartUsage.cs b/SysML2.NET/Core/AutoGenDto/PartUsage.cs index 7c6c67311..645626ba1 100644 --- a/SysML2.NET/Core/AutoGenDto/PartUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/PartUsage.cs @@ -104,7 +104,7 @@ public partial class PartUsage : IPartUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -394,7 +394,11 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1043,7 +1047,7 @@ public partial class PartUsage : IPartUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/PerformActionUsage.cs b/SysML2.NET/Core/AutoGenDto/PerformActionUsage.cs index 1d011e264..ea1e78f46 100644 --- a/SysML2.NET/Core/AutoGenDto/PerformActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/PerformActionUsage.cs @@ -75,7 +75,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -125,7 +125,7 @@ public partial class PerformActionUsage : IPerformActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -147,7 +147,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -209,7 +209,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IPerformActionUsage.PerformedAction")] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public Guid eventOccurrence { get; internal set; } + Guid Systems.Occurrences.IEventOccurrenceUsage.eventOccurrence => this.performedAction; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -399,7 +399,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.isReference { get; } + bool Systems.DefinitionAndUsage.IUsage.isReference => this.isReference; /// /// Always true for an EventOccurrenceUsage. @@ -435,7 +435,11 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -722,7 +726,7 @@ public partial class PerformActionUsage : IPerformActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1085,7 +1089,7 @@ public partial class PerformActionUsage : IPerformActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/PortConjugation.cs b/SysML2.NET/Core/AutoGenDto/PortConjugation.cs index e07a89c54..dd1ced451 100644 --- a/SysML2.NET/Core/AutoGenDto/PortConjugation.cs +++ b/SysML2.NET/Core/AutoGenDto/PortConjugation.cs @@ -157,7 +157,14 @@ public partial class PortConjugation : IPortConjugation [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IPortConjugation.OriginalPortDefinition")] [Implements(implementation: "IConjugation.OriginalType")] - public Guid OriginalType { get; set; } + Guid Core.Types.IConjugation.OriginalType + { + get => this.OriginalPortDefinition; + set + { + this.OriginalPortDefinition = value; + } + } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -243,7 +250,7 @@ public partial class PortConjugation : IPortConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedByProperty("IPortConjugation.ConjugatedPortDefinition")] [Implements(implementation: "IConjugation.OwningType")] - public Guid? owningType { get; internal set; } + Guid? Core.Types.IConjugation.owningType => this.conjugatedPortDefinition; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -282,7 +289,18 @@ public partial class PortConjugation : IPortConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConjugation.ConjugatedType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.ConjugatedType]; + set + { + if (value.Count != 0) + { + this.ConjugatedType = value[0]; + } + + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -291,7 +309,18 @@ public partial class PortConjugation : IPortConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConjugation.OriginalType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Core.Types.IConjugation)this).OriginalType]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.IConjugation)this).OriginalType = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/PortUsage.cs b/SysML2.NET/Core/AutoGenDto/PortUsage.cs index b97c01142..afcaffbc2 100644 --- a/SysML2.NET/Core/AutoGenDto/PortUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/PortUsage.cs @@ -103,7 +103,7 @@ public partial class PortUsage : IPortUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -393,7 +393,11 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -680,7 +684,7 @@ public partial class PortUsage : IPortUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IPortUsage.PortDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.portDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1033,7 +1037,7 @@ public partial class PortUsage : IPortUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Predicate.cs b/SysML2.NET/Core/AutoGenDto/Predicate.cs index 7edcc3830..63b683e54 100644 --- a/SysML2.NET/Core/AutoGenDto/Predicate.cs +++ b/SysML2.NET/Core/AutoGenDto/Predicate.cs @@ -88,7 +88,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The Documentation owned by this Element. diff --git a/SysML2.NET/Core/AutoGenDto/Redefinition.cs b/SysML2.NET/Core/AutoGenDto/Redefinition.cs index bd2585bf3..31060336d 100644 --- a/SysML2.NET/Core/AutoGenDto/Redefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/Redefinition.cs @@ -103,7 +103,14 @@ public partial class Redefinition : IRedefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubsetting.SubsettedFeature")] [Implements(implementation: "ISpecialization.General")] - public Guid General { get; set; } + Guid Core.Types.ISpecialization.General + { + get => ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettedFeature; + set + { + ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettedFeature = value; + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -234,7 +241,7 @@ public partial class Redefinition : IRedefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? owningType { get; internal set; } + Guid? Core.Types.ISpecialization.owningType => this.owningFeature.HasValue ? this.owningFeature.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -289,7 +296,18 @@ public partial class Redefinition : IRedefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific = value[0]; + } + + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -298,7 +316,14 @@ public partial class Redefinition : IRedefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubsetting.SubsettingFeature")] [Implements(implementation: "ISpecialization.Specific")] - public Guid Specific { get; set; } + Guid Core.Types.ISpecialization.Specific + { + get => ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettingFeature; + set + { + ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettingFeature = value; + } + } /// /// The Feature that is subsetted by the subsettingFeature of this Subsetting. @@ -307,7 +332,14 @@ public partial class Redefinition : IRedefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_563969_43273")] [RedefinedByProperty("IRedefinition.RedefinedFeature")] [Implements(implementation: "ISubsetting.SubsettedFeature")] - public Guid SubsettedFeature { get; set; } + Guid ISubsetting.SubsettedFeature + { + get => this.RedefinedFeature; + set + { + this.RedefinedFeature = value; + } + } /// /// The Feature that is a subset of the subsettedFeature of this Subsetting. @@ -316,7 +348,14 @@ public partial class Redefinition : IRedefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IRedefinition.RedefiningFeature")] [Implements(implementation: "ISubsetting.SubsettingFeature")] - public Guid SubsettingFeature { get; set; } + Guid ISubsetting.SubsettingFeature + { + get => this.RedefiningFeature; + set + { + this.RedefiningFeature = value; + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -325,7 +364,18 @@ public partial class Redefinition : IRedefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/ReferenceSubsetting.cs b/SysML2.NET/Core/AutoGenDto/ReferenceSubsetting.cs index 52cc785dd..261e201b3 100644 --- a/SysML2.NET/Core/AutoGenDto/ReferenceSubsetting.cs +++ b/SysML2.NET/Core/AutoGenDto/ReferenceSubsetting.cs @@ -97,7 +97,14 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubsetting.SubsettedFeature")] [Implements(implementation: "ISpecialization.General")] - public Guid General { get; set; } + Guid Core.Types.ISpecialization.General + { + get => ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettedFeature; + set + { + ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettedFeature = value; + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -185,7 +192,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [RedefinedByProperty("IReferenceSubsetting.ReferencingFeature")] [Implements(implementation: "ISubsetting.OwningFeature")] - public Guid? owningFeature { get; internal set; } + Guid? ISubsetting.owningFeature => this.referencingFeature; /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -229,7 +236,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? owningType { get; internal set; } + Guid? Core.Types.ISpecialization.owningType => ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).owningFeature.HasValue ? ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).owningFeature.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -285,7 +292,18 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific = value[0]; + } + + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -294,7 +312,14 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubsetting.SubsettingFeature")] [Implements(implementation: "ISpecialization.Specific")] - public Guid Specific { get; set; } + Guid Core.Types.ISpecialization.Specific + { + get => ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettingFeature; + set + { + ((SysML2.NET.Core.DTO.Core.Features.ISubsetting)this).SubsettingFeature = value; + } + } /// /// The Feature that is subsetted by the subsettingFeature of this Subsetting. @@ -303,7 +328,14 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_563969_43273")] [RedefinedByProperty("IReferenceSubsetting.ReferencedFeature")] [Implements(implementation: "ISubsetting.SubsettedFeature")] - public Guid SubsettedFeature { get; set; } + Guid ISubsetting.SubsettedFeature + { + get => this.ReferencedFeature; + set + { + this.ReferencedFeature = value; + } + } /// /// The Feature that is a subset of the subsettedFeature of this Subsetting. @@ -312,7 +344,11 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IReferenceSubsetting.ReferencingFeature")] [Implements(implementation: "ISubsetting.SubsettingFeature")] - public Guid SubsettingFeature { get; set; } + Guid ISubsetting.SubsettingFeature + { + get => this.referencingFeature; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -321,7 +357,18 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs b/SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs index d61dba8c9..a7a59b2c8 100644 --- a/SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs @@ -358,7 +358,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IReferenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool IUsage.isReference { get; } + bool IUsage.isReference => this.isReference; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -386,7 +386,11 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -998,7 +1002,7 @@ public partial class ReferenceUsage : IReferenceUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => this.definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/RenderingUsage.cs b/SysML2.NET/Core/AutoGenDto/RenderingUsage.cs index 6764079b6..0ffa32b74 100644 --- a/SysML2.NET/Core/AutoGenDto/RenderingUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/RenderingUsage.cs @@ -103,7 +103,7 @@ public partial class RenderingUsage : IRenderingUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -393,7 +393,11 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -992,7 +996,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedByProperty("IRenderingUsage.RenderingDefinition")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List partDefinition { get; internal set; } = []; + List Systems.Parts.IPartUsage.partDefinition => this.renderingDefinition.HasValue ? [this.renderingDefinition.Value] : []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1051,7 +1055,7 @@ public partial class RenderingUsage : IRenderingUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/RequirementConstraintMembership.cs b/SysML2.NET/Core/AutoGenDto/RequirementConstraintMembership.cs index 2ba31e6bd..a36ae6950 100644 --- a/SysML2.NET/Core/AutoGenDto/RequirementConstraintMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/RequirementConstraintMembership.cs @@ -129,7 +129,11 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -137,7 +141,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -145,7 +149,11 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -156,7 +164,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -164,7 +172,11 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -211,7 +223,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -229,7 +241,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedConstraint; /// /// The name of the ownedMemberElement. @@ -360,7 +372,11 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -369,7 +385,18 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/RequirementDefinition.cs b/SysML2.NET/Core/AutoGenDto/RequirementDefinition.cs index 11d83e463..c56157668 100644 --- a/SysML2.NET/Core/AutoGenDto/RequirementDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/RequirementDefinition.cs @@ -89,7 +89,14 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementDefinition.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -111,7 +118,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/RequirementUsage.cs b/SysML2.NET/Core/AutoGenDto/RequirementUsage.cs index 716324f82..78040ef4d 100644 --- a/SysML2.NET/Core/AutoGenDto/RequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/RequirementUsage.cs @@ -80,7 +80,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -103,7 +103,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public Guid? constraintDefinition { get; internal set; } + Guid? Systems.Constraints.IConstraintUsage.constraintDefinition => this.requirementDefinition.HasValue ? this.requirementDefinition.Value : Guid.Empty; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -131,7 +131,14 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementUsage.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -142,7 +149,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -164,7 +171,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -268,7 +275,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? Kernel.Functions.IExpression.function => ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.HasValue ? ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -459,7 +466,11 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1066,7 +1077,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? predicate { get; internal set; } + Guid? Kernel.Functions.IBooleanExpression.predicate => ((SysML2.NET.Core.DTO.Systems.Constraints.IConstraintUsage)this).constraintDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Constraints.IConstraintUsage)this).constraintDefinition.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1173,7 +1184,7 @@ public partial class RequirementUsage : IRequirementUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/RequirementVerificationMembership.cs b/SysML2.NET/Core/AutoGenDto/RequirementVerificationMembership.cs index 422ad9f9e..48d1e9d61 100644 --- a/SysML2.NET/Core/AutoGenDto/RequirementVerificationMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/RequirementVerificationMembership.cs @@ -129,7 +129,14 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_2_12e503d9_1584048161309_821854_390", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementVerificationMembership.Kind")] [Implements(implementation: "IRequirementConstraintMembership.Kind")] - RequirementConstraintKind Systems.Requirements.IRequirementConstraintMembership.Kind { get; set; } + RequirementConstraintKind Systems.Requirements.IRequirementConstraintMembership.Kind + { + get => this.Kind; + set + { + this.Kind = value; + } + } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -138,7 +145,11 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -146,7 +157,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -154,7 +165,11 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -165,7 +180,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -173,7 +188,11 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -202,7 +221,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IRequirementVerificationMembership.OwnedRequirement")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public Guid ownedConstraint { get; internal set; } + Guid Systems.Requirements.IRequirementConstraintMembership.ownedConstraint => this.ownedRequirement; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -221,7 +240,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -239,7 +258,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => ((SysML2.NET.Core.DTO.Systems.Requirements.IRequirementConstraintMembership)this).ownedConstraint; /// /// The name of the ownedMemberElement. @@ -354,7 +373,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementVerificationMembership.VerifiedRequirement")] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public Guid referencedConstraint { get; internal set; } + Guid Systems.Requirements.IRequirementConstraintMembership.referencedConstraint => this.verifiedRequirement; /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -381,7 +400,11 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -390,7 +413,18 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/ResultExpressionMembership.cs b/SysML2.NET/Core/AutoGenDto/ResultExpressionMembership.cs index b1b242209..8d7b27e83 100644 --- a/SysML2.NET/Core/AutoGenDto/ResultExpressionMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ResultExpressionMembership.cs @@ -123,7 +123,11 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -131,7 +135,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -139,7 +143,11 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -150,7 +158,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -158,7 +166,11 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -197,7 +209,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -215,7 +227,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IResultExpressionMembership.OwnedResultExpression")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedResultExpression; /// /// The name of the ownedMemberElement. @@ -345,7 +357,11 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -354,7 +370,18 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/ReturnParameterMembership.cs b/SysML2.NET/Core/AutoGenDto/ReturnParameterMembership.cs index 495f2c3e3..754cf8cbd 100644 --- a/SysML2.NET/Core/AutoGenDto/ReturnParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ReturnParameterMembership.cs @@ -122,7 +122,11 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -130,7 +134,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -138,7 +142,11 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -149,7 +157,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -157,7 +165,11 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -196,7 +208,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -214,7 +226,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedMemberParameter; /// /// The name of the ownedMemberElement. @@ -344,7 +356,11 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -353,7 +369,18 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/SatisfyRequirementUsage.cs b/SysML2.NET/Core/AutoGenDto/SatisfyRequirementUsage.cs index 5a4a33e7d..83ad451d5 100644 --- a/SysML2.NET/Core/AutoGenDto/SatisfyRequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/SatisfyRequirementUsage.cs @@ -74,7 +74,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1581045158665_239617_9458", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("ISatisfyRequirementUsage.SatisfiedRequirement")] [Implements(implementation: "IAssertConstraintUsage.AssertedConstraint")] - public Guid assertedConstraint { get; internal set; } + Guid Systems.Constraints.IAssertConstraintUsage.assertedConstraint => this.satisfiedRequirement; /// /// The owned ConstraintUsages that represent assumptions of this RequirementUsage, derived as the @@ -93,7 +93,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -116,7 +116,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public Guid? constraintDefinition { get; internal set; } + Guid? Systems.Constraints.IConstraintUsage.constraintDefinition => this.requirementDefinition.HasValue ? this.requirementDefinition.Value : Guid.Empty; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -144,7 +144,14 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementUsage.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -155,7 +162,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -177,7 +184,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -281,7 +288,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? Kernel.Functions.IExpression.function => ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.HasValue ? ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -479,7 +486,11 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1086,7 +1097,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? predicate { get; internal set; } + Guid? Kernel.Functions.IBooleanExpression.predicate => ((SysML2.NET.Core.DTO.Systems.Constraints.IConstraintUsage)this).constraintDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Constraints.IConstraintUsage)this).constraintDefinition.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1211,7 +1222,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/SelectExpression.cs b/SysML2.NET/Core/AutoGenDto/SelectExpression.cs index 8f2e4d400..4114c96a0 100644 --- a/SysML2.NET/Core/AutoGenDto/SelectExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/SelectExpression.cs @@ -70,7 +70,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -131,7 +131,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -443,7 +443,14 @@ public partial class SelectExpression : ISelectExpression [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)] [RedefinedByProperty("ISelectExpression.Operator")] [Implements(implementation: "IOperatorExpression.Operator")] - string IOperatorExpression.Operator { get; set; } + string IOperatorExpression.Operator + { + get => this.Operator; + set + { + this.Operator = value; + } + } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. diff --git a/SysML2.NET/Core/AutoGenDto/SendActionUsage.cs b/SysML2.NET/Core/AutoGenDto/SendActionUsage.cs index 9803653ce..d31e71b99 100644 --- a/SysML2.NET/Core/AutoGenDto/SendActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/SendActionUsage.cs @@ -76,7 +76,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -126,7 +126,7 @@ public partial class SendActionUsage : ISendActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -148,7 +148,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -417,7 +417,11 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -704,7 +708,7 @@ public partial class SendActionUsage : ISendActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1079,7 +1083,7 @@ public partial class SendActionUsage : ISendActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Specialization.cs b/SysML2.NET/Core/AutoGenDto/Specialization.cs index bbd1a3901..623f53f3d 100644 --- a/SysML2.NET/Core/AutoGenDto/Specialization.cs +++ b/SysML2.NET/Core/AutoGenDto/Specialization.cs @@ -254,7 +254,18 @@ public partial class Specialization : ISpecialization [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.Specific]; + set + { + if (value.Count != 0) + { + this.Specific = value[0]; + } + + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -271,7 +282,18 @@ public partial class Specialization : ISpecialization [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.General]; + set + { + if (value.Count != 0) + { + this.General = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/StakeholderMembership.cs b/SysML2.NET/Core/AutoGenDto/StakeholderMembership.cs index 05a4c074a..04d5b4512 100644 --- a/SysML2.NET/Core/AutoGenDto/StakeholderMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/StakeholderMembership.cs @@ -122,7 +122,11 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -130,7 +134,7 @@ public partial class StakeholderMembership : IStakeholderMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -138,7 +142,11 @@ public partial class StakeholderMembership : IStakeholderMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -149,7 +157,7 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -157,7 +165,11 @@ public partial class StakeholderMembership : IStakeholderMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -196,7 +208,7 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -214,7 +226,7 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => ((SysML2.NET.Core.DTO.Kernel.Behaviors.IParameterMembership)this).ownedMemberParameter; /// /// The name of the ownedMemberElement. @@ -231,7 +243,7 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IStakeholderMembership.OwnedStakeholderParameter")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public Guid ownedMemberParameter { get; internal set; } + Guid Kernel.Behaviors.IParameterMembership.ownedMemberParameter => this.ownedStakeholderParameter; /// /// The shortName of the ownedMemberElement. @@ -353,7 +365,11 @@ public partial class StakeholderMembership : IStakeholderMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -362,7 +378,18 @@ public partial class StakeholderMembership : IStakeholderMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/StateDefinition.cs b/SysML2.NET/Core/AutoGenDto/StateDefinition.cs index 5c229d1ad..ae0defa19 100644 --- a/SysML2.NET/Core/AutoGenDto/StateDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/StateDefinition.cs @@ -102,7 +102,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/StateSubactionMembership.cs b/SysML2.NET/Core/AutoGenDto/StateSubactionMembership.cs index 051331e14..bb9074922 100644 --- a/SysML2.NET/Core/AutoGenDto/StateSubactionMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/StateSubactionMembership.cs @@ -137,7 +137,11 @@ public partial class StateSubactionMembership : IStateSubactionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -145,7 +149,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -153,7 +157,11 @@ public partial class StateSubactionMembership : IStateSubactionMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -164,7 +172,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -172,7 +180,11 @@ public partial class StateSubactionMembership : IStateSubactionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -211,7 +223,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -229,7 +241,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IStateSubactionMembership.Action")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => this.action; /// /// The name of the ownedMemberElement. @@ -351,7 +363,11 @@ public partial class StateSubactionMembership : IStateSubactionMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -360,7 +376,18 @@ public partial class StateSubactionMembership : IStateSubactionMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/StateUsage.cs b/SysML2.NET/Core/AutoGenDto/StateUsage.cs index dbead7996..995dc55f7 100644 --- a/SysML2.NET/Core/AutoGenDto/StateUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/StateUsage.cs @@ -60,7 +60,7 @@ public partial class StateUsage : IStateUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IStateUsage.StateDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition { get; internal set; } = []; + List Systems.Actions.IActionUsage.actionDefinition => this.stateDefinition; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -76,7 +76,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -126,7 +126,7 @@ public partial class StateUsage : IStateUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -148,7 +148,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -453,7 +453,11 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -740,7 +744,7 @@ public partial class StateUsage : IStateUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1103,7 +1107,7 @@ public partial class StateUsage : IStateUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Step.cs b/SysML2.NET/Core/AutoGenDto/Step.cs index bfb3e8324..bb02b5ab1 100644 --- a/SysML2.NET/Core/AutoGenDto/Step.cs +++ b/SysML2.NET/Core/AutoGenDto/Step.cs @@ -123,7 +123,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/Subclassification.cs b/SysML2.NET/Core/AutoGenDto/Subclassification.cs index 13f80a547..63ebf7034 100644 --- a/SysML2.NET/Core/AutoGenDto/Subclassification.cs +++ b/SysML2.NET/Core/AutoGenDto/Subclassification.cs @@ -94,7 +94,14 @@ public partial class Subclassification : ISubclassification [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubclassification.Superclassifier")] [Implements(implementation: "ISpecialization.General")] - public Guid General { get; set; } + Guid Core.Types.ISpecialization.General + { + get => this.Superclassifier; + set + { + this.Superclassifier = value; + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -224,7 +231,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubclassification.OwningClassifier")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? owningType { get; internal set; } + Guid? Core.Types.ISpecialization.owningType => this.owningClassifier.HasValue ? this.owningClassifier.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -263,7 +270,18 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific = value[0]; + } + + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -272,7 +290,14 @@ public partial class Subclassification : ISubclassification [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubclassification.Subclassifier")] [Implements(implementation: "ISpecialization.Specific")] - public Guid Specific { get; set; } + Guid Core.Types.ISpecialization.Specific + { + get => this.Subclassifier; + set + { + this.Subclassifier = value; + } + } /// /// The more specific Classifier in this Subclassification. @@ -297,7 +322,18 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/SubjectMembership.cs b/SysML2.NET/Core/AutoGenDto/SubjectMembership.cs index 680097b68..5103272f0 100644 --- a/SysML2.NET/Core/AutoGenDto/SubjectMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/SubjectMembership.cs @@ -122,7 +122,11 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -130,7 +134,7 @@ public partial class SubjectMembership : ISubjectMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -138,7 +142,11 @@ public partial class SubjectMembership : ISubjectMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -149,7 +157,7 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -157,7 +165,11 @@ public partial class SubjectMembership : ISubjectMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -196,7 +208,7 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -214,7 +226,7 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => ((SysML2.NET.Core.DTO.Kernel.Behaviors.IParameterMembership)this).ownedMemberParameter; /// /// The name of the ownedMemberElement. @@ -231,7 +243,7 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("ISubjectMembership.OwnedSubjectParameter")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public Guid ownedMemberParameter { get; internal set; } + Guid Kernel.Behaviors.IParameterMembership.ownedMemberParameter => this.ownedSubjectParameter; /// /// The shortName of the ownedMemberElement. @@ -353,7 +365,11 @@ public partial class SubjectMembership : ISubjectMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -362,7 +378,18 @@ public partial class SubjectMembership : ISubjectMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/Subsetting.cs b/SysML2.NET/Core/AutoGenDto/Subsetting.cs index ceb3a374a..988ff38b3 100644 --- a/SysML2.NET/Core/AutoGenDto/Subsetting.cs +++ b/SysML2.NET/Core/AutoGenDto/Subsetting.cs @@ -98,7 +98,14 @@ public partial class Subsetting : ISubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubsetting.SubsettedFeature")] [Implements(implementation: "ISpecialization.General")] - public Guid General { get; set; } + Guid Core.Types.ISpecialization.General + { + get => this.SubsettedFeature; + set + { + this.SubsettedFeature = value; + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -229,7 +236,7 @@ public partial class Subsetting : ISubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public Guid? owningType { get; internal set; } + Guid? Core.Types.ISpecialization.owningType => this.owningFeature.HasValue ? this.owningFeature.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -268,7 +275,18 @@ public partial class Subsetting : ISubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).Specific = value[0]; + } + + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -277,7 +295,14 @@ public partial class Subsetting : ISubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubsetting.SubsettingFeature")] [Implements(implementation: "ISpecialization.Specific")] - public Guid Specific { get; set; } + Guid Core.Types.ISpecialization.Specific + { + get => this.SubsettingFeature; + set + { + this.SubsettingFeature = value; + } + } /// /// The Feature that is subsetted by the subsettingFeature of this Subsetting. @@ -302,7 +327,18 @@ public partial class Subsetting : ISubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Core.Types.ISpecialization)this).General = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/Succession.cs b/SysML2.NET/Core/AutoGenDto/Succession.cs index e7ac4cf09..b4b1257bb 100644 --- a/SysML2.NET/Core/AutoGenDto/Succession.cs +++ b/SysML2.NET/Core/AutoGenDto/Succession.cs @@ -171,7 +171,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.connectorEnd; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -732,7 +732,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedFeature; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -760,7 +760,11 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature.HasValue ? [this.sourceFeature.Value] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -778,7 +782,11 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetFeature; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -808,7 +816,7 @@ public partial class Succession : ISuccession [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => this.association; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/SuccessionAsUsage.cs b/SysML2.NET/Core/AutoGenDto/SuccessionAsUsage.cs index 4f1273ccb..54d70e8f6 100644 --- a/SysML2.NET/Core/AutoGenDto/SuccessionAsUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/SuccessionAsUsage.cs @@ -191,7 +191,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.connectorEnd; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -410,7 +410,11 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1017,7 +1021,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedFeature; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1045,7 +1049,11 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature.HasValue ? [this.sourceFeature.Value] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1063,7 +1071,11 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetFeature; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1093,7 +1105,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => this.definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs b/SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs index 1fc4600e9..9f1e1ed02 100644 --- a/SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs +++ b/SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs @@ -62,7 +62,7 @@ public partial class SuccessionFlow : ISuccessionFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List association { get; internal set; } = []; + List Kernel.Connectors.IConnector.association => this.interaction; /// /// The Behaviors that type this Step. @@ -71,7 +71,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.interaction; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -151,7 +151,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -185,7 +185,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.connectorEnd; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -788,7 +788,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedFeature; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -816,7 +816,11 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature.HasValue ? [this.sourceFeature.Value] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -842,7 +846,11 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetFeature; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -880,7 +888,7 @@ public partial class SuccessionFlow : ISuccessionFlow [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Kernel.Connectors.IConnector)this).association; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/SuccessionFlowUsage.cs b/SysML2.NET/Core/AutoGenDto/SuccessionFlowUsage.cs index d068cbc33..7558f9f8f 100644 --- a/SysML2.NET/Core/AutoGenDto/SuccessionFlowUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/SuccessionFlowUsage.cs @@ -57,7 +57,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition { get; internal set; } = []; + List Systems.Actions.IActionUsage.actionDefinition => this.flowDefinition; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -73,7 +73,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List association { get; internal set; } = []; + List Kernel.Connectors.IConnector.association => ((SysML2.NET.Core.DTO.Kernel.Interactions.IFlow)this).interaction; /// /// The Behaviors that type this Step. @@ -82,7 +82,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Interactions.IFlow)this).interaction; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -151,7 +151,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -173,7 +173,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -216,7 +216,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature { get; internal set; } = []; + List Core.Types.IType.endFeature => this.connectorEnd; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -331,7 +331,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IFlow.Interaction")] - public List interaction { get; internal set; } = []; + List Kernel.Interactions.IFlow.interaction => this.flowDefinition; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -481,7 +481,11 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -768,7 +772,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1132,7 +1136,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement { get; internal set; } = []; + List Root.Elements.IRelationship.relatedElement => this.relatedFeature; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1160,7 +1164,11 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature.HasValue ? [this.sourceFeature.Value] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1186,7 +1194,11 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.targetFeature; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1224,7 +1236,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Kernel.Connectors.IConnector)this).association; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/TerminateActionUsage.cs b/SysML2.NET/Core/AutoGenDto/TerminateActionUsage.cs index eb23b0ab1..4c2943c97 100644 --- a/SysML2.NET/Core/AutoGenDto/TerminateActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/TerminateActionUsage.cs @@ -75,7 +75,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -125,7 +125,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -147,7 +147,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -416,7 +416,11 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -703,7 +707,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1065,7 +1069,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/TextualRepresentation.cs b/SysML2.NET/Core/AutoGenDto/TextualRepresentation.cs index a1228ab56..769ba1f9b 100644 --- a/SysML2.NET/Core/AutoGenDto/TextualRepresentation.cs +++ b/SysML2.NET/Core/AutoGenDto/TextualRepresentation.cs @@ -82,7 +82,7 @@ public partial class TextualRepresentation : ITextualRepresentation [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("ITextualRepresentation.RepresentedElement")] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List annotatedElement { get; internal set; } = []; + List IAnnotatingElement.annotatedElement => [this.representedElement]; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the diff --git a/SysML2.NET/Core/AutoGenDto/TransitionFeatureMembership.cs b/SysML2.NET/Core/AutoGenDto/TransitionFeatureMembership.cs index cf67182e3..10cf479dc 100644 --- a/SysML2.NET/Core/AutoGenDto/TransitionFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/TransitionFeatureMembership.cs @@ -130,7 +130,11 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -138,7 +142,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -146,7 +150,11 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -157,7 +165,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -165,7 +173,11 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -204,7 +216,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -222,7 +234,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("ITransitionFeatureMembership.TransitionFeature")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => this.transitionFeature; /// /// The name of the ownedMemberElement. @@ -344,7 +356,11 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -353,7 +369,18 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/TransitionUsage.cs b/SysML2.NET/Core/AutoGenDto/TransitionUsage.cs index ab400e0bf..2440691d0 100644 --- a/SysML2.NET/Core/AutoGenDto/TransitionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/TransitionUsage.cs @@ -77,7 +77,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -127,7 +127,7 @@ public partial class TransitionUsage : ITransitionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -149,7 +149,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -438,7 +438,11 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -725,7 +729,7 @@ public partial class TransitionUsage : ITransitionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1114,7 +1118,7 @@ public partial class TransitionUsage : ITransitionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/TriggerInvocationExpression.cs b/SysML2.NET/Core/AutoGenDto/TriggerInvocationExpression.cs index 446161b62..4cf9d3aa4 100644 --- a/SysML2.NET/Core/AutoGenDto/TriggerInvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/TriggerInvocationExpression.cs @@ -72,7 +72,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.function.HasValue ? [this.function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -133,7 +133,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/TypeFeaturing.cs b/SysML2.NET/Core/AutoGenDto/TypeFeaturing.cs index 2d1cd249b..6bd775409 100644 --- a/SysML2.NET/Core/AutoGenDto/TypeFeaturing.cs +++ b/SysML2.NET/Core/AutoGenDto/TypeFeaturing.cs @@ -261,7 +261,18 @@ public partial class TypeFeaturing : ITypeFeaturing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ITypeFeaturing.FeatureOfType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.FeatureOfType]; + set + { + if (value.Count != 0) + { + this.FeatureOfType = value[0]; + } + + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -270,7 +281,18 @@ public partial class TypeFeaturing : ITypeFeaturing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ITypeFeaturing.FeaturingType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.FeaturingType]; + set + { + if (value.Count != 0) + { + this.FeaturingType = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/Unioning.cs b/SysML2.NET/Core/AutoGenDto/Unioning.cs index 6a376cb07..ed1edb8ca 100644 --- a/SysML2.NET/Core/AutoGenDto/Unioning.cs +++ b/SysML2.NET/Core/AutoGenDto/Unioning.cs @@ -235,7 +235,11 @@ public partial class Unioning : IUnioning [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IUnioning.TypeUnioned")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.typeUnioned]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -244,7 +248,18 @@ public partial class Unioning : IUnioning [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IUnioning.UnioningType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [this.UnioningType]; + set + { + if (value.Count != 0) + { + this.UnioningType = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/Usage.cs b/SysML2.NET/Core/AutoGenDto/Usage.cs index 3667c740e..9b37b8995 100644 --- a/SysML2.NET/Core/AutoGenDto/Usage.cs +++ b/SysML2.NET/Core/AutoGenDto/Usage.cs @@ -380,7 +380,11 @@ public partial class Usage : IUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -992,7 +996,7 @@ public partial class Usage : IUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => this.definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/UseCaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/UseCaseDefinition.cs index 7f868a398..1df59690f 100644 --- a/SysML2.NET/Core/AutoGenDto/UseCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/UseCaseDefinition.cs @@ -119,7 +119,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs index 32bb7a17c..7fa0ec69e 100644 --- a/SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs @@ -57,7 +57,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition { get; internal set; } = []; + List Systems.Actions.IActionUsage.actionDefinition => ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.HasValue ? [((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.Value] : []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -82,7 +82,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -94,7 +94,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public Guid? calculationDefinition { get; internal set; } + Guid? Systems.Calculations.ICalculationUsage.calculationDefinition => ((SysML2.NET.Core.DTO.Systems.Cases.ICaseUsage)this).caseDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Cases.ICaseUsage)this).caseDefinition.Value : Guid.Empty; /// /// The CaseDefinition that is the type of this CaseUsage. @@ -103,7 +103,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [RedefinedByProperty("IUseCaseUsage.UseCaseDefinition")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public Guid? caseDefinition { get; internal set; } + Guid? Systems.Cases.ICaseUsage.caseDefinition => this.useCaseDefinition.HasValue ? this.useCaseDefinition.Value : Guid.Empty; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -153,7 +153,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -175,7 +175,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -270,7 +270,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? Kernel.Functions.IExpression.function => ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -469,7 +469,11 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -764,7 +768,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1138,7 +1142,7 @@ public partial class UseCaseUsage : IUseCaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/VariantMembership.cs b/SysML2.NET/Core/AutoGenDto/VariantMembership.cs index 38e3a90cf..b5eafca26 100644 --- a/SysML2.NET/Core/AutoGenDto/VariantMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/VariantMembership.cs @@ -122,7 +122,11 @@ public partial class VariantMembership : IVariantMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -130,7 +134,7 @@ public partial class VariantMembership : IVariantMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -138,7 +142,11 @@ public partial class VariantMembership : IVariantMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -156,7 +164,11 @@ public partial class VariantMembership : IVariantMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -195,7 +207,7 @@ public partial class VariantMembership : IVariantMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IVariantMembership.OwnedVariantUsage")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => this.ownedVariantUsage; /// /// The elementId of the ownedMemberElement. @@ -325,7 +337,11 @@ public partial class VariantMembership : IVariantMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [this.membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -334,7 +350,18 @@ public partial class VariantMembership : IVariantMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/VerificationCaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/VerificationCaseDefinition.cs index 118f9ea12..3719d71e8 100644 --- a/SysML2.NET/Core/AutoGenDto/VerificationCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/VerificationCaseDefinition.cs @@ -118,7 +118,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/VerificationCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/VerificationCaseUsage.cs index 1db7341a9..3e5b01f9a 100644 --- a/SysML2.NET/Core/AutoGenDto/VerificationCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/VerificationCaseUsage.cs @@ -57,7 +57,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition { get; internal set; } = []; + List Systems.Actions.IActionUsage.actionDefinition => ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.HasValue ? [((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.Value] : []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -82,7 +82,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -94,7 +94,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public Guid? calculationDefinition { get; internal set; } + Guid? Systems.Calculations.ICalculationUsage.calculationDefinition => this.caseDefinition.HasValue ? this.caseDefinition.Value : Guid.Empty; /// /// The CaseDefinition that is the type of this CaseUsage. @@ -152,7 +152,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -174,7 +174,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -269,7 +269,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? Kernel.Functions.IExpression.function => ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Calculations.ICalculationUsage)this).calculationDefinition.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -460,7 +460,11 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -755,7 +759,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1129,7 +1133,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ViewRenderingMembership.cs b/SysML2.NET/Core/AutoGenDto/ViewRenderingMembership.cs index ef43726f2..4c2995825 100644 --- a/SysML2.NET/Core/AutoGenDto/ViewRenderingMembership.cs +++ b/SysML2.NET/Core/AutoGenDto/ViewRenderingMembership.cs @@ -121,7 +121,11 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public Guid MemberElement { get; set; } + Guid Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.DTO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -129,7 +133,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId { get; internal set; } + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -137,7 +141,11 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -148,7 +156,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public Guid membershipOwningNamespace { get; internal set; } + Guid Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -156,7 +164,11 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -195,7 +207,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public Guid ownedMemberElement { get; internal set; } + Guid Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.DTO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -213,7 +225,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IViewRenderingMembership.OwnedRendering")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public Guid ownedMemberFeature { get; internal set; } + Guid Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedRendering; /// /// The name of the ownedMemberElement. @@ -353,7 +365,11 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).membershipOwningNamespace]; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -362,7 +378,18 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement]; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.DTO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenDto/ViewUsage.cs b/SysML2.NET/Core/AutoGenDto/ViewUsage.cs index fa69ab6ad..ff520e53e 100644 --- a/SysML2.NET/Core/AutoGenDto/ViewUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ViewUsage.cs @@ -104,7 +104,7 @@ public partial class ViewUsage : IViewUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -403,7 +403,11 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1002,7 +1006,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedByProperty("IViewUsage.ViewDefinition")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List partDefinition { get; internal set; } = []; + List Systems.Parts.IPartUsage.partDefinition => this.viewDefinition.HasValue ? [this.viewDefinition.Value] : []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1062,7 +1066,7 @@ public partial class ViewUsage : IViewUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ViewpointDefinition.cs b/SysML2.NET/Core/AutoGenDto/ViewpointDefinition.cs index bfa47b30f..04947c75d 100644 --- a/SysML2.NET/Core/AutoGenDto/ViewpointDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ViewpointDefinition.cs @@ -88,7 +88,14 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementDefinition.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -110,7 +117,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs b/SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs index 45e801de3..83a988457 100644 --- a/SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs @@ -80,7 +80,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.HasValue ? [((SysML2.NET.Core.DTO.Kernel.Functions.IExpression)this).function.Value] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -103,7 +103,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public Guid? constraintDefinition { get; internal set; } + Guid? Systems.Constraints.IConstraintUsage.constraintDefinition => ((SysML2.NET.Core.DTO.Systems.Requirements.IRequirementUsage)this).requirementDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Requirements.IRequirementUsage)this).requirementDefinition.Value : Guid.Empty; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -131,7 +131,14 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementUsage.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -142,7 +149,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -164,7 +171,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -268,7 +275,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public Guid? function { get; internal set; } + Guid? Kernel.Functions.IExpression.function => ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.HasValue ? ((SysML2.NET.Core.DTO.Kernel.Functions.IBooleanExpression)this).predicate.Value : Guid.Empty; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -459,7 +466,11 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1066,7 +1077,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public Guid? predicate { get; internal set; } + Guid? Kernel.Functions.IBooleanExpression.predicate => ((SysML2.NET.Core.DTO.Systems.Constraints.IConstraintUsage)this).constraintDefinition.HasValue ? ((SysML2.NET.Core.DTO.Systems.Constraints.IConstraintUsage)this).constraintDefinition.Value : Guid.Empty; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1107,7 +1118,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [RedefinedByProperty("IViewpointUsage.ViewpointDefinition")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public Guid? requirementDefinition { get; internal set; } + Guid? Systems.Requirements.IRequirementUsage.requirementDefinition => this.viewpointDefinition.HasValue ? this.viewpointDefinition.Value : Guid.Empty; /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1174,7 +1185,7 @@ public partial class ViewpointUsage : IViewpointUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/WhileLoopActionUsage.cs b/SysML2.NET/Core/AutoGenDto/WhileLoopActionUsage.cs index 759c7a280..692575f7a 100644 --- a/SysML2.NET/Core/AutoGenDto/WhileLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/WhileLoopActionUsage.cs @@ -75,7 +75,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior { get; internal set; } = []; + List Kernel.Behaviors.IStep.behavior => this.actionDefinition; /// /// The ActionUsage to be performed repeatedly by the LoopActionUsage. It is the second parameter of the @@ -133,7 +133,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition { get; internal set; } = []; + List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -155,7 +155,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature { get; internal set; } = []; + List Core.Types.IType.directedFeature => this.parameter; /// /// The usages of this Usage that are directedFeatures. @@ -424,7 +424,11 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -711,7 +715,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition { get; internal set; } = []; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1065,7 +1069,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type { get; internal set; } = []; + List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/AcceptActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/AcceptActionUsage.cs index dd43bedce..d285bd9fd 100644 --- a/SysML2.NET/Core/AutoGenPoco/AcceptActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AcceptActionUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -105,7 +106,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -155,7 +156,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -177,7 +178,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -446,7 +447,11 @@ public partial class AcceptActionUsage : IAcceptActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -733,7 +738,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1112,7 +1117,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/ActionDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ActionDefinition.cs index 933400d48..dc38da8d5 100644 --- a/SysML2.NET/Core/AutoGenPoco/ActionDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ActionDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -127,7 +128,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenPoco/ActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ActionUsage.cs index 41ee4f995..1c6e8a48c 100644 --- a/SysML2.NET/Core/AutoGenPoco/ActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ActionUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -103,7 +104,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -153,7 +154,7 @@ public partial class ActionUsage : IActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -175,7 +176,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -444,7 +445,11 @@ public partial class ActionUsage : IActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -731,7 +736,7 @@ public partial class ActionUsage : IActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1085,7 +1090,7 @@ public partial class ActionUsage : IActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/ActorMembership.cs b/SysML2.NET/Core/AutoGenPoco/ActorMembership.cs index b665aec4d..1b081eb3f 100644 --- a/SysML2.NET/Core/AutoGenPoco/ActorMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ActorMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; @@ -128,7 +129,11 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -136,7 +141,7 @@ public partial class ActorMembership : IActorMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -144,7 +149,11 @@ public partial class ActorMembership : IActorMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -155,7 +164,7 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -163,7 +172,11 @@ public partial class ActorMembership : IActorMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -210,7 +223,7 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -228,7 +241,7 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => ((SysML2.NET.Core.POCO.Kernel.Behaviors.IParameterMembership)this).ownedMemberParameter; /// /// The name of the ownedMemberElement. @@ -245,7 +258,7 @@ public partial class ActorMembership : IActorMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IActorMembership.OwnedActorParameter")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public IFeature ownedMemberParameter => this.ComputeOwnedMemberParameter(); + IFeature Kernel.Behaviors.IParameterMembership.ownedMemberParameter => this.ownedActorParameter; /// /// The shortName of the ownedMemberElement. @@ -359,7 +372,11 @@ public partial class ActorMembership : IActorMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -368,7 +385,17 @@ public partial class ActorMembership : IActorMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/AllocationDefinition.cs b/SysML2.NET/Core/AutoGenPoco/AllocationDefinition.cs index 9245adb10..99001fcf0 100644 --- a/SysML2.NET/Core/AutoGenPoco/AllocationDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/AllocationDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Allocations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -101,7 +102,7 @@ public partial class AllocationDefinition : IAllocationDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List associationEnd => this.ComputeAssociationEnd(); + List Kernel.Associations.IAssociation.associationEnd => [.. this.connectionEnd]; /// /// The Usages that define the things related by the ConnectionDefinition. @@ -182,7 +183,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. ((SysML2.NET.Core.POCO.Kernel.Associations.IAssociation)this).associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -314,7 +315,14 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_b9102da_1564072709069_937523_30797", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IConnectionDefinition.IsSufficient")] [Implements(implementation: "IType.IsSufficient")] - bool Core.Types.IType.IsSufficient { get; set; } + bool Core.Types.IType.IsSufficient + { + get => this.IsSufficient; + set + { + this.IsSufficient = value; + } + } /// /// Whether this Definition is for a variation point or not. If true, then all the memberships of the @@ -805,7 +813,7 @@ public partial class AllocationDefinition : IAllocationDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -833,7 +841,11 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType != null ? [this.sourceType] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -851,7 +863,11 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetType]; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenPoco/AllocationUsage.cs b/SysML2.NET/Core/AutoGenPoco/AllocationUsage.cs index bf458dfec..3c93ec7e4 100644 --- a/SysML2.NET/Core/AutoGenPoco/AllocationUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AllocationUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Allocations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -100,7 +101,7 @@ public partial class AllocationUsage : IAllocationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - public List association => this.ComputeAssociation(); + List Kernel.Connectors.IConnector.association => [.. ((SysML2.NET.Core.POCO.Systems.Connections.IConnectionUsage)this).connectionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -124,7 +125,7 @@ public partial class AllocationUsage : IAllocationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedByProperty("IAllocationUsage.AllocationDefinition")] [Implements(implementation: "IConnectionUsage.ConnectionDefinition")] - public List connectionDefinition => this.ComputeConnectionDefinition(); + List Systems.Connections.IConnectionUsage.connectionDefinition => [.. this.allocationDefinition]; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -181,7 +182,7 @@ public partial class AllocationUsage : IAllocationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -245,7 +246,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -480,7 +481,11 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1124,7 +1129,7 @@ public partial class AllocationUsage : IAllocationUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1152,7 +1157,11 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1170,7 +1179,11 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1200,7 +1213,7 @@ public partial class AllocationUsage : IAllocationUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/AnalysisCaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/AnalysisCaseDefinition.cs index 2f0e61acf..e2423c44d 100644 --- a/SysML2.NET/Core/AutoGenPoco/AnalysisCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/AnalysisCaseDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.AnalysisCases using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -145,7 +146,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenPoco/AnalysisCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/AnalysisCaseUsage.cs index 83e400ae2..20c1817d1 100644 --- a/SysML2.NET/Core/AutoGenPoco/AnalysisCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AnalysisCaseUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.AnalysisCases using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -86,7 +87,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition => this.ComputeActionDefinition(); + List Systems.Actions.IActionUsage.actionDefinition => ((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition != null ? [((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition] : []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -119,7 +120,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -131,7 +132,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public IFunction calculationDefinition => this.ComputeCalculationDefinition(); + IFunction Systems.Calculations.ICalculationUsage.calculationDefinition => ((SysML2.NET.Core.POCO.Systems.Cases.ICaseUsage)this).caseDefinition; /// /// The CaseDefinition that is the type of this CaseUsage. @@ -140,7 +141,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [RedefinedByProperty("IAnalysisCaseUsage.AnalysisCaseDefinition")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public ICaseDefinition caseDefinition => this.ComputeCaseDefinition(); + ICaseDefinition Systems.Cases.ICaseUsage.caseDefinition => this.analysisCaseDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -190,7 +191,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -212,7 +213,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -307,7 +308,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction Kernel.Functions.IExpression.function => ((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -498,7 +499,11 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -793,7 +798,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.POCO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1176,7 +1181,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/AnnotatingElement.cs b/SysML2.NET/Core/AutoGenPoco/AnnotatingElement.cs index 817b69ea6..d08787b18 100644 --- a/SysML2.NET/Core/AutoGenPoco/AnnotatingElement.cs +++ b/SysML2.NET/Core/AutoGenPoco/AnnotatingElement.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Annotations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; diff --git a/SysML2.NET/Core/AutoGenPoco/Annotation.cs b/SysML2.NET/Core/AutoGenPoco/Annotation.cs index ee9f13227..f9e5b028a 100644 --- a/SysML2.NET/Core/AutoGenPoco/Annotation.cs +++ b/SysML2.NET/Core/AutoGenPoco/Annotation.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Annotations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; @@ -281,7 +282,11 @@ public partial class Annotation : IAnnotation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAnnotation.AnnotatingElement")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.annotatingElement != null ? [this.annotatingElement] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -290,7 +295,17 @@ public partial class Annotation : IAnnotation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAnnotation.AnnotatedElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.AnnotatedElement != null ? [this.AnnotatedElement] : []; + set + { + if (value.Count != 0) + { + this.AnnotatedElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/AssertConstraintUsage.cs b/SysML2.NET/Core/AutoGenPoco/AssertConstraintUsage.cs index c8803c876..a0b081b3e 100644 --- a/SysML2.NET/Core/AutoGenPoco/AssertConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AssertConstraintUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Constraints using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -101,7 +102,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -161,7 +162,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -183,7 +184,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -278,7 +279,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction Kernel.Functions.IExpression.function => ((SysML2.NET.Core.POCO.Kernel.Functions.IBooleanExpression)this).predicate; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -476,7 +477,11 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1083,7 +1088,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate predicate => this.ComputePredicate(); + IPredicate Kernel.Functions.IBooleanExpression.predicate => this.constraintDefinition; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1136,7 +1141,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/AssignmentActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/AssignmentActionUsage.cs index 5e6b74090..9ab249d08 100644 --- a/SysML2.NET/Core/AutoGenPoco/AssignmentActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AssignmentActionUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -104,7 +105,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -154,7 +155,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -176,7 +177,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -445,7 +446,11 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -732,7 +737,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1103,7 +1108,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Association.cs b/SysML2.NET/Core/AutoGenPoco/Association.cs index 89a236cf8..b571d8994 100644 --- a/SysML2.NET/Core/AutoGenPoco/Association.cs +++ b/SysML2.NET/Core/AutoGenPoco/Association.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Associations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -131,7 +132,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -511,7 +512,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -539,7 +540,11 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType != null ? [this.sourceType] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -557,7 +562,11 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetType]; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenPoco/AssociationStructure.cs b/SysML2.NET/Core/AutoGenPoco/AssociationStructure.cs index 21fb977d3..aa9e11cc2 100644 --- a/SysML2.NET/Core/AutoGenPoco/AssociationStructure.cs +++ b/SysML2.NET/Core/AutoGenPoco/AssociationStructure.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Associations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -133,7 +134,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -513,7 +514,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -541,7 +542,11 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType != null ? [this.sourceType] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -559,7 +564,11 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetType]; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenPoco/AttributeDefinition.cs b/SysML2.NET/Core/AutoGenPoco/AttributeDefinition.cs index 237ab7792..6dcc1bf8b 100644 --- a/SysML2.NET/Core/AutoGenPoco/AttributeDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/AttributeDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Attributes using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs b/SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs index 9c8a9408b..8251d5622 100644 --- a/SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Attributes using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Classifiers; @@ -143,7 +144,7 @@ public partial class AttributeUsage : IAttributeUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IAttributeUsage.AttributeDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.attributeDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -398,7 +399,7 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IAttributeUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.isReference => throw new InvalidOperationException("Redefined by property IAttributeUsage.IsReference"); + bool Systems.DefinitionAndUsage.IUsage.isReference => this.isReference; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -426,7 +427,11 @@ public partial class AttributeUsage : IAttributeUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1038,7 +1043,7 @@ public partial class AttributeUsage : IAttributeUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Behavior.cs b/SysML2.NET/Core/AutoGenPoco/Behavior.cs index 504e1571e..016a27547 100644 --- a/SysML2.NET/Core/AutoGenPoco/Behavior.cs +++ b/SysML2.NET/Core/AutoGenPoco/Behavior.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Behaviors using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -96,7 +97,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The Documentation owned by this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/BindingConnector.cs b/SysML2.NET/Core/AutoGenPoco/BindingConnector.cs index e98f40f8d..54c9199cb 100644 --- a/SysML2.NET/Core/AutoGenPoco/BindingConnector.cs +++ b/SysML2.NET/Core/AutoGenPoco/BindingConnector.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Connectors using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -178,7 +179,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -739,7 +740,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -767,7 +768,11 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -785,7 +790,11 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -815,7 +824,7 @@ public partial class BindingConnector : IBindingConnector [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. this.association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/BindingConnectorAsUsage.cs b/SysML2.NET/Core/AutoGenPoco/BindingConnectorAsUsage.cs index 4314adb1a..06f3a26a5 100644 --- a/SysML2.NET/Core/AutoGenPoco/BindingConnectorAsUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/BindingConnectorAsUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Connections using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Classifiers; @@ -219,7 +220,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -438,7 +439,11 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1045,7 +1050,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1073,7 +1078,11 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1091,7 +1100,11 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1121,7 +1134,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. this.association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/BooleanExpression.cs b/SysML2.NET/Core/AutoGenPoco/BooleanExpression.cs index 24bf85141..3468ceff5 100644 --- a/SysML2.NET/Core/AutoGenPoco/BooleanExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/BooleanExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -66,7 +67,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -127,7 +128,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -213,7 +214,7 @@ public partial class BooleanExpression : IBooleanExpression [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction IExpression.function => this.predicate; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. diff --git a/SysML2.NET/Core/AutoGenPoco/CalculationDefinition.cs b/SysML2.NET/Core/AutoGenPoco/CalculationDefinition.cs index fbad648d0..e174f6ed3 100644 --- a/SysML2.NET/Core/AutoGenPoco/CalculationDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/CalculationDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Calculations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -137,7 +138,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenPoco/CalculationUsage.cs b/SysML2.NET/Core/AutoGenPoco/CalculationUsage.cs index 07c550669..346c38f4a 100644 --- a/SysML2.NET/Core/AutoGenPoco/CalculationUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/CalculationUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Calculations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -89,7 +90,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition => this.ComputeActionDefinition(); + List Systems.Actions.IActionUsage.actionDefinition => this.calculationDefinition != null ? [this.calculationDefinition] : []; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -105,7 +106,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -166,7 +167,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -188,7 +189,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -283,7 +284,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction Kernel.Functions.IExpression.function => this.calculationDefinition; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -474,7 +475,11 @@ public partial class CalculationUsage : ICalculationUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -761,7 +766,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.POCO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1126,7 +1131,7 @@ public partial class CalculationUsage : ICalculationUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs index 9e6286b54..a3526e6e2 100644 --- a/SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Cases using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -147,7 +148,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenPoco/CaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/CaseUsage.cs index 302229b94..4cce46860 100644 --- a/SysML2.NET/Core/AutoGenPoco/CaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/CaseUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Cases using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -86,7 +87,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition => this.ComputeActionDefinition(); + List Systems.Actions.IActionUsage.actionDefinition => ((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition != null ? [((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition] : []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -111,7 +112,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -123,7 +124,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public IFunction calculationDefinition => this.ComputeCalculationDefinition(); + IFunction Systems.Calculations.ICalculationUsage.calculationDefinition => this.caseDefinition; /// /// The CaseDefinition that is the type of this CaseUsage. @@ -181,7 +182,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -203,7 +204,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -298,7 +299,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction Kernel.Functions.IExpression.function => ((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -489,7 +490,11 @@ public partial class CaseUsage : ICaseUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -784,7 +789,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.POCO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1158,7 +1163,7 @@ public partial class CaseUsage : ICaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Class.cs b/SysML2.NET/Core/AutoGenPoco/Class.cs index 8d2ca956b..cea9c7535 100644 --- a/SysML2.NET/Core/AutoGenPoco/Class.cs +++ b/SysML2.NET/Core/AutoGenPoco/Class.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Classes using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/Classifier.cs b/SysML2.NET/Core/AutoGenPoco/Classifier.cs index bec9e7cc9..120553f1a 100644 --- a/SysML2.NET/Core/AutoGenPoco/Classifier.cs +++ b/SysML2.NET/Core/AutoGenPoco/Classifier.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Classifiers using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Core.Types; diff --git a/SysML2.NET/Core/AutoGenPoco/CollectExpression.cs b/SysML2.NET/Core/AutoGenPoco/CollectExpression.cs index 75cd6abfb..7f22095fc 100644 --- a/SysML2.NET/Core/AutoGenPoco/CollectExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/CollectExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -77,7 +78,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -138,7 +139,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -450,7 +451,14 @@ public partial class CollectExpression : ICollectExpression [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)] [RedefinedByProperty("ICollectExpression.Operator")] [Implements(implementation: "IOperatorExpression.Operator")] - string IOperatorExpression.Operator { get; set; } + string IOperatorExpression.Operator + { + get => this.Operator; + set + { + this.Operator = value; + } + } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. diff --git a/SysML2.NET/Core/AutoGenPoco/Comment.cs b/SysML2.NET/Core/AutoGenPoco/Comment.cs index c5e4722b6..6349da295 100644 --- a/SysML2.NET/Core/AutoGenPoco/Comment.cs +++ b/SysML2.NET/Core/AutoGenPoco/Comment.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Annotations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; diff --git a/SysML2.NET/Core/AutoGenPoco/ConcernDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ConcernDefinition.cs index 178bd236e..374ef2740 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConcernDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConcernDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -117,7 +118,14 @@ public partial class ConcernDefinition : IConcernDefinition [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementDefinition.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -139,7 +147,7 @@ public partial class ConcernDefinition : IConcernDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs b/SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs index c98b8f789..d9c2e5120 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -112,7 +113,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -143,7 +144,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public IPredicate constraintDefinition => this.ComputeConstraintDefinition(); + IPredicate Systems.Constraints.IConstraintUsage.constraintDefinition => ((SysML2.NET.Core.POCO.Systems.Requirements.IRequirementUsage)this).requirementDefinition; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -171,7 +172,14 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementUsage.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -182,7 +190,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -204,7 +212,7 @@ public partial class ConcernUsage : IConcernUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -308,7 +316,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction Kernel.Functions.IExpression.function => ((SysML2.NET.Core.POCO.Kernel.Functions.IBooleanExpression)this).predicate; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -499,7 +507,11 @@ public partial class ConcernUsage : IConcernUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1106,7 +1118,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate predicate => this.ComputePredicate(); + IPredicate Kernel.Functions.IBooleanExpression.predicate => ((SysML2.NET.Core.POCO.Systems.Constraints.IConstraintUsage)this).constraintDefinition; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1147,7 +1159,7 @@ public partial class ConcernUsage : IConcernUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [RedefinedByProperty("IConcernUsage.ConcernDefinition")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public IRequirementDefinition requirementDefinition => this.ComputeRequirementDefinition(); + IRequirementDefinition IRequirementUsage.requirementDefinition => this.concernDefinition; /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1214,7 +1226,7 @@ public partial class ConcernUsage : IConcernUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/ConjugatedPortDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ConjugatedPortDefinition.cs index ab373190c..4b5918cac 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConjugatedPortDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConjugatedPortDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Ports using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -414,7 +415,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] [RedefinedByProperty("IConjugatedPortDefinition.OwnedPortConjugator")] [Implements(implementation: "IType.OwnedConjugator")] - public IConjugation ownedConjugator => this.ComputeOwnedConjugator(); + IConjugation Core.Types.IType.ownedConjugator => this.ownedPortConjugator; /// /// The ConnectorAsUsages that are ownedUsages of this Definition. Note that this list includes @@ -743,7 +744,7 @@ public partial class ConjugatedPortDefinition : IConjugatedPortDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")] [RedefinedByProperty("IConjugatedPortDefinition.OriginalPortDefinition")] [Implements(implementation: "IElement.OwningNamespace")] - public INamespace owningNamespace => this.ComputeOwningNamespace(); + INamespace Root.Elements.IElement.owningNamespace => this.originalPortDefinition; /// /// The Relationship for which this Element is an ownedRelatedElement, if any. diff --git a/SysML2.NET/Core/AutoGenPoco/ConjugatedPortTyping.cs b/SysML2.NET/Core/AutoGenPoco/ConjugatedPortTyping.cs index 84d925aec..1e42d1532 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConjugatedPortTyping.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConjugatedPortTyping.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Ports using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Core.Types; @@ -108,7 +109,14 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IFeatureTyping.Type")] [Implements(implementation: "ISpecialization.General")] - public IType General { get; set; } + IType Core.Types.ISpecialization.General + { + get => ((SysML2.NET.Core.POCO.Core.Features.IFeatureTyping)this).Type; + set + { + ((SysML2.NET.Core.POCO.Core.Features.IFeatureTyping)this).Type = value; + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -239,7 +247,7 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IFeatureTyping.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType owningType => this.ComputeOwningType(); + IType Core.Types.ISpecialization.owningType => this.owningFeature; /// /// The originalPortDefinition of the conjugatedPortDefinition of this ConjugatedPortTyping. @@ -285,7 +293,17 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific = firstValue; + } + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -294,7 +312,17 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureTyping.TypedFeature")] [Implements(implementation: "ISpecialization.Specific")] - public IType Specific { get; set; } + IType Core.Types.ISpecialization.Specific + { + get => this.TypedFeature; + set + { + if (value is IFeature castedValue) + { + this.TypedFeature = castedValue; + } + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -303,7 +331,17 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. @@ -321,7 +359,17 @@ public partial class ConjugatedPortTyping : IConjugatedPortTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_563969_43273")] [RedefinedByProperty("IConjugatedPortTyping.ConjugatedPortDefinition")] [Implements(implementation: "IFeatureTyping.Type")] - public IType Type { get; set; } + IType Core.Features.IFeatureTyping.Type + { + get => this.ConjugatedPortDefinition; + set + { + if (value is IConjugatedPortDefinition castedValue) + { + this.ConjugatedPortDefinition = castedValue; + } + } + } /// /// The Feature that has a type determined by this FeatureTyping. diff --git a/SysML2.NET/Core/AutoGenPoco/Conjugation.cs b/SysML2.NET/Core/AutoGenPoco/Conjugation.cs index 9453174bc..5e6c21768 100644 --- a/SysML2.NET/Core/AutoGenPoco/Conjugation.cs +++ b/SysML2.NET/Core/AutoGenPoco/Conjugation.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Types using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -269,7 +270,17 @@ public partial class Conjugation : IConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConjugation.ConjugatedType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.ConjugatedType != null ? [this.ConjugatedType] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.ConjugatedType = firstValue; + } + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -278,7 +289,17 @@ public partial class Conjugation : IConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConjugation.OriginalType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.OriginalType != null ? [this.OriginalType] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.OriginalType = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/ConnectionDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ConnectionDefinition.cs index 4dfda296b..e5aa838dc 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConnectionDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConnectionDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Connections using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -89,7 +90,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List associationEnd => this.ComputeAssociationEnd(); + List Kernel.Associations.IAssociation.associationEnd => [.. this.connectionEnd]; /// /// The Usages that define the things related by the ConnectionDefinition. @@ -170,7 +171,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. ((SysML2.NET.Core.POCO.Kernel.Associations.IAssociation)this).associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -302,7 +303,14 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_b9102da_1564072709069_937523_30797", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IConnectionDefinition.IsSufficient")] [Implements(implementation: "IType.IsSufficient")] - bool Core.Types.IType.IsSufficient { get; set; } + bool Core.Types.IType.IsSufficient + { + get => this.IsSufficient; + set + { + this.IsSufficient = value; + } + } /// /// Whether this Definition is for a variation point or not. If true, then all the memberships of the @@ -793,7 +801,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -821,7 +829,11 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType != null ? [this.sourceType] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -839,7 +851,11 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetType]; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenPoco/ConnectionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ConnectionUsage.cs index 1dc88a318..21c660523 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConnectionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConnectionUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Connections using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -94,7 +95,7 @@ public partial class ConnectionUsage : IConnectionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - public List association => this.ComputeAssociation(); + List Kernel.Connectors.IConnector.association => [.. this.connectionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -174,7 +175,7 @@ public partial class ConnectionUsage : IConnectionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -238,7 +239,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -473,7 +474,11 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1117,7 +1122,7 @@ public partial class ConnectionUsage : IConnectionUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1145,7 +1150,11 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1163,7 +1172,11 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1193,7 +1206,7 @@ public partial class ConnectionUsage : IConnectionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Connector.cs b/SysML2.NET/Core/AutoGenPoco/Connector.cs index 56ef5b881..52395cf4f 100644 --- a/SysML2.NET/Core/AutoGenPoco/Connector.cs +++ b/SysML2.NET/Core/AutoGenPoco/Connector.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Connectors using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -180,7 +181,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -741,7 +742,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -769,7 +770,11 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -787,7 +792,11 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -817,7 +826,7 @@ public partial class Connector : IConnector [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. this.association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/ConnectorAsUsage.cs b/SysML2.NET/Core/AutoGenPoco/ConnectorAsUsage.cs index 8c5430957..ccf0f2bca 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConnectorAsUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConnectorAsUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Connections using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Classifiers; @@ -221,7 +222,7 @@ public partial class ConnectorAsUsage : IConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -440,7 +441,11 @@ public partial class ConnectorAsUsage : IConnectorAsUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1047,7 +1052,7 @@ public partial class ConnectorAsUsage : IConnectorAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1075,7 +1080,11 @@ public partial class ConnectorAsUsage : IConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1093,7 +1102,11 @@ public partial class ConnectorAsUsage : IConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1123,7 +1136,7 @@ public partial class ConnectorAsUsage : IConnectorAsUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. this.definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/ConstraintDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ConstraintDefinition.cs index 73646cb27..6330d9228 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConstraintDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConstraintDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Constraints using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -118,7 +119,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenPoco/ConstraintUsage.cs b/SysML2.NET/Core/AutoGenPoco/ConstraintUsage.cs index 21e08c98f..fde3ba6d0 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConstraintUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Constraints using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -93,7 +94,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -153,7 +154,7 @@ public partial class ConstraintUsage : IConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -175,7 +176,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -270,7 +271,7 @@ public partial class ConstraintUsage : IConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction Kernel.Functions.IExpression.function => ((SysML2.NET.Core.POCO.Kernel.Functions.IBooleanExpression)this).predicate; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -461,7 +462,11 @@ public partial class ConstraintUsage : IConstraintUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1068,7 +1073,7 @@ public partial class ConstraintUsage : IConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate predicate => this.ComputePredicate(); + IPredicate Kernel.Functions.IBooleanExpression.predicate => this.constraintDefinition; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1121,7 +1126,7 @@ public partial class ConstraintUsage : IConstraintUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/ConstructorExpression.cs b/SysML2.NET/Core/AutoGenPoco/ConstructorExpression.cs index cd759f10e..473da2ee0 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConstructorExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConstructorExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -78,7 +79,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -139,7 +140,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/ControlNode.cs b/SysML2.NET/Core/AutoGenPoco/ControlNode.cs index ac4bdfa09..4d967784c 100644 --- a/SysML2.NET/Core/AutoGenPoco/ControlNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/ControlNode.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -102,7 +103,7 @@ public partial class ControlNode : IControlNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -152,7 +153,7 @@ public partial class ControlNode : IControlNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -174,7 +175,7 @@ public partial class ControlNode : IControlNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -443,7 +444,11 @@ public partial class ControlNode : IControlNode [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -730,7 +735,7 @@ public partial class ControlNode : IControlNode [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1084,7 +1089,7 @@ public partial class ControlNode : IControlNode [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/CrossSubsetting.cs b/SysML2.NET/Core/AutoGenPoco/CrossSubsetting.cs index 8cd53bb2e..63584f213 100644 --- a/SysML2.NET/Core/AutoGenPoco/CrossSubsetting.cs +++ b/SysML2.NET/Core/AutoGenPoco/CrossSubsetting.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Features using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Root.Annotations; @@ -126,7 +127,17 @@ public partial class CrossSubsetting : ICrossSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubsetting.SubsettedFeature")] [Implements(implementation: "ISpecialization.General")] - public IType General { get; set; } + IType Core.Types.ISpecialization.General + { + get => ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettedFeature; + set + { + if (value is IFeature castedValue) + { + ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettedFeature = castedValue; + } + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -214,7 +225,7 @@ public partial class CrossSubsetting : ICrossSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [RedefinedByProperty("ICrossSubsetting.CrossingFeature")] [Implements(implementation: "ISubsetting.OwningFeature")] - public IFeature owningFeature => this.ComputeOwningFeature(); + IFeature ISubsetting.owningFeature => this.crossingFeature; /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -258,7 +269,7 @@ public partial class CrossSubsetting : ICrossSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType owningType => this.ComputeOwningType(); + IType Core.Types.ISpecialization.owningType => ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).owningFeature; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -297,7 +308,17 @@ public partial class CrossSubsetting : ICrossSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific = firstValue; + } + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -306,7 +327,17 @@ public partial class CrossSubsetting : ICrossSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubsetting.SubsettingFeature")] [Implements(implementation: "ISpecialization.Specific")] - public IType Specific { get; set; } + IType Core.Types.ISpecialization.Specific + { + get => ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettingFeature; + set + { + if (value is IFeature castedValue) + { + ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettingFeature = castedValue; + } + } + } /// /// The Feature that is subsetted by the subsettingFeature of this Subsetting. @@ -315,7 +346,14 @@ public partial class CrossSubsetting : ICrossSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_563969_43273")] [RedefinedByProperty("ICrossSubsetting.CrossedFeature")] [Implements(implementation: "ISubsetting.SubsettedFeature")] - public IFeature SubsettedFeature { get; set; } + IFeature ISubsetting.SubsettedFeature + { + get => this.CrossedFeature; + set + { + this.CrossedFeature = value; + } + } /// /// The Feature that is a subset of the subsettedFeature of this Subsetting. @@ -324,7 +362,11 @@ public partial class CrossSubsetting : ICrossSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ICrossSubsetting.CrossingFeature")] [Implements(implementation: "ISubsetting.SubsettingFeature")] - public IFeature SubsettingFeature { get; set; } + IFeature ISubsetting.SubsettingFeature + { + get => this.crossingFeature; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -333,7 +375,17 @@ public partial class CrossSubsetting : ICrossSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/DataType.cs b/SysML2.NET/Core/AutoGenPoco/DataType.cs index 60451784d..c10855894 100644 --- a/SysML2.NET/Core/AutoGenPoco/DataType.cs +++ b/SysML2.NET/Core/AutoGenPoco/DataType.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.DataTypes using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/DecisionNode.cs b/SysML2.NET/Core/AutoGenPoco/DecisionNode.cs index c7086398e..385a26bf3 100644 --- a/SysML2.NET/Core/AutoGenPoco/DecisionNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/DecisionNode.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -100,7 +101,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -150,7 +151,7 @@ public partial class DecisionNode : IDecisionNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -172,7 +173,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -441,7 +442,11 @@ public partial class DecisionNode : IDecisionNode [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -728,7 +733,7 @@ public partial class DecisionNode : IDecisionNode [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1082,7 +1087,7 @@ public partial class DecisionNode : IDecisionNode [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Definition.cs b/SysML2.NET/Core/AutoGenPoco/Definition.cs index 0c0191939..380836cb4 100644 --- a/SysML2.NET/Core/AutoGenPoco/Definition.cs +++ b/SysML2.NET/Core/AutoGenPoco/Definition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.DefinitionAndUsage using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/Dependency.cs b/SysML2.NET/Core/AutoGenPoco/Dependency.cs index 62f20b6c5..6bd8c27b6 100644 --- a/SysML2.NET/Core/AutoGenPoco/Dependency.cs +++ b/SysML2.NET/Core/AutoGenPoco/Dependency.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Dependencies using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -248,7 +249,14 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDependency.Client")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => [.. this.Client]; + set + { + this.Client = value; + } + } /// /// The Element or Elements on which the client Elements depend in some respect. @@ -265,7 +273,14 @@ public partial class Dependency : IDependency [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDependency.Supplier")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.Supplier]; + set + { + this.Supplier = value; + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/Differencing.cs b/SysML2.NET/Core/AutoGenPoco/Differencing.cs index 86de35d1f..4d560dd43 100644 --- a/SysML2.NET/Core/AutoGenPoco/Differencing.cs +++ b/SysML2.NET/Core/AutoGenPoco/Differencing.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Types using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -247,7 +248,11 @@ public partial class Differencing : IDifferencing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDifferencing.TypeDifferenced")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.typeDifferenced != null ? [this.typeDifferenced] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -256,7 +261,17 @@ public partial class Differencing : IDifferencing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDifferencing.DifferencingType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.DifferencingType != null ? [this.DifferencingType] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.DifferencingType = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/Disjoining.cs b/SysML2.NET/Core/AutoGenPoco/Disjoining.cs index 61aa173a5..8491af50b 100644 --- a/SysML2.NET/Core/AutoGenPoco/Disjoining.cs +++ b/SysML2.NET/Core/AutoGenPoco/Disjoining.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Types using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -257,7 +258,17 @@ public partial class Disjoining : IDisjoining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDisjoining.TypeDisjoined")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.TypeDisjoined != null ? [this.TypeDisjoined] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.TypeDisjoined = firstValue; + } + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -266,7 +277,17 @@ public partial class Disjoining : IDisjoining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IDisjoining.DisjoiningType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.DisjoiningType != null ? [this.DisjoiningType] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.DisjoiningType = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/Documentation.cs b/SysML2.NET/Core/AutoGenPoco/Documentation.cs index 7d83ea570..19b70f6aa 100644 --- a/SysML2.NET/Core/AutoGenPoco/Documentation.cs +++ b/SysML2.NET/Core/AutoGenPoco/Documentation.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Annotations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; @@ -61,7 +62,7 @@ public partial class Documentation : IDocumentation [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IDocumentation.DocumentedElement")] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List annotatedElement => this.ComputeAnnotatedElement(); + List IAnnotatingElement.annotatedElement => this.documentedElement != null ? [this.documentedElement] : []; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the diff --git a/SysML2.NET/Core/AutoGenPoco/Element.cs b/SysML2.NET/Core/AutoGenPoco/Element.cs index bf3fb98f2..57bd2368c 100644 --- a/SysML2.NET/Core/AutoGenPoco/Element.cs +++ b/SysML2.NET/Core/AutoGenPoco/Element.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Elements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Namespaces; diff --git a/SysML2.NET/Core/AutoGenPoco/ElementFilterMembership.cs b/SysML2.NET/Core/AutoGenPoco/ElementFilterMembership.cs index c5c7aacb5..ebb3d4921 100644 --- a/SysML2.NET/Core/AutoGenPoco/ElementFilterMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ElementFilterMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Packages using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Kernel.Functions; @@ -135,7 +136,11 @@ public partial class ElementFilterMembership : IElementFilterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -143,7 +148,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -151,7 +156,11 @@ public partial class ElementFilterMembership : IElementFilterMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -169,7 +178,11 @@ public partial class ElementFilterMembership : IElementFilterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -208,7 +221,7 @@ public partial class ElementFilterMembership : IElementFilterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IElementFilterMembership.Condition")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => this.condition; /// /// The elementId of the ownedMemberElement. @@ -329,7 +342,11 @@ public partial class ElementFilterMembership : IElementFilterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.membershipOwningNamespace != null ? [this.membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -338,7 +355,17 @@ public partial class ElementFilterMembership : IElementFilterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/EndFeatureMembership.cs b/SysML2.NET/Core/AutoGenPoco/EndFeatureMembership.cs index c49910ffa..d0c167cb5 100644 --- a/SysML2.NET/Core/AutoGenPoco/EndFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/EndFeatureMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Features using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Types; @@ -124,7 +125,11 @@ public partial class EndFeatureMembership : IEndFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -132,7 +137,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -140,7 +145,11 @@ public partial class EndFeatureMembership : IEndFeatureMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -151,7 +160,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -159,7 +168,11 @@ public partial class EndFeatureMembership : IEndFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -198,7 +211,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -223,7 +236,7 @@ public partial class EndFeatureMembership : IEndFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IEndFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - IFeature Core.Types.IFeatureMembership.ownedMemberFeature => throw new InvalidOperationException("Redefined by property IEndFeatureMembership.OwnedMemberFeature"); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedMemberFeature; /// /// The name of the ownedMemberElement. @@ -345,7 +358,11 @@ public partial class EndFeatureMembership : IEndFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -354,7 +371,17 @@ public partial class EndFeatureMembership : IEndFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/EnumerationDefinition.cs b/SysML2.NET/Core/AutoGenPoco/EnumerationDefinition.cs index 665b78417..30d19d2f1 100644 --- a/SysML2.NET/Core/AutoGenPoco/EnumerationDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/EnumerationDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Enumerations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -285,7 +286,14 @@ public partial class EnumerationDefinition : IEnumerationDefinition [Property(xmiId: "_19_0_2_12e503d9_1590978283180_265362_419", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEnumerationDefinition.IsVariation")] [Implements(implementation: "IDefinition.IsVariation")] - bool Systems.DefinitionAndUsage.IDefinition.IsVariation { get; set; } + bool Systems.DefinitionAndUsage.IDefinition.IsVariation + { + get => this.IsVariation; + set + { + this.IsVariation = value; + } + } /// /// The set of all member Elements of this Namespace, which are the memberElements of all memberships of @@ -791,7 +799,7 @@ public partial class EnumerationDefinition : IEnumerationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [RedefinedByProperty("IEnumerationDefinition.EnumeratedValue")] [Implements(implementation: "IDefinition.Variant")] - public List variant => this.ComputeVariant(); + List Systems.DefinitionAndUsage.IDefinition.variant => [.. this.enumeratedValue]; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then diff --git a/SysML2.NET/Core/AutoGenPoco/EnumerationUsage.cs b/SysML2.NET/Core/AutoGenPoco/EnumerationUsage.cs index 1019e256b..fcb8a213e 100644 --- a/SysML2.NET/Core/AutoGenPoco/EnumerationUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/EnumerationUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Enumerations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Classifiers; @@ -89,7 +90,7 @@ public partial class EnumerationUsage : IEnumerationUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IEnumerationUsage.EnumerationDefinition")] [Implements(implementation: "IAttributeUsage.AttributeDefinition")] - public List attributeDefinition => this.ComputeAttributeDefinition(); + List Systems.Attributes.IAttributeUsage.attributeDefinition => this.enumerationDefinition != null ? [this.enumerationDefinition] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -139,7 +140,7 @@ public partial class EnumerationUsage : IEnumerationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IAttributeUsage.AttributeDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Attributes.IAttributeUsage)this).attributeDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -402,7 +403,7 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IAttributeUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.isReference => throw new InvalidOperationException("Redefined by property IAttributeUsage.IsReference"); + bool Systems.DefinitionAndUsage.IUsage.isReference => this.isReference; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -430,7 +431,11 @@ public partial class EnumerationUsage : IEnumerationUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1042,7 +1047,7 @@ public partial class EnumerationUsage : IEnumerationUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/EventOccurrenceUsage.cs b/SysML2.NET/Core/AutoGenPoco/EventOccurrenceUsage.cs index a16a765f7..5332f9455 100644 --- a/SysML2.NET/Core/AutoGenPoco/EventOccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/EventOccurrenceUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Occurrences using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -134,7 +135,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -414,7 +415,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.isReference => throw new InvalidOperationException("Redefined by property IEventOccurrenceUsage.IsReference"); + bool Systems.DefinitionAndUsage.IUsage.isReference => this.isReference; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -442,7 +443,11 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1073,7 +1078,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/ExhibitStateUsage.cs b/SysML2.NET/Core/AutoGenPoco/ExhibitStateUsage.cs index e0a097749..7c7e11bbb 100644 --- a/SysML2.NET/Core/AutoGenPoco/ExhibitStateUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ExhibitStateUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.States using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -88,7 +89,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IStateUsage.StateDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition => this.ComputeActionDefinition(); + List Systems.Actions.IActionUsage.actionDefinition => [.. this.stateDefinition]; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -104,7 +105,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. ((SysML2.NET.Core.POCO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -154,7 +155,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -176,7 +177,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -256,7 +257,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IPerformActionUsage.PerformedAction")] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public IOccurrenceUsage eventOccurrence => this.ComputeEventOccurrence(); + IOccurrenceUsage Systems.Occurrences.IEventOccurrenceUsage.eventOccurrence => ((SysML2.NET.Core.POCO.Systems.Actions.IPerformActionUsage)this).performedAction; /// /// The StateUsage to be exhibited by the ExhibitStateUsage. It is the performedAction of the @@ -473,7 +474,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.isReference => throw new InvalidOperationException("Redefined by property IEventOccurrenceUsage.IsReference"); + bool Systems.DefinitionAndUsage.IUsage.isReference => this.isReference; /// /// Always true for an EventOccurrenceUsage. @@ -509,7 +510,11 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -796,7 +801,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.POCO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1109,7 +1114,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622831790393_676695_195")] [RedefinedByProperty("IExhibitStateUsage.ExhibitedState")] [Implements(implementation: "IPerformActionUsage.PerformedAction")] - public IActionUsage performedAction => this.ComputePerformedAction(); + IActionUsage Systems.Actions.IPerformActionUsage.performedAction => this.exhibitedState; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1169,7 +1174,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Expose.cs b/SysML2.NET/Core/AutoGenPoco/Expose.cs index d2c3169d9..d3f8226b4 100644 --- a/SysML2.NET/Core/AutoGenPoco/Expose.cs +++ b/SysML2.NET/Core/AutoGenPoco/Expose.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Views using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; @@ -141,7 +142,14 @@ public partial class Expose : IExpose [Property(xmiId: "_19_0_4_12e503d9_1622577942205_869984_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IExpose.IsImportAll")] [Implements(implementation: "IImport.IsImportAll")] - bool Root.Namespaces.IImport.IsImportAll { get; set; } + bool Root.Namespaces.IImport.IsImportAll + { + get => this.IsImportAll; + set + { + this.IsImportAll = value; + } + } /// /// Whether this Element is contained in the ownership tree of a library model. @@ -280,7 +288,11 @@ public partial class Expose : IExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IImport.ImportOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.importOwningNamespace != null ? [this.importOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -314,7 +326,14 @@ public partial class Expose : IExpose [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")] [RedefinedByProperty("IExpose.Visibility")] [Implements(implementation: "IImport.Visibility")] - VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } = VisibilityKind.Private; + VisibilityKind Root.Namespaces.IImport.Visibility + { + get => this.Visibility; + set + { + this.Visibility = value; + } + } } } diff --git a/SysML2.NET/Core/AutoGenPoco/Expression.cs b/SysML2.NET/Core/AutoGenPoco/Expression.cs index cf07a2b80..26c82e1e5 100644 --- a/SysML2.NET/Core/AutoGenPoco/Expression.cs +++ b/SysML2.NET/Core/AutoGenPoco/Expression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -69,7 +70,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -130,7 +131,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/Feature.cs b/SysML2.NET/Core/AutoGenPoco/Feature.cs index 21af5f794..7f07de1f3 100644 --- a/SysML2.NET/Core/AutoGenPoco/Feature.cs +++ b/SysML2.NET/Core/AutoGenPoco/Feature.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Features using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Types; diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureChainExpression.cs b/SysML2.NET/Core/AutoGenPoco/FeatureChainExpression.cs index 79590d70b..68f585bac 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureChainExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureChainExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -78,7 +79,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -139,7 +140,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -451,7 +452,14 @@ public partial class FeatureChainExpression : IFeatureChainExpression [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)] [RedefinedByProperty("IFeatureChainExpression.Operator")] [Implements(implementation: "IOperatorExpression.Operator")] - string IOperatorExpression.Operator { get; set; } + string IOperatorExpression.Operator + { + get => this.Operator; + set + { + this.Operator = value; + } + } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureChaining.cs b/SysML2.NET/Core/AutoGenPoco/FeatureChaining.cs index 51724df41..b2481179b 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureChaining.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureChaining.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Features using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -257,7 +258,11 @@ public partial class FeatureChaining : IFeatureChaining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IFeatureChaining.FeatureChained")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.featureChained != null ? [this.featureChained] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -266,7 +271,17 @@ public partial class FeatureChaining : IFeatureChaining [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IFeatureChaining.ChainingFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.ChainingFeature != null ? [this.ChainingFeature] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.ChainingFeature = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureInverting.cs b/SysML2.NET/Core/AutoGenPoco/FeatureInverting.cs index c2a48b828..122b3ff45 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureInverting.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureInverting.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Features using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -266,7 +267,17 @@ public partial class FeatureInverting : IFeatureInverting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IFeatureInverting.FeatureInverted")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.FeatureInverted != null ? [this.FeatureInverted] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.FeatureInverted = firstValue; + } + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -275,7 +286,17 @@ public partial class FeatureInverting : IFeatureInverting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IFeatureInverting.InvertingFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.InvertingFeature != null ? [this.InvertingFeature] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.InvertingFeature = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureMembership.cs b/SysML2.NET/Core/AutoGenPoco/FeatureMembership.cs index 2317d07ff..f2e71263f 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Types using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; @@ -127,7 +128,11 @@ public partial class FeatureMembership : IFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -135,7 +140,7 @@ public partial class FeatureMembership : IFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -143,7 +148,11 @@ public partial class FeatureMembership : IFeatureMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -154,7 +163,7 @@ public partial class FeatureMembership : IFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -162,7 +171,11 @@ public partial class FeatureMembership : IFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -201,7 +214,7 @@ public partial class FeatureMembership : IFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => this.ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -340,7 +353,11 @@ public partial class FeatureMembership : IFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -349,7 +366,17 @@ public partial class FeatureMembership : IFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureReferenceExpression.cs b/SysML2.NET/Core/AutoGenPoco/FeatureReferenceExpression.cs index e72319a8b..69da3735f 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureReferenceExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureReferenceExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -66,7 +67,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -127,7 +128,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs b/SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs index 5bbe1305f..abdeecb58 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Features using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Root.Annotations; @@ -99,7 +100,14 @@ public partial class FeatureTyping : IFeatureTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IFeatureTyping.Type")] [Implements(implementation: "ISpecialization.General")] - public IType General { get; set; } + IType Core.Types.ISpecialization.General + { + get => this.Type; + set + { + this.Type = value; + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -230,7 +238,7 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IFeatureTyping.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType owningType => this.ComputeOwningType(); + IType Core.Types.ISpecialization.owningType => this.owningFeature; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -269,7 +277,17 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific = firstValue; + } + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -278,7 +296,17 @@ public partial class FeatureTyping : IFeatureTyping [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureTyping.TypedFeature")] [Implements(implementation: "ISpecialization.Specific")] - public IType Specific { get; set; } + IType Core.Types.ISpecialization.Specific + { + get => this.TypedFeature; + set + { + if (value is IFeature castedValue) + { + this.TypedFeature = castedValue; + } + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -287,7 +315,17 @@ public partial class FeatureTyping : IFeatureTyping [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureValue.cs b/SysML2.NET/Core/AutoGenPoco/FeatureValue.cs index 4d7ebbbad..551ea7940 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureValue.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureValue.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.FeatureValues using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; @@ -156,7 +157,11 @@ public partial class FeatureValue : IFeatureValue [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -164,7 +169,7 @@ public partial class FeatureValue : IFeatureValue [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -172,7 +177,11 @@ public partial class FeatureValue : IFeatureValue [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -190,7 +199,11 @@ public partial class FeatureValue : IFeatureValue [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -229,7 +242,7 @@ public partial class FeatureValue : IFeatureValue [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureValue.Value")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => this.value; /// /// The elementId of the ownedMemberElement. @@ -350,7 +363,11 @@ public partial class FeatureValue : IFeatureValue [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.membershipOwningNamespace != null ? [this.membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -359,7 +376,17 @@ public partial class FeatureValue : IFeatureValue [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/Flow.cs b/SysML2.NET/Core/AutoGenPoco/Flow.cs index 80a56b088..e1463d10c 100644 --- a/SysML2.NET/Core/AutoGenPoco/Flow.cs +++ b/SysML2.NET/Core/AutoGenPoco/Flow.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Interactions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Classifiers; @@ -69,7 +70,7 @@ public partial class Flow : IFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List association => this.ComputeAssociation(); + List Kernel.Connectors.IConnector.association => [.. this.interaction]; /// /// The Behaviors that type this Step. @@ -78,7 +79,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.interaction]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -158,7 +159,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -192,7 +193,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -795,7 +796,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -823,7 +824,11 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -849,7 +854,11 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -887,7 +896,7 @@ public partial class Flow : IFlow [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Kernel.Connectors.IConnector)this).association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs b/SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs index 8ad6df492..72ee0e557 100644 --- a/SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Flows using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -101,7 +102,7 @@ public partial class FlowDefinition : IFlowDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IFlowDefinition.FlowEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List associationEnd => this.ComputeAssociationEnd(); + List Kernel.Associations.IAssociation.associationEnd => [.. this.flowEnd]; /// /// The declared name of this Element. @@ -140,7 +141,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. @@ -175,7 +176,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. ((SysML2.NET.Core.POCO.Kernel.Associations.IAssociation)this).associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -806,7 +807,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -834,7 +835,11 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType != null ? [this.sourceType] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -860,7 +865,11 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetType]; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenPoco/FlowEnd.cs b/SysML2.NET/Core/AutoGenPoco/FlowEnd.cs index f34461132..d0099b78a 100644 --- a/SysML2.NET/Core/AutoGenPoco/FlowEnd.cs +++ b/SysML2.NET/Core/AutoGenPoco/FlowEnd.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Interactions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/FlowUsage.cs b/SysML2.NET/Core/AutoGenPoco/FlowUsage.cs index 3bd4543a4..85c2a845b 100644 --- a/SysML2.NET/Core/AutoGenPoco/FlowUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/FlowUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Flows using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -88,7 +89,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition => this.ComputeActionDefinition(); + List Systems.Actions.IActionUsage.actionDefinition => [.. this.flowDefinition]; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -104,7 +105,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List association => this.ComputeAssociation(); + List Kernel.Connectors.IConnector.association => [.. ((SysML2.NET.Core.POCO.Kernel.Interactions.IFlow)this).interaction]; /// /// The Behaviors that type this Step. @@ -113,7 +114,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. ((SysML2.NET.Core.POCO.Kernel.Interactions.IFlow)this).interaction]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -182,7 +183,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -204,7 +205,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -247,7 +248,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -362,7 +363,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IFlow.Interaction")] - public List interaction => this.ComputeInteraction(); + List Kernel.Interactions.IFlow.interaction => [.. this.flowDefinition]; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -512,7 +513,11 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -799,7 +804,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.POCO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1163,7 +1168,7 @@ public partial class FlowUsage : IFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1191,7 +1196,11 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1217,7 +1226,11 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1255,7 +1268,7 @@ public partial class FlowUsage : IFlowUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/ForLoopActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ForLoopActionUsage.cs index e8d90729e..3d8370f1c 100644 --- a/SysML2.NET/Core/AutoGenPoco/ForLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ForLoopActionUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -103,7 +104,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The ActionUsage to be performed repeatedly by the LoopActionUsage. It is the second parameter of the @@ -161,7 +162,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -183,7 +184,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -452,7 +453,11 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -748,7 +753,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1111,7 +1116,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/ForkNode.cs b/SysML2.NET/Core/AutoGenPoco/ForkNode.cs index 87c92e29e..15e34c8e1 100644 --- a/SysML2.NET/Core/AutoGenPoco/ForkNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/ForkNode.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -101,7 +102,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -151,7 +152,7 @@ public partial class ForkNode : IForkNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -173,7 +174,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -442,7 +443,11 @@ public partial class ForkNode : IForkNode [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -729,7 +734,7 @@ public partial class ForkNode : IForkNode [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1083,7 +1088,7 @@ public partial class ForkNode : IForkNode [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/FramedConcernMembership.cs b/SysML2.NET/Core/AutoGenPoco/FramedConcernMembership.cs index 51144276f..7e5cf2640 100644 --- a/SysML2.NET/Core/AutoGenPoco/FramedConcernMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/FramedConcernMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.Systems.Requirements; @@ -134,7 +135,14 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_2_12e503d9_1584048161309_821854_390", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IFramedConcernMembership.Kind")] [Implements(implementation: "IRequirementConstraintMembership.Kind")] - RequirementConstraintKind IRequirementConstraintMembership.Kind { get; set; } + RequirementConstraintKind IRequirementConstraintMembership.Kind + { + get => this.Kind; + set + { + this.Kind = value; + } + } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -143,7 +151,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -151,7 +163,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -159,7 +171,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -170,7 +186,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -178,7 +194,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -215,7 +235,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IFramedConcernMembership.OwnedConcern")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public IConstraintUsage ownedConstraint => this.ComputeOwnedConstraint(); + IConstraintUsage IRequirementConstraintMembership.ownedConstraint => this.ownedConcern; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -234,7 +254,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -252,7 +272,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => ((SysML2.NET.Core.POCO.Systems.Requirements.IRequirementConstraintMembership)this).ownedConstraint; /// /// The name of the ownedMemberElement. @@ -367,7 +387,7 @@ public partial class FramedConcernMembership : IFramedConcernMembership [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IFramedConcernMembership.ReferencedConcern")] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public IConstraintUsage referencedConstraint => this.ComputeReferencedConstraint(); + IConstraintUsage IRequirementConstraintMembership.referencedConstraint => this.referencedConcern; /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -394,7 +414,11 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -403,7 +427,17 @@ public partial class FramedConcernMembership : IFramedConcernMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/Function.cs b/SysML2.NET/Core/AutoGenPoco/Function.cs index 026ab6d0c..877cb4206 100644 --- a/SysML2.NET/Core/AutoGenPoco/Function.cs +++ b/SysML2.NET/Core/AutoGenPoco/Function.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -97,7 +98,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The Documentation owned by this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs index 1a11fcddf..0e134b8aa 100644 --- a/SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -103,7 +104,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -153,7 +154,7 @@ public partial class IfActionUsage : IIfActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -175,7 +176,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -460,7 +461,11 @@ public partial class IfActionUsage : IIfActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -747,7 +752,7 @@ public partial class IfActionUsage : IIfActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1109,7 +1114,7 @@ public partial class IfActionUsage : IIfActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Import.cs b/SysML2.NET/Core/AutoGenPoco/Import.cs index 79b268262..f1fe2e6c1 100644 --- a/SysML2.NET/Core/AutoGenPoco/Import.cs +++ b/SysML2.NET/Core/AutoGenPoco/Import.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; @@ -275,7 +276,11 @@ public partial class Import : IImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IImport.ImportOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.importOwningNamespace != null ? [this.importOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. diff --git a/SysML2.NET/Core/AutoGenPoco/IncludeUseCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/IncludeUseCaseUsage.cs index 8aaf38061..7c912bfce 100644 --- a/SysML2.NET/Core/AutoGenPoco/IncludeUseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IncludeUseCaseUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.UseCases using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -89,7 +90,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition => this.ComputeActionDefinition(); + List Systems.Actions.IActionUsage.actionDefinition => ((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition != null ? [((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition] : []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -114,7 +115,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -126,7 +127,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public IFunction calculationDefinition => this.ComputeCalculationDefinition(); + IFunction Systems.Calculations.ICalculationUsage.calculationDefinition => ((SysML2.NET.Core.POCO.Systems.Cases.ICaseUsage)this).caseDefinition; /// /// The CaseDefinition that is the type of this CaseUsage. @@ -135,7 +136,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [RedefinedByProperty("IUseCaseUsage.UseCaseDefinition")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public ICaseDefinition caseDefinition => this.ComputeCaseDefinition(); + ICaseDefinition Systems.Cases.ICaseUsage.caseDefinition => this.useCaseDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -185,7 +186,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -207,7 +208,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -269,7 +270,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IPerformActionUsage.PerformedAction")] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public IOccurrenceUsage eventOccurrence => this.ComputeEventOccurrence(); + IOccurrenceUsage Systems.Occurrences.IEventOccurrenceUsage.eventOccurrence => ((SysML2.NET.Core.POCO.Systems.Actions.IPerformActionUsage)this).performedAction; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -312,7 +313,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction Kernel.Functions.IExpression.function => ((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -484,7 +485,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.isReference => throw new InvalidOperationException("Redefined by property IEventOccurrenceUsage.IsReference"); + bool Systems.DefinitionAndUsage.IUsage.isReference => this.isReference; /// /// Always true for an EventOccurrenceUsage. @@ -520,7 +521,11 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -815,7 +820,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.POCO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1128,7 +1133,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622831790393_676695_195")] [RedefinedByProperty("IIncludeUseCaseUsage.UseCaseIncluded")] [Implements(implementation: "IPerformActionUsage.PerformedAction")] - public IActionUsage performedAction => this.ComputePerformedAction(); + IActionUsage Systems.Actions.IPerformActionUsage.performedAction => this.useCaseIncluded; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1199,7 +1204,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/IndexExpression.cs b/SysML2.NET/Core/AutoGenPoco/IndexExpression.cs index 435f0e09a..689c4bae4 100644 --- a/SysML2.NET/Core/AutoGenPoco/IndexExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IndexExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -77,7 +78,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -138,7 +139,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -450,7 +451,14 @@ public partial class IndexExpression : IIndexExpression [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)] [RedefinedByProperty("IIndexExpression.Operator")] [Implements(implementation: "IOperatorExpression.Operator")] - string IOperatorExpression.Operator { get; set; } + string IOperatorExpression.Operator + { + get => this.Operator; + set + { + this.Operator = value; + } + } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. diff --git a/SysML2.NET/Core/AutoGenPoco/InstantiationExpression.cs b/SysML2.NET/Core/AutoGenPoco/InstantiationExpression.cs index 9f6717e90..c3c1351ab 100644 --- a/SysML2.NET/Core/AutoGenPoco/InstantiationExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/InstantiationExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -78,7 +79,7 @@ public partial class InstantiationExpression : IInstantiationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -139,7 +140,7 @@ public partial class InstantiationExpression : IInstantiationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/Interaction.cs b/SysML2.NET/Core/AutoGenPoco/Interaction.cs index 1dc20022c..412832906 100644 --- a/SysML2.NET/Core/AutoGenPoco/Interaction.cs +++ b/SysML2.NET/Core/AutoGenPoco/Interaction.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Interactions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -107,7 +108,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The Documentation owned by this Element. @@ -133,7 +134,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -522,7 +523,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -550,7 +551,11 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType != null ? [this.sourceType] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -576,7 +581,11 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetType]; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenPoco/InterfaceDefinition.cs b/SysML2.NET/Core/AutoGenPoco/InterfaceDefinition.cs index 49c5bd5dd..690b8052a 100644 --- a/SysML2.NET/Core/AutoGenPoco/InterfaceDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/InterfaceDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Interfaces using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -89,7 +90,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - public List associationEnd => this.ComputeAssociationEnd(); + List Kernel.Associations.IAssociation.associationEnd => [.. ((SysML2.NET.Core.POCO.Systems.Connections.IConnectionDefinition)this).connectionEnd]; /// /// The Usages that define the things related by the ConnectionDefinition. @@ -98,7 +99,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] [RedefinedByProperty("IInterfaceDefinition.InterfaceEnd")] [Implements(implementation: "IConnectionDefinition.ConnectionEnd")] - public List connectionEnd => this.ComputeConnectionEnd(); + List Systems.Connections.IConnectionDefinition.connectionEnd => [.. this.interfaceEnd]; /// /// The declared name of this Element. @@ -171,7 +172,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. ((SysML2.NET.Core.POCO.Kernel.Associations.IAssociation)this).associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -311,7 +312,14 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_b9102da_1564072709069_937523_30797", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IConnectionDefinition.IsSufficient")] [Implements(implementation: "IType.IsSufficient")] - bool Core.Types.IType.IsSufficient { get; set; } + bool Core.Types.IType.IsSufficient + { + get => this.IsSufficient; + set + { + this.IsSufficient = value; + } + } /// /// Whether this Definition is for a variation point or not. If true, then all the memberships of the @@ -802,7 +810,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -830,7 +838,11 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.SourceType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceType != null ? [this.sourceType] : []; + set { } + } /// /// The source relatedType for this Association. It is the first relatedType of the Association. @@ -848,7 +860,11 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IAssociation.TargetType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetType]; + set { } + } /// /// The target relatedTypes for this Association. This includes all the relatedTypes other than the diff --git a/SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs b/SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs index 1e3f1115f..4d8f23a5e 100644 --- a/SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Interfaces using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -92,7 +93,7 @@ public partial class InterfaceUsage : IInterfaceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - public List association => this.ComputeAssociation(); + List Kernel.Connectors.IConnector.association => [.. ((SysML2.NET.Core.POCO.Systems.Connections.IConnectionUsage)this).connectionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -116,7 +117,7 @@ public partial class InterfaceUsage : IInterfaceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedByProperty("IInterfaceUsage.InterfaceDefinition")] [Implements(implementation: "IConnectionUsage.ConnectionDefinition")] - public List connectionDefinition => this.ComputeConnectionDefinition(); + List Systems.Connections.IConnectionUsage.connectionDefinition => [.. this.interfaceDefinition]; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -173,7 +174,7 @@ public partial class InterfaceUsage : IInterfaceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -237,7 +238,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -480,7 +481,11 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1124,7 +1129,7 @@ public partial class InterfaceUsage : IInterfaceUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1152,7 +1157,11 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1170,7 +1179,11 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1200,7 +1213,7 @@ public partial class InterfaceUsage : IInterfaceUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Intersecting.cs b/SysML2.NET/Core/AutoGenPoco/Intersecting.cs index 16c8402e3..ddbb03ec0 100644 --- a/SysML2.NET/Core/AutoGenPoco/Intersecting.cs +++ b/SysML2.NET/Core/AutoGenPoco/Intersecting.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Types using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -247,7 +248,11 @@ public partial class Intersecting : IIntersecting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IIntersecting.TypeIntersected")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.typeIntersected != null ? [this.typeIntersected] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -256,7 +261,17 @@ public partial class Intersecting : IIntersecting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IIntersecting.IntersectingType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.IntersectingType != null ? [this.IntersectingType] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.IntersectingType = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/Invariant.cs b/SysML2.NET/Core/AutoGenPoco/Invariant.cs index af477cfcc..ef423a47a 100644 --- a/SysML2.NET/Core/AutoGenPoco/Invariant.cs +++ b/SysML2.NET/Core/AutoGenPoco/Invariant.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -67,7 +68,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -128,7 +129,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -214,7 +215,7 @@ public partial class Invariant : IInvariant [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction IExpression.function => this.predicate; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. diff --git a/SysML2.NET/Core/AutoGenPoco/InvocationExpression.cs b/SysML2.NET/Core/AutoGenPoco/InvocationExpression.cs index 58cc96b7c..9136b5084 100644 --- a/SysML2.NET/Core/AutoGenPoco/InvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/InvocationExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -81,7 +82,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -142,7 +143,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs index 6ca5da222..d00250a1a 100644 --- a/SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Items using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/ItemUsage.cs b/SysML2.NET/Core/AutoGenPoco/ItemUsage.cs index 79cf109c4..05dc0679e 100644 --- a/SysML2.NET/Core/AutoGenPoco/ItemUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ItemUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Items using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -133,7 +134,7 @@ public partial class ItemUsage : IItemUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -423,7 +424,11 @@ public partial class ItemUsage : IItemUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1064,7 +1069,7 @@ public partial class ItemUsage : IItemUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/JoinNode.cs b/SysML2.NET/Core/AutoGenPoco/JoinNode.cs index 21ddeff0b..26b6e4886 100644 --- a/SysML2.NET/Core/AutoGenPoco/JoinNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/JoinNode.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -101,7 +102,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -151,7 +152,7 @@ public partial class JoinNode : IJoinNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -173,7 +174,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -442,7 +443,11 @@ public partial class JoinNode : IJoinNode [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -729,7 +734,7 @@ public partial class JoinNode : IJoinNode [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1083,7 +1088,7 @@ public partial class JoinNode : IJoinNode [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs b/SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs index 3a04a0168..cf338f14c 100644 --- a/SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs +++ b/SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Packages using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Kernel.Functions; using SysML2.NET.Core.POCO.Root.Annotations; diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs b/SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs index e9a82aa51..ee8a7dfc2 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -67,7 +68,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -128,7 +129,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralExpression.cs b/SysML2.NET/Core/AutoGenPoco/LiteralExpression.cs index f19ec840d..082eadc2e 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -66,7 +67,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -127,7 +128,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralInfinity.cs b/SysML2.NET/Core/AutoGenPoco/LiteralInfinity.cs index 816836f06..aca3ef813 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralInfinity.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralInfinity.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -67,7 +68,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -128,7 +129,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs b/SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs index 92d404fcb..ec27b392b 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -67,7 +68,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -128,7 +129,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralRational.cs b/SysML2.NET/Core/AutoGenPoco/LiteralRational.cs index c4e449d47..7f435be4a 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralRational.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralRational.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -67,7 +68,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -128,7 +129,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralString.cs b/SysML2.NET/Core/AutoGenPoco/LiteralString.cs index 320f69f58..0ddc35c87 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralString.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralString.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -67,7 +68,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -128,7 +129,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/LoopActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/LoopActionUsage.cs index 13fe09b8f..2deb4663d 100644 --- a/SysML2.NET/Core/AutoGenPoco/LoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/LoopActionUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -102,7 +103,7 @@ public partial class LoopActionUsage : ILoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The ActionUsage to be performed repeatedly by the LoopActionUsage. It is the second parameter of the @@ -160,7 +161,7 @@ public partial class LoopActionUsage : ILoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -182,7 +183,7 @@ public partial class LoopActionUsage : ILoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -451,7 +452,11 @@ public partial class LoopActionUsage : ILoopActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -738,7 +743,7 @@ public partial class LoopActionUsage : ILoopActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1092,7 +1097,7 @@ public partial class LoopActionUsage : ILoopActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Membership.cs b/SysML2.NET/Core/AutoGenPoco/Membership.cs index f54567768..511669fe3 100644 --- a/SysML2.NET/Core/AutoGenPoco/Membership.cs +++ b/SysML2.NET/Core/AutoGenPoco/Membership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; @@ -282,7 +283,11 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.membershipOwningNamespace != null ? [this.membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -291,7 +296,17 @@ public partial class Membership : IMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.MemberElement != null ? [this.MemberElement] : []; + set + { + if (value.Count != 0) + { + this.MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/MembershipExpose.cs b/SysML2.NET/Core/AutoGenPoco/MembershipExpose.cs index 848dcb06f..c1502b2de 100644 --- a/SysML2.NET/Core/AutoGenPoco/MembershipExpose.cs +++ b/SysML2.NET/Core/AutoGenPoco/MembershipExpose.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Views using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; @@ -141,7 +142,14 @@ public partial class MembershipExpose : IMembershipExpose [Property(xmiId: "_19_0_4_12e503d9_1622577942205_869984_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IExpose.IsImportAll")] [Implements(implementation: "IImport.IsImportAll")] - bool Root.Namespaces.IImport.IsImportAll { get; set; } + bool Root.Namespaces.IImport.IsImportAll + { + get => this.IsImportAll; + set + { + this.IsImportAll = value; + } + } /// /// An Expose always imports all Elements, regardless of visibility (isImportAll = true). @@ -288,7 +296,11 @@ public partial class MembershipExpose : IMembershipExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IImport.ImportOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.importOwningNamespace != null ? [this.importOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -297,7 +309,17 @@ public partial class MembershipExpose : IMembershipExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembershipImport.ImportedMembership")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.ImportedMembership != null ? [this.ImportedMembership] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.ImportedMembership = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. @@ -315,7 +337,14 @@ public partial class MembershipExpose : IMembershipExpose [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")] [RedefinedByProperty("IExpose.Visibility")] [Implements(implementation: "IImport.Visibility")] - VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } = VisibilityKind.Private; + VisibilityKind Root.Namespaces.IImport.Visibility + { + get => this.Visibility; + set + { + this.Visibility = value; + } + } /// /// An Expose always has protected visibility. diff --git a/SysML2.NET/Core/AutoGenPoco/MembershipImport.cs b/SysML2.NET/Core/AutoGenPoco/MembershipImport.cs index 939e18c93..c53c1399b 100644 --- a/SysML2.NET/Core/AutoGenPoco/MembershipImport.cs +++ b/SysML2.NET/Core/AutoGenPoco/MembershipImport.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; @@ -279,7 +280,11 @@ public partial class MembershipImport : IMembershipImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IImport.ImportOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.importOwningNamespace != null ? [this.importOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -288,7 +293,17 @@ public partial class MembershipImport : IMembershipImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembershipImport.ImportedMembership")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.ImportedMembership != null ? [this.ImportedMembership] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.ImportedMembership = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/MergeNode.cs b/SysML2.NET/Core/AutoGenPoco/MergeNode.cs index 61334db5f..e44d78996 100644 --- a/SysML2.NET/Core/AutoGenPoco/MergeNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/MergeNode.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -101,7 +102,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -151,7 +152,7 @@ public partial class MergeNode : IMergeNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -173,7 +174,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -442,7 +443,11 @@ public partial class MergeNode : IMergeNode [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -729,7 +734,7 @@ public partial class MergeNode : IMergeNode [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1083,7 +1088,7 @@ public partial class MergeNode : IMergeNode [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Metaclass.cs b/SysML2.NET/Core/AutoGenPoco/Metaclass.cs index 937506e09..475eb9aae 100644 --- a/SysML2.NET/Core/AutoGenPoco/Metaclass.cs +++ b/SysML2.NET/Core/AutoGenPoco/Metaclass.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Metadata using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/MetadataAccessExpression.cs b/SysML2.NET/Core/AutoGenPoco/MetadataAccessExpression.cs index 978f59434..b27879503 100644 --- a/SysML2.NET/Core/AutoGenPoco/MetadataAccessExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/MetadataAccessExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -69,7 +70,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -130,7 +131,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/MetadataDefinition.cs b/SysML2.NET/Core/AutoGenPoco/MetadataDefinition.cs index d9739be73..437fef102 100644 --- a/SysML2.NET/Core/AutoGenPoco/MetadataDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/MetadataDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Metadata using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/MetadataFeature.cs b/SysML2.NET/Core/AutoGenPoco/MetadataFeature.cs index f53d73676..819213580 100644 --- a/SysML2.NET/Core/AutoGenPoco/MetadataFeature.cs +++ b/SysML2.NET/Core/AutoGenPoco/MetadataFeature.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Metadata using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs b/SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs index cb6a641a2..781b553c6 100644 --- a/SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Metadata using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -152,7 +153,7 @@ public partial class MetadataUsage : IMetadataUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -442,7 +443,11 @@ public partial class MetadataUsage : IMetadataUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -461,7 +466,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IMetadataUsage.MetadataDefinition")] [Implements(implementation: "IItemUsage.ItemDefinition")] - public List itemDefinition => this.ComputeItemDefinition(); + List Systems.Items.IItemUsage.itemDefinition => this.metadataDefinition != null ? [this.metadataDefinition] : []; /// /// Whether this Usage may be time varying (that is, whether it is featured by the snapshots of its @@ -499,7 +504,7 @@ public partial class MetadataUsage : IMetadataUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IMetadataUsage.MetadataDefinition")] [Implements(implementation: "IMetadataFeature.Metaclass")] - public IMetaclass metaclass => this.ComputeMetaclass(); + IMetaclass Kernel.Metadata.IMetadataFeature.metaclass => this.metadataDefinition; /// /// The MetadataDefinition that is the definition of this MetadataUsage. @@ -1121,7 +1126,7 @@ public partial class MetadataUsage : IMetadataUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Multiplicity.cs b/SysML2.NET/Core/AutoGenPoco/Multiplicity.cs index fade13830..e1b497180 100644 --- a/SysML2.NET/Core/AutoGenPoco/Multiplicity.cs +++ b/SysML2.NET/Core/AutoGenPoco/Multiplicity.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Types using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/MultiplicityRange.cs b/SysML2.NET/Core/AutoGenPoco/MultiplicityRange.cs index d55744e91..0788c1db3 100644 --- a/SysML2.NET/Core/AutoGenPoco/MultiplicityRange.cs +++ b/SysML2.NET/Core/AutoGenPoco/MultiplicityRange.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Multiplicities using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/Namespace.cs b/SysML2.NET/Core/AutoGenPoco/Namespace.cs index 840a3cf5c..88d1eac83 100644 --- a/SysML2.NET/Core/AutoGenPoco/Namespace.cs +++ b/SysML2.NET/Core/AutoGenPoco/Namespace.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; diff --git a/SysML2.NET/Core/AutoGenPoco/NamespaceExpose.cs b/SysML2.NET/Core/AutoGenPoco/NamespaceExpose.cs index aad840166..7d09ef45d 100644 --- a/SysML2.NET/Core/AutoGenPoco/NamespaceExpose.cs +++ b/SysML2.NET/Core/AutoGenPoco/NamespaceExpose.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Views using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; @@ -149,7 +150,14 @@ public partial class NamespaceExpose : INamespaceExpose [Property(xmiId: "_19_0_4_12e503d9_1622577942205_869984_64", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IExpose.IsImportAll")] [Implements(implementation: "IImport.IsImportAll")] - bool Root.Namespaces.IImport.IsImportAll { get; set; } + bool Root.Namespaces.IImport.IsImportAll + { + get => this.IsImportAll; + set + { + this.IsImportAll = value; + } + } /// /// Whether this Element is contained in the ownership tree of a library model. @@ -288,7 +296,11 @@ public partial class NamespaceExpose : INamespaceExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IImport.ImportOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.importOwningNamespace != null ? [this.importOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -297,7 +309,17 @@ public partial class NamespaceExpose : INamespaceExpose [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("INamespaceImport.ImportedNamespace")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.ImportedNamespace != null ? [this.ImportedNamespace] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.ImportedNamespace = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. @@ -323,7 +345,14 @@ public partial class NamespaceExpose : INamespaceExpose [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")] [RedefinedByProperty("IExpose.Visibility")] [Implements(implementation: "IImport.Visibility")] - VisibilityKind Root.Namespaces.IImport.Visibility { get; set; } = VisibilityKind.Private; + VisibilityKind Root.Namespaces.IImport.Visibility + { + get => this.Visibility; + set + { + this.Visibility = value; + } + } } } diff --git a/SysML2.NET/Core/AutoGenPoco/NamespaceImport.cs b/SysML2.NET/Core/AutoGenPoco/NamespaceImport.cs index dec960132..ec138e69c 100644 --- a/SysML2.NET/Core/AutoGenPoco/NamespaceImport.cs +++ b/SysML2.NET/Core/AutoGenPoco/NamespaceImport.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; @@ -280,7 +281,11 @@ public partial class NamespaceImport : INamespaceImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IImport.ImportOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.importOwningNamespace != null ? [this.importOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -289,7 +294,17 @@ public partial class NamespaceImport : INamespaceImport [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("INamespaceImport.ImportedNamespace")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.ImportedNamespace != null ? [this.ImportedNamespace] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.ImportedNamespace = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/NullExpression.cs b/SysML2.NET/Core/AutoGenPoco/NullExpression.cs index 0113e27eb..8e83f2b1a 100644 --- a/SysML2.NET/Core/AutoGenPoco/NullExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/NullExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -66,7 +67,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -127,7 +128,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/ObjectiveMembership.cs b/SysML2.NET/Core/AutoGenPoco/ObjectiveMembership.cs index 4e2eae8a8..842d61b23 100644 --- a/SysML2.NET/Core/AutoGenPoco/ObjectiveMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ObjectiveMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Cases using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; @@ -126,7 +127,11 @@ public partial class ObjectiveMembership : IObjectiveMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -134,7 +139,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -142,7 +147,11 @@ public partial class ObjectiveMembership : IObjectiveMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -153,7 +162,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -161,7 +170,11 @@ public partial class ObjectiveMembership : IObjectiveMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -200,7 +213,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -218,7 +231,7 @@ public partial class ObjectiveMembership : IObjectiveMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IObjectiveMembership.OwnedObjectiveRequirement")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedObjectiveRequirement; /// /// The name of the ownedMemberElement. @@ -348,7 +361,11 @@ public partial class ObjectiveMembership : IObjectiveMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -357,7 +374,17 @@ public partial class ObjectiveMembership : IObjectiveMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/OccurrenceDefinition.cs b/SysML2.NET/Core/AutoGenPoco/OccurrenceDefinition.cs index b2832aefc..633e6095f 100644 --- a/SysML2.NET/Core/AutoGenPoco/OccurrenceDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/OccurrenceDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Occurrences using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/OccurrenceUsage.cs b/SysML2.NET/Core/AutoGenPoco/OccurrenceUsage.cs index 1f9c23a36..b76368887 100644 --- a/SysML2.NET/Core/AutoGenPoco/OccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/OccurrenceUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Occurrences using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -132,7 +133,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -422,7 +423,11 @@ public partial class OccurrenceUsage : IOccurrenceUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1053,7 +1058,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/OperatorExpression.cs b/SysML2.NET/Core/AutoGenPoco/OperatorExpression.cs index 7376bc2dc..228a638e9 100644 --- a/SysML2.NET/Core/AutoGenPoco/OperatorExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/OperatorExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -77,7 +78,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -138,7 +139,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/OwningMembership.cs b/SysML2.NET/Core/AutoGenPoco/OwningMembership.cs index 1e51bf9ee..3c5aaf2c8 100644 --- a/SysML2.NET/Core/AutoGenPoco/OwningMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/OwningMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; @@ -122,7 +123,11 @@ public partial class OwningMembership : IOwningMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement IMembership.MemberElement + { + get => this.ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -130,7 +135,7 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -138,7 +143,11 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -156,7 +165,11 @@ public partial class OwningMembership : IOwningMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -315,7 +328,11 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.membershipOwningNamespace != null ? [this.membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -324,7 +341,17 @@ public partial class OwningMembership : IOwningMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/Package.cs b/SysML2.NET/Core/AutoGenPoco/Package.cs index 274e28752..12a29f64e 100644 --- a/SysML2.NET/Core/AutoGenPoco/Package.cs +++ b/SysML2.NET/Core/AutoGenPoco/Package.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Packages using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Kernel.Functions; using SysML2.NET.Core.POCO.Root.Annotations; diff --git a/SysML2.NET/Core/AutoGenPoco/ParameterMembership.cs b/SysML2.NET/Core/AutoGenPoco/ParameterMembership.cs index bfbb633a6..b844ce53c 100644 --- a/SysML2.NET/Core/AutoGenPoco/ParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ParameterMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Behaviors using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; @@ -126,7 +127,11 @@ public partial class ParameterMembership : IParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -134,7 +139,7 @@ public partial class ParameterMembership : IParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -142,7 +147,11 @@ public partial class ParameterMembership : IParameterMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -153,7 +162,7 @@ public partial class ParameterMembership : IParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -161,7 +170,11 @@ public partial class ParameterMembership : IParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -200,7 +213,7 @@ public partial class ParameterMembership : IParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -218,7 +231,7 @@ public partial class ParameterMembership : IParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedMemberParameter; /// /// The name of the ownedMemberElement. @@ -348,7 +361,11 @@ public partial class ParameterMembership : IParameterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -357,7 +374,17 @@ public partial class ParameterMembership : IParameterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/PartDefinition.cs b/SysML2.NET/Core/AutoGenPoco/PartDefinition.cs index 8bef58f04..f178763fe 100644 --- a/SysML2.NET/Core/AutoGenPoco/PartDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/PartDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Parts using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/PartUsage.cs b/SysML2.NET/Core/AutoGenPoco/PartUsage.cs index b5a52ff2c..f650849d6 100644 --- a/SysML2.NET/Core/AutoGenPoco/PartUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/PartUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Parts using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -132,7 +133,7 @@ public partial class PartUsage : IPartUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -422,7 +423,11 @@ public partial class PartUsage : IPartUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1071,7 +1076,7 @@ public partial class PartUsage : IPartUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs b/SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs index 1e3b0ca93..f8e1e6c24 100644 --- a/SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs +++ b/SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Interactions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/PerformActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/PerformActionUsage.cs index 26e70a6bc..01d5b1111 100644 --- a/SysML2.NET/Core/AutoGenPoco/PerformActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/PerformActionUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -103,7 +104,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -153,7 +154,7 @@ public partial class PerformActionUsage : IPerformActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -175,7 +176,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -237,7 +238,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1622831790393_676695_195", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IPerformActionUsage.PerformedAction")] [Implements(implementation: "IEventOccurrenceUsage.EventOccurrence")] - public IOccurrenceUsage eventOccurrence => this.ComputeEventOccurrence(); + IOccurrenceUsage Systems.Occurrences.IEventOccurrenceUsage.eventOccurrence => this.performedAction; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -427,7 +428,7 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IEventOccurrenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool Systems.DefinitionAndUsage.IUsage.isReference => throw new InvalidOperationException("Redefined by property IEventOccurrenceUsage.IsReference"); + bool Systems.DefinitionAndUsage.IUsage.isReference => this.isReference; /// /// Always true for an EventOccurrenceUsage. @@ -463,7 +464,11 @@ public partial class PerformActionUsage : IPerformActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -750,7 +755,7 @@ public partial class PerformActionUsage : IPerformActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1113,7 +1118,7 @@ public partial class PerformActionUsage : IPerformActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/PortConjugation.cs b/SysML2.NET/Core/AutoGenPoco/PortConjugation.cs index 7ce588d6b..fd630ae5f 100644 --- a/SysML2.NET/Core/AutoGenPoco/PortConjugation.cs +++ b/SysML2.NET/Core/AutoGenPoco/PortConjugation.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Ports using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Root.Annotations; @@ -160,7 +161,17 @@ public partial class PortConjugation : IPortConjugation [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IPortConjugation.OriginalPortDefinition")] [Implements(implementation: "IConjugation.OriginalType")] - public IType OriginalType { get; set; } + IType Core.Types.IConjugation.OriginalType + { + get => this.OriginalPortDefinition; + set + { + if (value is IPortDefinition castedValue) + { + this.OriginalPortDefinition = castedValue; + } + } + } /// /// The ownedRelationships of this Element that are Annotations, for which this Element is the @@ -246,7 +257,7 @@ public partial class PortConjugation : IPortConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_693018_16749")] [RedefinedByProperty("IPortConjugation.ConjugatedPortDefinition")] [Implements(implementation: "IConjugation.OwningType")] - public IType owningType => this.ComputeOwningType(); + IType Core.Types.IConjugation.owningType => this.conjugatedPortDefinition; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -285,7 +296,17 @@ public partial class PortConjugation : IPortConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConjugation.ConjugatedType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.ConjugatedType != null ? [this.ConjugatedType] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.ConjugatedType = firstValue; + } + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -294,7 +315,17 @@ public partial class PortConjugation : IPortConjugation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConjugation.OriginalType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Core.Types.IConjugation)this).OriginalType != null ? [((SysML2.NET.Core.POCO.Core.Types.IConjugation)this).OriginalType] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.IConjugation)this).OriginalType = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/PortDefinition.cs b/SysML2.NET/Core/AutoGenPoco/PortDefinition.cs index f36b0fc4b..473cd1bf4 100644 --- a/SysML2.NET/Core/AutoGenPoco/PortDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/PortDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Ports using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/PortUsage.cs b/SysML2.NET/Core/AutoGenPoco/PortUsage.cs index 4969c18e8..0181526be 100644 --- a/SysML2.NET/Core/AutoGenPoco/PortUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/PortUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Ports using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -130,7 +131,7 @@ public partial class PortUsage : IPortUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -420,7 +421,11 @@ public partial class PortUsage : IPortUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -707,7 +712,7 @@ public partial class PortUsage : IPortUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IPortUsage.PortDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.portDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1060,7 +1065,7 @@ public partial class PortUsage : IPortUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Predicate.cs b/SysML2.NET/Core/AutoGenPoco/Predicate.cs index ab98f6672..948d0c5a4 100644 --- a/SysML2.NET/Core/AutoGenPoco/Predicate.cs +++ b/SysML2.NET/Core/AutoGenPoco/Predicate.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -95,7 +96,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The Documentation owned by this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/Redefinition.cs b/SysML2.NET/Core/AutoGenPoco/Redefinition.cs index a5e75e434..4b5240d8c 100644 --- a/SysML2.NET/Core/AutoGenPoco/Redefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/Redefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Features using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Root.Annotations; @@ -107,7 +108,17 @@ public partial class Redefinition : IRedefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubsetting.SubsettedFeature")] [Implements(implementation: "ISpecialization.General")] - public IType General { get; set; } + IType Core.Types.ISpecialization.General + { + get => ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettedFeature; + set + { + if (value is IFeature castedValue) + { + ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettedFeature = castedValue; + } + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -238,7 +249,7 @@ public partial class Redefinition : IRedefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType owningType => this.ComputeOwningType(); + IType Core.Types.ISpecialization.owningType => this.owningFeature; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -293,7 +304,17 @@ public partial class Redefinition : IRedefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific = firstValue; + } + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -302,7 +323,17 @@ public partial class Redefinition : IRedefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubsetting.SubsettingFeature")] [Implements(implementation: "ISpecialization.Specific")] - public IType Specific { get; set; } + IType Core.Types.ISpecialization.Specific + { + get => ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettingFeature; + set + { + if (value is IFeature castedValue) + { + ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettingFeature = castedValue; + } + } + } /// /// The Feature that is subsetted by the subsettingFeature of this Subsetting. @@ -311,7 +342,14 @@ public partial class Redefinition : IRedefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_563969_43273")] [RedefinedByProperty("IRedefinition.RedefinedFeature")] [Implements(implementation: "ISubsetting.SubsettedFeature")] - public IFeature SubsettedFeature { get; set; } + IFeature ISubsetting.SubsettedFeature + { + get => this.RedefinedFeature; + set + { + this.RedefinedFeature = value; + } + } /// /// The Feature that is a subset of the subsettedFeature of this Subsetting. @@ -320,7 +358,14 @@ public partial class Redefinition : IRedefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IRedefinition.RedefiningFeature")] [Implements(implementation: "ISubsetting.SubsettingFeature")] - public IFeature SubsettingFeature { get; set; } + IFeature ISubsetting.SubsettingFeature + { + get => this.RedefiningFeature; + set + { + this.RedefiningFeature = value; + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -329,7 +374,17 @@ public partial class Redefinition : IRedefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/ReferenceSubsetting.cs b/SysML2.NET/Core/AutoGenPoco/ReferenceSubsetting.cs index 135094ddd..03038af1e 100644 --- a/SysML2.NET/Core/AutoGenPoco/ReferenceSubsetting.cs +++ b/SysML2.NET/Core/AutoGenPoco/ReferenceSubsetting.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Features using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Root.Annotations; @@ -101,7 +102,17 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubsetting.SubsettedFeature")] [Implements(implementation: "ISpecialization.General")] - public IType General { get; set; } + IType Core.Types.ISpecialization.General + { + get => ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettedFeature; + set + { + if (value is IFeature castedValue) + { + ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettedFeature = castedValue; + } + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -189,7 +200,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_573157_43226")] [RedefinedByProperty("IReferenceSubsetting.ReferencingFeature")] [Implements(implementation: "ISubsetting.OwningFeature")] - public IFeature owningFeature => this.ComputeOwningFeature(); + IFeature ISubsetting.owningFeature => this.referencingFeature; /// /// The owningRelationship of this Element, if that Relationship is a Membership. @@ -233,7 +244,7 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType owningType => this.ComputeOwningType(); + IType Core.Types.ISpecialization.owningType => ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).owningFeature; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -289,7 +300,17 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific = firstValue; + } + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -298,7 +319,17 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubsetting.SubsettingFeature")] [Implements(implementation: "ISpecialization.Specific")] - public IType Specific { get; set; } + IType Core.Types.ISpecialization.Specific + { + get => ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettingFeature; + set + { + if (value is IFeature castedValue) + { + ((SysML2.NET.Core.POCO.Core.Features.ISubsetting)this).SubsettingFeature = castedValue; + } + } + } /// /// The Feature that is subsetted by the subsettingFeature of this Subsetting. @@ -307,7 +338,14 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_563969_43273")] [RedefinedByProperty("IReferenceSubsetting.ReferencedFeature")] [Implements(implementation: "ISubsetting.SubsettedFeature")] - public IFeature SubsettedFeature { get; set; } + IFeature ISubsetting.SubsettedFeature + { + get => this.ReferencedFeature; + set + { + this.ReferencedFeature = value; + } + } /// /// The Feature that is a subset of the subsettedFeature of this Subsetting. @@ -316,7 +354,11 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("IReferenceSubsetting.ReferencingFeature")] [Implements(implementation: "ISubsetting.SubsettingFeature")] - public IFeature SubsettingFeature { get; set; } + IFeature ISubsetting.SubsettingFeature + { + get => this.referencingFeature; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -325,7 +367,17 @@ public partial class ReferenceSubsetting : IReferenceSubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs b/SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs index ebdcd877a..427b7f6e6 100644 --- a/SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.DefinitionAndUsage using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Classifiers; @@ -385,7 +386,7 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_19_0_4_12e503d9_1624035114787_488767_41423", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IReferenceUsage.IsReference")] [Implements(implementation: "IUsage.IsReference")] - bool IUsage.isReference => throw new InvalidOperationException("Redefined by property IReferenceUsage.IsReference"); + bool IUsage.isReference => this.isReference; /// /// Whether all things that meet the classification conditions of this Type must be classified by the @@ -413,7 +414,11 @@ public partial class ReferenceUsage : IReferenceUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1025,7 +1030,7 @@ public partial class ReferenceUsage : IReferenceUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. this.definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Relationship.cs b/SysML2.NET/Core/AutoGenPoco/Relationship.cs index b47105fc0..0638eb0e1 100644 --- a/SysML2.NET/Core/AutoGenPoco/Relationship.cs +++ b/SysML2.NET/Core/AutoGenPoco/Relationship.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Elements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Namespaces; diff --git a/SysML2.NET/Core/AutoGenPoco/RenderingDefinition.cs b/SysML2.NET/Core/AutoGenPoco/RenderingDefinition.cs index 9c94ba400..303760d79 100644 --- a/SysML2.NET/Core/AutoGenPoco/RenderingDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/RenderingDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Views using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs b/SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs index fbfa5a887..7e26644c1 100644 --- a/SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Views using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -131,7 +132,7 @@ public partial class RenderingUsage : IRenderingUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -421,7 +422,11 @@ public partial class RenderingUsage : IRenderingUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1020,7 +1025,7 @@ public partial class RenderingUsage : IRenderingUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedByProperty("IRenderingUsage.RenderingDefinition")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List partDefinition => this.ComputePartDefinition(); + List Systems.Parts.IPartUsage.partDefinition => this.renderingDefinition != null ? [this.renderingDefinition] : []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1079,7 +1084,7 @@ public partial class RenderingUsage : IRenderingUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/RequirementConstraintMembership.cs b/SysML2.NET/Core/AutoGenPoco/RequirementConstraintMembership.cs index b03ff24dd..13a4d21ce 100644 --- a/SysML2.NET/Core/AutoGenPoco/RequirementConstraintMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/RequirementConstraintMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.Systems.Requirements; @@ -134,7 +135,11 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -142,7 +147,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -150,7 +155,11 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -161,7 +170,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -169,7 +178,11 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -216,7 +229,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -234,7 +247,7 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedConstraint; /// /// The name of the ownedMemberElement. @@ -365,7 +378,11 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -374,7 +391,17 @@ public partial class RequirementConstraintMembership : IRequirementConstraintMem [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/RequirementDefinition.cs b/SysML2.NET/Core/AutoGenPoco/RequirementDefinition.cs index 71aa92da2..77dcff654 100644 --- a/SysML2.NET/Core/AutoGenPoco/RequirementDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/RequirementDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -117,7 +118,14 @@ public partial class RequirementDefinition : IRequirementDefinition [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementDefinition.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -139,7 +147,7 @@ public partial class RequirementDefinition : IRequirementDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenPoco/RequirementUsage.cs b/SysML2.NET/Core/AutoGenPoco/RequirementUsage.cs index 8466a30c3..e6fb73e49 100644 --- a/SysML2.NET/Core/AutoGenPoco/RequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/RequirementUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -109,7 +110,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -132,7 +133,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public IPredicate constraintDefinition => this.ComputeConstraintDefinition(); + IPredicate Systems.Constraints.IConstraintUsage.constraintDefinition => this.requirementDefinition; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -160,7 +161,14 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementUsage.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -171,7 +179,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -193,7 +201,7 @@ public partial class RequirementUsage : IRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -297,7 +305,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction Kernel.Functions.IExpression.function => ((SysML2.NET.Core.POCO.Kernel.Functions.IBooleanExpression)this).predicate; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -488,7 +496,11 @@ public partial class RequirementUsage : IRequirementUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1095,7 +1107,7 @@ public partial class RequirementUsage : IRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate predicate => this.ComputePredicate(); + IPredicate Kernel.Functions.IBooleanExpression.predicate => ((SysML2.NET.Core.POCO.Systems.Constraints.IConstraintUsage)this).constraintDefinition; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1202,7 +1214,7 @@ public partial class RequirementUsage : IRequirementUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/RequirementVerificationMembership.cs b/SysML2.NET/Core/AutoGenPoco/RequirementVerificationMembership.cs index b0ecf8888..f4bf91b95 100644 --- a/SysML2.NET/Core/AutoGenPoco/RequirementVerificationMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/RequirementVerificationMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.VerificationCases using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.Systems.Requirements; @@ -135,7 +136,14 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_2_12e503d9_1584048161309_821854_390", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementVerificationMembership.Kind")] [Implements(implementation: "IRequirementConstraintMembership.Kind")] - RequirementConstraintKind Systems.Requirements.IRequirementConstraintMembership.Kind { get; set; } + RequirementConstraintKind Systems.Requirements.IRequirementConstraintMembership.Kind + { + get => this.Kind; + set + { + this.Kind = value; + } + } /// /// The Element that becomes a member of the membershipOwningNamespace due to this Membership. @@ -144,7 +152,11 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -152,7 +164,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -160,7 +172,11 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -171,7 +187,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -179,7 +195,11 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -208,7 +228,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IRequirementVerificationMembership.OwnedRequirement")] [Implements(implementation: "IRequirementConstraintMembership.OwnedConstraint")] - public IConstraintUsage ownedConstraint => this.ComputeOwnedConstraint(); + IConstraintUsage Systems.Requirements.IRequirementConstraintMembership.ownedConstraint => this.ownedRequirement; /// /// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of @@ -227,7 +247,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -245,7 +265,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IRequirementConstraintMembership.OwnedConstraint")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => ((SysML2.NET.Core.POCO.Systems.Requirements.IRequirementConstraintMembership)this).ownedConstraint; /// /// The name of the ownedMemberElement. @@ -360,7 +380,7 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [Property(xmiId: "_19_0_4_12e503d9_1617118807597_77864_3544", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementVerificationMembership.VerifiedRequirement")] [Implements(implementation: "IRequirementConstraintMembership.ReferencedConstraint")] - public IConstraintUsage referencedConstraint => this.ComputeReferencedConstraint(); + IConstraintUsage Systems.Requirements.IRequirementConstraintMembership.referencedConstraint => this.verifiedRequirement; /// /// The Elements that are related by this Relationship, derived as the union of the source and target @@ -387,7 +407,11 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -396,7 +420,17 @@ public partial class RequirementVerificationMembership : IRequirementVerificatio [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/ResultExpressionMembership.cs b/SysML2.NET/Core/AutoGenPoco/ResultExpressionMembership.cs index e75e5ed36..4995fde8b 100644 --- a/SysML2.NET/Core/AutoGenPoco/ResultExpressionMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ResultExpressionMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; @@ -127,7 +128,11 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -135,7 +140,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -143,7 +148,11 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -154,7 +163,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -162,7 +171,11 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -201,7 +214,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -219,7 +232,7 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IResultExpressionMembership.OwnedResultExpression")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedResultExpression; /// /// The name of the ownedMemberElement. @@ -349,7 +362,11 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -358,7 +375,17 @@ public partial class ResultExpressionMembership : IResultExpressionMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/ReturnParameterMembership.cs b/SysML2.NET/Core/AutoGenPoco/ReturnParameterMembership.cs index da688b262..7fba82a5d 100644 --- a/SysML2.NET/Core/AutoGenPoco/ReturnParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ReturnParameterMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; @@ -127,7 +128,11 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -135,7 +140,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -143,7 +148,11 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -154,7 +163,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -162,7 +171,11 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -201,7 +214,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -219,7 +232,7 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedMemberParameter; /// /// The name of the ownedMemberElement. @@ -349,7 +362,11 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -358,7 +375,17 @@ public partial class ReturnParameterMembership : IReturnParameterMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/SatisfyRequirementUsage.cs b/SysML2.NET/Core/AutoGenPoco/SatisfyRequirementUsage.cs index 30c9dee85..58338e602 100644 --- a/SysML2.NET/Core/AutoGenPoco/SatisfyRequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/SatisfyRequirementUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -103,7 +104,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1581045158665_239617_9458", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("ISatisfyRequirementUsage.SatisfiedRequirement")] [Implements(implementation: "IAssertConstraintUsage.AssertedConstraint")] - public IConstraintUsage assertedConstraint => this.ComputeAssertedConstraint(); + IConstraintUsage Systems.Constraints.IAssertConstraintUsage.assertedConstraint => this.satisfiedRequirement; /// /// The owned ConstraintUsages that represent assumptions of this RequirementUsage, derived as the @@ -122,7 +123,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -145,7 +146,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public IPredicate constraintDefinition => this.ComputeConstraintDefinition(); + IPredicate Systems.Constraints.IConstraintUsage.constraintDefinition => this.requirementDefinition; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -173,7 +174,14 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementUsage.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -184,7 +192,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -206,7 +214,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -310,7 +318,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction Kernel.Functions.IExpression.function => ((SysML2.NET.Core.POCO.Kernel.Functions.IBooleanExpression)this).predicate; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -508,7 +516,11 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1115,7 +1127,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate predicate => this.ComputePredicate(); + IPredicate Kernel.Functions.IBooleanExpression.predicate => ((SysML2.NET.Core.POCO.Systems.Constraints.IConstraintUsage)this).constraintDefinition; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1240,7 +1252,7 @@ public partial class SatisfyRequirementUsage : ISatisfyRequirementUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/SelectExpression.cs b/SysML2.NET/Core/AutoGenPoco/SelectExpression.cs index 8dbf2bba4..4fe6a06ff 100644 --- a/SysML2.NET/Core/AutoGenPoco/SelectExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/SelectExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -77,7 +78,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -138,7 +139,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -450,7 +451,14 @@ public partial class SelectExpression : ISelectExpression [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)] [RedefinedByProperty("ISelectExpression.Operator")] [Implements(implementation: "IOperatorExpression.Operator")] - string IOperatorExpression.Operator { get; set; } + string IOperatorExpression.Operator + { + get => this.Operator; + set + { + this.Operator = value; + } + } /// /// All features related to this Type by FeatureMemberships that have direction out or inout. diff --git a/SysML2.NET/Core/AutoGenPoco/SendActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/SendActionUsage.cs index db93f673f..a0dca1a30 100644 --- a/SysML2.NET/Core/AutoGenPoco/SendActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/SendActionUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -106,7 +107,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -156,7 +157,7 @@ public partial class SendActionUsage : ISendActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -178,7 +179,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -447,7 +448,11 @@ public partial class SendActionUsage : ISendActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -734,7 +739,7 @@ public partial class SendActionUsage : ISendActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1109,7 +1114,7 @@ public partial class SendActionUsage : ISendActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Specialization.cs b/SysML2.NET/Core/AutoGenPoco/Specialization.cs index a394e2e9e..0dd2ce8e0 100644 --- a/SysML2.NET/Core/AutoGenPoco/Specialization.cs +++ b/SysML2.NET/Core/AutoGenPoco/Specialization.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Types using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -256,7 +257,17 @@ public partial class Specialization : ISpecialization [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.Specific != null ? [this.Specific] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.Specific = firstValue; + } + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -273,7 +284,17 @@ public partial class Specialization : ISpecialization [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.General != null ? [this.General] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.General = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/StakeholderMembership.cs b/SysML2.NET/Core/AutoGenPoco/StakeholderMembership.cs index 29381f188..a036e1770 100644 --- a/SysML2.NET/Core/AutoGenPoco/StakeholderMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/StakeholderMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; @@ -128,7 +129,11 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -136,7 +141,7 @@ public partial class StakeholderMembership : IStakeholderMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -144,7 +149,11 @@ public partial class StakeholderMembership : IStakeholderMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -155,7 +164,7 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -163,7 +172,11 @@ public partial class StakeholderMembership : IStakeholderMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -202,7 +215,7 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -220,7 +233,7 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => ((SysML2.NET.Core.POCO.Kernel.Behaviors.IParameterMembership)this).ownedMemberParameter; /// /// The name of the ownedMemberElement. @@ -237,7 +250,7 @@ public partial class StakeholderMembership : IStakeholderMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("IStakeholderMembership.OwnedStakeholderParameter")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public IFeature ownedMemberParameter => this.ComputeOwnedMemberParameter(); + IFeature Kernel.Behaviors.IParameterMembership.ownedMemberParameter => this.ownedStakeholderParameter; /// /// The shortName of the ownedMemberElement. @@ -359,7 +372,11 @@ public partial class StakeholderMembership : IStakeholderMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -368,7 +385,17 @@ public partial class StakeholderMembership : IStakeholderMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/StateDefinition.cs b/SysML2.NET/Core/AutoGenPoco/StateDefinition.cs index feb1174bc..1e5c7f92e 100644 --- a/SysML2.NET/Core/AutoGenPoco/StateDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/StateDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.States using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -129,7 +130,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenPoco/StateSubactionMembership.cs b/SysML2.NET/Core/AutoGenPoco/StateSubactionMembership.cs index 51b062cb1..69cb5ae25 100644 --- a/SysML2.NET/Core/AutoGenPoco/StateSubactionMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/StateSubactionMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.States using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.Systems.States; @@ -142,7 +143,11 @@ public partial class StateSubactionMembership : IStateSubactionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -150,7 +155,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -158,7 +163,11 @@ public partial class StateSubactionMembership : IStateSubactionMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -169,7 +178,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -177,7 +186,11 @@ public partial class StateSubactionMembership : IStateSubactionMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -216,7 +229,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -234,7 +247,7 @@ public partial class StateSubactionMembership : IStateSubactionMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IStateSubactionMembership.Action")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => this.action; /// /// The name of the ownedMemberElement. @@ -356,7 +369,11 @@ public partial class StateSubactionMembership : IStateSubactionMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -365,7 +382,17 @@ public partial class StateSubactionMembership : IStateSubactionMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/StateUsage.cs b/SysML2.NET/Core/AutoGenPoco/StateUsage.cs index a2d53e44b..d1c2c10d8 100644 --- a/SysML2.NET/Core/AutoGenPoco/StateUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/StateUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.States using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -88,7 +89,7 @@ public partial class StateUsage : IStateUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IStateUsage.StateDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition => this.ComputeActionDefinition(); + List Systems.Actions.IActionUsage.actionDefinition => [.. this.stateDefinition]; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -104,7 +105,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. ((SysML2.NET.Core.POCO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -154,7 +155,7 @@ public partial class StateUsage : IStateUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -176,7 +177,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -481,7 +482,11 @@ public partial class StateUsage : IStateUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -768,7 +773,7 @@ public partial class StateUsage : IStateUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.POCO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1131,7 +1136,7 @@ public partial class StateUsage : IStateUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/Step.cs b/SysML2.NET/Core/AutoGenPoco/Step.cs index 3f6b6ee5a..a90ae9e65 100644 --- a/SysML2.NET/Core/AutoGenPoco/Step.cs +++ b/SysML2.NET/Core/AutoGenPoco/Step.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Behaviors using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -127,7 +128,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/Structure.cs b/SysML2.NET/Core/AutoGenPoco/Structure.cs index e4f5f8542..5f5313d56 100644 --- a/SysML2.NET/Core/AutoGenPoco/Structure.cs +++ b/SysML2.NET/Core/AutoGenPoco/Structure.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Structures using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/Subclassification.cs b/SysML2.NET/Core/AutoGenPoco/Subclassification.cs index 6162c4292..9f0ed924c 100644 --- a/SysML2.NET/Core/AutoGenPoco/Subclassification.cs +++ b/SysML2.NET/Core/AutoGenPoco/Subclassification.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Classifiers using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Root.Annotations; @@ -97,7 +98,17 @@ public partial class Subclassification : ISubclassification [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubclassification.Superclassifier")] [Implements(implementation: "ISpecialization.General")] - public IType General { get; set; } + IType Core.Types.ISpecialization.General + { + get => this.Superclassifier; + set + { + if (value is IClassifier castedValue) + { + this.Superclassifier = castedValue; + } + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -227,7 +238,7 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubclassification.OwningClassifier")] [Implements(implementation: "ISpecialization.OwningType")] - public IType owningType => this.ComputeOwningType(); + IType Core.Types.ISpecialization.owningType => this.owningClassifier; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -266,7 +277,17 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific = firstValue; + } + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -275,7 +296,17 @@ public partial class Subclassification : ISubclassification [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubclassification.Subclassifier")] [Implements(implementation: "ISpecialization.Specific")] - public IType Specific { get; set; } + IType Core.Types.ISpecialization.Specific + { + get => this.Subclassifier; + set + { + if (value is IClassifier castedValue) + { + this.Subclassifier = castedValue; + } + } + } /// /// The more specific Classifier in this Subclassification. @@ -300,7 +331,17 @@ public partial class Subclassification : ISubclassification [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/SubjectMembership.cs b/SysML2.NET/Core/AutoGenPoco/SubjectMembership.cs index 270ae2aed..f2ef0c613 100644 --- a/SysML2.NET/Core/AutoGenPoco/SubjectMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/SubjectMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; @@ -128,7 +129,11 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -136,7 +141,7 @@ public partial class SubjectMembership : ISubjectMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -144,7 +149,11 @@ public partial class SubjectMembership : ISubjectMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -155,7 +164,7 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -163,7 +172,11 @@ public partial class SubjectMembership : ISubjectMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -202,7 +215,7 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -220,7 +233,7 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IParameterMembership.OwnedMemberParameter")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => ((SysML2.NET.Core.POCO.Kernel.Behaviors.IParameterMembership)this).ownedMemberParameter; /// /// The name of the ownedMemberElement. @@ -237,7 +250,7 @@ public partial class SubjectMembership : ISubjectMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] [RedefinedByProperty("ISubjectMembership.OwnedSubjectParameter")] [Implements(implementation: "IParameterMembership.OwnedMemberParameter")] - public IFeature ownedMemberParameter => this.ComputeOwnedMemberParameter(); + IFeature Kernel.Behaviors.IParameterMembership.ownedMemberParameter => this.ownedSubjectParameter; /// /// The shortName of the ownedMemberElement. @@ -359,7 +372,11 @@ public partial class SubjectMembership : ISubjectMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -368,7 +385,17 @@ public partial class SubjectMembership : ISubjectMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/Subsetting.cs b/SysML2.NET/Core/AutoGenPoco/Subsetting.cs index c03286ba4..dcc813ec6 100644 --- a/SysML2.NET/Core/AutoGenPoco/Subsetting.cs +++ b/SysML2.NET/Core/AutoGenPoco/Subsetting.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Features using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Root.Annotations; @@ -101,7 +102,17 @@ public partial class Subsetting : ISubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("ISubsetting.SubsettedFeature")] [Implements(implementation: "ISpecialization.General")] - public IType General { get; set; } + IType Core.Types.ISpecialization.General + { + get => this.SubsettedFeature; + set + { + if (value is IFeature castedValue) + { + this.SubsettedFeature = castedValue; + } + } + } /// /// Whether this Relationship was generated by tooling to meet semantic rules, rather than being @@ -232,7 +243,7 @@ public partial class Subsetting : ISubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674982_253967_43281")] [RedefinedByProperty("ISubsetting.OwningFeature")] [Implements(implementation: "ISpecialization.OwningType")] - public IType owningType => this.ComputeOwningType(); + IType Core.Types.ISpecialization.owningType => this.owningFeature; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -271,7 +282,17 @@ public partial class Subsetting : ISubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.Specific")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).Specific = firstValue; + } + } + } /// /// A Type with a subset of all instances of the general Type, which might be the same set. @@ -280,7 +301,17 @@ public partial class Subsetting : ISubsetting [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("ISubsetting.SubsettingFeature")] [Implements(implementation: "ISpecialization.Specific")] - public IType Specific { get; set; } + IType Core.Types.ISpecialization.Specific + { + get => this.SubsettingFeature; + set + { + if (value is IFeature castedValue) + { + this.SubsettingFeature = castedValue; + } + } + } /// /// The Feature that is subsetted by the subsettingFeature of this Subsetting. @@ -305,7 +336,17 @@ public partial class Subsetting : ISubsetting [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ISpecialization.General")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General != null ? [((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + ((SysML2.NET.Core.POCO.Core.Types.ISpecialization)this).General = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/Succession.cs b/SysML2.NET/Core/AutoGenPoco/Succession.cs index 1849eda65..8052888ae 100644 --- a/SysML2.NET/Core/AutoGenPoco/Succession.cs +++ b/SysML2.NET/Core/AutoGenPoco/Succession.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Connectors using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; @@ -177,7 +178,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -738,7 +739,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -766,7 +767,11 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -784,7 +789,11 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -814,7 +823,7 @@ public partial class Succession : ISuccession [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. this.association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/SuccessionAsUsage.cs b/SysML2.NET/Core/AutoGenPoco/SuccessionAsUsage.cs index 15a121a0b..be6a28834 100644 --- a/SysML2.NET/Core/AutoGenPoco/SuccessionAsUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/SuccessionAsUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Connections using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Classifiers; @@ -219,7 +220,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -438,7 +439,11 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1045,7 +1050,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1073,7 +1078,11 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1091,7 +1100,11 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1121,7 +1134,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. this.definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs b/SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs index 5cd401485..dc623e072 100644 --- a/SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs +++ b/SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Interactions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Classifiers; @@ -70,7 +71,7 @@ public partial class SuccessionFlow : ISuccessionFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List association => this.ComputeAssociation(); + List Kernel.Connectors.IConnector.association => [.. this.interaction]; /// /// The Behaviors that type this Step. @@ -79,7 +80,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.interaction]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -159,7 +160,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -193,7 +194,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -796,7 +797,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -824,7 +825,11 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -850,7 +855,11 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -888,7 +897,7 @@ public partial class SuccessionFlow : ISuccessionFlow [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Kernel.Connectors.IConnector)this).association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/SuccessionFlowUsage.cs b/SysML2.NET/Core/AutoGenPoco/SuccessionFlowUsage.cs index ed97a5390..5a1f611e9 100644 --- a/SysML2.NET/Core/AutoGenPoco/SuccessionFlowUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/SuccessionFlowUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Flows using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -88,7 +89,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition => this.ComputeActionDefinition(); + List Systems.Actions.IActionUsage.actionDefinition => [.. this.flowDefinition]; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -104,7 +105,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - public List association => this.ComputeAssociation(); + List Kernel.Connectors.IConnector.association => [.. ((SysML2.NET.Core.POCO.Kernel.Interactions.IFlow)this).interaction]; /// /// The Behaviors that type this Step. @@ -113,7 +114,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. ((SysML2.NET.Core.POCO.Kernel.Interactions.IFlow)this).interaction]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -182,7 +183,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -204,7 +205,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -247,7 +248,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - public List endFeature => this.ComputeEndFeature(); + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -362,7 +363,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IFlow.Interaction")] - public List interaction => this.ComputeInteraction(); + List Kernel.Interactions.IFlow.interaction => [.. this.flowDefinition]; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -512,7 +513,11 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -799,7 +804,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.POCO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1163,7 +1168,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - public List relatedElement => this.ComputeRelatedElement(); + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1191,7 +1196,11 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.SourceFeature")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.sourceFeature != null ? [this.sourceFeature] : []; + set { } + } /// /// The source relatedFeature for this Connector. It is the first relatedFeature. @@ -1217,7 +1226,11 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IConnector.TargetFeature")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => [.. this.targetFeature]; + set { } + } /// /// The target relatedFeatures for this Connector. This includes all the relatedFeatures other than the @@ -1255,7 +1268,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Kernel.Connectors.IConnector)this).association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/TerminateActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/TerminateActionUsage.cs index 2b4aa9f73..f542f7b2f 100644 --- a/SysML2.NET/Core/AutoGenPoco/TerminateActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/TerminateActionUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -105,7 +106,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -155,7 +156,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -177,7 +178,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -446,7 +447,11 @@ public partial class TerminateActionUsage : ITerminateActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -733,7 +738,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1095,7 +1100,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/TextualRepresentation.cs b/SysML2.NET/Core/AutoGenPoco/TextualRepresentation.cs index 02996dd27..0a6ca061e 100644 --- a/SysML2.NET/Core/AutoGenPoco/TextualRepresentation.cs +++ b/SysML2.NET/Core/AutoGenPoco/TextualRepresentation.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Root.Annotations using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; @@ -84,7 +85,7 @@ public partial class TextualRepresentation : ITextualRepresentation [Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("ITextualRepresentation.RepresentedElement")] [Implements(implementation: "IAnnotatingElement.AnnotatedElement")] - public List annotatedElement => this.ComputeAnnotatedElement(); + List IAnnotatingElement.annotatedElement => this.representedElement != null ? [this.representedElement] : []; /// /// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the diff --git a/SysML2.NET/Core/AutoGenPoco/TransitionFeatureMembership.cs b/SysML2.NET/Core/AutoGenPoco/TransitionFeatureMembership.cs index 2c96638e9..80ecdc979 100644 --- a/SysML2.NET/Core/AutoGenPoco/TransitionFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/TransitionFeatureMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.States using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.Systems.States; @@ -135,7 +136,11 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -143,7 +148,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -151,7 +156,11 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -162,7 +171,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -170,7 +179,11 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -209,7 +222,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -227,7 +240,7 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("ITransitionFeatureMembership.TransitionFeature")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => this.transitionFeature; /// /// The name of the ownedMemberElement. @@ -349,7 +362,11 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -358,7 +375,17 @@ public partial class TransitionFeatureMembership : ITransitionFeatureMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/TransitionUsage.cs b/SysML2.NET/Core/AutoGenPoco/TransitionUsage.cs index 173c8d823..6da65fbb5 100644 --- a/SysML2.NET/Core/AutoGenPoco/TransitionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/TransitionUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.States using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -107,7 +108,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -157,7 +158,7 @@ public partial class TransitionUsage : ITransitionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -179,7 +180,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -468,7 +469,11 @@ public partial class TransitionUsage : ITransitionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -755,7 +760,7 @@ public partial class TransitionUsage : ITransitionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1144,7 +1149,7 @@ public partial class TransitionUsage : ITransitionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/TriggerInvocationExpression.cs b/SysML2.NET/Core/AutoGenPoco/TriggerInvocationExpression.cs index 822eb2891..8dfd6773f 100644 --- a/SysML2.NET/Core/AutoGenPoco/TriggerInvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/TriggerInvocationExpression.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Actions; @@ -79,7 +80,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => this.function != null ? [this.function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -140,7 +141,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenPoco/Type.cs b/SysML2.NET/Core/AutoGenPoco/Type.cs index f66406b3d..2c9094b24 100644 --- a/SysML2.NET/Core/AutoGenPoco/Type.cs +++ b/SysML2.NET/Core/AutoGenPoco/Type.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Types using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Root.Annotations; diff --git a/SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs b/SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs index 64cf6e85f..677dd7d8b 100644 --- a/SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs +++ b/SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Features using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Root.Annotations; @@ -264,7 +265,17 @@ public partial class TypeFeaturing : ITypeFeaturing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ITypeFeaturing.FeatureOfType")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.FeatureOfType != null ? [this.FeatureOfType] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.FeatureOfType = firstValue; + } + } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -273,7 +284,17 @@ public partial class TypeFeaturing : ITypeFeaturing [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("ITypeFeaturing.FeaturingType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.FeaturingType != null ? [this.FeaturingType] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.FeaturingType = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/Unioning.cs b/SysML2.NET/Core/AutoGenPoco/Unioning.cs index de05ccc5b..9dd73b109 100644 --- a/SysML2.NET/Core/AutoGenPoco/Unioning.cs +++ b/SysML2.NET/Core/AutoGenPoco/Unioning.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Core.Types using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -237,7 +238,11 @@ public partial class Unioning : IUnioning [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IUnioning.TypeUnioned")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.typeUnioned != null ? [this.typeUnioned] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -246,7 +251,17 @@ public partial class Unioning : IUnioning [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IUnioning.UnioningType")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => this.UnioningType != null ? [this.UnioningType] : []; + set + { + if (value.OfType().FirstOrDefault() is { } firstValue) + { + this.UnioningType = firstValue; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/Usage.cs b/SysML2.NET/Core/AutoGenPoco/Usage.cs index cc2aa6862..61cda7ef1 100644 --- a/SysML2.NET/Core/AutoGenPoco/Usage.cs +++ b/SysML2.NET/Core/AutoGenPoco/Usage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.DefinitionAndUsage using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Classifiers; @@ -406,7 +407,11 @@ public partial class Usage : IUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1018,7 +1023,7 @@ public partial class Usage : IUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. this.definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/UseCaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/UseCaseDefinition.cs index b6334539e..cb43371f1 100644 --- a/SysML2.NET/Core/AutoGenPoco/UseCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/UseCaseDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.UseCases using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -147,7 +148,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs index edf27e1e3..c5842f66f 100644 --- a/SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.UseCases using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -86,7 +87,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition => this.ComputeActionDefinition(); + List Systems.Actions.IActionUsage.actionDefinition => ((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition != null ? [((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition] : []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -111,7 +112,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -123,7 +124,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public IFunction calculationDefinition => this.ComputeCalculationDefinition(); + IFunction Systems.Calculations.ICalculationUsage.calculationDefinition => ((SysML2.NET.Core.POCO.Systems.Cases.ICaseUsage)this).caseDefinition; /// /// The CaseDefinition that is the type of this CaseUsage. @@ -132,7 +133,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1588213526305_899324_302")] [RedefinedByProperty("IUseCaseUsage.UseCaseDefinition")] [Implements(implementation: "ICaseUsage.CaseDefinition")] - public ICaseDefinition caseDefinition => this.ComputeCaseDefinition(); + ICaseDefinition Systems.Cases.ICaseUsage.caseDefinition => this.useCaseDefinition; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -182,7 +183,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -204,7 +205,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -299,7 +300,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction Kernel.Functions.IExpression.function => ((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -498,7 +499,11 @@ public partial class UseCaseUsage : IUseCaseUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -793,7 +798,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.POCO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1167,7 +1172,7 @@ public partial class UseCaseUsage : IUseCaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/VariantMembership.cs b/SysML2.NET/Core/AutoGenPoco/VariantMembership.cs index edbee72dd..431dd6323 100644 --- a/SysML2.NET/Core/AutoGenPoco/VariantMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/VariantMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.DefinitionAndUsage using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; @@ -124,7 +125,11 @@ public partial class VariantMembership : IVariantMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -132,7 +137,7 @@ public partial class VariantMembership : IVariantMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -140,7 +145,11 @@ public partial class VariantMembership : IVariantMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -158,7 +167,11 @@ public partial class VariantMembership : IVariantMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -197,7 +210,7 @@ public partial class VariantMembership : IVariantMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IVariantMembership.OwnedVariantUsage")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => this.ownedVariantUsage; /// /// The elementId of the ownedMemberElement. @@ -327,7 +340,11 @@ public partial class VariantMembership : IVariantMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => this.membershipOwningNamespace != null ? [this.membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -336,7 +353,17 @@ public partial class VariantMembership : IVariantMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/VerificationCaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/VerificationCaseDefinition.cs index 6db65d610..e65236bce 100644 --- a/SysML2.NET/Core/AutoGenPoco/VerificationCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/VerificationCaseDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.VerificationCases using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -146,7 +147,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenPoco/VerificationCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/VerificationCaseUsage.cs index 5c5b87b98..4ebebc69a 100644 --- a/SysML2.NET/Core/AutoGenPoco/VerificationCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/VerificationCaseUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.VerificationCases using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -86,7 +87,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - public List actionDefinition => this.ComputeActionDefinition(); + List Systems.Actions.IActionUsage.actionDefinition => ((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition != null ? [((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition] : []; /// /// The parameters of this CaseUsage that represent actors involved in the case. @@ -111,7 +112,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Function that is the type of this CalculationUsage. Nominally, this would be a @@ -123,7 +124,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] [RedefinedByProperty("ICaseUsage.CaseDefinition")] [Implements(implementation: "ICalculationUsage.CalculationDefinition")] - public IFunction calculationDefinition => this.ComputeCalculationDefinition(); + IFunction Systems.Calculations.ICalculationUsage.calculationDefinition => this.caseDefinition; /// /// The CaseDefinition that is the type of this CaseUsage. @@ -181,7 +182,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -203,7 +204,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -298,7 +299,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("ICalculationUsage.CalculationDefinition")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction Kernel.Functions.IExpression.function => ((SysML2.NET.Core.POCO.Systems.Calculations.ICalculationUsage)this).calculationDefinition; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -489,7 +490,11 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -784,7 +789,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.POCO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1158,7 +1163,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs index c7cc39751..fad01deea 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Views using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; diff --git a/SysML2.NET/Core/AutoGenPoco/ViewRenderingMembership.cs b/SysML2.NET/Core/AutoGenPoco/ViewRenderingMembership.cs index 3bf18bcee..3970e8dd6 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewRenderingMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewRenderingMembership.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Views using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; @@ -125,7 +126,11 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] [RedefinedByProperty("IOwningMembership.OwnedMemberElement")] [Implements(implementation: "IMembership.MemberElement")] - public IElement MemberElement { get; set; } + IElement Root.Namespaces.IMembership.MemberElement + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IOwningMembership)this).ownedMemberElement; + set { } + } /// /// The elementId of the memberElement. @@ -133,7 +138,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [Property(xmiId: "_19_0_4_12e503d9_1651721199802_246768_242", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberElementId")] [Implements(implementation: "IMembership.MemberElementId")] - public string memberElementId => this.ComputeMemberElementId(); + string Root.Namespaces.IMembership.memberElementId => this.ownedMemberElementId; /// /// The name of the memberElement relative to the membershipOwningNamespace. @@ -141,7 +146,11 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [Property(xmiId: "_18_5_3_12e503d9_1533160674964_35293_43192", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberName")] [Implements(implementation: "IMembership.MemberName")] - public string MemberName { get; set; } + string Root.Namespaces.IMembership.MemberName + { + get => this.ownedMemberName; + set { } + } /// /// The Namespace of which the memberElement becomes a member due to this Membership. @@ -152,7 +161,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")] [RedefinedByProperty("IFeatureMembership.OwningType")] [Implements(implementation: "IMembership.MembershipOwningNamespace")] - public INamespace membershipOwningNamespace => this.ComputeMembershipOwningNamespace(); + INamespace Root.Namespaces.IMembership.membershipOwningNamespace => this.owningType; /// /// The short name of the memberElement relative to the membershipOwningNamespace. @@ -160,7 +169,11 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [Property(xmiId: "_19_0_4_12e503d9_1651721174176_601088_238", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IOwningMembership.OwnedMemberShortName")] [Implements(implementation: "IMembership.MemberShortName")] - public string MemberShortName { get; set; } + string Root.Namespaces.IMembership.MemberShortName + { + get => this.ownedMemberShortName; + set { } + } /// /// The name to be used for this Element during name resolution within its owningNamespace. This is @@ -199,7 +212,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674964_819490_43195")] [RedefinedByProperty("IFeatureMembership.OwnedMemberFeature")] [Implements(implementation: "IOwningMembership.OwnedMemberElement")] - public IElement ownedMemberElement => this.ComputeOwnedMemberElement(); + IElement Root.Namespaces.IOwningMembership.ownedMemberElement => ((SysML2.NET.Core.POCO.Core.Types.IFeatureMembership)this).ownedMemberFeature; /// /// The elementId of the ownedMemberElement. @@ -217,7 +230,7 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674965_501750_43196")] [RedefinedByProperty("IViewRenderingMembership.OwnedRendering")] [Implements(implementation: "IFeatureMembership.OwnedMemberFeature")] - public IFeature ownedMemberFeature => this.ComputeOwnedMemberFeature(); + IFeature Core.Types.IFeatureMembership.ownedMemberFeature => this.ownedRendering; /// /// The name of the ownedMemberElement. @@ -357,7 +370,11 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MembershipOwningNamespace")] [Implements(implementation: "IRelationship.Source")] - public List Source { get; set; } = []; + List Root.Elements.IRelationship.Source + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).membershipOwningNamespace] : []; + set { } + } /// /// The relatedElements to which this Relationship is considered to be directed. @@ -366,7 +383,17 @@ public partial class ViewRenderingMembership : IViewRenderingMembership [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] [RedefinedByProperty("IMembership.MemberElement")] [Implements(implementation: "IRelationship.Target")] - public List Target { get; set; } = []; + List Root.Elements.IRelationship.Target + { + get => ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement != null ? [((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement] : []; + set + { + if (value.Count != 0) + { + ((SysML2.NET.Core.POCO.Root.Namespaces.IMembership)this).MemberElement = value[0]; + } + } + } /// /// The TextualRepresentations that annotate this Element. diff --git a/SysML2.NET/Core/AutoGenPoco/ViewUsage.cs b/SysML2.NET/Core/AutoGenPoco/ViewUsage.cs index 341d47f3f..963c1c490 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Views using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -133,7 +134,7 @@ public partial class ViewUsage : IViewUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -432,7 +433,11 @@ public partial class ViewUsage : IViewUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1031,7 +1036,7 @@ public partial class ViewUsage : IViewUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1565471361757_649736_20796")] [RedefinedByProperty("IViewUsage.ViewDefinition")] [Implements(implementation: "IPartUsage.PartDefinition")] - public List partDefinition => this.ComputePartDefinition(); + List Systems.Parts.IPartUsage.partDefinition => this.viewDefinition != null ? [this.viewDefinition] : []; /// /// The kind of temporal portion (time slice or snapshot) is represented by this OccurrenceUsage. If @@ -1091,7 +1096,7 @@ public partial class ViewUsage : IViewUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/ViewpointDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ViewpointDefinition.cs index a42fe3be9..43abceed3 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewpointDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewpointDefinition.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Views using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; @@ -116,7 +117,14 @@ public partial class ViewpointDefinition : IViewpointDefinition [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementDefinition.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -138,7 +146,7 @@ public partial class ViewpointDefinition : IViewpointDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs b/SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs index 55857515c..9ae756fc3 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Views using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -109,7 +110,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IExpression.Function")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function != null ? [((SysML2.NET.Core.POCO.Kernel.Functions.IExpression)this).function] : []; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -132,7 +133,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] [RedefinedByProperty("IRequirementUsage.RequirementDefinition")] [Implements(implementation: "IConstraintUsage.ConstraintDefinition")] - public IPredicate constraintDefinition => this.ComputeConstraintDefinition(); + IPredicate Systems.Constraints.IConstraintUsage.constraintDefinition => ((SysML2.NET.Core.POCO.Systems.Requirements.IRequirementUsage)this).requirementDefinition; /// /// The second chainingFeature of the crossedFeature of the ownedCrossSubsetting of this Feature, if it @@ -160,7 +161,14 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] [RedefinedByProperty("IRequirementUsage.ReqId")] [Implements(implementation: "IElement.DeclaredShortName")] - public string DeclaredShortName { get; set; } + string Root.Elements.IElement.DeclaredShortName + { + get => this.ReqId; + set + { + this.ReqId = value; + } + } /// /// The Classifiers that are the types of this Usage. Nominally, these are Definitions, but other kinds @@ -171,7 +179,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -193,7 +201,7 @@ public partial class ViewpointUsage : IViewpointUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -297,7 +305,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IBooleanExpression.Predicate")] [Implements(implementation: "IExpression.Function")] - public IFunction function => this.ComputeFunction(); + IFunction Kernel.Functions.IExpression.function => ((SysML2.NET.Core.POCO.Kernel.Functions.IBooleanExpression)this).predicate; /// /// The Memberships in this Namespace that result from the ownedImports of this Namespace. @@ -488,7 +496,11 @@ public partial class ViewpointUsage : IViewpointUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -1095,7 +1107,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] [RedefinedByProperty("IConstraintUsage.ConstraintDefinition")] [Implements(implementation: "IBooleanExpression.Predicate")] - public IPredicate predicate => this.ComputePredicate(); + IPredicate Kernel.Functions.IBooleanExpression.predicate => ((SysML2.NET.Core.POCO.Systems.Constraints.IConstraintUsage)this).constraintDefinition; /// /// The full ownership-qualified name of this Element, represented in a form that is valid according to @@ -1136,7 +1148,7 @@ public partial class ViewpointUsage : IViewpointUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578067546711_751168_1745")] [RedefinedByProperty("IViewpointUsage.ViewpointDefinition")] [Implements(implementation: "IRequirementUsage.RequirementDefinition")] - public IRequirementDefinition requirementDefinition => this.ComputeRequirementDefinition(); + IRequirementDefinition Systems.Requirements.IRequirementUsage.requirementDefinition => this.viewpointDefinition; /// /// An output parameter of the Expression whose value is the result of the Expression. The result of an @@ -1203,7 +1215,7 @@ public partial class ViewpointUsage : IViewpointUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenPoco/WhileLoopActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/WhileLoopActionUsage.cs index 81af9f404..23f06ba4c 100644 --- a/SysML2.NET/Core/AutoGenPoco/WhileLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/WhileLoopActionUsage.cs @@ -27,6 +27,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using System; using System.CodeDom.Compiler; using System.Collections.Generic; + using System.Linq; using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Systems.Occurrences; @@ -105,7 +106,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - public List behavior => this.ComputeBehavior(); + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The ActionUsage to be performed repeatedly by the LoopActionUsage. It is the second parameter of the @@ -163,7 +164,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - public List definition => this.ComputeDefinition(); + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.POCO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -185,7 +186,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - public List directedFeature => this.ComputeDirectedFeature(); + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -454,7 +455,11 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [Property(xmiId: "_2022x_2_12e503d9_1725998273002_23711_212", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] [RedefinedByProperty("IUsage.MayTimeVary")] [Implements(implementation: "IFeature.IsVariable")] - public bool IsVariable { get; set; } + bool Core.Features.IFeature.IsVariable + { + get => this.mayTimeVary; + set { } + } /// /// Whether this Usage is for a variation point or not. If true, then all the memberships of the Usage @@ -741,7 +746,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - public List occurrenceDefinition => this.ComputeOccurrenceDefinition(); + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1095,7 +1100,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - public List type => this.ComputeType(); + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.POCO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/SysML2.NET.csproj b/SysML2.NET/SysML2.NET.csproj index 574d9e2a4..e6a887c09 100644 --- a/SysML2.NET/SysML2.NET.csproj +++ b/SysML2.NET/SysML2.NET.csproj @@ -40,5 +40,6 @@ + \ No newline at end of file From eb37a71ae4b688d9812d9c6bccac900ee339c0a4 Mon Sep 17 00:00:00 2001 From: antoineatstariongroup Date: Fri, 16 Jan 2026 13:51:22 +0100 Subject: [PATCH 3/6] Getter for DTO : new collection instead of original collection, to forbid modification --- .../HandleBarHelpers/PropertyHelper.cs | 2 +- .../Core/AutoGenDto/AcceptActionUsage.cs | 10 ++++----- .../Core/AutoGenDto/ActionDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/ActionUsage.cs | 10 ++++----- .../Core/AutoGenDto/AllocationDefinition.cs | 8 +++---- SysML2.NET/Core/AutoGenDto/AllocationUsage.cs | 14 ++++++------ .../Core/AutoGenDto/AnalysisCaseDefinition.cs | 2 +- .../Core/AutoGenDto/AnalysisCaseUsage.cs | 8 +++---- .../Core/AutoGenDto/AssertConstraintUsage.cs | 6 ++--- .../Core/AutoGenDto/AssignmentActionUsage.cs | 10 ++++----- SysML2.NET/Core/AutoGenDto/Association.cs | 6 ++--- .../Core/AutoGenDto/AssociationStructure.cs | 6 ++--- SysML2.NET/Core/AutoGenDto/AttributeUsage.cs | 4 ++-- SysML2.NET/Core/AutoGenDto/Behavior.cs | 2 +- .../Core/AutoGenDto/BindingConnector.cs | 8 +++---- .../AutoGenDto/BindingConnectorAsUsage.cs | 8 +++---- .../Core/AutoGenDto/BooleanExpression.cs | 2 +- .../Core/AutoGenDto/CalculationDefinition.cs | 2 +- .../Core/AutoGenDto/CalculationUsage.cs | 8 +++---- SysML2.NET/Core/AutoGenDto/CaseDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/CaseUsage.cs | 8 +++---- .../Core/AutoGenDto/CollectExpression.cs | 2 +- .../Core/AutoGenDto/ConcernDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/ConcernUsage.cs | 6 ++--- .../Core/AutoGenDto/ConnectionDefinition.cs | 8 +++---- SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs | 12 +++++----- SysML2.NET/Core/AutoGenDto/Connector.cs | 8 +++---- .../Core/AutoGenDto/ConstraintDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs | 6 ++--- .../Core/AutoGenDto/ConstructorExpression.cs | 2 +- SysML2.NET/Core/AutoGenDto/DecisionNode.cs | 10 ++++----- SysML2.NET/Core/AutoGenDto/Dependency.cs | 4 ++-- .../Core/AutoGenDto/EnumerationDefinition.cs | 2 +- .../Core/AutoGenDto/EnumerationUsage.cs | 4 ++-- .../Core/AutoGenDto/EventOccurrenceUsage.cs | 4 ++-- .../Core/AutoGenDto/ExhibitStateUsage.cs | 12 +++++----- SysML2.NET/Core/AutoGenDto/Expression.cs | 2 +- .../Core/AutoGenDto/FeatureChainExpression.cs | 2 +- .../AutoGenDto/FeatureReferenceExpression.cs | 2 +- SysML2.NET/Core/AutoGenDto/Flow.cs | 14 ++++++------ SysML2.NET/Core/AutoGenDto/FlowDefinition.cs | 10 ++++----- SysML2.NET/Core/AutoGenDto/FlowUsage.cs | 22 +++++++++---------- .../Core/AutoGenDto/ForLoopActionUsage.cs | 10 ++++----- SysML2.NET/Core/AutoGenDto/ForkNode.cs | 10 ++++----- SysML2.NET/Core/AutoGenDto/Function.cs | 2 +- SysML2.NET/Core/AutoGenDto/IfActionUsage.cs | 10 ++++----- .../Core/AutoGenDto/IncludeUseCaseUsage.cs | 8 +++---- SysML2.NET/Core/AutoGenDto/IndexExpression.cs | 2 +- SysML2.NET/Core/AutoGenDto/Interaction.cs | 8 +++---- .../Core/AutoGenDto/InterfaceDefinition.cs | 10 ++++----- SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs | 14 ++++++------ SysML2.NET/Core/AutoGenDto/Invariant.cs | 2 +- .../Core/AutoGenDto/InvocationExpression.cs | 2 +- SysML2.NET/Core/AutoGenDto/ItemUsage.cs | 4 ++-- SysML2.NET/Core/AutoGenDto/JoinNode.cs | 10 ++++----- SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs | 2 +- .../Core/AutoGenDto/LiteralExpression.cs | 2 +- SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs | 2 +- SysML2.NET/Core/AutoGenDto/LiteralInteger.cs | 2 +- SysML2.NET/Core/AutoGenDto/LiteralRational.cs | 2 +- SysML2.NET/Core/AutoGenDto/LiteralString.cs | 2 +- SysML2.NET/Core/AutoGenDto/MergeNode.cs | 10 ++++----- .../AutoGenDto/MetadataAccessExpression.cs | 2 +- SysML2.NET/Core/AutoGenDto/MetadataUsage.cs | 4 ++-- SysML2.NET/Core/AutoGenDto/NullExpression.cs | 2 +- SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs | 4 ++-- .../Core/AutoGenDto/OperatorExpression.cs | 2 +- SysML2.NET/Core/AutoGenDto/PartUsage.cs | 4 ++-- .../Core/AutoGenDto/PerformActionUsage.cs | 10 ++++----- SysML2.NET/Core/AutoGenDto/PortUsage.cs | 6 ++--- SysML2.NET/Core/AutoGenDto/Predicate.cs | 2 +- SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs | 2 +- SysML2.NET/Core/AutoGenDto/RenderingUsage.cs | 4 ++-- .../Core/AutoGenDto/RequirementDefinition.cs | 2 +- .../Core/AutoGenDto/RequirementUsage.cs | 6 ++--- .../AutoGenDto/SatisfyRequirementUsage.cs | 6 ++--- .../Core/AutoGenDto/SelectExpression.cs | 2 +- SysML2.NET/Core/AutoGenDto/SendActionUsage.cs | 10 ++++----- SysML2.NET/Core/AutoGenDto/StateDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/StateUsage.cs | 12 +++++----- SysML2.NET/Core/AutoGenDto/Step.cs | 2 +- SysML2.NET/Core/AutoGenDto/Succession.cs | 8 +++---- .../Core/AutoGenDto/SuccessionAsUsage.cs | 8 +++---- SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs | 14 ++++++------ .../Core/AutoGenDto/SuccessionFlowUsage.cs | 22 +++++++++---------- .../Core/AutoGenDto/TerminateActionUsage.cs | 10 ++++----- SysML2.NET/Core/AutoGenDto/TransitionUsage.cs | 10 ++++----- .../AutoGenDto/TriggerInvocationExpression.cs | 2 +- SysML2.NET/Core/AutoGenDto/Usage.cs | 2 +- .../Core/AutoGenDto/UseCaseDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs | 8 +++---- .../AutoGenDto/VerificationCaseDefinition.cs | 2 +- .../Core/AutoGenDto/VerificationCaseUsage.cs | 8 +++---- SysML2.NET/Core/AutoGenDto/ViewUsage.cs | 4 ++-- .../Core/AutoGenDto/ViewpointDefinition.cs | 2 +- SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs | 6 ++--- .../Core/AutoGenDto/WhileLoopActionUsage.cs | 10 ++++----- 97 files changed, 290 insertions(+), 290 deletions(-) diff --git a/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs b/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs index e701712a8..8f98d818f 100644 --- a/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs +++ b/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs @@ -644,7 +644,7 @@ private static string GetRedefinedPropertyGetterImplementationForDto(IProperty r if (redefinedProperty.QueryIsEnumerable() && redefinition.QueryIsEnumerable()) { - return $"{redefinitionPropertyName};"; + return $"[..{redefinitionPropertyName}];"; } if (redefinedProperty.QueryIsEnumerable() && !redefinition.QueryIsEnumerable()) diff --git a/SysML2.NET/Core/AutoGenDto/AcceptActionUsage.cs b/SysML2.NET/Core/AutoGenDto/AcceptActionUsage.cs index 764185489..9187980df 100644 --- a/SysML2.NET/Core/AutoGenDto/AcceptActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AcceptActionUsage.cs @@ -75,7 +75,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -125,7 +125,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -147,7 +147,7 @@ public partial class AcceptActionUsage : IAcceptActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -707,7 +707,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1086,7 +1086,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ActionDefinition.cs b/SysML2.NET/Core/AutoGenDto/ActionDefinition.cs index 2c3520ac5..edcf2a616 100644 --- a/SysML2.NET/Core/AutoGenDto/ActionDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ActionDefinition.cs @@ -101,7 +101,7 @@ public partial class ActionDefinition : IActionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/ActionUsage.cs b/SysML2.NET/Core/AutoGenDto/ActionUsage.cs index 844262be6..57eccf1fe 100644 --- a/SysML2.NET/Core/AutoGenDto/ActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ActionUsage.cs @@ -76,7 +76,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -126,7 +126,7 @@ public partial class ActionUsage : IActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -148,7 +148,7 @@ public partial class ActionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -708,7 +708,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1062,7 +1062,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/AllocationDefinition.cs b/SysML2.NET/Core/AutoGenDto/AllocationDefinition.cs index 8a3a66af7..8f917e99c 100644 --- a/SysML2.NET/Core/AutoGenDto/AllocationDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/AllocationDefinition.cs @@ -74,7 +74,7 @@ public partial class AllocationDefinition : IAllocationDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - List Kernel.Associations.IAssociation.associationEnd => this.connectionEnd; + List Kernel.Associations.IAssociation.associationEnd => [.. this.connectionEnd]; /// /// The Usages that define the things related by the ConnectionDefinition. @@ -155,7 +155,7 @@ public partial class AllocationDefinition : IAllocationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => ((SysML2.NET.Core.DTO.Kernel.Associations.IAssociation)this).associationEnd; + List Core.Types.IType.endFeature => [.. ((SysML2.NET.Core.DTO.Kernel.Associations.IAssociation)this).associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -785,7 +785,7 @@ bool Core.Types.IType.IsSufficient [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedType; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -837,7 +837,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetType; + get => [.. this.targetType]; set { } } diff --git a/SysML2.NET/Core/AutoGenDto/AllocationUsage.cs b/SysML2.NET/Core/AutoGenDto/AllocationUsage.cs index 07e184549..09be614a0 100644 --- a/SysML2.NET/Core/AutoGenDto/AllocationUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AllocationUsage.cs @@ -70,7 +70,7 @@ public partial class AllocationUsage : IAllocationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - List Kernel.Connectors.IConnector.association => ((SysML2.NET.Core.DTO.Systems.Connections.IConnectionUsage)this).connectionDefinition; + List Kernel.Connectors.IConnector.association => [.. ((SysML2.NET.Core.DTO.Systems.Connections.IConnectionUsage)this).connectionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -94,7 +94,7 @@ public partial class AllocationUsage : IAllocationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedByProperty("IAllocationUsage.AllocationDefinition")] [Implements(implementation: "IConnectionUsage.ConnectionDefinition")] - List Systems.Connections.IConnectionUsage.connectionDefinition => this.allocationDefinition; + List Systems.Connections.IConnectionUsage.connectionDefinition => [.. this.allocationDefinition]; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -151,7 +151,7 @@ public partial class AllocationUsage : IAllocationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -215,7 +215,7 @@ public partial class AllocationUsage : IAllocationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.connectorEnd; + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -1098,7 +1098,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedFeature; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1150,7 +1150,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetFeature; + get => [.. this.targetFeature]; set { } } @@ -1182,7 +1182,7 @@ List Root.Elements.IRelationship.Target [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/AnalysisCaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/AnalysisCaseDefinition.cs index 9aab7bef6..8c72ff033 100644 --- a/SysML2.NET/Core/AutoGenDto/AnalysisCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/AnalysisCaseDefinition.cs @@ -117,7 +117,7 @@ public partial class AnalysisCaseDefinition : IAnalysisCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/AnalysisCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/AnalysisCaseUsage.cs index 17e67e5bc..00376ef25 100644 --- a/SysML2.NET/Core/AutoGenDto/AnalysisCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AnalysisCaseUsage.cs @@ -161,7 +161,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -183,7 +183,7 @@ public partial class AnalysisCaseUsage : IAnalysisCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -768,7 +768,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1151,7 +1151,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/AssertConstraintUsage.cs b/SysML2.NET/Core/AutoGenDto/AssertConstraintUsage.cs index a9f42e68a..a447835a5 100644 --- a/SysML2.NET/Core/AutoGenDto/AssertConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AssertConstraintUsage.cs @@ -132,7 +132,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -154,7 +154,7 @@ public partial class AssertConstraintUsage : IAssertConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -1111,7 +1111,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/AssignmentActionUsage.cs b/SysML2.NET/Core/AutoGenDto/AssignmentActionUsage.cs index 924fcc24e..f7fd171c3 100644 --- a/SysML2.NET/Core/AutoGenDto/AssignmentActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AssignmentActionUsage.cs @@ -74,7 +74,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -124,7 +124,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -146,7 +146,7 @@ public partial class AssignmentActionUsage : IAssignmentActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -706,7 +706,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1077,7 +1077,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Association.cs b/SysML2.NET/Core/AutoGenDto/Association.cs index 08a982042..7d8c0614e 100644 --- a/SysML2.NET/Core/AutoGenDto/Association.cs +++ b/SysML2.NET/Core/AutoGenDto/Association.cs @@ -127,7 +127,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.associationEnd; + List Core.Types.IType.endFeature => [.. this.associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -507,7 +507,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedType; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -559,7 +559,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetType; + get => [.. this.targetType]; set { } } diff --git a/SysML2.NET/Core/AutoGenDto/AssociationStructure.cs b/SysML2.NET/Core/AutoGenDto/AssociationStructure.cs index 8702684e1..3a1a007c9 100644 --- a/SysML2.NET/Core/AutoGenDto/AssociationStructure.cs +++ b/SysML2.NET/Core/AutoGenDto/AssociationStructure.cs @@ -127,7 +127,7 @@ public partial class AssociationStructure : IAssociationStructure [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.associationEnd; + List Core.Types.IType.endFeature => [.. this.associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -507,7 +507,7 @@ public partial class AssociationStructure : IAssociationStructure [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedType; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -559,7 +559,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetType; + get => [.. this.targetType]; set { } } diff --git a/SysML2.NET/Core/AutoGenDto/AttributeUsage.cs b/SysML2.NET/Core/AutoGenDto/AttributeUsage.cs index 02c83b9c4..ed55b6c7f 100644 --- a/SysML2.NET/Core/AutoGenDto/AttributeUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/AttributeUsage.cs @@ -116,7 +116,7 @@ public partial class AttributeUsage : IAttributeUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IAttributeUsage.AttributeDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.attributeDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.attributeDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -1015,7 +1015,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Behavior.cs b/SysML2.NET/Core/AutoGenDto/Behavior.cs index 65d11f912..4931c1f2a 100644 --- a/SysML2.NET/Core/AutoGenDto/Behavior.cs +++ b/SysML2.NET/Core/AutoGenDto/Behavior.cs @@ -90,7 +90,7 @@ public partial class Behavior : IBehavior [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The Documentation owned by this Element. diff --git a/SysML2.NET/Core/AutoGenDto/BindingConnector.cs b/SysML2.NET/Core/AutoGenDto/BindingConnector.cs index 7adc99e72..4f21d5f60 100644 --- a/SysML2.NET/Core/AutoGenDto/BindingConnector.cs +++ b/SysML2.NET/Core/AutoGenDto/BindingConnector.cs @@ -172,7 +172,7 @@ public partial class BindingConnector : IBindingConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.connectorEnd; + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -733,7 +733,7 @@ public partial class BindingConnector : IBindingConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedFeature; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -785,7 +785,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetFeature; + get => [.. this.targetFeature]; set { } } @@ -817,7 +817,7 @@ List Root.Elements.IRelationship.Target [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => this.association; + List Core.Features.IFeature.type => [.. this.association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/BindingConnectorAsUsage.cs b/SysML2.NET/Core/AutoGenDto/BindingConnectorAsUsage.cs index 977b0ae53..d8ef6dce4 100644 --- a/SysML2.NET/Core/AutoGenDto/BindingConnectorAsUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/BindingConnectorAsUsage.cs @@ -191,7 +191,7 @@ public partial class BindingConnectorAsUsage : IBindingConnectorAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.connectorEnd; + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -1021,7 +1021,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedFeature; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1073,7 +1073,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetFeature; + get => [.. this.targetFeature]; set { } } @@ -1105,7 +1105,7 @@ List Root.Elements.IRelationship.Target [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => this.association; + List Core.Features.IFeature.type => [.. this.association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/BooleanExpression.cs b/SysML2.NET/Core/AutoGenDto/BooleanExpression.cs index 9a73a13e3..03e6dca96 100644 --- a/SysML2.NET/Core/AutoGenDto/BooleanExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/BooleanExpression.cs @@ -121,7 +121,7 @@ public partial class BooleanExpression : IBooleanExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/CalculationDefinition.cs b/SysML2.NET/Core/AutoGenDto/CalculationDefinition.cs index f6521667d..f6ac321d0 100644 --- a/SysML2.NET/Core/AutoGenDto/CalculationDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/CalculationDefinition.cs @@ -110,7 +110,7 @@ public partial class CalculationDefinition : ICalculationDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/CalculationUsage.cs b/SysML2.NET/Core/AutoGenDto/CalculationUsage.cs index 0993fed41..0b434585c 100644 --- a/SysML2.NET/Core/AutoGenDto/CalculationUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/CalculationUsage.cs @@ -138,7 +138,7 @@ public partial class CalculationUsage : ICalculationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -160,7 +160,7 @@ public partial class CalculationUsage : ICalculationUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -737,7 +737,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1102,7 +1102,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/CaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/CaseDefinition.cs index 12469b108..004813b9e 100644 --- a/SysML2.NET/Core/AutoGenDto/CaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/CaseDefinition.cs @@ -119,7 +119,7 @@ public partial class CaseDefinition : ICaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/CaseUsage.cs b/SysML2.NET/Core/AutoGenDto/CaseUsage.cs index feb4e0e65..f04ace753 100644 --- a/SysML2.NET/Core/AutoGenDto/CaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/CaseUsage.cs @@ -152,7 +152,7 @@ public partial class CaseUsage : ICaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -174,7 +174,7 @@ public partial class CaseUsage : ICaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -759,7 +759,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1133,7 +1133,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/CollectExpression.cs b/SysML2.NET/Core/AutoGenDto/CollectExpression.cs index ed77c376e..bfb2b5440 100644 --- a/SysML2.NET/Core/AutoGenDto/CollectExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/CollectExpression.cs @@ -131,7 +131,7 @@ public partial class CollectExpression : ICollectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/ConcernDefinition.cs b/SysML2.NET/Core/AutoGenDto/ConcernDefinition.cs index f7cf3be0a..7dde500ef 100644 --- a/SysML2.NET/Core/AutoGenDto/ConcernDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ConcernDefinition.cs @@ -117,7 +117,7 @@ string Root.Elements.IElement.DeclaredShortName [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/ConcernUsage.cs b/SysML2.NET/Core/AutoGenDto/ConcernUsage.cs index 7ea8d5613..e7f4cb623 100644 --- a/SysML2.NET/Core/AutoGenDto/ConcernUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ConcernUsage.cs @@ -159,7 +159,7 @@ string Root.Elements.IElement.DeclaredShortName [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -181,7 +181,7 @@ string Root.Elements.IElement.DeclaredShortName [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -1195,7 +1195,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ConnectionDefinition.cs b/SysML2.NET/Core/AutoGenDto/ConnectionDefinition.cs index 8d553e9fd..4850a2071 100644 --- a/SysML2.NET/Core/AutoGenDto/ConnectionDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ConnectionDefinition.cs @@ -63,7 +63,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - List Kernel.Associations.IAssociation.associationEnd => this.connectionEnd; + List Kernel.Associations.IAssociation.associationEnd => [.. this.connectionEnd]; /// /// The Usages that define the things related by the ConnectionDefinition. @@ -144,7 +144,7 @@ public partial class ConnectionDefinition : IConnectionDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => ((SysML2.NET.Core.DTO.Kernel.Associations.IAssociation)this).associationEnd; + List Core.Types.IType.endFeature => [.. ((SysML2.NET.Core.DTO.Kernel.Associations.IAssociation)this).associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -774,7 +774,7 @@ bool Core.Types.IType.IsSufficient [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedType; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -826,7 +826,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetType; + get => [.. this.targetType]; set { } } diff --git a/SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs b/SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs index d5f35cbac..b295e99df 100644 --- a/SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ConnectionUsage.cs @@ -64,7 +64,7 @@ public partial class ConnectionUsage : IConnectionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - List Kernel.Connectors.IConnector.association => this.connectionDefinition; + List Kernel.Connectors.IConnector.association => [.. this.connectionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -144,7 +144,7 @@ public partial class ConnectionUsage : IConnectionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -208,7 +208,7 @@ public partial class ConnectionUsage : IConnectionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.connectorEnd; + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -1091,7 +1091,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedFeature; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1143,7 +1143,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetFeature; + get => [.. this.targetFeature]; set { } } @@ -1175,7 +1175,7 @@ List Root.Elements.IRelationship.Target [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Connector.cs b/SysML2.NET/Core/AutoGenDto/Connector.cs index 0c07ff2ae..624d2386a 100644 --- a/SysML2.NET/Core/AutoGenDto/Connector.cs +++ b/SysML2.NET/Core/AutoGenDto/Connector.cs @@ -176,7 +176,7 @@ public partial class Connector : IConnector [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.connectorEnd; + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -737,7 +737,7 @@ public partial class Connector : IConnector [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedFeature; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -789,7 +789,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetFeature; + get => [.. this.targetFeature]; set { } } @@ -821,7 +821,7 @@ List Root.Elements.IRelationship.Target [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => this.association; + List Core.Features.IFeature.type => [.. this.association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ConstraintDefinition.cs b/SysML2.NET/Core/AutoGenDto/ConstraintDefinition.cs index d2ecbe989..db87213b9 100644 --- a/SysML2.NET/Core/AutoGenDto/ConstraintDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ConstraintDefinition.cs @@ -91,7 +91,7 @@ public partial class ConstraintDefinition : IConstraintDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs b/SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs index bc641e888..25a269861 100644 --- a/SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ConstraintUsage.cs @@ -125,7 +125,7 @@ public partial class ConstraintUsage : IConstraintUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -147,7 +147,7 @@ public partial class ConstraintUsage : IConstraintUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -1097,7 +1097,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ConstructorExpression.cs b/SysML2.NET/Core/AutoGenDto/ConstructorExpression.cs index 429b6ba9f..4d548d276 100644 --- a/SysML2.NET/Core/AutoGenDto/ConstructorExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/ConstructorExpression.cs @@ -132,7 +132,7 @@ public partial class ConstructorExpression : IConstructorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/DecisionNode.cs b/SysML2.NET/Core/AutoGenDto/DecisionNode.cs index 747258564..aa4ff166a 100644 --- a/SysML2.NET/Core/AutoGenDto/DecisionNode.cs +++ b/SysML2.NET/Core/AutoGenDto/DecisionNode.cs @@ -71,7 +71,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -121,7 +121,7 @@ public partial class DecisionNode : IDecisionNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -143,7 +143,7 @@ public partial class DecisionNode : IDecisionNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -703,7 +703,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1057,7 +1057,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Dependency.cs b/SysML2.NET/Core/AutoGenDto/Dependency.cs index 7f971d53b..f945dcead 100644 --- a/SysML2.NET/Core/AutoGenDto/Dependency.cs +++ b/SysML2.NET/Core/AutoGenDto/Dependency.cs @@ -248,7 +248,7 @@ public partial class Dependency : IDependency [Implements(implementation: "IRelationship.Source")] List Root.Elements.IRelationship.Source { - get => this.Client; + get => [.. this.Client]; set { this.Client = value; @@ -272,7 +272,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.Supplier; + get => [.. this.Supplier]; set { this.Supplier = value; diff --git a/SysML2.NET/Core/AutoGenDto/EnumerationDefinition.cs b/SysML2.NET/Core/AutoGenDto/EnumerationDefinition.cs index 8de6689fe..ec74a1251 100644 --- a/SysML2.NET/Core/AutoGenDto/EnumerationDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/EnumerationDefinition.cs @@ -772,7 +772,7 @@ bool Systems.DefinitionAndUsage.IDefinition.IsVariation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [RedefinedByProperty("IEnumerationDefinition.EnumeratedValue")] [Implements(implementation: "IDefinition.Variant")] - List Systems.DefinitionAndUsage.IDefinition.variant => this.enumeratedValue; + List Systems.DefinitionAndUsage.IDefinition.variant => [.. this.enumeratedValue]; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then diff --git a/SysML2.NET/Core/AutoGenDto/EnumerationUsage.cs b/SysML2.NET/Core/AutoGenDto/EnumerationUsage.cs index b29a21099..c4ad75cdf 100644 --- a/SysML2.NET/Core/AutoGenDto/EnumerationUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/EnumerationUsage.cs @@ -112,7 +112,7 @@ public partial class EnumerationUsage : IEnumerationUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IAttributeUsage.AttributeDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Attributes.IAttributeUsage)this).attributeDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Attributes.IAttributeUsage)this).attributeDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -1019,7 +1019,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/EventOccurrenceUsage.cs b/SysML2.NET/Core/AutoGenDto/EventOccurrenceUsage.cs index 82ede305d..de024ce2b 100644 --- a/SysML2.NET/Core/AutoGenDto/EventOccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/EventOccurrenceUsage.cs @@ -106,7 +106,7 @@ public partial class EventOccurrenceUsage : IEventOccurrenceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -1049,7 +1049,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ExhibitStateUsage.cs b/SysML2.NET/Core/AutoGenDto/ExhibitStateUsage.cs index 7e21eae73..b2d8ee2e2 100644 --- a/SysML2.NET/Core/AutoGenDto/ExhibitStateUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ExhibitStateUsage.cs @@ -60,7 +60,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IStateUsage.StateDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - List Systems.Actions.IActionUsage.actionDefinition => this.stateDefinition; + List Systems.Actions.IActionUsage.actionDefinition => [.. this.stateDefinition]; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -76,7 +76,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -126,7 +126,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -148,7 +148,7 @@ public partial class ExhibitStateUsage : IExhibitStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -772,7 +772,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1145,7 +1145,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Expression.cs b/SysML2.NET/Core/AutoGenDto/Expression.cs index c4dff1f3e..411247d25 100644 --- a/SysML2.NET/Core/AutoGenDto/Expression.cs +++ b/SysML2.NET/Core/AutoGenDto/Expression.cs @@ -125,7 +125,7 @@ public partial class Expression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/FeatureChainExpression.cs b/SysML2.NET/Core/AutoGenDto/FeatureChainExpression.cs index 8f3bb3822..1c5385038 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureChainExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureChainExpression.cs @@ -132,7 +132,7 @@ public partial class FeatureChainExpression : IFeatureChainExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/FeatureReferenceExpression.cs b/SysML2.NET/Core/AutoGenDto/FeatureReferenceExpression.cs index c44936033..dc829dfa6 100644 --- a/SysML2.NET/Core/AutoGenDto/FeatureReferenceExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/FeatureReferenceExpression.cs @@ -121,7 +121,7 @@ public partial class FeatureReferenceExpression : IFeatureReferenceExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/Flow.cs b/SysML2.NET/Core/AutoGenDto/Flow.cs index 57dba1544..d45b44bea 100644 --- a/SysML2.NET/Core/AutoGenDto/Flow.cs +++ b/SysML2.NET/Core/AutoGenDto/Flow.cs @@ -62,7 +62,7 @@ public partial class Flow : IFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - List Kernel.Connectors.IConnector.association => this.interaction; + List Kernel.Connectors.IConnector.association => [.. this.interaction]; /// /// The Behaviors that type this Step. @@ -71,7 +71,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.interaction; + List Kernel.Behaviors.IStep.behavior => [.. this.interaction]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -151,7 +151,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -185,7 +185,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.connectorEnd; + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -788,7 +788,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedFeature; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -848,7 +848,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetFeature; + get => [.. this.targetFeature]; set { } } @@ -888,7 +888,7 @@ List Root.Elements.IRelationship.Target [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Kernel.Connectors.IConnector)this).association; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Kernel.Connectors.IConnector)this).association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/FlowDefinition.cs b/SysML2.NET/Core/AutoGenDto/FlowDefinition.cs index 1790ef0a9..c6da8b107 100644 --- a/SysML2.NET/Core/AutoGenDto/FlowDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/FlowDefinition.cs @@ -73,7 +73,7 @@ public partial class FlowDefinition : IFlowDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IFlowDefinition.FlowEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - List Kernel.Associations.IAssociation.associationEnd => this.flowEnd; + List Kernel.Associations.IAssociation.associationEnd => [.. this.flowEnd]; /// /// The declared name of this Element. @@ -112,7 +112,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. @@ -147,7 +147,7 @@ public partial class FlowDefinition : IFlowDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => ((SysML2.NET.Core.DTO.Kernel.Associations.IAssociation)this).associationEnd; + List Core.Types.IType.endFeature => [.. ((SysML2.NET.Core.DTO.Kernel.Associations.IAssociation)this).associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -778,7 +778,7 @@ public partial class FlowDefinition : IFlowDefinition [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedType; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -838,7 +838,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetType; + get => [.. this.targetType]; set { } } diff --git a/SysML2.NET/Core/AutoGenDto/FlowUsage.cs b/SysML2.NET/Core/AutoGenDto/FlowUsage.cs index 5d14116d0..5d768ecf8 100644 --- a/SysML2.NET/Core/AutoGenDto/FlowUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/FlowUsage.cs @@ -59,7 +59,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - List Systems.Actions.IActionUsage.actionDefinition => this.flowDefinition; + List Systems.Actions.IActionUsage.actionDefinition => [.. this.flowDefinition]; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -75,7 +75,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - List Kernel.Connectors.IConnector.association => ((SysML2.NET.Core.DTO.Kernel.Interactions.IFlow)this).interaction; + List Kernel.Connectors.IConnector.association => [.. ((SysML2.NET.Core.DTO.Kernel.Interactions.IFlow)this).interaction]; /// /// The Behaviors that type this Step. @@ -84,7 +84,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Interactions.IFlow)this).interaction; + List Kernel.Behaviors.IStep.behavior => [.. ((SysML2.NET.Core.DTO.Kernel.Interactions.IFlow)this).interaction]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -153,7 +153,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -175,7 +175,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -218,7 +218,7 @@ public partial class FlowUsage : IFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.connectorEnd; + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -333,7 +333,7 @@ public partial class FlowUsage : IFlowUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IFlow.Interaction")] - List Kernel.Interactions.IFlow.interaction => this.flowDefinition; + List Kernel.Interactions.IFlow.interaction => [.. this.flowDefinition]; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -774,7 +774,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1138,7 +1138,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedFeature; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1198,7 +1198,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetFeature; + get => [.. this.targetFeature]; set { } } @@ -1238,7 +1238,7 @@ List Root.Elements.IRelationship.Target [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ForLoopActionUsage.cs b/SysML2.NET/Core/AutoGenDto/ForLoopActionUsage.cs index 8dc76a0e0..3d93447d4 100644 --- a/SysML2.NET/Core/AutoGenDto/ForLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ForLoopActionUsage.cs @@ -73,7 +73,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The ActionUsage to be performed repeatedly by the LoopActionUsage. It is the second parameter of the @@ -131,7 +131,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -153,7 +153,7 @@ public partial class ForLoopActionUsage : IForLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -722,7 +722,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1085,7 +1085,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ForkNode.cs b/SysML2.NET/Core/AutoGenDto/ForkNode.cs index c60d018fd..5447c3f7c 100644 --- a/SysML2.NET/Core/AutoGenDto/ForkNode.cs +++ b/SysML2.NET/Core/AutoGenDto/ForkNode.cs @@ -72,7 +72,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -122,7 +122,7 @@ public partial class ForkNode : IForkNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -144,7 +144,7 @@ public partial class ForkNode : IForkNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -704,7 +704,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1058,7 +1058,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Function.cs b/SysML2.NET/Core/AutoGenDto/Function.cs index 54841071e..50e370f9c 100644 --- a/SysML2.NET/Core/AutoGenDto/Function.cs +++ b/SysML2.NET/Core/AutoGenDto/Function.cs @@ -91,7 +91,7 @@ public partial class Function : IFunction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The Documentation owned by this Element. diff --git a/SysML2.NET/Core/AutoGenDto/IfActionUsage.cs b/SysML2.NET/Core/AutoGenDto/IfActionUsage.cs index b64247c03..a7a48facb 100644 --- a/SysML2.NET/Core/AutoGenDto/IfActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IfActionUsage.cs @@ -73,7 +73,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -123,7 +123,7 @@ public partial class IfActionUsage : IIfActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -145,7 +145,7 @@ public partial class IfActionUsage : IIfActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -721,7 +721,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1083,7 +1083,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/IncludeUseCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/IncludeUseCaseUsage.cs index 9607424b1..3e0b66822 100644 --- a/SysML2.NET/Core/AutoGenDto/IncludeUseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/IncludeUseCaseUsage.cs @@ -156,7 +156,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -178,7 +178,7 @@ public partial class IncludeUseCaseUsage : IIncludeUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -790,7 +790,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1174,7 +1174,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/IndexExpression.cs b/SysML2.NET/Core/AutoGenDto/IndexExpression.cs index 12b00a719..c1911bc5c 100644 --- a/SysML2.NET/Core/AutoGenDto/IndexExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/IndexExpression.cs @@ -131,7 +131,7 @@ public partial class IndexExpression : IIndexExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/Interaction.cs b/SysML2.NET/Core/AutoGenDto/Interaction.cs index 17b3e62ff..5e65b4e8b 100644 --- a/SysML2.NET/Core/AutoGenDto/Interaction.cs +++ b/SysML2.NET/Core/AutoGenDto/Interaction.cs @@ -101,7 +101,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The Documentation owned by this Element. @@ -127,7 +127,7 @@ public partial class Interaction : IInteraction [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.associationEnd; + List Core.Types.IType.endFeature => [.. this.associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -516,7 +516,7 @@ public partial class Interaction : IInteraction [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedType; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -576,7 +576,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetType; + get => [.. this.targetType]; set { } } diff --git a/SysML2.NET/Core/AutoGenDto/InterfaceDefinition.cs b/SysML2.NET/Core/AutoGenDto/InterfaceDefinition.cs index 028d62d3d..cff3edb1b 100644 --- a/SysML2.NET/Core/AutoGenDto/InterfaceDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/InterfaceDefinition.cs @@ -62,7 +62,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")] [RedefinedByProperty("IConnectionDefinition.ConnectionEnd")] [Implements(implementation: "IAssociation.AssociationEnd")] - List Kernel.Associations.IAssociation.associationEnd => ((SysML2.NET.Core.DTO.Systems.Connections.IConnectionDefinition)this).connectionEnd; + List Kernel.Associations.IAssociation.associationEnd => [.. ((SysML2.NET.Core.DTO.Systems.Connections.IConnectionDefinition)this).connectionEnd]; /// /// The Usages that define the things related by the ConnectionDefinition. @@ -71,7 +71,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562477648742_24204_22901")] [RedefinedByProperty("IInterfaceDefinition.InterfaceEnd")] [Implements(implementation: "IConnectionDefinition.ConnectionEnd")] - List Systems.Connections.IConnectionDefinition.connectionEnd => this.interfaceEnd; + List Systems.Connections.IConnectionDefinition.connectionEnd => [.. this.interfaceEnd]; /// /// The declared name of this Element. @@ -144,7 +144,7 @@ public partial class InterfaceDefinition : IInterfaceDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => ((SysML2.NET.Core.DTO.Kernel.Associations.IAssociation)this).associationEnd; + List Core.Types.IType.endFeature => [.. ((SysML2.NET.Core.DTO.Kernel.Associations.IAssociation)this).associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -782,7 +782,7 @@ bool Core.Types.IType.IsSufficient [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedType; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -834,7 +834,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetType; + get => [.. this.targetType]; set { } } diff --git a/SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs b/SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs index 9af488386..6067ca3a7 100644 --- a/SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/InterfaceUsage.cs @@ -62,7 +62,7 @@ public partial class InterfaceUsage : IInterfaceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IConnectionUsage.ConnectionDefinition")] [Implements(implementation: "IConnector.Association")] - List Kernel.Connectors.IConnector.association => ((SysML2.NET.Core.DTO.Systems.Connections.IConnectionUsage)this).connectionDefinition; + List Kernel.Connectors.IConnector.association => [.. ((SysML2.NET.Core.DTO.Systems.Connections.IConnectionUsage)this).connectionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -86,7 +86,7 @@ public partial class InterfaceUsage : IInterfaceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674983_471497_43284")] [RedefinedByProperty("IInterfaceUsage.InterfaceDefinition")] [Implements(implementation: "IConnectionUsage.ConnectionDefinition")] - List Systems.Connections.IConnectionUsage.connectionDefinition => this.interfaceDefinition; + List Systems.Connections.IConnectionUsage.connectionDefinition => [.. this.interfaceDefinition]; /// /// The endFeatures of a Connector, which redefine the endFeatures of the associations of the Connector. @@ -143,7 +143,7 @@ public partial class InterfaceUsage : IInterfaceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -207,7 +207,7 @@ public partial class InterfaceUsage : IInterfaceUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.connectorEnd; + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -1098,7 +1098,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedFeature; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1150,7 +1150,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetFeature; + get => [.. this.targetFeature]; set { } } @@ -1182,7 +1182,7 @@ List Root.Elements.IRelationship.Target [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Invariant.cs b/SysML2.NET/Core/AutoGenDto/Invariant.cs index d12f89535..5554731b1 100644 --- a/SysML2.NET/Core/AutoGenDto/Invariant.cs +++ b/SysML2.NET/Core/AutoGenDto/Invariant.cs @@ -122,7 +122,7 @@ public partial class Invariant : IInvariant [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/InvocationExpression.cs b/SysML2.NET/Core/AutoGenDto/InvocationExpression.cs index 81e2efa38..35863eb85 100644 --- a/SysML2.NET/Core/AutoGenDto/InvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/InvocationExpression.cs @@ -135,7 +135,7 @@ public partial class InvocationExpression : IInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/ItemUsage.cs b/SysML2.NET/Core/AutoGenDto/ItemUsage.cs index 542817a6c..8efb35d5d 100644 --- a/SysML2.NET/Core/AutoGenDto/ItemUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ItemUsage.cs @@ -105,7 +105,7 @@ public partial class ItemUsage : IItemUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -1040,7 +1040,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/JoinNode.cs b/SysML2.NET/Core/AutoGenDto/JoinNode.cs index 176ac037a..418f25ecf 100644 --- a/SysML2.NET/Core/AutoGenDto/JoinNode.cs +++ b/SysML2.NET/Core/AutoGenDto/JoinNode.cs @@ -72,7 +72,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -122,7 +122,7 @@ public partial class JoinNode : IJoinNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -144,7 +144,7 @@ public partial class JoinNode : IJoinNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -704,7 +704,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1058,7 +1058,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs b/SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs index c289a7b7e..c05e14c5e 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralBoolean.cs @@ -121,7 +121,7 @@ public partial class LiteralBoolean : ILiteralBoolean [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/LiteralExpression.cs b/SysML2.NET/Core/AutoGenDto/LiteralExpression.cs index a0613eada..709653710 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralExpression.cs @@ -121,7 +121,7 @@ public partial class LiteralExpression : ILiteralExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs b/SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs index ec571d780..483b0883b 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralInfinity.cs @@ -121,7 +121,7 @@ public partial class LiteralInfinity : ILiteralInfinity [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/LiteralInteger.cs b/SysML2.NET/Core/AutoGenDto/LiteralInteger.cs index 7ee066492..a40a3179c 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralInteger.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralInteger.cs @@ -121,7 +121,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/LiteralRational.cs b/SysML2.NET/Core/AutoGenDto/LiteralRational.cs index 9db8ca0df..4655b8b32 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralRational.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralRational.cs @@ -121,7 +121,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/LiteralString.cs b/SysML2.NET/Core/AutoGenDto/LiteralString.cs index e9c6accfb..aeccceb7f 100644 --- a/SysML2.NET/Core/AutoGenDto/LiteralString.cs +++ b/SysML2.NET/Core/AutoGenDto/LiteralString.cs @@ -121,7 +121,7 @@ public partial class LiteralString : ILiteralString [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/MergeNode.cs b/SysML2.NET/Core/AutoGenDto/MergeNode.cs index ca403b7a6..9538e9e46 100644 --- a/SysML2.NET/Core/AutoGenDto/MergeNode.cs +++ b/SysML2.NET/Core/AutoGenDto/MergeNode.cs @@ -72,7 +72,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -122,7 +122,7 @@ public partial class MergeNode : IMergeNode [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -144,7 +144,7 @@ public partial class MergeNode : IMergeNode [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -704,7 +704,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1058,7 +1058,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/MetadataAccessExpression.cs b/SysML2.NET/Core/AutoGenDto/MetadataAccessExpression.cs index 3a49c431c..3701c637a 100644 --- a/SysML2.NET/Core/AutoGenDto/MetadataAccessExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/MetadataAccessExpression.cs @@ -124,7 +124,7 @@ public partial class MetadataAccessExpression : IMetadataAccessExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/MetadataUsage.cs b/SysML2.NET/Core/AutoGenDto/MetadataUsage.cs index 25719e64b..bd9e5ab29 100644 --- a/SysML2.NET/Core/AutoGenDto/MetadataUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/MetadataUsage.cs @@ -124,7 +124,7 @@ public partial class MetadataUsage : IMetadataUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -1097,7 +1097,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/NullExpression.cs b/SysML2.NET/Core/AutoGenDto/NullExpression.cs index 6aaafa867..7a8a15f66 100644 --- a/SysML2.NET/Core/AutoGenDto/NullExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/NullExpression.cs @@ -121,7 +121,7 @@ public partial class NullExpression : INullExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs b/SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs index 0ec1e9955..404044ace 100644 --- a/SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/OccurrenceUsage.cs @@ -105,7 +105,7 @@ public partial class OccurrenceUsage : IOccurrenceUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -1030,7 +1030,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/OperatorExpression.cs b/SysML2.NET/Core/AutoGenDto/OperatorExpression.cs index 492b4f355..2bff310ab 100644 --- a/SysML2.NET/Core/AutoGenDto/OperatorExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/OperatorExpression.cs @@ -131,7 +131,7 @@ public partial class OperatorExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/PartUsage.cs b/SysML2.NET/Core/AutoGenDto/PartUsage.cs index 645626ba1..f3061be08 100644 --- a/SysML2.NET/Core/AutoGenDto/PartUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/PartUsage.cs @@ -104,7 +104,7 @@ public partial class PartUsage : IPartUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -1047,7 +1047,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/PerformActionUsage.cs b/SysML2.NET/Core/AutoGenDto/PerformActionUsage.cs index ea1e78f46..259a8a298 100644 --- a/SysML2.NET/Core/AutoGenDto/PerformActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/PerformActionUsage.cs @@ -75,7 +75,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -125,7 +125,7 @@ public partial class PerformActionUsage : IPerformActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -147,7 +147,7 @@ public partial class PerformActionUsage : IPerformActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -726,7 +726,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1089,7 +1089,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/PortUsage.cs b/SysML2.NET/Core/AutoGenDto/PortUsage.cs index afcaffbc2..9cb96f6e7 100644 --- a/SysML2.NET/Core/AutoGenDto/PortUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/PortUsage.cs @@ -103,7 +103,7 @@ public partial class PortUsage : IPortUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -684,7 +684,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IPortUsage.PortDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.portDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.portDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1037,7 +1037,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Predicate.cs b/SysML2.NET/Core/AutoGenDto/Predicate.cs index 63b683e54..2333d9c88 100644 --- a/SysML2.NET/Core/AutoGenDto/Predicate.cs +++ b/SysML2.NET/Core/AutoGenDto/Predicate.cs @@ -88,7 +88,7 @@ public partial class Predicate : IPredicate [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The Documentation owned by this Element. diff --git a/SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs b/SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs index a7a59b2c8..1fcad0db1 100644 --- a/SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ReferenceUsage.cs @@ -1002,7 +1002,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => this.definition; + List Core.Features.IFeature.type => [.. this.definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/RenderingUsage.cs b/SysML2.NET/Core/AutoGenDto/RenderingUsage.cs index 0ffa32b74..c12a1f915 100644 --- a/SysML2.NET/Core/AutoGenDto/RenderingUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/RenderingUsage.cs @@ -103,7 +103,7 @@ public partial class RenderingUsage : IRenderingUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -1055,7 +1055,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/RequirementDefinition.cs b/SysML2.NET/Core/AutoGenDto/RequirementDefinition.cs index c56157668..d8558d27b 100644 --- a/SysML2.NET/Core/AutoGenDto/RequirementDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/RequirementDefinition.cs @@ -118,7 +118,7 @@ string Root.Elements.IElement.DeclaredShortName [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/RequirementUsage.cs b/SysML2.NET/Core/AutoGenDto/RequirementUsage.cs index 78040ef4d..ca53ccbfc 100644 --- a/SysML2.NET/Core/AutoGenDto/RequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/RequirementUsage.cs @@ -149,7 +149,7 @@ string Root.Elements.IElement.DeclaredShortName [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -171,7 +171,7 @@ string Root.Elements.IElement.DeclaredShortName [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -1184,7 +1184,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/SatisfyRequirementUsage.cs b/SysML2.NET/Core/AutoGenDto/SatisfyRequirementUsage.cs index 83ad451d5..7bf4de40d 100644 --- a/SysML2.NET/Core/AutoGenDto/SatisfyRequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/SatisfyRequirementUsage.cs @@ -162,7 +162,7 @@ string Root.Elements.IElement.DeclaredShortName [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -184,7 +184,7 @@ string Root.Elements.IElement.DeclaredShortName [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -1222,7 +1222,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/SelectExpression.cs b/SysML2.NET/Core/AutoGenDto/SelectExpression.cs index 4114c96a0..d7f30dd34 100644 --- a/SysML2.NET/Core/AutoGenDto/SelectExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/SelectExpression.cs @@ -131,7 +131,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/SendActionUsage.cs b/SysML2.NET/Core/AutoGenDto/SendActionUsage.cs index d31e71b99..b6fffc372 100644 --- a/SysML2.NET/Core/AutoGenDto/SendActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/SendActionUsage.cs @@ -76,7 +76,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -126,7 +126,7 @@ public partial class SendActionUsage : ISendActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -148,7 +148,7 @@ public partial class SendActionUsage : ISendActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -708,7 +708,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1083,7 +1083,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/StateDefinition.cs b/SysML2.NET/Core/AutoGenDto/StateDefinition.cs index ae0defa19..b8b5f9c42 100644 --- a/SysML2.NET/Core/AutoGenDto/StateDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/StateDefinition.cs @@ -102,7 +102,7 @@ public partial class StateDefinition : IStateDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/StateUsage.cs b/SysML2.NET/Core/AutoGenDto/StateUsage.cs index 995dc55f7..e4ef00ec8 100644 --- a/SysML2.NET/Core/AutoGenDto/StateUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/StateUsage.cs @@ -60,7 +60,7 @@ public partial class StateUsage : IStateUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IStateUsage.StateDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - List Systems.Actions.IActionUsage.actionDefinition => this.stateDefinition; + List Systems.Actions.IActionUsage.actionDefinition => [.. this.stateDefinition]; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -76,7 +76,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -126,7 +126,7 @@ public partial class StateUsage : IStateUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -148,7 +148,7 @@ public partial class StateUsage : IStateUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -744,7 +744,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1107,7 +1107,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/Step.cs b/SysML2.NET/Core/AutoGenDto/Step.cs index bb02b5ab1..6fe071d06 100644 --- a/SysML2.NET/Core/AutoGenDto/Step.cs +++ b/SysML2.NET/Core/AutoGenDto/Step.cs @@ -123,7 +123,7 @@ public partial class Step : IStep [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/Succession.cs b/SysML2.NET/Core/AutoGenDto/Succession.cs index b4b1257bb..9a3be57a5 100644 --- a/SysML2.NET/Core/AutoGenDto/Succession.cs +++ b/SysML2.NET/Core/AutoGenDto/Succession.cs @@ -171,7 +171,7 @@ public partial class Succession : ISuccession [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.connectorEnd; + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -732,7 +732,7 @@ public partial class Succession : ISuccession [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedFeature; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -784,7 +784,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetFeature; + get => [.. this.targetFeature]; set { } } @@ -816,7 +816,7 @@ List Root.Elements.IRelationship.Target [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => this.association; + List Core.Features.IFeature.type => [.. this.association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/SuccessionAsUsage.cs b/SysML2.NET/Core/AutoGenDto/SuccessionAsUsage.cs index 54d70e8f6..a76967798 100644 --- a/SysML2.NET/Core/AutoGenDto/SuccessionAsUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/SuccessionAsUsage.cs @@ -191,7 +191,7 @@ public partial class SuccessionAsUsage : ISuccessionAsUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.connectorEnd; + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -1021,7 +1021,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedFeature; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1073,7 +1073,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetFeature; + get => [.. this.targetFeature]; set { } } @@ -1105,7 +1105,7 @@ List Root.Elements.IRelationship.Target [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => this.definition; + List Core.Features.IFeature.type => [.. this.definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs b/SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs index 9f1e1ed02..3331cf329 100644 --- a/SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs +++ b/SysML2.NET/Core/AutoGenDto/SuccessionFlow.cs @@ -62,7 +62,7 @@ public partial class SuccessionFlow : ISuccessionFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - List Kernel.Connectors.IConnector.association => this.interaction; + List Kernel.Connectors.IConnector.association => [.. this.interaction]; /// /// The Behaviors that type this Step. @@ -71,7 +71,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.interaction; + List Kernel.Behaviors.IStep.behavior => [.. this.interaction]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -151,7 +151,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -185,7 +185,7 @@ public partial class SuccessionFlow : ISuccessionFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.connectorEnd; + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -788,7 +788,7 @@ public partial class SuccessionFlow : ISuccessionFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedFeature; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -848,7 +848,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetFeature; + get => [.. this.targetFeature]; set { } } @@ -888,7 +888,7 @@ List Root.Elements.IRelationship.Target [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Kernel.Connectors.IConnector)this).association; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Kernel.Connectors.IConnector)this).association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/SuccessionFlowUsage.cs b/SysML2.NET/Core/AutoGenDto/SuccessionFlowUsage.cs index 7558f9f8f..d552a2608 100644 --- a/SysML2.NET/Core/AutoGenDto/SuccessionFlowUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/SuccessionFlowUsage.cs @@ -57,7 +57,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1618943843466_158863_236")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IActionUsage.ActionDefinition")] - List Systems.Actions.IActionUsage.actionDefinition => this.flowDefinition; + List Systems.Actions.IActionUsage.actionDefinition => [.. this.flowDefinition]; /// /// Various alternative identifiers for this Element. Generally, these will be set by tools. @@ -73,7 +73,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - List Kernel.Connectors.IConnector.association => ((SysML2.NET.Core.DTO.Kernel.Interactions.IFlow)this).interaction; + List Kernel.Connectors.IConnector.association => [.. ((SysML2.NET.Core.DTO.Kernel.Interactions.IFlow)this).interaction]; /// /// The Behaviors that type this Step. @@ -82,7 +82,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => ((SysML2.NET.Core.DTO.Kernel.Interactions.IFlow)this).interaction; + List Kernel.Behaviors.IStep.behavior => [.. ((SysML2.NET.Core.DTO.Kernel.Interactions.IFlow)this).interaction]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -151,7 +151,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -173,7 +173,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -216,7 +216,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.connectorEnd; + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -331,7 +331,7 @@ public partial class SuccessionFlowUsage : ISuccessionFlowUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] [RedefinedByProperty("IFlowUsage.FlowDefinition")] [Implements(implementation: "IFlow.Interaction")] - List Kernel.Interactions.IFlow.interaction => this.flowDefinition; + List Kernel.Interactions.IFlow.interaction => [.. this.flowDefinition]; /// /// The interpretations of a Type with intersectingTypes are asserted to be those in common among the @@ -772,7 +772,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1136,7 +1136,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedFeature; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -1196,7 +1196,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetFeature; + get => [.. this.targetFeature]; set { } } @@ -1236,7 +1236,7 @@ List Root.Elements.IRelationship.Target [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Kernel.Connectors.IConnector)this).association; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Kernel.Connectors.IConnector)this).association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/TerminateActionUsage.cs b/SysML2.NET/Core/AutoGenDto/TerminateActionUsage.cs index 4c2943c97..9cc2e8772 100644 --- a/SysML2.NET/Core/AutoGenDto/TerminateActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/TerminateActionUsage.cs @@ -75,7 +75,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -125,7 +125,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -147,7 +147,7 @@ public partial class TerminateActionUsage : ITerminateActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -707,7 +707,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1069,7 +1069,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/TransitionUsage.cs b/SysML2.NET/Core/AutoGenDto/TransitionUsage.cs index 2440691d0..705fd5e24 100644 --- a/SysML2.NET/Core/AutoGenDto/TransitionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/TransitionUsage.cs @@ -77,7 +77,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -127,7 +127,7 @@ public partial class TransitionUsage : ITransitionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -149,7 +149,7 @@ public partial class TransitionUsage : ITransitionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -729,7 +729,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1118,7 +1118,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/TriggerInvocationExpression.cs b/SysML2.NET/Core/AutoGenDto/TriggerInvocationExpression.cs index 4cf9d3aa4..efb859a53 100644 --- a/SysML2.NET/Core/AutoGenDto/TriggerInvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenDto/TriggerInvocationExpression.cs @@ -133,7 +133,7 @@ public partial class TriggerInvocationExpression : ITriggerInvocationExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET/Core/AutoGenDto/Usage.cs b/SysML2.NET/Core/AutoGenDto/Usage.cs index 9b37b8995..2f4850170 100644 --- a/SysML2.NET/Core/AutoGenDto/Usage.cs +++ b/SysML2.NET/Core/AutoGenDto/Usage.cs @@ -996,7 +996,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => this.definition; + List Core.Features.IFeature.type => [.. this.definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/UseCaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/UseCaseDefinition.cs index 1df59690f..9f3865e21 100644 --- a/SysML2.NET/Core/AutoGenDto/UseCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/UseCaseDefinition.cs @@ -119,7 +119,7 @@ public partial class UseCaseDefinition : IUseCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs index 7fa0ec69e..e150e287a 100644 --- a/SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/UseCaseUsage.cs @@ -153,7 +153,7 @@ public partial class UseCaseUsage : IUseCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -175,7 +175,7 @@ public partial class UseCaseUsage : IUseCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -768,7 +768,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1142,7 +1142,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/VerificationCaseDefinition.cs b/SysML2.NET/Core/AutoGenDto/VerificationCaseDefinition.cs index 3719d71e8..892097cdb 100644 --- a/SysML2.NET/Core/AutoGenDto/VerificationCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/VerificationCaseDefinition.cs @@ -118,7 +118,7 @@ public partial class VerificationCaseDefinition : IVerificationCaseDefinition [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/VerificationCaseUsage.cs b/SysML2.NET/Core/AutoGenDto/VerificationCaseUsage.cs index 3e5b01f9a..5ff366ff1 100644 --- a/SysML2.NET/Core/AutoGenDto/VerificationCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/VerificationCaseUsage.cs @@ -152,7 +152,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -174,7 +174,7 @@ public partial class VerificationCaseUsage : IVerificationCaseUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -759,7 +759,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. ((SysML2.NET.Core.DTO.Systems.Actions.IActionUsage)this).actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1133,7 +1133,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ViewUsage.cs b/SysML2.NET/Core/AutoGenDto/ViewUsage.cs index ff520e53e..0c64397ab 100644 --- a/SysML2.NET/Core/AutoGenDto/ViewUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ViewUsage.cs @@ -104,7 +104,7 @@ public partial class ViewUsage : IViewUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -1066,7 +1066,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/ViewpointDefinition.cs b/SysML2.NET/Core/AutoGenDto/ViewpointDefinition.cs index 04947c75d..071391e51 100644 --- a/SysML2.NET/Core/AutoGenDto/ViewpointDefinition.cs +++ b/SysML2.NET/Core/AutoGenDto/ViewpointDefinition.cs @@ -117,7 +117,7 @@ string Root.Elements.IElement.DeclaredShortName [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IBehavior.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Definition that are directedFeatures. diff --git a/SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs b/SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs index 83a988457..eed4da2fd 100644 --- a/SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/ViewpointUsage.cs @@ -149,7 +149,7 @@ string Root.Elements.IElement.DeclaredShortName [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -171,7 +171,7 @@ string Root.Elements.IElement.DeclaredShortName [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -1185,7 +1185,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET/Core/AutoGenDto/WhileLoopActionUsage.cs b/SysML2.NET/Core/AutoGenDto/WhileLoopActionUsage.cs index 692575f7a..c0171b5cd 100644 --- a/SysML2.NET/Core/AutoGenDto/WhileLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenDto/WhileLoopActionUsage.cs @@ -75,7 +75,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.actionDefinition; + List Kernel.Behaviors.IStep.behavior => [.. this.actionDefinition]; /// /// The ActionUsage to be performed repeatedly by the LoopActionUsage. It is the second parameter of the @@ -133,7 +133,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. ((SysML2.NET.Core.DTO.Systems.Occurrences.IOccurrenceUsage)this).occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -155,7 +155,7 @@ public partial class WhileLoopActionUsage : IWhileLoopActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -715,7 +715,7 @@ bool Core.Features.IFeature.IsVariable [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1591477641252_179221_958")] [RedefinedByProperty("IActionUsage.ActionDefinition")] [Implements(implementation: "IOccurrenceUsage.OccurrenceDefinition")] - List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => this.actionDefinition; + List Systems.Occurrences.IOccurrenceUsage.occurrenceDefinition => [.. this.actionDefinition]; /// /// All features related to this Type by FeatureMemberships that have direction out or inout. @@ -1069,7 +1069,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the From 49f734d8a286d341d7adb80fc2dc1bc3d88cf98e Mon Sep 17 00:00:00 2001 From: antoineatstariongroup Date: Fri, 16 Jan 2026 13:52:32 +0100 Subject: [PATCH 4/6] Missing expected classes --- .../Expected/UML/Core/AutoGenDto/Association.cs | 6 +++--- .../Expected/UML/Core/AutoGenDto/Dependency.cs | 4 ++-- .../UML/Core/AutoGenDto/EnumerationDefinition.cs | 2 +- .../Expected/UML/Core/AutoGenDto/Flow.cs | 14 +++++++------- .../Expected/UML/Core/AutoGenDto/LiteralInteger.cs | 2 +- .../UML/Core/AutoGenDto/LiteralRational.cs | 2 +- .../UML/Core/AutoGenDto/RequirementUsage.cs | 6 +++--- .../UML/Core/AutoGenDto/SelectExpression.cs | 2 +- .../Expected/UML/Core/AutoGenDto/Usage.cs | 2 +- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Association.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Association.cs index 4492698c0..b62458f22 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Association.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Association.cs @@ -127,7 +127,7 @@ public partial class Association : IAssociation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IAssociation.AssociationEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.associationEnd; + List Core.Types.IType.endFeature => [.. this.associationEnd]; /// /// The ownedMemberFeatures of the featureMemberships of this Type. @@ -507,7 +507,7 @@ public partial class Association : IAssociation [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IAssociation.RelatedType")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedType; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedType]; /// /// The types of the associationEnds of the Association, which are the relatedElements of the @@ -559,7 +559,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetType; + get => [.. this.targetType]; set { } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Dependency.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Dependency.cs index 2ec9d8c31..6fc59c138 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Dependency.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Dependency.cs @@ -248,7 +248,7 @@ public partial class Dependency : IDependency [Implements(implementation: "IRelationship.Source")] List Root.Elements.IRelationship.Source { - get => this.Client; + get => [.. this.Client]; set { this.Client = value; @@ -272,7 +272,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.Supplier; + get => [.. this.Supplier]; set { this.Supplier = value; diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/EnumerationDefinition.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/EnumerationDefinition.cs index f464ccd92..9eb017767 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/EnumerationDefinition.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/EnumerationDefinition.cs @@ -772,7 +772,7 @@ bool Systems.DefinitionAndUsage.IDefinition.IsVariation [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] [RedefinedByProperty("IEnumerationDefinition.EnumeratedValue")] [Implements(implementation: "IDefinition.Variant")] - List Systems.DefinitionAndUsage.IDefinition.variant => this.enumeratedValue; + List Systems.DefinitionAndUsage.IDefinition.variant => [.. this.enumeratedValue]; /// /// The ownedMemberships of this Definition that are VariantMemberships. If isVariation = true, then diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Flow.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Flow.cs index 57dba1544..d45b44bea 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Flow.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Flow.cs @@ -62,7 +62,7 @@ public partial class Flow : IFlow [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IConnector.Association")] - List Kernel.Connectors.IConnector.association => this.interaction; + List Kernel.Connectors.IConnector.association => [.. this.interaction]; /// /// The Behaviors that type this Step. @@ -71,7 +71,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IFlow.Interaction")] [Implements(implementation: "IStep.Behavior")] - List Kernel.Behaviors.IStep.behavior => this.interaction; + List Kernel.Behaviors.IStep.behavior => [.. this.interaction]; /// /// The Feature that are chained together to determine the values of this Feature, derived from the @@ -151,7 +151,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the @@ -185,7 +185,7 @@ public partial class Flow : IFlow [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IConnector.ConnectorEnd")] [Implements(implementation: "IType.EndFeature")] - List Core.Types.IType.endFeature => this.connectorEnd; + List Core.Types.IType.endFeature => [.. this.connectorEnd]; /// /// The Type that is related to this Feature by an EndFeatureMembership in which the Feature is an @@ -788,7 +788,7 @@ public partial class Flow : IFlow [Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)] [RedefinedByProperty("IConnector.RelatedFeature")] [Implements(implementation: "IRelationship.RelatedElement")] - List Root.Elements.IRelationship.relatedElement => this.relatedFeature; + List Root.Elements.IRelationship.relatedElement => [.. this.relatedFeature]; /// /// The Features that are related by this Connector considered as a Relationship and that restrict the @@ -848,7 +848,7 @@ List Root.Elements.IRelationship.Source [Implements(implementation: "IRelationship.Target")] List Root.Elements.IRelationship.Target { - get => this.targetFeature; + get => [.. this.targetFeature]; set { } } @@ -888,7 +888,7 @@ List Root.Elements.IRelationship.Target [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)] [RedefinedByProperty("IConnector.Association")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Kernel.Connectors.IConnector)this).association; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Kernel.Connectors.IConnector)this).association]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralInteger.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralInteger.cs index efe9f18dc..717555dbf 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralInteger.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralInteger.cs @@ -121,7 +121,7 @@ public partial class LiteralInteger : ILiteralInteger [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralRational.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralRational.cs index 828c64052..9affbd277 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralRational.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/LiteralRational.cs @@ -121,7 +121,7 @@ public partial class LiteralRational : ILiteralRational [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/RequirementUsage.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/RequirementUsage.cs index 398683301..b9673d0ee 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/RequirementUsage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/RequirementUsage.cs @@ -149,7 +149,7 @@ string Root.Elements.IElement.DeclaredShortName [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] [RedefinedByProperty("IOccurrenceUsage.OccurrenceDefinition")] [Implements(implementation: "IUsage.Definition")] - List Systems.DefinitionAndUsage.IUsage.definition => this.occurrenceDefinition; + List Systems.DefinitionAndUsage.IUsage.definition => [.. this.occurrenceDefinition]; /// /// The interpretations of a Type with differencingTypes are asserted to be those of the first of those @@ -171,7 +171,7 @@ string Root.Elements.IElement.DeclaredShortName [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// The usages of this Usage that are directedFeatures. @@ -1184,7 +1184,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition; + List Core.Features.IFeature.type => [.. ((SysML2.NET.Core.DTO.Systems.DefinitionAndUsage.IUsage)this).definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/SelectExpression.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/SelectExpression.cs index 7de13805d..67ce8a2d3 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/SelectExpression.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/SelectExpression.cs @@ -131,7 +131,7 @@ public partial class SelectExpression : ISelectExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_326391_43166")] [RedefinedByProperty("IStep.Parameter")] [Implements(implementation: "IType.DirectedFeature")] - List Core.Types.IType.directedFeature => this.parameter; + List Core.Types.IType.directedFeature => [.. this.parameter]; /// /// Indicates how values of this Feature are determined or used (as specified for the diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Usage.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Usage.cs index 142615bbd..5b6750c1f 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Usage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Usage.cs @@ -996,7 +996,7 @@ bool Core.Features.IFeature.IsVariable [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)] [RedefinedByProperty("IUsage.Definition")] [Implements(implementation: "IFeature.Type")] - List Core.Features.IFeature.type => this.definition; + List Core.Features.IFeature.type => [.. this.definition]; /// /// The interpretations of a Type with unioningTypes are asserted to be the same as those of all the From 0b1622be6e7bee65b92ab4691a0093fcc3ca6a37 Mon Sep 17 00:00:00 2001 From: atheate Date: Mon, 19 Jan 2026 15:50:25 +0100 Subject: [PATCH 5/6] Drop support of Dictionary serialization --- .../ReaderTestFixture.cs | 825 ------------------ ...ML2.NET.Serializer.Dictionary.Tests.csproj | 41 - .../WriterTestFixture.cs | 171 ---- .../AcceptActionUsageDictionaryReader.cs | 479 ---------- .../ActionDefinitionDictionaryReader.cs | 339 ------- .../ActionUsageDictionaryReader.cs | 479 ---------- .../ActorMembershipDictionaryReader.cs | 409 --------- .../AllocationDefinitionDictionaryReader.cs | 409 --------- .../AllocationUsageDictionaryReader.cs | 549 ------------ .../AnalysisCaseDefinitionDictionaryReader.cs | 339 ------- .../AnalysisCaseUsageDictionaryReader.cs | 479 ---------- .../AnnotatingElementDictionaryReader.cs | 283 ------ .../AnnotationDictionaryReader.cs | 367 -------- .../AssertConstraintUsageDictionaryReader.cs | 493 ----------- .../AssignmentActionUsageDictionaryReader.cs | 479 ---------- .../AssociationDictionaryReader.cs | 381 -------- .../AssociationStructureDictionaryReader.cs | 381 -------- .../AttributeDefinitionDictionaryReader.cs | 325 ------- .../AttributeUsageDictionaryReader.cs | 451 ---------- .../BehaviorDictionaryReader.cs | 311 ------- ...BindingConnectorAsUsageDictionaryReader.cs | 521 ----------- .../BindingConnectorDictionaryReader.cs | 507 ----------- .../BooleanExpressionDictionaryReader.cs | 437 ---------- .../CalculationDefinitionDictionaryReader.cs | 339 ------- .../CalculationUsageDictionaryReader.cs | 479 ---------- .../CaseDefinitionDictionaryReader.cs | 339 ------- .../CaseUsageDictionaryReader.cs | 479 ---------- .../ClassDictionaryReader.cs | 311 ------- .../ClassifierDictionaryReader.cs | 311 ------- .../CollectExpressionDictionaryReader.cs | 451 ---------- .../CommentDictionaryReader.cs | 311 ------- .../ConcernDefinitionDictionaryReader.cs | 353 -------- .../ConcernUsageDictionaryReader.cs | 493 ----------- ...onjugatedPortDefinitionDictionaryReader.cs | 339 ------- .../ConjugatedPortTypingDictionaryReader.cs | 423 --------- .../ConjugationDictionaryReader.cs | 381 -------- .../ConnectionDefinitionDictionaryReader.cs | 409 --------- .../ConnectionUsageDictionaryReader.cs | 549 ------------ .../ConnectorDictionaryReader.cs | 507 ----------- .../ConstraintDefinitionDictionaryReader.cs | 339 ------- .../ConstraintUsageDictionaryReader.cs | 479 ---------- .../ConstructorExpressionDictionaryReader.cs | 437 ---------- .../CrossSubsettingDictionaryReader.cs | 423 --------- .../DataTypeDictionaryReader.cs | 311 ------- .../DecisionNodeDictionaryReader.cs | 479 ---------- .../DefinitionDictionaryReader.cs | 325 ------- .../DependencyDictionaryReader.cs | 381 -------- .../DictionaryReaderProvider.cs | 248 ------ .../DifferencingDictionaryReader.cs | 367 -------- .../DisjoiningDictionaryReader.cs | 381 -------- .../DocumentationDictionaryReader.cs | 311 ------- ...ElementFilterMembershipDictionaryReader.cs | 409 --------- .../EndFeatureMembershipDictionaryReader.cs | 409 --------- .../EnumerationDefinitionDictionaryReader.cs | 325 ------- .../EnumerationUsageDictionaryReader.cs | 451 ---------- .../EventOccurrenceUsageDictionaryReader.cs | 479 ---------- .../ExhibitStateUsageDictionaryReader.cs | 493 ----------- .../ExpressionDictionaryReader.cs | 437 ---------- .../FeatureChainExpressionDictionaryReader.cs | 451 ---------- .../FeatureChainingDictionaryReader.cs | 367 -------- .../FeatureDictionaryReader.cs | 437 ---------- .../FeatureInvertingDictionaryReader.cs | 381 -------- .../FeatureMembershipDictionaryReader.cs | 409 --------- ...tureReferenceExpressionDictionaryReader.cs | 437 ---------- .../FeatureTypingDictionaryReader.cs | 409 --------- .../FeatureValueDictionaryReader.cs | 437 ---------- .../FlowDefinitionDictionaryReader.cs | 409 --------- .../FlowDictionaryReader.cs | 507 ----------- .../FlowEndDictionaryReader.cs | 437 ---------- .../FlowUsageDictionaryReader.cs | 549 ------------ .../ForLoopActionUsageDictionaryReader.cs | 479 ---------- .../ForkNodeDictionaryReader.cs | 479 ---------- ...FramedConcernMembershipDictionaryReader.cs | 423 --------- .../FunctionDictionaryReader.cs | 311 ------- .../IfActionUsageDictionaryReader.cs | 479 ---------- .../IncludeUseCaseUsageDictionaryReader.cs | 479 ---------- .../IndexExpressionDictionaryReader.cs | 451 ---------- .../InteractionDictionaryReader.cs | 381 -------- .../InterfaceDefinitionDictionaryReader.cs | 409 --------- .../InterfaceUsageDictionaryReader.cs | 549 ------------ .../IntersectingDictionaryReader.cs | 367 -------- .../InvariantDictionaryReader.cs | 451 ---------- .../InvocationExpressionDictionaryReader.cs | 437 ---------- .../ItemDefinitionDictionaryReader.cs | 339 ------- .../ItemUsageDictionaryReader.cs | 479 ---------- .../JoinNodeDictionaryReader.cs | 479 ---------- .../LibraryPackageDictionaryReader.cs | 297 ------- .../LiteralBooleanDictionaryReader.cs | 451 ---------- .../LiteralExpressionDictionaryReader.cs | 437 ---------- .../LiteralInfinityDictionaryReader.cs | 437 ---------- .../LiteralIntegerDictionaryReader.cs | 451 ---------- .../LiteralRationalDictionaryReader.cs | 451 ---------- .../LiteralStringDictionaryReader.cs | 451 ---------- .../MembershipDictionaryReader.cs | 409 --------- .../MembershipExposeDictionaryReader.cs | 409 --------- .../MembershipImportDictionaryReader.cs | 409 --------- .../MergeNodeDictionaryReader.cs | 479 ---------- .../MetaclassDictionaryReader.cs | 311 ------- ...etadataAccessExpressionDictionaryReader.cs | 437 ---------- .../MetadataDefinitionDictionaryReader.cs | 339 ------- .../MetadataFeatureDictionaryReader.cs | 437 ---------- .../MetadataUsageDictionaryReader.cs | 479 ---------- .../MultiplicityDictionaryReader.cs | 437 ---------- .../MultiplicityRangeDictionaryReader.cs | 437 ---------- .../NamespaceDictionaryReader.cs | 283 ------ .../NamespaceExposeDictionaryReader.cs | 409 --------- .../NamespaceImportDictionaryReader.cs | 409 --------- .../NullExpressionDictionaryReader.cs | 437 ---------- .../ObjectiveMembershipDictionaryReader.cs | 409 --------- .../OccurrenceDefinitionDictionaryReader.cs | 339 ------- .../OccurrenceUsageDictionaryReader.cs | 479 ---------- .../OperatorExpressionDictionaryReader.cs | 451 ---------- .../OwningMembershipDictionaryReader.cs | 409 --------- .../PackageDictionaryReader.cs | 283 ------ .../ParameterMembershipDictionaryReader.cs | 409 --------- .../PartDefinitionDictionaryReader.cs | 339 ------- .../PartUsageDictionaryReader.cs | 479 ---------- .../PayloadFeatureDictionaryReader.cs | 437 ---------- .../PerformActionUsageDictionaryReader.cs | 479 ---------- .../PortConjugationDictionaryReader.cs | 395 --------- .../PortDefinitionDictionaryReader.cs | 339 ------- .../PortUsageDictionaryReader.cs | 479 ---------- .../PredicateDictionaryReader.cs | 311 ------- .../RedefinitionDictionaryReader.cs | 437 ---------- .../ReferenceSubsettingDictionaryReader.cs | 423 --------- .../ReferenceUsageDictionaryReader.cs | 451 ---------- .../RenderingDefinitionDictionaryReader.cs | 339 ------- .../RenderingUsageDictionaryReader.cs | 479 ---------- ...entConstraintMembershipDictionaryReader.cs | 423 --------- .../RequirementDefinitionDictionaryReader.cs | 353 -------- .../RequirementUsageDictionaryReader.cs | 493 ----------- ...tVerificationMembershipDictionaryReader.cs | 423 --------- ...ultExpressionMembershipDictionaryReader.cs | 409 --------- ...turnParameterMembershipDictionaryReader.cs | 409 --------- ...SatisfyRequirementUsageDictionaryReader.cs | 507 ----------- .../SelectExpressionDictionaryReader.cs | 451 ---------- .../SendActionUsageDictionaryReader.cs | 479 ---------- .../SpecializationDictionaryReader.cs | 381 -------- .../StakeholderMembershipDictionaryReader.cs | 409 --------- .../StateDefinitionDictionaryReader.cs | 353 -------- ...tateSubactionMembershipDictionaryReader.cs | 423 --------- .../StateUsageDictionaryReader.cs | 493 ----------- .../StepDictionaryReader.cs | 437 ---------- .../StructureDictionaryReader.cs | 311 ------- .../SubclassificationDictionaryReader.cs | 409 --------- .../SubjectMembershipDictionaryReader.cs | 409 --------- .../SubsettingDictionaryReader.cs | 409 --------- .../SuccessionAsUsageDictionaryReader.cs | 521 ----------- .../SuccessionDictionaryReader.cs | 507 ----------- .../SuccessionFlowDictionaryReader.cs | 507 ----------- .../SuccessionFlowUsageDictionaryReader.cs | 549 ------------ .../TerminateActionUsageDictionaryReader.cs | 479 ---------- .../TextualRepresentationDictionaryReader.cs | 311 ------- ...sitionFeatureMembershipDictionaryReader.cs | 423 --------- .../TransitionUsageDictionaryReader.cs | 479 ---------- ...gerInvocationExpressionDictionaryReader.cs | 451 ---------- .../TypeDictionaryReader.cs | 311 ------- .../TypeFeaturingDictionaryReader.cs | 381 -------- .../UnioningDictionaryReader.cs | 367 -------- .../UsageDictionaryReader.cs | 451 ---------- .../UseCaseDefinitionDictionaryReader.cs | 339 ------- .../UseCaseUsageDictionaryReader.cs | 479 ---------- .../VariantMembershipDictionaryReader.cs | 409 --------- ...ificationCaseDefinitionDictionaryReader.cs | 339 ------- .../VerificationCaseUsageDictionaryReader.cs | 479 ---------- .../ViewDefinitionDictionaryReader.cs | 339 ------- ...ViewRenderingMembershipDictionaryReader.cs | 409 --------- .../ViewUsageDictionaryReader.cs | 479 ---------- .../ViewpointDefinitionDictionaryReader.cs | 353 -------- .../ViewpointUsageDictionaryReader.cs | 493 ----------- .../WhileLoopActionUsageDictionaryReader.cs | 479 ---------- .../AcceptActionUsageDictionaryWriter.cs | 217 ----- .../ActionDefinitionDictionaryWriter.cs | 197 ----- .../ActionUsageDictionaryWriter.cs | 217 ----- .../ActorMembershipDictionaryWriter.cs | 207 ----- .../AllocationDefinitionDictionaryWriter.cs | 207 ----- .../AllocationUsageDictionaryWriter.cs | 227 ----- .../AnalysisCaseDefinitionDictionaryWriter.cs | 197 ----- .../AnalysisCaseUsageDictionaryWriter.cs | 217 ----- .../AnnotatingElementDictionaryWriter.cs | 189 ---- .../AnnotationDictionaryWriter.cs | 201 ----- .../AssertConstraintUsageDictionaryWriter.cs | 219 ----- .../AssignmentActionUsageDictionaryWriter.cs | 217 ----- .../AssociationDictionaryWriter.cs | 203 ----- .../AssociationStructureDictionaryWriter.cs | 203 ----- .../AttributeDefinitionDictionaryWriter.cs | 195 ----- .../AttributeUsageDictionaryWriter.cs | 213 ----- .../BehaviorDictionaryWriter.cs | 193 ---- ...BindingConnectorAsUsageDictionaryWriter.cs | 223 ----- .../BindingConnectorDictionaryWriter.cs | 221 ----- .../BooleanExpressionDictionaryWriter.cs | 211 ----- .../CalculationDefinitionDictionaryWriter.cs | 197 ----- .../CalculationUsageDictionaryWriter.cs | 217 ----- .../CaseDefinitionDictionaryWriter.cs | 197 ----- .../CaseUsageDictionaryWriter.cs | 217 ----- .../ClassDictionaryWriter.cs | 193 ---- .../ClassifierDictionaryWriter.cs | 193 ---- .../CollectExpressionDictionaryWriter.cs | 213 ----- .../CommentDictionaryWriter.cs | 193 ---- .../ConcernDefinitionDictionaryWriter.cs | 199 ----- .../ConcernUsageDictionaryWriter.cs | 219 ----- ...onjugatedPortDefinitionDictionaryWriter.cs | 197 ----- .../ConjugatedPortTypingDictionaryWriter.cs | 209 ----- .../ConjugationDictionaryWriter.cs | 203 ----- .../ConnectionDefinitionDictionaryWriter.cs | 207 ----- .../ConnectionUsageDictionaryWriter.cs | 227 ----- .../ConnectorDictionaryWriter.cs | 221 ----- .../ConstraintDefinitionDictionaryWriter.cs | 197 ----- .../ConstraintUsageDictionaryWriter.cs | 217 ----- .../ConstructorExpressionDictionaryWriter.cs | 211 ----- .../CrossSubsettingDictionaryWriter.cs | 209 ----- .../DataTypeDictionaryWriter.cs | 193 ---- .../DecisionNodeDictionaryWriter.cs | 217 ----- .../DefinitionDictionaryWriter.cs | 195 ----- .../DependencyDictionaryWriter.cs | 203 ----- .../DictionaryWriterProvider.cs | 248 ------ .../DifferencingDictionaryWriter.cs | 201 ----- .../DisjoiningDictionaryWriter.cs | 203 ----- .../DocumentationDictionaryWriter.cs | 193 ---- ...ElementFilterMembershipDictionaryWriter.cs | 207 ----- .../EndFeatureMembershipDictionaryWriter.cs | 207 ----- .../EnumerationDefinitionDictionaryWriter.cs | 195 ----- .../EnumerationUsageDictionaryWriter.cs | 213 ----- .../EventOccurrenceUsageDictionaryWriter.cs | 217 ----- .../ExhibitStateUsageDictionaryWriter.cs | 219 ----- .../ExpressionDictionaryWriter.cs | 211 ----- .../FeatureChainExpressionDictionaryWriter.cs | 213 ----- .../FeatureChainingDictionaryWriter.cs | 201 ----- .../FeatureDictionaryWriter.cs | 211 ----- .../FeatureInvertingDictionaryWriter.cs | 203 ----- .../FeatureMembershipDictionaryWriter.cs | 207 ----- ...tureReferenceExpressionDictionaryWriter.cs | 211 ----- .../FeatureTypingDictionaryWriter.cs | 207 ----- .../FeatureValueDictionaryWriter.cs | 211 ----- .../FlowDefinitionDictionaryWriter.cs | 207 ----- .../FlowDictionaryWriter.cs | 221 ----- .../FlowEndDictionaryWriter.cs | 211 ----- .../FlowUsageDictionaryWriter.cs | 227 ----- .../ForLoopActionUsageDictionaryWriter.cs | 217 ----- .../ForkNodeDictionaryWriter.cs | 217 ----- ...FramedConcernMembershipDictionaryWriter.cs | 209 ----- .../FunctionDictionaryWriter.cs | 193 ---- .../IfActionUsageDictionaryWriter.cs | 217 ----- .../IncludeUseCaseUsageDictionaryWriter.cs | 217 ----- .../IndexExpressionDictionaryWriter.cs | 213 ----- .../InteractionDictionaryWriter.cs | 203 ----- .../InterfaceDefinitionDictionaryWriter.cs | 207 ----- .../InterfaceUsageDictionaryWriter.cs | 227 ----- .../IntersectingDictionaryWriter.cs | 201 ----- .../InvariantDictionaryWriter.cs | 213 ----- .../InvocationExpressionDictionaryWriter.cs | 211 ----- .../ItemDefinitionDictionaryWriter.cs | 197 ----- .../ItemUsageDictionaryWriter.cs | 217 ----- .../JoinNodeDictionaryWriter.cs | 217 ----- .../LibraryPackageDictionaryWriter.cs | 191 ---- .../LiteralBooleanDictionaryWriter.cs | 213 ----- .../LiteralExpressionDictionaryWriter.cs | 211 ----- .../LiteralInfinityDictionaryWriter.cs | 211 ----- .../LiteralIntegerDictionaryWriter.cs | 213 ----- .../LiteralRationalDictionaryWriter.cs | 213 ----- .../LiteralStringDictionaryWriter.cs | 213 ----- .../MembershipDictionaryWriter.cs | 207 ----- .../MembershipExposeDictionaryWriter.cs | 207 ----- .../MembershipImportDictionaryWriter.cs | 207 ----- .../MergeNodeDictionaryWriter.cs | 217 ----- .../MetaclassDictionaryWriter.cs | 193 ---- ...etadataAccessExpressionDictionaryWriter.cs | 211 ----- .../MetadataDefinitionDictionaryWriter.cs | 197 ----- .../MetadataFeatureDictionaryWriter.cs | 211 ----- .../MetadataUsageDictionaryWriter.cs | 217 ----- .../MultiplicityDictionaryWriter.cs | 211 ----- .../MultiplicityRangeDictionaryWriter.cs | 211 ----- .../NamespaceDictionaryWriter.cs | 189 ---- .../NamespaceExposeDictionaryWriter.cs | 207 ----- .../NamespaceImportDictionaryWriter.cs | 207 ----- .../NullExpressionDictionaryWriter.cs | 211 ----- .../ObjectiveMembershipDictionaryWriter.cs | 207 ----- .../OccurrenceDefinitionDictionaryWriter.cs | 197 ----- .../OccurrenceUsageDictionaryWriter.cs | 217 ----- .../OperatorExpressionDictionaryWriter.cs | 213 ----- .../OwningMembershipDictionaryWriter.cs | 207 ----- .../PackageDictionaryWriter.cs | 189 ---- .../ParameterMembershipDictionaryWriter.cs | 207 ----- .../PartDefinitionDictionaryWriter.cs | 197 ----- .../PartUsageDictionaryWriter.cs | 217 ----- .../PayloadFeatureDictionaryWriter.cs | 211 ----- .../PerformActionUsageDictionaryWriter.cs | 217 ----- .../PortConjugationDictionaryWriter.cs | 205 ----- .../PortDefinitionDictionaryWriter.cs | 197 ----- .../PortUsageDictionaryWriter.cs | 217 ----- .../PredicateDictionaryWriter.cs | 193 ---- .../RedefinitionDictionaryWriter.cs | 211 ----- .../ReferenceSubsettingDictionaryWriter.cs | 209 ----- .../ReferenceUsageDictionaryWriter.cs | 213 ----- .../RenderingDefinitionDictionaryWriter.cs | 197 ----- .../RenderingUsageDictionaryWriter.cs | 217 ----- ...entConstraintMembershipDictionaryWriter.cs | 209 ----- .../RequirementDefinitionDictionaryWriter.cs | 199 ----- .../RequirementUsageDictionaryWriter.cs | 219 ----- ...tVerificationMembershipDictionaryWriter.cs | 209 ----- ...ultExpressionMembershipDictionaryWriter.cs | 207 ----- ...turnParameterMembershipDictionaryWriter.cs | 207 ----- ...SatisfyRequirementUsageDictionaryWriter.cs | 221 ----- .../SelectExpressionDictionaryWriter.cs | 213 ----- .../SendActionUsageDictionaryWriter.cs | 217 ----- .../SpecializationDictionaryWriter.cs | 203 ----- .../StakeholderMembershipDictionaryWriter.cs | 207 ----- .../StateDefinitionDictionaryWriter.cs | 199 ----- ...tateSubactionMembershipDictionaryWriter.cs | 209 ----- .../StateUsageDictionaryWriter.cs | 219 ----- .../StepDictionaryWriter.cs | 211 ----- .../StructureDictionaryWriter.cs | 193 ---- .../SubclassificationDictionaryWriter.cs | 207 ----- .../SubjectMembershipDictionaryWriter.cs | 207 ----- .../SubsettingDictionaryWriter.cs | 207 ----- .../SuccessionAsUsageDictionaryWriter.cs | 223 ----- .../SuccessionDictionaryWriter.cs | 221 ----- .../SuccessionFlowDictionaryWriter.cs | 221 ----- .../SuccessionFlowUsageDictionaryWriter.cs | 227 ----- .../TerminateActionUsageDictionaryWriter.cs | 217 ----- .../TextualRepresentationDictionaryWriter.cs | 193 ---- ...sitionFeatureMembershipDictionaryWriter.cs | 209 ----- .../TransitionUsageDictionaryWriter.cs | 217 ----- ...gerInvocationExpressionDictionaryWriter.cs | 213 ----- .../TypeDictionaryWriter.cs | 193 ---- .../TypeFeaturingDictionaryWriter.cs | 203 ----- .../UnioningDictionaryWriter.cs | 201 ----- .../UsageDictionaryWriter.cs | 213 ----- .../UseCaseDefinitionDictionaryWriter.cs | 197 ----- .../UseCaseUsageDictionaryWriter.cs | 217 ----- .../VariantMembershipDictionaryWriter.cs | 207 ----- ...ificationCaseDefinitionDictionaryWriter.cs | 197 ----- .../VerificationCaseUsageDictionaryWriter.cs | 217 ----- .../ViewDefinitionDictionaryWriter.cs | 197 ----- ...ViewRenderingMembershipDictionaryWriter.cs | 207 ----- .../ViewUsageDictionaryWriter.cs | 217 ----- .../ViewpointDefinitionDictionaryWriter.cs | 199 ----- .../ViewpointUsageDictionaryWriter.cs | 219 ----- .../WhileLoopActionUsageDictionaryWriter.cs | 217 ----- .../DictionaryKind.cs | 46 - SysML2.NET.Serializer.Dictionary/IReader.cs | 87 -- SysML2.NET.Serializer.Dictionary/IWriter.cs | 61 -- SysML2.NET.Serializer.Dictionary/Reader.cs | 112 --- .../SysML2.NET.Serializer.Dictionary.csproj | 41 - SysML2.NET.Serializer.Dictionary/Writer.cs | 77 -- SysML2.NET.sln | 12 - 346 files changed, 106697 deletions(-) delete mode 100644 SysML2.NET.Serializer.Dictionary.Tests/ReaderTestFixture.cs delete mode 100644 SysML2.NET.Serializer.Dictionary.Tests/SysML2.NET.Serializer.Dictionary.Tests.csproj delete mode 100644 SysML2.NET.Serializer.Dictionary.Tests/WriterTestFixture.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AcceptActionUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ActionDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ActionUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ActorMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AllocationDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AllocationUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnalysisCaseDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnalysisCaseUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnnotatingElementDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnnotationDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssertConstraintUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssignmentActionUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssociationDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssociationStructureDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AttributeDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AttributeUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BehaviorDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BindingConnectorAsUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BindingConnectorDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BooleanExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CalculationDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CalculationUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CaseDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CaseUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ClassDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ClassifierDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CollectExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CommentDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConcernDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConcernUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConjugatedPortDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConjugatedPortTypingDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConjugationDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConnectionDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConnectionUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConnectorDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConstraintDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConstraintUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConstructorExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CrossSubsettingDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DataTypeDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DecisionNodeDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DependencyDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DictionaryReaderProvider.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DifferencingDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DisjoiningDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DocumentationDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ElementFilterMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EndFeatureMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EnumerationDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EnumerationUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EventOccurrenceUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ExhibitStateUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureChainExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureChainingDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureInvertingDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureReferenceExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureTypingDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureValueDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowEndDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ForLoopActionUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ForkNodeDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FramedConcernMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FunctionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IfActionUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IncludeUseCaseUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IndexExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InteractionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InterfaceDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InterfaceUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IntersectingDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InvariantDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InvocationExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ItemDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ItemUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/JoinNodeDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LibraryPackageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralBooleanDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralInfinityDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralIntegerDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralRationalDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralStringDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MembershipExposeDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MembershipImportDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MergeNodeDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetaclassDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataAccessExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataFeatureDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MultiplicityDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MultiplicityRangeDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NamespaceDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NamespaceExposeDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NamespaceImportDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NullExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ObjectiveMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OccurrenceDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OccurrenceUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OperatorExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OwningMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PackageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ParameterMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PartDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PartUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PayloadFeatureDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PerformActionUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PortConjugationDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PortDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PortUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PredicateDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RedefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ReferenceSubsettingDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ReferenceUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RenderingDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RenderingUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementConstraintMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementVerificationMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ResultExpressionMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ReturnParameterMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SatisfyRequirementUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SelectExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SendActionUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SpecializationDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StakeholderMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StateDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StateSubactionMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StateUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StepDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StructureDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SubclassificationDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SubjectMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SubsettingDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionAsUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionFlowDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionFlowUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TerminateActionUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TextualRepresentationDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TransitionFeatureMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TransitionUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TriggerInvocationExpressionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TypeDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TypeFeaturingDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UnioningDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UseCaseDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UseCaseUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/VariantMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/VerificationCaseDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/VerificationCaseUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewRenderingMembershipDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewpointDefinitionDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewpointUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/WhileLoopActionUsageDictionaryReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AcceptActionUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ActionDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ActionUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ActorMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AllocationDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AllocationUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnalysisCaseDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnalysisCaseUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnnotatingElementDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnnotationDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssertConstraintUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssignmentActionUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssociationDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssociationStructureDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AttributeDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AttributeUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BehaviorDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BindingConnectorAsUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BindingConnectorDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BooleanExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CalculationDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CalculationUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CaseDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CaseUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ClassDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ClassifierDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CollectExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CommentDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConcernDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConcernUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConjugatedPortDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConjugatedPortTypingDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConjugationDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConnectionDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConnectionUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConnectorDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConstraintDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConstraintUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConstructorExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CrossSubsettingDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DataTypeDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DecisionNodeDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DependencyDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DictionaryWriterProvider.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DifferencingDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DisjoiningDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DocumentationDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ElementFilterMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EndFeatureMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EnumerationDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EnumerationUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EventOccurrenceUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ExhibitStateUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureChainExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureChainingDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureInvertingDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureReferenceExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureTypingDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureValueDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowEndDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ForLoopActionUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ForkNodeDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FramedConcernMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FunctionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IfActionUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IncludeUseCaseUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IndexExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InteractionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InterfaceDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InterfaceUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IntersectingDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InvariantDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InvocationExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ItemDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ItemUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/JoinNodeDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LibraryPackageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralBooleanDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralInfinityDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralIntegerDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralRationalDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralStringDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MembershipExposeDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MembershipImportDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MergeNodeDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetaclassDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataAccessExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataFeatureDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MultiplicityDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MultiplicityRangeDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NamespaceDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NamespaceExposeDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NamespaceImportDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NullExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ObjectiveMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OccurrenceDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OccurrenceUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OperatorExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OwningMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PackageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ParameterMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PartDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PartUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PayloadFeatureDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PerformActionUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PortConjugationDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PortDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PortUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PredicateDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RedefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ReferenceSubsettingDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ReferenceUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RenderingDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RenderingUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementConstraintMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementVerificationMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ResultExpressionMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ReturnParameterMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SatisfyRequirementUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SelectExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SendActionUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SpecializationDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StakeholderMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StateDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StateSubactionMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StateUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StepDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StructureDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SubclassificationDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SubjectMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SubsettingDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionAsUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionFlowDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionFlowUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TerminateActionUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TextualRepresentationDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TransitionFeatureMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TransitionUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TriggerInvocationExpressionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TypeDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TypeFeaturingDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UnioningDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UseCaseDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UseCaseUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/VariantMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/VerificationCaseDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/VerificationCaseUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewRenderingMembershipDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewpointDefinitionDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewpointUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/WhileLoopActionUsageDictionaryWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/DictionaryKind.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/IReader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/IWriter.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/Reader.cs delete mode 100644 SysML2.NET.Serializer.Dictionary/SysML2.NET.Serializer.Dictionary.csproj delete mode 100644 SysML2.NET.Serializer.Dictionary/Writer.cs diff --git a/SysML2.NET.Serializer.Dictionary.Tests/ReaderTestFixture.cs b/SysML2.NET.Serializer.Dictionary.Tests/ReaderTestFixture.cs deleted file mode 100644 index 0870f3c79..000000000 --- a/SysML2.NET.Serializer.Dictionary.Tests/ReaderTestFixture.cs +++ /dev/null @@ -1,825 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Tests -{ - using System; - using System.Collections.Generic; - - using NUnit.Framework; - - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - using SysML2.NET.Serializer.Dictionary; - - /// - /// Suite of tests for the class - /// - [TestFixture] - public class ReaderTestFixture - { - private IReader reader; - - private Dictionary dictionary; - - [SetUp] - public void SetUp() - { - this.reader = new Reader(); - } - - [Test] - public void Verify_that_when_dictionary_is_read_instance_of_IAnnotatingElement_is_returned() - { - // READ COMPLEX - iteration 1 - - this.dictionary = new Dictionary - { - { "@type", "AnnotatingElement" }, - { "@id", Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e") }, - { "aliasIds", new List { "alias_1", "alias_2" } }, - { "annotation", new List { Guid.Parse("7f8c06c6-93cb-4193-9a0c-c6ca4dc1eec1") } }, - { "declaredName", "the name" }, - { "declaredShortName", "the shortName" }, - { "elementId", "element id" }, - { "isImpliedIncluded", true }, - { "ownedRelationship", new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") } }, - { "owningRelationship", Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9") } - }; - - var annotatingElement = reader.Read(this.dictionary, DictionaryKind.Complex) as IAnnotatingElement; - - Assert.That(annotatingElement.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(annotatingElement.AliasIds, Is.EqualTo(new List { "alias_1", "alias_2" })); - Assert.That(annotatingElement.DeclaredName, Is.EqualTo("the name")); - Assert.That(annotatingElement.DeclaredShortName, Is.EqualTo("the shortName")); - Assert.That(annotatingElement.ElementId, Is.EqualTo("element id")); - Assert.That(annotatingElement.IsImpliedIncluded, Is.True); - Assert.That(annotatingElement.OwnedRelationship, Is.EqualTo(new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") })); - Assert.That(annotatingElement.OwningRelationship, Is.EqualTo(Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9"))); - - // READ COMPLEX - iteration 2 - - this.dictionary = new Dictionary - { - { "@type", "AnnotatingElement" }, - { "@id", Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e") }, - { "aliasIds", new List() }, - { "annotation", new List() }, - { "declaredName", null }, - { "declaredShortName", null }, - { "elementId", "element id" }, - { "isImpliedIncluded", true }, - { "ownedRelationship", new List() }, - { "owningRelationship", null } - }; - - annotatingElement = reader.Read(this.dictionary, DictionaryKind.Complex) as IAnnotatingElement; - - Assert.That(annotatingElement.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(annotatingElement.AliasIds, Is.EqualTo(new List())); - Assert.That(annotatingElement.DeclaredName, Is.Null); - Assert.That(annotatingElement.DeclaredShortName, Is.Null); - Assert.That(annotatingElement.ElementId, Is.EqualTo("element id")); - Assert.That(annotatingElement.IsImpliedIncluded, Is.True); - Assert.That(annotatingElement.OwnedRelationship, Is.EqualTo(new List())); - Assert.That(annotatingElement.OwningRelationship, Is.Null); - - // READ SIMPLIFIED - iteration 1 - - this.dictionary = new Dictionary - { - { "@type", "AnnotatingElement" }, - { "@id", "0b192c18-afa2-44b6-8de2-86e5e6ffa09e" }, - { "aliasIds", new List { "alias_1", "alias_2" } }, - { "annotation", new List { "7f8c06c6-93cb-4193-9a0c-c6ca4dc1eec1" } }, - { "declaredName", "the name" }, - { "declaredShortName", "the shortName" }, - { "elementId", "element id" }, - { "isImpliedIncluded", true }, - { "ownedRelationship", new List { "9006ff06-43fe-4a4e-a4bc-402e82f84dde" } }, - { "owningRelationship", "fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9" } - }; - - annotatingElement = reader.Read(this.dictionary, DictionaryKind.Simplified) as IAnnotatingElement; - - Assert.That(annotatingElement.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(annotatingElement.AliasIds, Is.EqualTo(new List { "alias_1", "alias_2" })); - Assert.That(annotatingElement.ElementId, Is.EqualTo("element id")); - Assert.That(annotatingElement.IsImpliedIncluded, Is.True); - Assert.That(annotatingElement.DeclaredName, Is.EqualTo("the name")); - Assert.That(annotatingElement.OwnedRelationship, Is.EqualTo(new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") })); - Assert.That(annotatingElement.OwningRelationship, Is.EqualTo(Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9"))); - Assert.That(annotatingElement.DeclaredShortName, Is.EqualTo("the shortName")); - - // READ SIMPLIFIED - iteration 2 - - this.dictionary = new Dictionary - { - { "@type", "AnnotatingElement" }, - { "@id", Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e") }, - { "aliasIds", new List () }, - { "annotation", new List() }, - { "elementId", "element id" }, - { "isImpliedIncluded", true }, - { "declaredName", null }, - { "ownedRelationship", new List() }, - { "owningRelationship", null }, - { "declaredShortName", null } - }; - - annotatingElement = reader.Read(this.dictionary, DictionaryKind.Simplified) as IAnnotatingElement; - - Assert.That(annotatingElement.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(annotatingElement.AliasIds, Is.EqualTo(new List())); - Assert.That(annotatingElement.ElementId, Is.EqualTo("element id")); - Assert.That(annotatingElement.IsImpliedIncluded, Is.True); - Assert.That(annotatingElement.DeclaredName, Is.Null); - Assert.That(annotatingElement.OwnedRelationship, Is.EqualTo(new List())); - Assert.That(annotatingElement.OwningRelationship, Is.Null); - Assert.That(annotatingElement.DeclaredShortName, Is.Null); - } - - [Test] - public void Verify_that_when_dictionary_is_read_instance_of_IAnnotation_is_returned() - { - // READ COMPLEX - iteration 1 - - this.dictionary = new Dictionary - { - { "@type", "Annotation" }, - { "@id", Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e") }, - { "aliasIds", new List { "alias_1", "alias_2" } }, - { "annotatedElement", Guid.Parse("bb66c812-3408-4166-99d9-402b798093e1")}, - { "annotatingElement", Guid.Parse("e6d3d799-fd33-49d1-a1c9-ceae0548de18")}, - { "elementId", "element id" }, - { "isImplied", true }, - { "isImpliedIncluded", true}, - { "declaredName", "the name" }, - { "ownedRelatedElement", new List { Guid.Parse("c18450a9-fd96-4dd6-83c4-de5e6e1bd2f7") } }, - { "ownedRelationship", new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") } }, - { "owningRelatedElement", Guid.Parse("df9670d5-36a7-4128-aa96-928432a80e42") }, - { "owningRelationship", Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9") }, - { "declaredShortName", "the shortName" }, - { "source", new List { Guid.Parse("8ba10c06-4c00-4748-ae60-a724ef773e29") }}, - { "target", new List { Guid.Parse("38c03271-5de8-4947-93db-20993d7a9dc2") }} - }; - - var annotatingElement = reader.Read(this.dictionary, DictionaryKind.Complex) as IAnnotation; - - Assert.That(annotatingElement.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(annotatingElement.AliasIds, Is.EqualTo(new List { "alias_1", "alias_2" })); - Assert.That(annotatingElement.ElementId, Is.EqualTo("element id")); - Assert.That(annotatingElement.IsImpliedIncluded, Is.True); - Assert.That(annotatingElement.DeclaredName, Is.EqualTo("the name")); - Assert.That(annotatingElement.OwnedRelationship, Is.EqualTo(new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") })); - Assert.That(annotatingElement.OwningRelationship, Is.EqualTo(Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9"))); - Assert.That(annotatingElement.DeclaredShortName, Is.EqualTo("the shortName")); - - // READ COMPLEX - iteration 2 - - this.dictionary = new Dictionary - { - { "@type", "Annotation" }, - { "@id", Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e") }, - { "aliasIds", new List () }, - { "annotatedElement", Guid.Parse("bb66c812-3408-4166-99d9-402b798093e1")}, - { "annotatingElement", Guid.Parse("e6d3d799-fd33-49d1-a1c9-ceae0548de18")}, - { "elementId", "element id" }, - { "isImplied", true }, - { "isImpliedIncluded", true}, - { "declaredName", null }, - { "ownedRelatedElement", new List () }, - { "ownedRelationship", new List () }, - { "owningRelatedElement", null}, - { "owningRelationship", null }, - { "declaredShortName", null }, - { "source", new List ()}, - { "target", new List ()} - }; - - annotatingElement = reader.Read(this.dictionary, DictionaryKind.Complex) as IAnnotation; - - Assert.That(annotatingElement.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(annotatingElement.AliasIds, Is.EqualTo(new List())); - Assert.That(annotatingElement.ElementId, Is.EqualTo("element id")); - Assert.That(annotatingElement.IsImpliedIncluded, Is.True); - Assert.That(annotatingElement.DeclaredName, Is.Null); - Assert.That(annotatingElement.OwnedRelationship, Is.EqualTo(new List())); - Assert.That(annotatingElement.OwningRelationship, Is.Null); - Assert.That(annotatingElement.DeclaredShortName, Is.Null); - - // READ SIMPLIFIED - iteration 1 - - this.dictionary = new Dictionary - { - { "@type", "Annotation" }, - { "@id", "0b192c18-afa2-44b6-8de2-86e5e6ffa09e" }, - { "aliasIds", new List { "alias_1", "alias_2" } }, - { "annotatedElement", "bb66c812-3408-4166-99d9-402b798093e1"}, - { "annotatingElement", "e6d3d799-fd33-49d1-a1c9-ceae0548de18"}, - { "elementId", "element id" }, - { "isImplied", true }, - { "isImpliedIncluded", true}, - { "declaredName", "the name" }, - { "ownedRelatedElement", new List { "c18450a9-fd96-4dd6-83c4-de5e6e1bd2f7" } }, - { "ownedRelationship", new List { "9006ff06-43fe-4a4e-a4bc-402e82f84dde" } }, - { "owningRelatedElement", "df9670d5-36a7-4128-aa96-928432a80e42" }, - { "owningRelationship", "fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9" }, - { "declaredShortName", "the shortName" }, - { "source", new List { "8ba10c06-4c00-4748-ae60-a724ef773e29" }}, - { "target", new List { "38c03271-5de8-4947-93db-20993d7a9dc2" }} - }; - - annotatingElement = reader.Read(this.dictionary, DictionaryKind.Simplified) as IAnnotation; - - Assert.That(annotatingElement.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(annotatingElement.AliasIds, Is.EqualTo(new List { "alias_1", "alias_2" })); - Assert.That(annotatingElement.ElementId, Is.EqualTo("element id")); - Assert.That(annotatingElement.IsImpliedIncluded, Is.True); - Assert.That(annotatingElement.DeclaredName, Is.EqualTo("the name")); - Assert.That(annotatingElement.OwnedRelationship, Is.EqualTo(new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") })); - Assert.That(annotatingElement.OwningRelationship, Is.EqualTo(Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9"))); - Assert.That(annotatingElement.DeclaredShortName, Is.EqualTo("the shortName")); - - // READ SIMPLIFIED - iteration 2 - - this.dictionary = new Dictionary - { - { "@type", "Annotation" }, - { "@id", "0b192c18-afa2-44b6-8de2-86e5e6ffa09e" }, - { "aliasIds", new List () }, - { "annotatedElement", "bb66c812-3408-4166-99d9-402b798093e1"}, - { "annotatingElement", "e6d3d799-fd33-49d1-a1c9-ceae0548de18"}, - { "elementId", "element id" }, - { "isImplied", true }, - { "isImpliedIncluded", true}, - { "declaredName", null }, - { "ownedRelatedElement", new List () }, - { "ownedRelationship", new List () }, - { "owningRelatedElement", null}, - { "owningRelationship", null }, - { "declaredShortName", null }, - { "source", new List ()}, - { "target", new List ()} - }; - - annotatingElement = reader.Read(this.dictionary, DictionaryKind.Simplified) as IAnnotation; - - Assert.That(annotatingElement.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(annotatingElement.AliasIds, Is.EqualTo(new List())); - Assert.That(annotatingElement.ElementId, Is.EqualTo("element id")); - Assert.That(annotatingElement.IsImpliedIncluded, Is.True); - Assert.That(annotatingElement.DeclaredName, Is.Null); - Assert.That(annotatingElement.OwnedRelationship, Is.EqualTo(new List())); - Assert.That(annotatingElement.OwningRelationship, Is.Null); - Assert.That(annotatingElement.DeclaredShortName, Is.Null); - } - - [Test] - public void Verify_that_When_dictionary_is_read_instance_of_IComment_is_returned() - { - // READ COMPLEX - iteration 1 - - this.dictionary = new Dictionary - { - { "@type", "Comment" }, - { "@id", Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e") }, - { "aliasIds", new List { "alias_1", "alias_2" } }, - { "annotation", new List { Guid.Parse("c18450a9-fd96-4dd6-83c4-de5e6e1bd2f7") } }, - { "body", "the body" }, - { "elementId", "element id" }, - { "isImpliedIncluded", true }, - { "locale", "the locale" }, - { "declaredName", "the name" }, - { "ownedRelationship", new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") } }, - { "owningRelationship", Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9") }, - { "declaredShortName", "the shortName" }, - }; - - var comment = reader.Read(this.dictionary, DictionaryKind.Complex) as IComment; - - Assert.That(comment.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(comment.AliasIds, Is.EqualTo(new List { "alias_1", "alias_2" })); - Assert.That(comment.Body, Is.EqualTo("the body")); - Assert.That(comment.ElementId, Is.EqualTo("element id")); - Assert.That(comment.IsImpliedIncluded, Is.True); - Assert.That(comment.Locale, Is.EqualTo("the locale")); - Assert.That(comment.DeclaredName, Is.EqualTo("the name")); - Assert.That(comment.OwnedRelationship, Is.EqualTo(new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") })); - Assert.That(comment.OwningRelationship, Is.EqualTo(Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9"))); - Assert.That(comment.DeclaredShortName, Is.EqualTo("the shortName")); - - // READ COMPLEX - iteration 2 - - this.dictionary = new Dictionary - { - { "@type", "Comment" }, - { "@id", Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e") }, - { "aliasIds", new List () }, - { "annotation", new List () }, - { "body", "the body" }, - { "elementId", "element id" }, - { "isImpliedIncluded", true }, - { "locale", null }, - { "declaredName", null }, - { "ownedRelationship", new List () }, - { "owningRelationship", null }, - { "declaredShortName", null }, - }; - - comment = reader.Read(this.dictionary, DictionaryKind.Complex) as IComment; - - Assert.That(comment.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(comment.AliasIds, Is.EqualTo(new List() )); - Assert.That(comment.Body, Is.EqualTo("the body")); - Assert.That(comment.ElementId, Is.EqualTo("element id")); - Assert.That(comment.IsImpliedIncluded, Is.True); - Assert.That(comment.Locale, Is.Null); - Assert.That(comment.DeclaredName, Is.Null); - Assert.That(comment.OwnedRelationship, Is.EqualTo(new List ())); - Assert.That(comment.OwningRelationship, Is.Null ); - Assert.That(comment.DeclaredShortName, Is.Null); - - // READ SIMPLIFIED - iteration 1 - - this.dictionary = new Dictionary - { - { "@type", "Comment" }, - { "@id", "0b192c18-afa2-44b6-8de2-86e5e6ffa09e" }, - { "aliasIds", new List { "alias_1", "alias_2" } }, - { "annotation", new List { "c18450a9-fd96-4dd6-83c4-de5e6e1bd2f7" } }, - { "body", "the body" }, - { "elementId", "element id" }, - { "isImpliedIncluded", true }, - { "locale", "the locale" }, - { "declaredName", "the name" }, - { "ownedRelationship", new List { "9006ff06-43fe-4a4e-a4bc-402e82f84dde" } }, - { "owningRelationship", "fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9" }, - { "declaredShortName", "the shortName" }, - }; - - comment = reader.Read(this.dictionary, DictionaryKind.Simplified) as IComment; - - Assert.That(comment.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(comment.AliasIds, Is.EqualTo(new List { "alias_1", "alias_2" })); - Assert.That(comment.Body, Is.EqualTo("the body")); - Assert.That(comment.ElementId, Is.EqualTo("element id")); - Assert.That(comment.IsImpliedIncluded, Is.True); - Assert.That(comment.Locale, Is.EqualTo("the locale")); - Assert.That(comment.DeclaredName, Is.EqualTo("the name")); - Assert.That(comment.OwnedRelationship, Is.EqualTo(new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") })); - Assert.That(comment.OwningRelationship, Is.EqualTo(Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9"))); - Assert.That(comment.DeclaredShortName, Is.EqualTo("the shortName")); - - // READ SIMPLIFIED - iteration 2 - - this.dictionary = new Dictionary - { - { "@type", "Comment" }, - { "@id", "0b192c18-afa2-44b6-8de2-86e5e6ffa09e" }, - { "aliasIds", new List () }, - { "annotation", new List () }, - { "body", "the body" }, - { "elementId", "element id" }, - { "isImpliedIncluded", true }, - { "locale", null }, - { "declaredName", null }, - { "ownedRelationship", new List () }, - { "owningRelationship", null }, - { "declaredShortName", null }, - }; - - comment = reader.Read(this.dictionary, DictionaryKind.Simplified) as IComment; - - Assert.That(comment.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(comment.AliasIds, Is.EqualTo(new List())); - Assert.That(comment.Body, Is.EqualTo("the body")); - Assert.That(comment.ElementId, Is.EqualTo("element id")); - Assert.That(comment.IsImpliedIncluded, Is.True); - Assert.That(comment.Locale, Is.Null); - Assert.That(comment.DeclaredName, Is.Null); - Assert.That(comment.OwnedRelationship, Is.EqualTo(new List())); - Assert.That(comment.OwningRelationship, Is.Null); - Assert.That(comment.DeclaredShortName, Is.Null); - } - - [Test] - public void Verify_that_When_dictionary_is_read_instance_of_ILiteralInteger_is_returned() - { - // READ COMPLEX - iteration 1 - - this.dictionary = new Dictionary - { - { "@type", "LiteralInteger" }, - { "@id", Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e") }, - { "aliasIds", new List { "alias_1", "alias_2" } }, - { "direction", FeatureDirectionKind.In }, - { "elementId", "element id" }, - { "isAbstract", true }, - { "isComposite", true }, - { "isConstant", true }, - { "isDerived", true }, - { "isEnd", true }, - { "isImpliedIncluded", true }, - { "isOrdered", true }, - { "isPortion", true }, - { "isReadOnly", true }, - { "isSufficient", true }, - { "isUnique", true }, - { "isVariable", true }, - { "declaredName", "the name" }, - { "ownedRelationship", new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") } }, - { "owningRelationship", Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9") }, - { "declaredShortName", "the shortName" }, - { "value", 123 }, - }; - - var literalInteger = reader.Read(this.dictionary, DictionaryKind.Complex) as ILiteralInteger; - - Assert.That(literalInteger.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(literalInteger.AliasIds, Is.EqualTo(new List { "alias_1", "alias_2" })); - Assert.That(literalInteger.ElementId, Is.EqualTo("element id")); - Assert.That(literalInteger.IsImpliedIncluded, Is.True); - Assert.That(literalInteger.DeclaredName, Is.EqualTo("the name")); - Assert.That(literalInteger.OwnedRelationship, Is.EqualTo(new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") })); - Assert.That(literalInteger.OwningRelationship, Is.EqualTo(Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9"))); - Assert.That(literalInteger.DeclaredShortName, Is.EqualTo("the shortName")); - Assert.That(literalInteger.Value, Is.EqualTo(123)); - } - - [Test] - public void Verify_that_When_dictionary_is_read_instance_of_ILiteralRational_is_returned() - { - // READ COMPLEX - iteration 1 - - this.dictionary = new Dictionary - { - { "@type", "LiteralRational" }, - { "@id", Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e") }, - { "aliasIds", new List { "alias_1", "alias_2" } }, - { "direction", FeatureDirectionKind.In }, - { "elementId", "element id" }, - { "isAbstract", true }, - { "isComposite", true }, - { "isConstant", true }, - { "isDerived", true }, - { "isEnd", true }, - { "isImpliedIncluded", true }, - { "isOrdered", true }, - { "isPortion", true }, - { "isReadOnly", true }, - { "isSufficient", true }, - { "isUnique", true }, - { "isVariable", true }, - { "declaredName", "the name" }, - { "ownedRelationship", new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") } }, - { "owningRelationship", Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9") }, - { "declaredShortName", "the shortName" }, - { "value", 123d }, - }; - - var literalRational = reader.Read(this.dictionary, DictionaryKind.Complex) as ILiteralRational; - - Assert.That(literalRational.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(literalRational.AliasIds, Is.EqualTo(new List { "alias_1", "alias_2" })); - Assert.That(literalRational.ElementId, Is.EqualTo("element id")); - Assert.That(literalRational.IsImpliedIncluded, Is.True); - Assert.That(literalRational.DeclaredName, Is.EqualTo("the name")); - Assert.That(literalRational.OwnedRelationship, Is.EqualTo(new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") })); - Assert.That(literalRational.OwningRelationship, Is.EqualTo(Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9"))); - Assert.That(literalRational.DeclaredShortName, Is.EqualTo("the shortName")); - Assert.That(literalRational.Value, Is.EqualTo(123d)); - } - - [Test] - public void Verify_that_When_dictionary_is_read_instance_of_INamespaceImport_is_returned() - { - // READ COMPLEX - iteration 1 - - this.dictionary = new Dictionary - { - { "@type", "NamespaceImport" }, - { "@id", Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e") }, - { "aliasIds", new List { "alias_1", "alias_2" } }, - { "elementId", "element id" }, - { "importedNamespace", Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9") }, - { "isImplied", true }, - { "isImpliedIncluded", true }, - { "isImportAll", true }, - { "isRecursive", true }, - { "declaredName", "the name" }, - { "ownedRelatedElement", new List { Guid.Parse("c18450a9-fd96-4dd6-83c4-de5e6e1bd2f7") } }, - { "ownedRelationship", new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") } }, - { "owningRelatedElement", Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84ddf") }, - { "owningRelationship", Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9") }, - { "declaredShortName", "the shortName" }, - { "source", new List { "8ba10c06-4c00-4748-ae60-a724ef773e29" }}, - { "target", new List { "38c03271-5de8-4947-93db-20993d7a9dc2" }}, - { "visibility", VisibilityKind.Public } - }; - - var namespaceImport = reader.Read(this.dictionary, DictionaryKind.Complex) as INamespaceImport; - - Assert.That(namespaceImport.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(namespaceImport.AliasIds, Is.EqualTo(new List { "alias_1", "alias_2" })); - Assert.That(namespaceImport.ElementId, Is.EqualTo("element id")); - Assert.That(namespaceImport.IsImpliedIncluded, Is.True); - Assert.That(namespaceImport.DeclaredName, Is.EqualTo("the name")); - Assert.That(namespaceImport.OwnedRelationship, Is.EqualTo(new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") })); - Assert.That(namespaceImport.OwningRelationship, Is.EqualTo(Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9"))); - Assert.That(namespaceImport.DeclaredShortName, Is.EqualTo("the shortName")); - Assert.That(namespaceImport.Visibility, Is.EqualTo(VisibilityKind.Public)); - - // READ SIMPLIFIED - iteration 1 - - this.dictionary = new Dictionary - { - { "@type", "NamespaceImport" }, - { "@id", "0b192c18-afa2-44b6-8de2-86e5e6ffa09e" }, - { "aliasIds", new List { "alias_1", "alias_2" } }, - { "elementId", "element id" }, - { "importedNamespace", "fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9" }, - { "isImplied", true }, - { "isImpliedIncluded", true }, - { "isImportAll", true }, - { "isRecursive", true }, - { "declaredName", "the name" }, - { "ownedRelatedElement", new List { "c18450a9-fd96-4dd6-83c4-de5e6e1bd2f7" } }, - { "ownedRelationship", new List { "9006ff06-43fe-4a4e-a4bc-402e82f84dde" } }, - { "owningRelatedElement", "9006ff06-43fe-4a4e-a4bc-402e82f84ddf" }, - { "owningRelationship", "fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9" }, - { "declaredShortName", "the shortName" }, - { "source", new List { "8ba10c06-4c00-4748-ae60-a724ef773e29" }}, - { "target", new List { "38c03271-5de8-4947-93db-20993d7a9dc2" }}, - { "visibility", "Public" } - }; - - namespaceImport = reader.Read(this.dictionary, DictionaryKind.Simplified) as INamespaceImport; - - Assert.That(namespaceImport.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(namespaceImport.AliasIds, Is.EqualTo(new List { "alias_1", "alias_2" })); - Assert.That(namespaceImport.ElementId, Is.EqualTo("element id")); - Assert.That(namespaceImport.IsImpliedIncluded, Is.True); - Assert.That(namespaceImport.DeclaredName, Is.EqualTo("the name")); - Assert.That(namespaceImport.OwnedRelationship, Is.EqualTo(new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") })); - Assert.That(namespaceImport.OwningRelationship, Is.EqualTo(Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9"))); - Assert.That(namespaceImport.DeclaredShortName, Is.EqualTo("the shortName")); - Assert.That(namespaceImport.Visibility, Is.EqualTo(VisibilityKind.Public)); - } - - [Test] - public void Verify_that_When_dictionary_is_read_instance_of_IAcceptActionUsage_is_returned() - { - // READ COMPLEX - iteration 1 - - this.dictionary = new Dictionary - { - { "@type", "AcceptActionUsage" }, - { "@id", Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e") }, - { "aliasIds", new List { "alias_1", "alias_2" } }, - { "direction", FeatureDirectionKind.In }, - { "elementId", "element id" }, - { "isAbstract", true }, - { "isComposite", true }, - { "isConstant", true}, - { "isDerived", true }, - { "isEnd", true }, - { "isImpliedIncluded", true }, - { "isIndividual", true }, - { "isOrdered", true }, - { "isPortion", true }, - { "isReadOnly", true }, - { "isSufficient", true }, - { "isUnique", true }, - { "isVariable", true}, - { "isVariation", true }, - { "declaredName", "the name" }, - { "ownedRelationship", new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") } }, - { "owningRelationship", Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9") }, - { "portionKind", PortionKind.Snapshot }, - { "declaredShortName", "the shortName" } - }; - - var acceptActionUsage = reader.Read(this.dictionary, DictionaryKind.Complex) as IAcceptActionUsage; - - Assert.That(acceptActionUsage.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(acceptActionUsage.AliasIds, Is.EqualTo(new List { "alias_1", "alias_2" })); - Assert.That(acceptActionUsage.Direction, Is.EqualTo(FeatureDirectionKind.In)); - Assert.That(acceptActionUsage.ElementId, Is.EqualTo("element id")); - Assert.That(acceptActionUsage.IsAbstract, Is.True); - Assert.That(acceptActionUsage.IsComposite, Is.True); - Assert.That(acceptActionUsage.IsConstant, Is.True); - Assert.That(acceptActionUsage.IsDerived, Is.True); - Assert.That(acceptActionUsage.IsEnd, Is.True); - Assert.That(acceptActionUsage.IsImpliedIncluded, Is.True); - Assert.That(acceptActionUsage.IsIndividual, Is.True); - Assert.That(acceptActionUsage.IsOrdered, Is.True); - Assert.That(acceptActionUsage.IsPortion, Is.True); - Assert.That(acceptActionUsage.IsSufficient, Is.True); - Assert.That(acceptActionUsage.IsUnique, Is.True); - Assert.That(acceptActionUsage.IsVariable, Is.True); - Assert.That(acceptActionUsage.IsVariation, Is.True); - Assert.That(acceptActionUsage.DeclaredName, Is.EqualTo("the name")); - Assert.That(acceptActionUsage.OwnedRelationship, Is.EqualTo(new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") })); - Assert.That(acceptActionUsage.OwningRelationship, Is.EqualTo(Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9"))); - Assert.That(acceptActionUsage.PortionKind, Is.EqualTo(PortionKind.Snapshot)); - Assert.That(acceptActionUsage.DeclaredShortName, Is.EqualTo("the shortName")); - - // READ COMPLEX - iteration 2 - - this.dictionary = new Dictionary - { - { "@type", "AcceptActionUsage" }, - { "@id", Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e") }, - { "aliasIds", new List() }, - { "direction", null }, - { "elementId", "element id" }, - { "isAbstract", true }, - { "isComposite", true }, - { "isConstant", true}, - { "isDerived", true }, - { "isEnd", true }, - { "isImpliedIncluded", true }, - { "isIndividual", true }, - { "isOrdered", true }, - { "isPortion", true }, - { "isReadOnly", true }, - { "isSufficient", true }, - { "isUnique", true }, - { "isVariable", true}, - { "isVariation", true }, - { "declaredName", null }, - { "ownedRelationship", new List() }, - { "owningRelationship", null }, - { "portionKind", null }, - { "declaredShortName", null } - }; - - acceptActionUsage = reader.Read(this.dictionary, DictionaryKind.Complex) as IAcceptActionUsage; - - Assert.That(acceptActionUsage.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(acceptActionUsage.AliasIds, Is.EqualTo(new List() )); - Assert.That(acceptActionUsage.Direction, Is.Null); - Assert.That(acceptActionUsage.ElementId, Is.EqualTo("element id")); - Assert.That(acceptActionUsage.IsAbstract, Is.True); - Assert.That(acceptActionUsage.IsComposite, Is.True); - Assert.That(acceptActionUsage.IsConstant, Is.True); - Assert.That(acceptActionUsage.IsDerived, Is.True); - Assert.That(acceptActionUsage.IsEnd, Is.True); - Assert.That(acceptActionUsage.IsImpliedIncluded, Is.True); - Assert.That(acceptActionUsage.IsIndividual, Is.True); - Assert.That(acceptActionUsage.IsOrdered, Is.True); - Assert.That(acceptActionUsage.IsPortion, Is.True); - Assert.That(acceptActionUsage.IsSufficient, Is.True); - Assert.That(acceptActionUsage.IsUnique, Is.True); - Assert.That(acceptActionUsage.IsVariable, Is.True); - Assert.That(acceptActionUsage.IsVariation, Is.True); - Assert.That(acceptActionUsage.DeclaredName, Is.Null); - Assert.That(acceptActionUsage.OwnedRelationship, Is.EqualTo(new List())); - Assert.That(acceptActionUsage.OwningRelationship, Is.Null); - Assert.That(acceptActionUsage.PortionKind, Is.Null); - Assert.That(acceptActionUsage.DeclaredShortName, Is.Null); - - // READ SIMPLIFIED - iteration 1 - - this.dictionary = new Dictionary - { - { "@type", "AcceptActionUsage" }, - { "@id", "0b192c18-afa2-44b6-8de2-86e5e6ffa09e" }, - { "aliasIds", new List { "alias_1", "alias_2" } }, - { "direction", "In"}, - { "elementId", "element id" }, - { "isAbstract", true }, - { "isComposite", true }, - { "isConstant", true }, - { "isDerived", true }, - { "isEnd", true }, - { "isImpliedIncluded", true }, - { "isIndividual", true }, - { "isOrdered", true }, - { "isPortion", true }, - { "isReadOnly", true }, - { "isSufficient", true }, - { "isUnique", true }, - { "isVariable", true }, - { "isVariation", true }, - { "declaredName", "the name" }, - { "ownedRelationship", new List { "9006ff06-43fe-4a4e-a4bc-402e82f84dde" } }, - { "owningRelationship", "fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9" }, - { "portionKind", null }, - { "declaredShortName", "the shortName" }, - }; - - acceptActionUsage = reader.Read(this.dictionary, DictionaryKind.Simplified) as IAcceptActionUsage; - - Assert.That(acceptActionUsage.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(acceptActionUsage.AliasIds, Is.EqualTo(new List { "alias_1", "alias_2" })); - Assert.That(acceptActionUsage.Direction, Is.EqualTo(FeatureDirectionKind.In)); - Assert.That(acceptActionUsage.ElementId, Is.EqualTo("element id")); - Assert.That(acceptActionUsage.IsAbstract, Is.True); - Assert.That(acceptActionUsage.IsComposite, Is.True); - Assert.That(acceptActionUsage.IsConstant, Is.True); - Assert.That(acceptActionUsage.IsDerived, Is.True); - Assert.That(acceptActionUsage.IsEnd, Is.True); - Assert.That(acceptActionUsage.IsImpliedIncluded, Is.True); - Assert.That(acceptActionUsage.IsIndividual, Is.True); - Assert.That(acceptActionUsage.IsOrdered, Is.True); - Assert.That(acceptActionUsage.IsPortion, Is.True); - Assert.That(acceptActionUsage.IsSufficient, Is.True); - Assert.That(acceptActionUsage.IsUnique, Is.True); - Assert.That(acceptActionUsage.IsVariable, Is.True); - Assert.That(acceptActionUsage.IsVariation, Is.True); - Assert.That(acceptActionUsage.DeclaredName, Is.EqualTo("the name")); - Assert.That(acceptActionUsage.OwnedRelationship, Is.EqualTo(new List { Guid.Parse("9006ff06-43fe-4a4e-a4bc-402e82f84dde") })); - Assert.That(acceptActionUsage.OwningRelationship, Is.EqualTo(Guid.Parse("fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9"))); - Assert.That(acceptActionUsage.PortionKind, Is.Null); - Assert.That(acceptActionUsage.DeclaredShortName, Is.EqualTo("the shortName")); - - // READ SIMPLIFIED - iteration 2 - - this.dictionary = new Dictionary - { - { "@type", "AcceptActionUsage" }, - { "@id", Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e") }, - { "aliasIds", new List() }, - { "direction", null }, - { "elementId", "element id" }, - { "isAbstract", true }, - { "isComposite", true }, - { "isConstant", true }, - { "isDerived", true }, - { "isEnd", true }, - { "isImpliedIncluded", true }, - { "isIndividual", true }, - { "isOrdered", true }, - { "isPortion", true }, - { "isReadOnly", true }, - { "isSufficient", true }, - { "isUnique", true }, - { "isVariable", true }, - { "isVariation", true }, - { "declaredName", null }, - { "ownedRelationship", new List() }, - { "owningRelationship", null }, - { "portionKind", null }, - { "declaredShortName", null } - }; - - acceptActionUsage = reader.Read(this.dictionary, DictionaryKind.Simplified) as IAcceptActionUsage; - - Assert.That(acceptActionUsage.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e"))); - Assert.That(acceptActionUsage.AliasIds, Is.EqualTo(new List() )); - Assert.That(acceptActionUsage.Direction, Is.Null); - Assert.That(acceptActionUsage.ElementId, Is.EqualTo("element id")); - Assert.That(acceptActionUsage.IsAbstract, Is.True); - Assert.That(acceptActionUsage.IsComposite, Is.True); - Assert.That(acceptActionUsage.IsConstant, Is.True); - Assert.That(acceptActionUsage.IsDerived, Is.True); - Assert.That(acceptActionUsage.IsEnd, Is.True); - Assert.That(acceptActionUsage.IsImpliedIncluded, Is.True); - Assert.That(acceptActionUsage.IsIndividual, Is.True); - Assert.That(acceptActionUsage.IsOrdered, Is.True); - Assert.That(acceptActionUsage.IsPortion, Is.True); - Assert.That(acceptActionUsage.IsSufficient, Is.True); - Assert.That(acceptActionUsage.IsUnique, Is.True); - Assert.That(acceptActionUsage.IsVariable, Is.True); - Assert.That(acceptActionUsage.IsVariation, Is.True); - Assert.That(acceptActionUsage.DeclaredName, Is.Null); - Assert.That(acceptActionUsage.OwnedRelationship, Is.EqualTo(new List())); - Assert.That(acceptActionUsage.OwningRelationship, Is.Null); - Assert.That(acceptActionUsage.PortionKind, Is.Null); - Assert.That(acceptActionUsage.DeclaredShortName, Is.Null); - } - - [Test] - public void Verify_that_when_an_unsupported_type_is_provided_an_Exception_is_thrown() - { - var dictionary = new Dictionary - { - { "@type", "TestClass" }, - { "@id", Guid.NewGuid() } - }; - - Assert.That(() => this.reader.Read(dictionary, DictionaryKind.Simplified), Throws.Exception.TypeOf()); - Assert.That(() => this.reader.Read(dictionary, DictionaryKind.Complex), Throws.Exception.TypeOf()); - } - } -} diff --git a/SysML2.NET.Serializer.Dictionary.Tests/SysML2.NET.Serializer.Dictionary.Tests.csproj b/SysML2.NET.Serializer.Dictionary.Tests/SysML2.NET.Serializer.Dictionary.Tests.csproj deleted file mode 100644 index 81be4c61f..000000000 --- a/SysML2.NET.Serializer.Dictionary.Tests/SysML2.NET.Serializer.Dictionary.Tests.csproj +++ /dev/null @@ -1,41 +0,0 @@ - - - - net9.0 - 12.0 - Starion Group S.A. - Sam Gerene - Nunit test suite for the SysML2.NET.Serializer.Dictionary library - Copyright © Starion Group S.A. - Apache-2.0 - https://github.com/STARIONGROUP/SysML2.NET.git - Git - false - disable - false - true - en-US - - - - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - diff --git a/SysML2.NET.Serializer.Dictionary.Tests/WriterTestFixture.cs b/SysML2.NET.Serializer.Dictionary.Tests/WriterTestFixture.cs deleted file mode 100644 index 2330ce3c1..000000000 --- a/SysML2.NET.Serializer.Dictionary.Tests/WriterTestFixture.cs +++ /dev/null @@ -1,171 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Tests -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using NUnit.Framework; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - using SysML2.NET.Serializer.Dictionary; - - /// - /// Suite of tests for the class - /// - [TestFixture] - public class WriterTestFixture - { - private IWriter writer; - - private PartDefinition partDefinition; - - private PartDefinition partDefinitionWithNullProperties; - - [SetUp] - public void SetUp() - { - this.writer = new Writer(); - - this.CreateTestData(); - } - - private void CreateTestData() - { - this.partDefinition = new PartDefinition - { - Id = Guid.NewGuid(), - IsIndividual = true, - IsVariation = false, - IsAbstract = false, - IsSufficient = false, - AliasIds = new List { "PartDefinition:Alias_1", "PartDefinition:Alias_2" }, - DeclaredName = "PartDefinition:DeclaredName", - ElementId = "PartDefinition:ElementId", - OwnedRelationship = new List { Guid.NewGuid() }, - OwningRelationship = Guid.NewGuid(), - DeclaredShortName = "PartDefinition:DeclaredShortName" - }; - - this.partDefinitionWithNullProperties = new PartDefinition - { - Id = Guid.NewGuid(), - IsIndividual = true, - IsVariation = false, - IsAbstract = false, - IsSufficient = false, - AliasIds = new List(), - DeclaredName = null, - ElementId = "PartDefinition:ElementId", - OwnedRelationship = new List(), - OwningRelationship = Guid.NewGuid(), - DeclaredShortName = null - }; - } - - [Test] - public void Verify_that_the_writer_returns_a_dictionary_upon_write_Simplified_single_dataItem() - { - var dictionary = this.writer.Write(this.partDefinition, DictionaryKind.Simplified); - - Assert.That(dictionary, Is.Not.Null); - - dictionary.TryGetValue("@type", out var @type); - Assert.That(@type, Is.EqualTo("PartDefinition")); - - dictionary.TryGetValue("@id", out var id); - Assert.That(id, Is.EqualTo(this.partDefinition.Id.ToString())); - - dictionary.TryGetValue("aliasIds", out var aliasIds); - Assert.That(aliasIds, Is.EqualTo(this.partDefinition.AliasIds)); - - dictionary.TryGetValue("elementId", out var elementId); - Assert.That(elementId, Is.EqualTo(this.partDefinition.ElementId)); - - dictionary.TryGetValue("declaredName", out var name); - Assert.That(name, Is.EqualTo(this.partDefinition.DeclaredName)); - - dictionary.TryGetValue("ownedRelationship", out var ownedRelationship); - Assert.That(ownedRelationship, Is.EqualTo($"[ {string.Join(",", this.partDefinition.OwnedRelationship)} ]")); - - dictionary.TryGetValue("owningRelationship", out var owningRelationship); - Assert.That(owningRelationship, Is.EqualTo(this.partDefinition.OwningRelationship.ToString())); - } - - [Test] - public void Verify_that_the_writer_returns_a_dictionary_upon_write_Complex_single_dataItem() - { - var dictionary = this.writer.Write(this.partDefinition, DictionaryKind.Complex); - - Assert.That(dictionary, Is.Not.Null); - - dictionary.TryGetValue("@type", out var @type); - Assert.That(@type, Is.EqualTo("PartDefinition")); - - dictionary.TryGetValue("@id", out var id); - Assert.That(id, Is.EqualTo(this.partDefinition.Id)); - - dictionary.TryGetValue("aliasIds", out var aliasIds); - Assert.That(aliasIds, Is.EqualTo(this.partDefinition.AliasIds)); - - dictionary.TryGetValue("elementId", out var elementId); - Assert.That(elementId, Is.EqualTo(this.partDefinition.ElementId)); - - dictionary.TryGetValue("declaredName", out var name); - Assert.That(name, Is.EqualTo(this.partDefinition.DeclaredName)); - - dictionary.TryGetValue("ownedRelationship", out var ownedRelationship); - Assert.That(ownedRelationship, Is.EqualTo(this.partDefinition.OwnedRelationship)); - - dictionary.TryGetValue("owningRelationship", out var owningRelationship); - Assert.That(owningRelationship, Is.EqualTo(this.partDefinition.OwningRelationship)); - } - - [Test] - public void Verify_that_the_writer_returns_a_list_of_dictionary_upon_write_multiple_dataItems() - { - var dataItems = new List { this.partDefinition, this.partDefinitionWithNullProperties }; - - var dictionaries = this.writer.Write(dataItems, DictionaryKind.Simplified); - - Assert.That(dictionaries.Count(), Is.EqualTo(2)); - - dictionaries = this.writer.Write(dataItems, DictionaryKind.Complex); - - Assert.That(dictionaries.Count(), Is.EqualTo(2)); - } - - [Test] - public void Verify_that_when_an_unsupported_type_is_provided_an_Exception_is_thrown() - { - var testClass = new TestClass(); - - Assert.That(() => this.writer.Write(testClass, DictionaryKind.Simplified), Throws.Exception.TypeOf()); - } - - private class TestClass : IData - { - public Guid Id { get; set; } - } - } -} diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AcceptActionUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AcceptActionUsageDictionaryReader.cs deleted file mode 100644 index 03330b56c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AcceptActionUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class AcceptActionUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IAcceptActionUsage ReadSimplified(Dictionary dictionary) - { - var acceptActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - acceptActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - acceptActionUsageInstance.DeclaredName = declaredNameFeature; - acceptActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - acceptActionUsageInstance.Direction = directionFeature; - acceptActionUsageInstance.ElementId = elementIdFeature; - acceptActionUsageInstance.IsAbstract = isAbstractFeature; - acceptActionUsageInstance.IsComposite = isCompositeFeature; - acceptActionUsageInstance.IsConstant = isConstantFeature; - acceptActionUsageInstance.IsDerived = isDerivedFeature; - acceptActionUsageInstance.IsEnd = isEndFeature; - acceptActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - acceptActionUsageInstance.IsIndividual = isIndividualFeature; - acceptActionUsageInstance.IsOrdered = isOrderedFeature; - acceptActionUsageInstance.IsPortion = isPortionFeature; - acceptActionUsageInstance.IsSufficient = isSufficientFeature; - acceptActionUsageInstance.IsUnique = isUniqueFeature; - acceptActionUsageInstance.IsVariable = isVariableFeature; - acceptActionUsageInstance.IsVariation = isVariationFeature; - acceptActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - acceptActionUsageInstance.OwningRelationship = owningRelationshipFeature; - acceptActionUsageInstance.PortionKind = portionKindFeature; - - return acceptActionUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IAcceptActionUsage ReadComplex(Dictionary dictionary) - { - var acceptActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - acceptActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - acceptActionUsageInstance.DeclaredName = declaredNameFeature; - acceptActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - acceptActionUsageInstance.Direction = directionFeature; - acceptActionUsageInstance.ElementId = elementIdFeature; - acceptActionUsageInstance.IsAbstract = isAbstractFeature; - acceptActionUsageInstance.IsComposite = isCompositeFeature; - acceptActionUsageInstance.IsConstant = isConstantFeature; - acceptActionUsageInstance.IsDerived = isDerivedFeature; - acceptActionUsageInstance.IsEnd = isEndFeature; - acceptActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - acceptActionUsageInstance.IsIndividual = isIndividualFeature; - acceptActionUsageInstance.IsOrdered = isOrderedFeature; - acceptActionUsageInstance.IsPortion = isPortionFeature; - acceptActionUsageInstance.IsSufficient = isSufficientFeature; - acceptActionUsageInstance.IsUnique = isUniqueFeature; - acceptActionUsageInstance.IsVariable = isVariableFeature; - acceptActionUsageInstance.IsVariation = isVariationFeature; - acceptActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - acceptActionUsageInstance.OwningRelationship = owningRelationshipFeature; - acceptActionUsageInstance.PortionKind = portionKindFeature; - - return acceptActionUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAcceptActionUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "AcceptActionUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a AcceptActionUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a AcceptActionUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var acceptActionUsageInstance = new SysML2.NET.Core.DTO.AcceptActionUsage - { - Id = id - }; - - return acceptActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ActionDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ActionDefinitionDictionaryReader.cs deleted file mode 100644 index ed4661b82..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ActionDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ActionDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IActionDefinition ReadSimplified(Dictionary dictionary) - { - var actionDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - actionDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - actionDefinitionInstance.DeclaredName = declaredNameFeature; - actionDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - actionDefinitionInstance.ElementId = elementIdFeature; - actionDefinitionInstance.IsAbstract = isAbstractFeature; - actionDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - actionDefinitionInstance.IsIndividual = isIndividualFeature; - actionDefinitionInstance.IsSufficient = isSufficientFeature; - actionDefinitionInstance.IsVariation = isVariationFeature; - actionDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - actionDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return actionDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IActionDefinition ReadComplex(Dictionary dictionary) - { - var actionDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - actionDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - actionDefinitionInstance.DeclaredName = declaredNameFeature; - actionDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - actionDefinitionInstance.ElementId = elementIdFeature; - actionDefinitionInstance.IsAbstract = isAbstractFeature; - actionDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - actionDefinitionInstance.IsIndividual = isIndividualFeature; - actionDefinitionInstance.IsSufficient = isSufficientFeature; - actionDefinitionInstance.IsVariation = isVariationFeature; - actionDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - actionDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return actionDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IActionDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ActionDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ActionDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ActionDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var actionDefinitionInstance = new SysML2.NET.Core.DTO.ActionDefinition - { - Id = id - }; - - return actionDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ActionUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ActionUsageDictionaryReader.cs deleted file mode 100644 index d5489f5e8..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ActionUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ActionUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IActionUsage ReadSimplified(Dictionary dictionary) - { - var actionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - actionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - actionUsageInstance.DeclaredName = declaredNameFeature; - actionUsageInstance.DeclaredShortName = declaredShortNameFeature; - actionUsageInstance.Direction = directionFeature; - actionUsageInstance.ElementId = elementIdFeature; - actionUsageInstance.IsAbstract = isAbstractFeature; - actionUsageInstance.IsComposite = isCompositeFeature; - actionUsageInstance.IsConstant = isConstantFeature; - actionUsageInstance.IsDerived = isDerivedFeature; - actionUsageInstance.IsEnd = isEndFeature; - actionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - actionUsageInstance.IsIndividual = isIndividualFeature; - actionUsageInstance.IsOrdered = isOrderedFeature; - actionUsageInstance.IsPortion = isPortionFeature; - actionUsageInstance.IsSufficient = isSufficientFeature; - actionUsageInstance.IsUnique = isUniqueFeature; - actionUsageInstance.IsVariable = isVariableFeature; - actionUsageInstance.IsVariation = isVariationFeature; - actionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - actionUsageInstance.OwningRelationship = owningRelationshipFeature; - actionUsageInstance.PortionKind = portionKindFeature; - - return actionUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IActionUsage ReadComplex(Dictionary dictionary) - { - var actionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - actionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - actionUsageInstance.DeclaredName = declaredNameFeature; - actionUsageInstance.DeclaredShortName = declaredShortNameFeature; - actionUsageInstance.Direction = directionFeature; - actionUsageInstance.ElementId = elementIdFeature; - actionUsageInstance.IsAbstract = isAbstractFeature; - actionUsageInstance.IsComposite = isCompositeFeature; - actionUsageInstance.IsConstant = isConstantFeature; - actionUsageInstance.IsDerived = isDerivedFeature; - actionUsageInstance.IsEnd = isEndFeature; - actionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - actionUsageInstance.IsIndividual = isIndividualFeature; - actionUsageInstance.IsOrdered = isOrderedFeature; - actionUsageInstance.IsPortion = isPortionFeature; - actionUsageInstance.IsSufficient = isSufficientFeature; - actionUsageInstance.IsUnique = isUniqueFeature; - actionUsageInstance.IsVariable = isVariableFeature; - actionUsageInstance.IsVariation = isVariationFeature; - actionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - actionUsageInstance.OwningRelationship = owningRelationshipFeature; - actionUsageInstance.PortionKind = portionKindFeature; - - return actionUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IActionUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ActionUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ActionUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ActionUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var actionUsageInstance = new SysML2.NET.Core.DTO.ActionUsage - { - Id = id - }; - - return actionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ActorMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ActorMembershipDictionaryReader.cs deleted file mode 100644 index 1a5cb0ea1..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ActorMembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ActorMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IActorMembership ReadSimplified(Dictionary dictionary) - { - var actorMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - actorMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - actorMembershipInstance.DeclaredName = declaredNameFeature; - actorMembershipInstance.DeclaredShortName = declaredShortNameFeature; - actorMembershipInstance.ElementId = elementIdFeature; - actorMembershipInstance.IsImplied = isImpliedFeature; - actorMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - actorMembershipInstance.MemberElement = memberElementFeature; - actorMembershipInstance.MemberName = memberNameFeature; - actorMembershipInstance.MemberShortName = memberShortNameFeature; - actorMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - actorMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - actorMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - actorMembershipInstance.OwningRelationship = owningRelationshipFeature; - actorMembershipInstance.Source = sourceFeature ?? new List(); - actorMembershipInstance.Target = targetFeature ?? new List(); - actorMembershipInstance.Visibility = visibilityFeature; - - return actorMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IActorMembership ReadComplex(Dictionary dictionary) - { - var actorMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - actorMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - actorMembershipInstance.DeclaredName = declaredNameFeature; - actorMembershipInstance.DeclaredShortName = declaredShortNameFeature; - actorMembershipInstance.ElementId = elementIdFeature; - actorMembershipInstance.IsImplied = isImpliedFeature; - actorMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - actorMembershipInstance.MemberElement = memberElementFeature; - actorMembershipInstance.MemberName = memberNameFeature; - actorMembershipInstance.MemberShortName = memberShortNameFeature; - actorMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - actorMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - actorMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - actorMembershipInstance.OwningRelationship = owningRelationshipFeature; - actorMembershipInstance.Source = sourceFeature ?? new List(); - actorMembershipInstance.Target = targetFeature ?? new List(); - actorMembershipInstance.Visibility = visibilityFeature; - - return actorMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IActorMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ActorMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ActorMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ActorMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var actorMembershipInstance = new SysML2.NET.Core.DTO.ActorMembership - { - Id = id - }; - - return actorMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AllocationDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AllocationDefinitionDictionaryReader.cs deleted file mode 100644 index 2f5ba49f1..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AllocationDefinitionDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class AllocationDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IAllocationDefinition ReadSimplified(Dictionary dictionary) - { - var allocationDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - allocationDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - allocationDefinitionInstance.DeclaredName = declaredNameFeature; - allocationDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - allocationDefinitionInstance.ElementId = elementIdFeature; - allocationDefinitionInstance.IsAbstract = isAbstractFeature; - allocationDefinitionInstance.IsImplied = isImpliedFeature; - allocationDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - allocationDefinitionInstance.IsIndividual = isIndividualFeature; - allocationDefinitionInstance.IsSufficient = isSufficientFeature; - allocationDefinitionInstance.IsVariation = isVariationFeature; - allocationDefinitionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - allocationDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - allocationDefinitionInstance.OwningRelatedElement = owningRelatedElementFeature; - allocationDefinitionInstance.OwningRelationship = owningRelationshipFeature; - allocationDefinitionInstance.Source = sourceFeature ?? new List(); - allocationDefinitionInstance.Target = targetFeature ?? new List(); - - return allocationDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IAllocationDefinition ReadComplex(Dictionary dictionary) - { - var allocationDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - List targetFeature = (targetObject as List); - - - allocationDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - allocationDefinitionInstance.DeclaredName = declaredNameFeature; - allocationDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - allocationDefinitionInstance.ElementId = elementIdFeature; - allocationDefinitionInstance.IsAbstract = isAbstractFeature; - allocationDefinitionInstance.IsImplied = isImpliedFeature; - allocationDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - allocationDefinitionInstance.IsIndividual = isIndividualFeature; - allocationDefinitionInstance.IsSufficient = isSufficientFeature; - allocationDefinitionInstance.IsVariation = isVariationFeature; - allocationDefinitionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - allocationDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - allocationDefinitionInstance.OwningRelatedElement = owningRelatedElementFeature; - allocationDefinitionInstance.OwningRelationship = owningRelationshipFeature; - allocationDefinitionInstance.Source = sourceFeature ?? new List(); - allocationDefinitionInstance.Target = targetFeature ?? new List(); - - return allocationDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAllocationDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "AllocationDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a AllocationDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a AllocationDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var allocationDefinitionInstance = new SysML2.NET.Core.DTO.AllocationDefinition - { - Id = id - }; - - return allocationDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AllocationUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AllocationUsageDictionaryReader.cs deleted file mode 100644 index 7b66d7fd0..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AllocationUsageDictionaryReader.cs +++ /dev/null @@ -1,549 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class AllocationUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IAllocationUsage ReadSimplified(Dictionary dictionary) - { - var allocationUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - allocationUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - allocationUsageInstance.DeclaredName = declaredNameFeature; - allocationUsageInstance.DeclaredShortName = declaredShortNameFeature; - allocationUsageInstance.Direction = directionFeature; - allocationUsageInstance.ElementId = elementIdFeature; - allocationUsageInstance.IsAbstract = isAbstractFeature; - allocationUsageInstance.IsComposite = isCompositeFeature; - allocationUsageInstance.IsConstant = isConstantFeature; - allocationUsageInstance.IsDerived = isDerivedFeature; - allocationUsageInstance.IsEnd = isEndFeature; - allocationUsageInstance.IsImplied = isImpliedFeature; - allocationUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - allocationUsageInstance.IsIndividual = isIndividualFeature; - allocationUsageInstance.IsOrdered = isOrderedFeature; - allocationUsageInstance.IsPortion = isPortionFeature; - allocationUsageInstance.IsSufficient = isSufficientFeature; - allocationUsageInstance.IsUnique = isUniqueFeature; - allocationUsageInstance.IsVariable = isVariableFeature; - allocationUsageInstance.IsVariation = isVariationFeature; - allocationUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - allocationUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - allocationUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - allocationUsageInstance.OwningRelationship = owningRelationshipFeature; - allocationUsageInstance.PortionKind = portionKindFeature; - allocationUsageInstance.Source = sourceFeature ?? new List(); - allocationUsageInstance.Target = targetFeature ?? new List(); - - return allocationUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IAllocationUsage ReadComplex(Dictionary dictionary) - { - var allocationUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - List targetFeature = (targetObject as List); - - - allocationUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - allocationUsageInstance.DeclaredName = declaredNameFeature; - allocationUsageInstance.DeclaredShortName = declaredShortNameFeature; - allocationUsageInstance.Direction = directionFeature; - allocationUsageInstance.ElementId = elementIdFeature; - allocationUsageInstance.IsAbstract = isAbstractFeature; - allocationUsageInstance.IsComposite = isCompositeFeature; - allocationUsageInstance.IsConstant = isConstantFeature; - allocationUsageInstance.IsDerived = isDerivedFeature; - allocationUsageInstance.IsEnd = isEndFeature; - allocationUsageInstance.IsImplied = isImpliedFeature; - allocationUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - allocationUsageInstance.IsIndividual = isIndividualFeature; - allocationUsageInstance.IsOrdered = isOrderedFeature; - allocationUsageInstance.IsPortion = isPortionFeature; - allocationUsageInstance.IsSufficient = isSufficientFeature; - allocationUsageInstance.IsUnique = isUniqueFeature; - allocationUsageInstance.IsVariable = isVariableFeature; - allocationUsageInstance.IsVariation = isVariationFeature; - allocationUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - allocationUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - allocationUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - allocationUsageInstance.OwningRelationship = owningRelationshipFeature; - allocationUsageInstance.PortionKind = portionKindFeature; - allocationUsageInstance.Source = sourceFeature ?? new List(); - allocationUsageInstance.Target = targetFeature ?? new List(); - - return allocationUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAllocationUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "AllocationUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a AllocationUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a AllocationUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var allocationUsageInstance = new SysML2.NET.Core.DTO.AllocationUsage - { - Id = id - }; - - return allocationUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnalysisCaseDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnalysisCaseDefinitionDictionaryReader.cs deleted file mode 100644 index 1cea7415f..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnalysisCaseDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class AnalysisCaseDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IAnalysisCaseDefinition ReadSimplified(Dictionary dictionary) - { - var analysisCaseDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - analysisCaseDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - analysisCaseDefinitionInstance.DeclaredName = declaredNameFeature; - analysisCaseDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - analysisCaseDefinitionInstance.ElementId = elementIdFeature; - analysisCaseDefinitionInstance.IsAbstract = isAbstractFeature; - analysisCaseDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - analysisCaseDefinitionInstance.IsIndividual = isIndividualFeature; - analysisCaseDefinitionInstance.IsSufficient = isSufficientFeature; - analysisCaseDefinitionInstance.IsVariation = isVariationFeature; - analysisCaseDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - analysisCaseDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return analysisCaseDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IAnalysisCaseDefinition ReadComplex(Dictionary dictionary) - { - var analysisCaseDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - analysisCaseDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - analysisCaseDefinitionInstance.DeclaredName = declaredNameFeature; - analysisCaseDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - analysisCaseDefinitionInstance.ElementId = elementIdFeature; - analysisCaseDefinitionInstance.IsAbstract = isAbstractFeature; - analysisCaseDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - analysisCaseDefinitionInstance.IsIndividual = isIndividualFeature; - analysisCaseDefinitionInstance.IsSufficient = isSufficientFeature; - analysisCaseDefinitionInstance.IsVariation = isVariationFeature; - analysisCaseDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - analysisCaseDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return analysisCaseDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAnalysisCaseDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "AnalysisCaseDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a AnalysisCaseDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var analysisCaseDefinitionInstance = new SysML2.NET.Core.DTO.AnalysisCaseDefinition - { - Id = id - }; - - return analysisCaseDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnalysisCaseUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnalysisCaseUsageDictionaryReader.cs deleted file mode 100644 index 408e95844..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnalysisCaseUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class AnalysisCaseUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IAnalysisCaseUsage ReadSimplified(Dictionary dictionary) - { - var analysisCaseUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - analysisCaseUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - analysisCaseUsageInstance.DeclaredName = declaredNameFeature; - analysisCaseUsageInstance.DeclaredShortName = declaredShortNameFeature; - analysisCaseUsageInstance.Direction = directionFeature; - analysisCaseUsageInstance.ElementId = elementIdFeature; - analysisCaseUsageInstance.IsAbstract = isAbstractFeature; - analysisCaseUsageInstance.IsComposite = isCompositeFeature; - analysisCaseUsageInstance.IsConstant = isConstantFeature; - analysisCaseUsageInstance.IsDerived = isDerivedFeature; - analysisCaseUsageInstance.IsEnd = isEndFeature; - analysisCaseUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - analysisCaseUsageInstance.IsIndividual = isIndividualFeature; - analysisCaseUsageInstance.IsOrdered = isOrderedFeature; - analysisCaseUsageInstance.IsPortion = isPortionFeature; - analysisCaseUsageInstance.IsSufficient = isSufficientFeature; - analysisCaseUsageInstance.IsUnique = isUniqueFeature; - analysisCaseUsageInstance.IsVariable = isVariableFeature; - analysisCaseUsageInstance.IsVariation = isVariationFeature; - analysisCaseUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - analysisCaseUsageInstance.OwningRelationship = owningRelationshipFeature; - analysisCaseUsageInstance.PortionKind = portionKindFeature; - - return analysisCaseUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IAnalysisCaseUsage ReadComplex(Dictionary dictionary) - { - var analysisCaseUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - analysisCaseUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - analysisCaseUsageInstance.DeclaredName = declaredNameFeature; - analysisCaseUsageInstance.DeclaredShortName = declaredShortNameFeature; - analysisCaseUsageInstance.Direction = directionFeature; - analysisCaseUsageInstance.ElementId = elementIdFeature; - analysisCaseUsageInstance.IsAbstract = isAbstractFeature; - analysisCaseUsageInstance.IsComposite = isCompositeFeature; - analysisCaseUsageInstance.IsConstant = isConstantFeature; - analysisCaseUsageInstance.IsDerived = isDerivedFeature; - analysisCaseUsageInstance.IsEnd = isEndFeature; - analysisCaseUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - analysisCaseUsageInstance.IsIndividual = isIndividualFeature; - analysisCaseUsageInstance.IsOrdered = isOrderedFeature; - analysisCaseUsageInstance.IsPortion = isPortionFeature; - analysisCaseUsageInstance.IsSufficient = isSufficientFeature; - analysisCaseUsageInstance.IsUnique = isUniqueFeature; - analysisCaseUsageInstance.IsVariable = isVariableFeature; - analysisCaseUsageInstance.IsVariation = isVariationFeature; - analysisCaseUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - analysisCaseUsageInstance.OwningRelationship = owningRelationshipFeature; - analysisCaseUsageInstance.PortionKind = portionKindFeature; - - return analysisCaseUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAnalysisCaseUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "AnalysisCaseUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a AnalysisCaseUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a AnalysisCaseUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var analysisCaseUsageInstance = new SysML2.NET.Core.DTO.AnalysisCaseUsage - { - Id = id - }; - - return analysisCaseUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnnotatingElementDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnnotatingElementDictionaryReader.cs deleted file mode 100644 index 48ae98f22..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnnotatingElementDictionaryReader.cs +++ /dev/null @@ -1,283 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class AnnotatingElementDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IAnnotatingElement ReadSimplified(Dictionary dictionary) - { - var annotatingElementInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - annotatingElementInstance.AliasIds = aliasIdsFeature ?? new List(); - annotatingElementInstance.DeclaredName = declaredNameFeature; - annotatingElementInstance.DeclaredShortName = declaredShortNameFeature; - annotatingElementInstance.ElementId = elementIdFeature; - annotatingElementInstance.IsImpliedIncluded = isImpliedIncludedFeature; - annotatingElementInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - annotatingElementInstance.OwningRelationship = owningRelationshipFeature; - - return annotatingElementInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IAnnotatingElement ReadComplex(Dictionary dictionary) - { - var annotatingElementInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - annotatingElementInstance.AliasIds = aliasIdsFeature ?? new List(); - annotatingElementInstance.DeclaredName = declaredNameFeature; - annotatingElementInstance.DeclaredShortName = declaredShortNameFeature; - annotatingElementInstance.ElementId = elementIdFeature; - annotatingElementInstance.IsImpliedIncluded = isImpliedIncludedFeature; - annotatingElementInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - annotatingElementInstance.OwningRelationship = owningRelationshipFeature; - - return annotatingElementInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAnnotatingElement DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - - var type = Convert.ToString(typeObject); - - if (type != "AnnotatingElement") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a AnnotatingElement"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a AnnotatingElement"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var annotatingElementInstance = new SysML2.NET.Core.DTO.AnnotatingElement - { - Id = id - }; - - return annotatingElementInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnnotationDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnnotationDictionaryReader.cs deleted file mode 100644 index bd4b3b829..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AnnotationDictionaryReader.cs +++ /dev/null @@ -1,367 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class AnnotationDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IAnnotation ReadSimplified(Dictionary dictionary) - { - var annotationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("annotatedElement", out object annotatedElementObject)) - { - throw new ArgumentException("The annotatedElement property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - Guid annotatedElementFeature = Guid.Parse(Convert.ToString(annotatedElementObject)); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - annotationInstance.AliasIds = aliasIdsFeature ?? new List(); - annotationInstance.AnnotatedElement = annotatedElementFeature; - annotationInstance.DeclaredName = declaredNameFeature; - annotationInstance.DeclaredShortName = declaredShortNameFeature; - annotationInstance.ElementId = elementIdFeature; - annotationInstance.IsImplied = isImpliedFeature; - annotationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - annotationInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - annotationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - annotationInstance.OwningRelatedElement = owningRelatedElementFeature; - annotationInstance.OwningRelationship = owningRelationshipFeature; - annotationInstance.Source = sourceFeature ?? new List(); - annotationInstance.Target = targetFeature ?? new List(); - - return annotationInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IAnnotation ReadComplex(Dictionary dictionary) - { - var annotationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("annotatedElement", out object annotatedElementObject)) - { - throw new ArgumentException("The annotatedElement property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - Guid annotatedElementFeature = Guid.Parse(Convert.ToString(annotatedElementObject)); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - List targetFeature = (targetObject as List); - - - annotationInstance.AliasIds = aliasIdsFeature ?? new List(); - annotationInstance.AnnotatedElement = annotatedElementFeature; - annotationInstance.DeclaredName = declaredNameFeature; - annotationInstance.DeclaredShortName = declaredShortNameFeature; - annotationInstance.ElementId = elementIdFeature; - annotationInstance.IsImplied = isImpliedFeature; - annotationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - annotationInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - annotationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - annotationInstance.OwningRelatedElement = owningRelatedElementFeature; - annotationInstance.OwningRelationship = owningRelationshipFeature; - annotationInstance.Source = sourceFeature ?? new List(); - annotationInstance.Target = targetFeature ?? new List(); - - return annotationInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAnnotation DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Annotation") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Annotation"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Annotation"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var annotationInstance = new SysML2.NET.Core.DTO.Annotation - { - Id = id - }; - - return annotationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssertConstraintUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssertConstraintUsageDictionaryReader.cs deleted file mode 100644 index 92819a699..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssertConstraintUsageDictionaryReader.cs +++ /dev/null @@ -1,493 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class AssertConstraintUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IAssertConstraintUsage ReadSimplified(Dictionary dictionary) - { - var assertConstraintUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isNegated", out object isNegatedObject)) - { - throw new ArgumentException("The isNegated property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isNegatedFeature = Convert.ToBoolean(isNegatedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - assertConstraintUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - assertConstraintUsageInstance.DeclaredName = declaredNameFeature; - assertConstraintUsageInstance.DeclaredShortName = declaredShortNameFeature; - assertConstraintUsageInstance.Direction = directionFeature; - assertConstraintUsageInstance.ElementId = elementIdFeature; - assertConstraintUsageInstance.IsAbstract = isAbstractFeature; - assertConstraintUsageInstance.IsComposite = isCompositeFeature; - assertConstraintUsageInstance.IsConstant = isConstantFeature; - assertConstraintUsageInstance.IsDerived = isDerivedFeature; - assertConstraintUsageInstance.IsEnd = isEndFeature; - assertConstraintUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - assertConstraintUsageInstance.IsIndividual = isIndividualFeature; - assertConstraintUsageInstance.IsNegated = isNegatedFeature; - assertConstraintUsageInstance.IsOrdered = isOrderedFeature; - assertConstraintUsageInstance.IsPortion = isPortionFeature; - assertConstraintUsageInstance.IsSufficient = isSufficientFeature; - assertConstraintUsageInstance.IsUnique = isUniqueFeature; - assertConstraintUsageInstance.IsVariable = isVariableFeature; - assertConstraintUsageInstance.IsVariation = isVariationFeature; - assertConstraintUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - assertConstraintUsageInstance.OwningRelationship = owningRelationshipFeature; - assertConstraintUsageInstance.PortionKind = portionKindFeature; - - return assertConstraintUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IAssertConstraintUsage ReadComplex(Dictionary dictionary) - { - var assertConstraintUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isNegated", out object isNegatedObject)) - { - throw new ArgumentException("The isNegated property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isNegatedFeature = Convert.ToBoolean(isNegatedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - assertConstraintUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - assertConstraintUsageInstance.DeclaredName = declaredNameFeature; - assertConstraintUsageInstance.DeclaredShortName = declaredShortNameFeature; - assertConstraintUsageInstance.Direction = directionFeature; - assertConstraintUsageInstance.ElementId = elementIdFeature; - assertConstraintUsageInstance.IsAbstract = isAbstractFeature; - assertConstraintUsageInstance.IsComposite = isCompositeFeature; - assertConstraintUsageInstance.IsConstant = isConstantFeature; - assertConstraintUsageInstance.IsDerived = isDerivedFeature; - assertConstraintUsageInstance.IsEnd = isEndFeature; - assertConstraintUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - assertConstraintUsageInstance.IsIndividual = isIndividualFeature; - assertConstraintUsageInstance.IsNegated = isNegatedFeature; - assertConstraintUsageInstance.IsOrdered = isOrderedFeature; - assertConstraintUsageInstance.IsPortion = isPortionFeature; - assertConstraintUsageInstance.IsSufficient = isSufficientFeature; - assertConstraintUsageInstance.IsUnique = isUniqueFeature; - assertConstraintUsageInstance.IsVariable = isVariableFeature; - assertConstraintUsageInstance.IsVariation = isVariationFeature; - assertConstraintUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - assertConstraintUsageInstance.OwningRelationship = owningRelationshipFeature; - assertConstraintUsageInstance.PortionKind = portionKindFeature; - - return assertConstraintUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAssertConstraintUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "AssertConstraintUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a AssertConstraintUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a AssertConstraintUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var assertConstraintUsageInstance = new SysML2.NET.Core.DTO.AssertConstraintUsage - { - Id = id - }; - - return assertConstraintUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssignmentActionUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssignmentActionUsageDictionaryReader.cs deleted file mode 100644 index 845739b5c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssignmentActionUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class AssignmentActionUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IAssignmentActionUsage ReadSimplified(Dictionary dictionary) - { - var assignmentActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - assignmentActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - assignmentActionUsageInstance.DeclaredName = declaredNameFeature; - assignmentActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - assignmentActionUsageInstance.Direction = directionFeature; - assignmentActionUsageInstance.ElementId = elementIdFeature; - assignmentActionUsageInstance.IsAbstract = isAbstractFeature; - assignmentActionUsageInstance.IsComposite = isCompositeFeature; - assignmentActionUsageInstance.IsConstant = isConstantFeature; - assignmentActionUsageInstance.IsDerived = isDerivedFeature; - assignmentActionUsageInstance.IsEnd = isEndFeature; - assignmentActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - assignmentActionUsageInstance.IsIndividual = isIndividualFeature; - assignmentActionUsageInstance.IsOrdered = isOrderedFeature; - assignmentActionUsageInstance.IsPortion = isPortionFeature; - assignmentActionUsageInstance.IsSufficient = isSufficientFeature; - assignmentActionUsageInstance.IsUnique = isUniqueFeature; - assignmentActionUsageInstance.IsVariable = isVariableFeature; - assignmentActionUsageInstance.IsVariation = isVariationFeature; - assignmentActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - assignmentActionUsageInstance.OwningRelationship = owningRelationshipFeature; - assignmentActionUsageInstance.PortionKind = portionKindFeature; - - return assignmentActionUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IAssignmentActionUsage ReadComplex(Dictionary dictionary) - { - var assignmentActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - assignmentActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - assignmentActionUsageInstance.DeclaredName = declaredNameFeature; - assignmentActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - assignmentActionUsageInstance.Direction = directionFeature; - assignmentActionUsageInstance.ElementId = elementIdFeature; - assignmentActionUsageInstance.IsAbstract = isAbstractFeature; - assignmentActionUsageInstance.IsComposite = isCompositeFeature; - assignmentActionUsageInstance.IsConstant = isConstantFeature; - assignmentActionUsageInstance.IsDerived = isDerivedFeature; - assignmentActionUsageInstance.IsEnd = isEndFeature; - assignmentActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - assignmentActionUsageInstance.IsIndividual = isIndividualFeature; - assignmentActionUsageInstance.IsOrdered = isOrderedFeature; - assignmentActionUsageInstance.IsPortion = isPortionFeature; - assignmentActionUsageInstance.IsSufficient = isSufficientFeature; - assignmentActionUsageInstance.IsUnique = isUniqueFeature; - assignmentActionUsageInstance.IsVariable = isVariableFeature; - assignmentActionUsageInstance.IsVariation = isVariationFeature; - assignmentActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - assignmentActionUsageInstance.OwningRelationship = owningRelationshipFeature; - assignmentActionUsageInstance.PortionKind = portionKindFeature; - - return assignmentActionUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAssignmentActionUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "AssignmentActionUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a AssignmentActionUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a AssignmentActionUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var assignmentActionUsageInstance = new SysML2.NET.Core.DTO.AssignmentActionUsage - { - Id = id - }; - - return assignmentActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssociationDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssociationDictionaryReader.cs deleted file mode 100644 index 8fef0b61d..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssociationDictionaryReader.cs +++ /dev/null @@ -1,381 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class AssociationDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IAssociation ReadSimplified(Dictionary dictionary) - { - var associationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - associationInstance.AliasIds = aliasIdsFeature ?? new List(); - associationInstance.DeclaredName = declaredNameFeature; - associationInstance.DeclaredShortName = declaredShortNameFeature; - associationInstance.ElementId = elementIdFeature; - associationInstance.IsAbstract = isAbstractFeature; - associationInstance.IsImplied = isImpliedFeature; - associationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - associationInstance.IsSufficient = isSufficientFeature; - associationInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - associationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - associationInstance.OwningRelatedElement = owningRelatedElementFeature; - associationInstance.OwningRelationship = owningRelationshipFeature; - associationInstance.Source = sourceFeature ?? new List(); - associationInstance.Target = targetFeature ?? new List(); - - return associationInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IAssociation ReadComplex(Dictionary dictionary) - { - var associationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - List targetFeature = (targetObject as List); - - - associationInstance.AliasIds = aliasIdsFeature ?? new List(); - associationInstance.DeclaredName = declaredNameFeature; - associationInstance.DeclaredShortName = declaredShortNameFeature; - associationInstance.ElementId = elementIdFeature; - associationInstance.IsAbstract = isAbstractFeature; - associationInstance.IsImplied = isImpliedFeature; - associationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - associationInstance.IsSufficient = isSufficientFeature; - associationInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - associationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - associationInstance.OwningRelatedElement = owningRelatedElementFeature; - associationInstance.OwningRelationship = owningRelationshipFeature; - associationInstance.Source = sourceFeature ?? new List(); - associationInstance.Target = targetFeature ?? new List(); - - return associationInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAssociation DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Association") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Association"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Association"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var associationInstance = new SysML2.NET.Core.DTO.Association - { - Id = id - }; - - return associationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssociationStructureDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssociationStructureDictionaryReader.cs deleted file mode 100644 index 151283826..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AssociationStructureDictionaryReader.cs +++ /dev/null @@ -1,381 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class AssociationStructureDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IAssociationStructure ReadSimplified(Dictionary dictionary) - { - var associationStructureInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - associationStructureInstance.AliasIds = aliasIdsFeature ?? new List(); - associationStructureInstance.DeclaredName = declaredNameFeature; - associationStructureInstance.DeclaredShortName = declaredShortNameFeature; - associationStructureInstance.ElementId = elementIdFeature; - associationStructureInstance.IsAbstract = isAbstractFeature; - associationStructureInstance.IsImplied = isImpliedFeature; - associationStructureInstance.IsImpliedIncluded = isImpliedIncludedFeature; - associationStructureInstance.IsSufficient = isSufficientFeature; - associationStructureInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - associationStructureInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - associationStructureInstance.OwningRelatedElement = owningRelatedElementFeature; - associationStructureInstance.OwningRelationship = owningRelationshipFeature; - associationStructureInstance.Source = sourceFeature ?? new List(); - associationStructureInstance.Target = targetFeature ?? new List(); - - return associationStructureInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IAssociationStructure ReadComplex(Dictionary dictionary) - { - var associationStructureInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - List targetFeature = (targetObject as List); - - - associationStructureInstance.AliasIds = aliasIdsFeature ?? new List(); - associationStructureInstance.DeclaredName = declaredNameFeature; - associationStructureInstance.DeclaredShortName = declaredShortNameFeature; - associationStructureInstance.ElementId = elementIdFeature; - associationStructureInstance.IsAbstract = isAbstractFeature; - associationStructureInstance.IsImplied = isImpliedFeature; - associationStructureInstance.IsImpliedIncluded = isImpliedIncludedFeature; - associationStructureInstance.IsSufficient = isSufficientFeature; - associationStructureInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - associationStructureInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - associationStructureInstance.OwningRelatedElement = owningRelatedElementFeature; - associationStructureInstance.OwningRelationship = owningRelationshipFeature; - associationStructureInstance.Source = sourceFeature ?? new List(); - associationStructureInstance.Target = targetFeature ?? new List(); - - return associationStructureInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAssociationStructure DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - - var type = Convert.ToString(typeObject); - - if (type != "AssociationStructure") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a AssociationStructure"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a AssociationStructure"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var associationStructureInstance = new SysML2.NET.Core.DTO.AssociationStructure - { - Id = id - }; - - return associationStructureInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AttributeDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AttributeDefinitionDictionaryReader.cs deleted file mode 100644 index 8629e31c2..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AttributeDefinitionDictionaryReader.cs +++ /dev/null @@ -1,325 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class AttributeDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IAttributeDefinition ReadSimplified(Dictionary dictionary) - { - var attributeDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - attributeDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - attributeDefinitionInstance.DeclaredName = declaredNameFeature; - attributeDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - attributeDefinitionInstance.ElementId = elementIdFeature; - attributeDefinitionInstance.IsAbstract = isAbstractFeature; - attributeDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - attributeDefinitionInstance.IsSufficient = isSufficientFeature; - attributeDefinitionInstance.IsVariation = isVariationFeature; - attributeDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - attributeDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return attributeDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IAttributeDefinition ReadComplex(Dictionary dictionary) - { - var attributeDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - attributeDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - attributeDefinitionInstance.DeclaredName = declaredNameFeature; - attributeDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - attributeDefinitionInstance.ElementId = elementIdFeature; - attributeDefinitionInstance.IsAbstract = isAbstractFeature; - attributeDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - attributeDefinitionInstance.IsSufficient = isSufficientFeature; - attributeDefinitionInstance.IsVariation = isVariationFeature; - attributeDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - attributeDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return attributeDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAttributeDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "AttributeDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a AttributeDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a AttributeDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var attributeDefinitionInstance = new SysML2.NET.Core.DTO.AttributeDefinition - { - Id = id - }; - - return attributeDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AttributeUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AttributeUsageDictionaryReader.cs deleted file mode 100644 index d71a5feea..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/AttributeUsageDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class AttributeUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IAttributeUsage ReadSimplified(Dictionary dictionary) - { - var attributeUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - attributeUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - attributeUsageInstance.DeclaredName = declaredNameFeature; - attributeUsageInstance.DeclaredShortName = declaredShortNameFeature; - attributeUsageInstance.Direction = directionFeature; - attributeUsageInstance.ElementId = elementIdFeature; - attributeUsageInstance.IsAbstract = isAbstractFeature; - attributeUsageInstance.IsComposite = isCompositeFeature; - attributeUsageInstance.IsConstant = isConstantFeature; - attributeUsageInstance.IsDerived = isDerivedFeature; - attributeUsageInstance.IsEnd = isEndFeature; - attributeUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - attributeUsageInstance.IsOrdered = isOrderedFeature; - attributeUsageInstance.IsPortion = isPortionFeature; - attributeUsageInstance.IsSufficient = isSufficientFeature; - attributeUsageInstance.IsUnique = isUniqueFeature; - attributeUsageInstance.IsVariable = isVariableFeature; - attributeUsageInstance.IsVariation = isVariationFeature; - attributeUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - attributeUsageInstance.OwningRelationship = owningRelationshipFeature; - - return attributeUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IAttributeUsage ReadComplex(Dictionary dictionary) - { - var attributeUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - attributeUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - attributeUsageInstance.DeclaredName = declaredNameFeature; - attributeUsageInstance.DeclaredShortName = declaredShortNameFeature; - attributeUsageInstance.Direction = directionFeature; - attributeUsageInstance.ElementId = elementIdFeature; - attributeUsageInstance.IsAbstract = isAbstractFeature; - attributeUsageInstance.IsComposite = isCompositeFeature; - attributeUsageInstance.IsConstant = isConstantFeature; - attributeUsageInstance.IsDerived = isDerivedFeature; - attributeUsageInstance.IsEnd = isEndFeature; - attributeUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - attributeUsageInstance.IsOrdered = isOrderedFeature; - attributeUsageInstance.IsPortion = isPortionFeature; - attributeUsageInstance.IsSufficient = isSufficientFeature; - attributeUsageInstance.IsUnique = isUniqueFeature; - attributeUsageInstance.IsVariable = isVariableFeature; - attributeUsageInstance.IsVariation = isVariationFeature; - attributeUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - attributeUsageInstance.OwningRelationship = owningRelationshipFeature; - - return attributeUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAttributeUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "AttributeUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a AttributeUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a AttributeUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var attributeUsageInstance = new SysML2.NET.Core.DTO.AttributeUsage - { - Id = id - }; - - return attributeUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BehaviorDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BehaviorDictionaryReader.cs deleted file mode 100644 index e2491dbd9..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BehaviorDictionaryReader.cs +++ /dev/null @@ -1,311 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class BehaviorDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IBehavior ReadSimplified(Dictionary dictionary) - { - var behaviorInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - behaviorInstance.AliasIds = aliasIdsFeature ?? new List(); - behaviorInstance.DeclaredName = declaredNameFeature; - behaviorInstance.DeclaredShortName = declaredShortNameFeature; - behaviorInstance.ElementId = elementIdFeature; - behaviorInstance.IsAbstract = isAbstractFeature; - behaviorInstance.IsImpliedIncluded = isImpliedIncludedFeature; - behaviorInstance.IsSufficient = isSufficientFeature; - behaviorInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - behaviorInstance.OwningRelationship = owningRelationshipFeature; - - return behaviorInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IBehavior ReadComplex(Dictionary dictionary) - { - var behaviorInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - behaviorInstance.AliasIds = aliasIdsFeature ?? new List(); - behaviorInstance.DeclaredName = declaredNameFeature; - behaviorInstance.DeclaredShortName = declaredShortNameFeature; - behaviorInstance.ElementId = elementIdFeature; - behaviorInstance.IsAbstract = isAbstractFeature; - behaviorInstance.IsImpliedIncluded = isImpliedIncludedFeature; - behaviorInstance.IsSufficient = isSufficientFeature; - behaviorInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - behaviorInstance.OwningRelationship = owningRelationshipFeature; - - return behaviorInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IBehavior DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Behavior") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Behavior"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Behavior"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var behaviorInstance = new SysML2.NET.Core.DTO.Behavior - { - Id = id - }; - - return behaviorInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BindingConnectorAsUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BindingConnectorAsUsageDictionaryReader.cs deleted file mode 100644 index ea27a821e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BindingConnectorAsUsageDictionaryReader.cs +++ /dev/null @@ -1,521 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class BindingConnectorAsUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IBindingConnectorAsUsage ReadSimplified(Dictionary dictionary) - { - var bindingConnectorAsUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - bindingConnectorAsUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - bindingConnectorAsUsageInstance.DeclaredName = declaredNameFeature; - bindingConnectorAsUsageInstance.DeclaredShortName = declaredShortNameFeature; - bindingConnectorAsUsageInstance.Direction = directionFeature; - bindingConnectorAsUsageInstance.ElementId = elementIdFeature; - bindingConnectorAsUsageInstance.IsAbstract = isAbstractFeature; - bindingConnectorAsUsageInstance.IsComposite = isCompositeFeature; - bindingConnectorAsUsageInstance.IsConstant = isConstantFeature; - bindingConnectorAsUsageInstance.IsDerived = isDerivedFeature; - bindingConnectorAsUsageInstance.IsEnd = isEndFeature; - bindingConnectorAsUsageInstance.IsImplied = isImpliedFeature; - bindingConnectorAsUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - bindingConnectorAsUsageInstance.IsOrdered = isOrderedFeature; - bindingConnectorAsUsageInstance.IsPortion = isPortionFeature; - bindingConnectorAsUsageInstance.IsSufficient = isSufficientFeature; - bindingConnectorAsUsageInstance.IsUnique = isUniqueFeature; - bindingConnectorAsUsageInstance.IsVariable = isVariableFeature; - bindingConnectorAsUsageInstance.IsVariation = isVariationFeature; - bindingConnectorAsUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - bindingConnectorAsUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - bindingConnectorAsUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - bindingConnectorAsUsageInstance.OwningRelationship = owningRelationshipFeature; - bindingConnectorAsUsageInstance.Source = sourceFeature ?? new List(); - bindingConnectorAsUsageInstance.Target = targetFeature ?? new List(); - - return bindingConnectorAsUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IBindingConnectorAsUsage ReadComplex(Dictionary dictionary) - { - var bindingConnectorAsUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - List targetFeature = (targetObject as List); - - - bindingConnectorAsUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - bindingConnectorAsUsageInstance.DeclaredName = declaredNameFeature; - bindingConnectorAsUsageInstance.DeclaredShortName = declaredShortNameFeature; - bindingConnectorAsUsageInstance.Direction = directionFeature; - bindingConnectorAsUsageInstance.ElementId = elementIdFeature; - bindingConnectorAsUsageInstance.IsAbstract = isAbstractFeature; - bindingConnectorAsUsageInstance.IsComposite = isCompositeFeature; - bindingConnectorAsUsageInstance.IsConstant = isConstantFeature; - bindingConnectorAsUsageInstance.IsDerived = isDerivedFeature; - bindingConnectorAsUsageInstance.IsEnd = isEndFeature; - bindingConnectorAsUsageInstance.IsImplied = isImpliedFeature; - bindingConnectorAsUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - bindingConnectorAsUsageInstance.IsOrdered = isOrderedFeature; - bindingConnectorAsUsageInstance.IsPortion = isPortionFeature; - bindingConnectorAsUsageInstance.IsSufficient = isSufficientFeature; - bindingConnectorAsUsageInstance.IsUnique = isUniqueFeature; - bindingConnectorAsUsageInstance.IsVariable = isVariableFeature; - bindingConnectorAsUsageInstance.IsVariation = isVariationFeature; - bindingConnectorAsUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - bindingConnectorAsUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - bindingConnectorAsUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - bindingConnectorAsUsageInstance.OwningRelationship = owningRelationshipFeature; - bindingConnectorAsUsageInstance.Source = sourceFeature ?? new List(); - bindingConnectorAsUsageInstance.Target = targetFeature ?? new List(); - - return bindingConnectorAsUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IBindingConnectorAsUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "BindingConnectorAsUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a BindingConnectorAsUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a BindingConnectorAsUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var bindingConnectorAsUsageInstance = new SysML2.NET.Core.DTO.BindingConnectorAsUsage - { - Id = id - }; - - return bindingConnectorAsUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BindingConnectorDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BindingConnectorDictionaryReader.cs deleted file mode 100644 index 2a370da18..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BindingConnectorDictionaryReader.cs +++ /dev/null @@ -1,507 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class BindingConnectorDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IBindingConnector ReadSimplified(Dictionary dictionary) - { - var bindingConnectorInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - bindingConnectorInstance.AliasIds = aliasIdsFeature ?? new List(); - bindingConnectorInstance.DeclaredName = declaredNameFeature; - bindingConnectorInstance.DeclaredShortName = declaredShortNameFeature; - bindingConnectorInstance.Direction = directionFeature; - bindingConnectorInstance.ElementId = elementIdFeature; - bindingConnectorInstance.IsAbstract = isAbstractFeature; - bindingConnectorInstance.IsComposite = isCompositeFeature; - bindingConnectorInstance.IsConstant = isConstantFeature; - bindingConnectorInstance.IsDerived = isDerivedFeature; - bindingConnectorInstance.IsEnd = isEndFeature; - bindingConnectorInstance.IsImplied = isImpliedFeature; - bindingConnectorInstance.IsImpliedIncluded = isImpliedIncludedFeature; - bindingConnectorInstance.IsOrdered = isOrderedFeature; - bindingConnectorInstance.IsPortion = isPortionFeature; - bindingConnectorInstance.IsSufficient = isSufficientFeature; - bindingConnectorInstance.IsUnique = isUniqueFeature; - bindingConnectorInstance.IsVariable = isVariableFeature; - bindingConnectorInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - bindingConnectorInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - bindingConnectorInstance.OwningRelatedElement = owningRelatedElementFeature; - bindingConnectorInstance.OwningRelationship = owningRelationshipFeature; - bindingConnectorInstance.Source = sourceFeature ?? new List(); - bindingConnectorInstance.Target = targetFeature ?? new List(); - - return bindingConnectorInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IBindingConnector ReadComplex(Dictionary dictionary) - { - var bindingConnectorInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - List targetFeature = (targetObject as List); - - - bindingConnectorInstance.AliasIds = aliasIdsFeature ?? new List(); - bindingConnectorInstance.DeclaredName = declaredNameFeature; - bindingConnectorInstance.DeclaredShortName = declaredShortNameFeature; - bindingConnectorInstance.Direction = directionFeature; - bindingConnectorInstance.ElementId = elementIdFeature; - bindingConnectorInstance.IsAbstract = isAbstractFeature; - bindingConnectorInstance.IsComposite = isCompositeFeature; - bindingConnectorInstance.IsConstant = isConstantFeature; - bindingConnectorInstance.IsDerived = isDerivedFeature; - bindingConnectorInstance.IsEnd = isEndFeature; - bindingConnectorInstance.IsImplied = isImpliedFeature; - bindingConnectorInstance.IsImpliedIncluded = isImpliedIncludedFeature; - bindingConnectorInstance.IsOrdered = isOrderedFeature; - bindingConnectorInstance.IsPortion = isPortionFeature; - bindingConnectorInstance.IsSufficient = isSufficientFeature; - bindingConnectorInstance.IsUnique = isUniqueFeature; - bindingConnectorInstance.IsVariable = isVariableFeature; - bindingConnectorInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - bindingConnectorInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - bindingConnectorInstance.OwningRelatedElement = owningRelatedElementFeature; - bindingConnectorInstance.OwningRelationship = owningRelationshipFeature; - bindingConnectorInstance.Source = sourceFeature ?? new List(); - bindingConnectorInstance.Target = targetFeature ?? new List(); - - return bindingConnectorInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IBindingConnector DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - - var type = Convert.ToString(typeObject); - - if (type != "BindingConnector") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a BindingConnector"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a BindingConnector"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var bindingConnectorInstance = new SysML2.NET.Core.DTO.BindingConnector - { - Id = id - }; - - return bindingConnectorInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BooleanExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BooleanExpressionDictionaryReader.cs deleted file mode 100644 index ec2ca7a07..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/BooleanExpressionDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class BooleanExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IBooleanExpression ReadSimplified(Dictionary dictionary) - { - var booleanExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - booleanExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - booleanExpressionInstance.DeclaredName = declaredNameFeature; - booleanExpressionInstance.DeclaredShortName = declaredShortNameFeature; - booleanExpressionInstance.Direction = directionFeature; - booleanExpressionInstance.ElementId = elementIdFeature; - booleanExpressionInstance.IsAbstract = isAbstractFeature; - booleanExpressionInstance.IsComposite = isCompositeFeature; - booleanExpressionInstance.IsConstant = isConstantFeature; - booleanExpressionInstance.IsDerived = isDerivedFeature; - booleanExpressionInstance.IsEnd = isEndFeature; - booleanExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - booleanExpressionInstance.IsOrdered = isOrderedFeature; - booleanExpressionInstance.IsPortion = isPortionFeature; - booleanExpressionInstance.IsSufficient = isSufficientFeature; - booleanExpressionInstance.IsUnique = isUniqueFeature; - booleanExpressionInstance.IsVariable = isVariableFeature; - booleanExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - booleanExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return booleanExpressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IBooleanExpression ReadComplex(Dictionary dictionary) - { - var booleanExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - booleanExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - booleanExpressionInstance.DeclaredName = declaredNameFeature; - booleanExpressionInstance.DeclaredShortName = declaredShortNameFeature; - booleanExpressionInstance.Direction = directionFeature; - booleanExpressionInstance.ElementId = elementIdFeature; - booleanExpressionInstance.IsAbstract = isAbstractFeature; - booleanExpressionInstance.IsComposite = isCompositeFeature; - booleanExpressionInstance.IsConstant = isConstantFeature; - booleanExpressionInstance.IsDerived = isDerivedFeature; - booleanExpressionInstance.IsEnd = isEndFeature; - booleanExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - booleanExpressionInstance.IsOrdered = isOrderedFeature; - booleanExpressionInstance.IsPortion = isPortionFeature; - booleanExpressionInstance.IsSufficient = isSufficientFeature; - booleanExpressionInstance.IsUnique = isUniqueFeature; - booleanExpressionInstance.IsVariable = isVariableFeature; - booleanExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - booleanExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return booleanExpressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IBooleanExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "BooleanExpression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a BooleanExpression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a BooleanExpression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var booleanExpressionInstance = new SysML2.NET.Core.DTO.BooleanExpression - { - Id = id - }; - - return booleanExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CalculationDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CalculationDefinitionDictionaryReader.cs deleted file mode 100644 index 49999f8d2..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CalculationDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class CalculationDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ICalculationDefinition ReadSimplified(Dictionary dictionary) - { - var calculationDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - calculationDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - calculationDefinitionInstance.DeclaredName = declaredNameFeature; - calculationDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - calculationDefinitionInstance.ElementId = elementIdFeature; - calculationDefinitionInstance.IsAbstract = isAbstractFeature; - calculationDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - calculationDefinitionInstance.IsIndividual = isIndividualFeature; - calculationDefinitionInstance.IsSufficient = isSufficientFeature; - calculationDefinitionInstance.IsVariation = isVariationFeature; - calculationDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - calculationDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return calculationDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ICalculationDefinition ReadComplex(Dictionary dictionary) - { - var calculationDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - calculationDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - calculationDefinitionInstance.DeclaredName = declaredNameFeature; - calculationDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - calculationDefinitionInstance.ElementId = elementIdFeature; - calculationDefinitionInstance.IsAbstract = isAbstractFeature; - calculationDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - calculationDefinitionInstance.IsIndividual = isIndividualFeature; - calculationDefinitionInstance.IsSufficient = isSufficientFeature; - calculationDefinitionInstance.IsVariation = isVariationFeature; - calculationDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - calculationDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return calculationDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ICalculationDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "CalculationDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a CalculationDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a CalculationDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var calculationDefinitionInstance = new SysML2.NET.Core.DTO.CalculationDefinition - { - Id = id - }; - - return calculationDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CalculationUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CalculationUsageDictionaryReader.cs deleted file mode 100644 index edd07a49d..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CalculationUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class CalculationUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ICalculationUsage ReadSimplified(Dictionary dictionary) - { - var calculationUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - calculationUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - calculationUsageInstance.DeclaredName = declaredNameFeature; - calculationUsageInstance.DeclaredShortName = declaredShortNameFeature; - calculationUsageInstance.Direction = directionFeature; - calculationUsageInstance.ElementId = elementIdFeature; - calculationUsageInstance.IsAbstract = isAbstractFeature; - calculationUsageInstance.IsComposite = isCompositeFeature; - calculationUsageInstance.IsConstant = isConstantFeature; - calculationUsageInstance.IsDerived = isDerivedFeature; - calculationUsageInstance.IsEnd = isEndFeature; - calculationUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - calculationUsageInstance.IsIndividual = isIndividualFeature; - calculationUsageInstance.IsOrdered = isOrderedFeature; - calculationUsageInstance.IsPortion = isPortionFeature; - calculationUsageInstance.IsSufficient = isSufficientFeature; - calculationUsageInstance.IsUnique = isUniqueFeature; - calculationUsageInstance.IsVariable = isVariableFeature; - calculationUsageInstance.IsVariation = isVariationFeature; - calculationUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - calculationUsageInstance.OwningRelationship = owningRelationshipFeature; - calculationUsageInstance.PortionKind = portionKindFeature; - - return calculationUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ICalculationUsage ReadComplex(Dictionary dictionary) - { - var calculationUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - calculationUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - calculationUsageInstance.DeclaredName = declaredNameFeature; - calculationUsageInstance.DeclaredShortName = declaredShortNameFeature; - calculationUsageInstance.Direction = directionFeature; - calculationUsageInstance.ElementId = elementIdFeature; - calculationUsageInstance.IsAbstract = isAbstractFeature; - calculationUsageInstance.IsComposite = isCompositeFeature; - calculationUsageInstance.IsConstant = isConstantFeature; - calculationUsageInstance.IsDerived = isDerivedFeature; - calculationUsageInstance.IsEnd = isEndFeature; - calculationUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - calculationUsageInstance.IsIndividual = isIndividualFeature; - calculationUsageInstance.IsOrdered = isOrderedFeature; - calculationUsageInstance.IsPortion = isPortionFeature; - calculationUsageInstance.IsSufficient = isSufficientFeature; - calculationUsageInstance.IsUnique = isUniqueFeature; - calculationUsageInstance.IsVariable = isVariableFeature; - calculationUsageInstance.IsVariation = isVariationFeature; - calculationUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - calculationUsageInstance.OwningRelationship = owningRelationshipFeature; - calculationUsageInstance.PortionKind = portionKindFeature; - - return calculationUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ICalculationUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "CalculationUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a CalculationUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a CalculationUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var calculationUsageInstance = new SysML2.NET.Core.DTO.CalculationUsage - { - Id = id - }; - - return calculationUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CaseDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CaseDefinitionDictionaryReader.cs deleted file mode 100644 index 80ed5f057..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CaseDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class CaseDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ICaseDefinition ReadSimplified(Dictionary dictionary) - { - var caseDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - caseDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - caseDefinitionInstance.DeclaredName = declaredNameFeature; - caseDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - caseDefinitionInstance.ElementId = elementIdFeature; - caseDefinitionInstance.IsAbstract = isAbstractFeature; - caseDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - caseDefinitionInstance.IsIndividual = isIndividualFeature; - caseDefinitionInstance.IsSufficient = isSufficientFeature; - caseDefinitionInstance.IsVariation = isVariationFeature; - caseDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - caseDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return caseDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ICaseDefinition ReadComplex(Dictionary dictionary) - { - var caseDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - caseDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - caseDefinitionInstance.DeclaredName = declaredNameFeature; - caseDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - caseDefinitionInstance.ElementId = elementIdFeature; - caseDefinitionInstance.IsAbstract = isAbstractFeature; - caseDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - caseDefinitionInstance.IsIndividual = isIndividualFeature; - caseDefinitionInstance.IsSufficient = isSufficientFeature; - caseDefinitionInstance.IsVariation = isVariationFeature; - caseDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - caseDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return caseDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ICaseDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "CaseDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a CaseDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a CaseDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var caseDefinitionInstance = new SysML2.NET.Core.DTO.CaseDefinition - { - Id = id - }; - - return caseDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CaseUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CaseUsageDictionaryReader.cs deleted file mode 100644 index 12e0b81cf..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CaseUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class CaseUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ICaseUsage ReadSimplified(Dictionary dictionary) - { - var caseUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - caseUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - caseUsageInstance.DeclaredName = declaredNameFeature; - caseUsageInstance.DeclaredShortName = declaredShortNameFeature; - caseUsageInstance.Direction = directionFeature; - caseUsageInstance.ElementId = elementIdFeature; - caseUsageInstance.IsAbstract = isAbstractFeature; - caseUsageInstance.IsComposite = isCompositeFeature; - caseUsageInstance.IsConstant = isConstantFeature; - caseUsageInstance.IsDerived = isDerivedFeature; - caseUsageInstance.IsEnd = isEndFeature; - caseUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - caseUsageInstance.IsIndividual = isIndividualFeature; - caseUsageInstance.IsOrdered = isOrderedFeature; - caseUsageInstance.IsPortion = isPortionFeature; - caseUsageInstance.IsSufficient = isSufficientFeature; - caseUsageInstance.IsUnique = isUniqueFeature; - caseUsageInstance.IsVariable = isVariableFeature; - caseUsageInstance.IsVariation = isVariationFeature; - caseUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - caseUsageInstance.OwningRelationship = owningRelationshipFeature; - caseUsageInstance.PortionKind = portionKindFeature; - - return caseUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ICaseUsage ReadComplex(Dictionary dictionary) - { - var caseUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - caseUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - caseUsageInstance.DeclaredName = declaredNameFeature; - caseUsageInstance.DeclaredShortName = declaredShortNameFeature; - caseUsageInstance.Direction = directionFeature; - caseUsageInstance.ElementId = elementIdFeature; - caseUsageInstance.IsAbstract = isAbstractFeature; - caseUsageInstance.IsComposite = isCompositeFeature; - caseUsageInstance.IsConstant = isConstantFeature; - caseUsageInstance.IsDerived = isDerivedFeature; - caseUsageInstance.IsEnd = isEndFeature; - caseUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - caseUsageInstance.IsIndividual = isIndividualFeature; - caseUsageInstance.IsOrdered = isOrderedFeature; - caseUsageInstance.IsPortion = isPortionFeature; - caseUsageInstance.IsSufficient = isSufficientFeature; - caseUsageInstance.IsUnique = isUniqueFeature; - caseUsageInstance.IsVariable = isVariableFeature; - caseUsageInstance.IsVariation = isVariationFeature; - caseUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - caseUsageInstance.OwningRelationship = owningRelationshipFeature; - caseUsageInstance.PortionKind = portionKindFeature; - - return caseUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ICaseUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "CaseUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a CaseUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a CaseUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var caseUsageInstance = new SysML2.NET.Core.DTO.CaseUsage - { - Id = id - }; - - return caseUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ClassDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ClassDictionaryReader.cs deleted file mode 100644 index 36581004e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ClassDictionaryReader.cs +++ /dev/null @@ -1,311 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ClassDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IClass ReadSimplified(Dictionary dictionary) - { - var classInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - classInstance.AliasIds = aliasIdsFeature ?? new List(); - classInstance.DeclaredName = declaredNameFeature; - classInstance.DeclaredShortName = declaredShortNameFeature; - classInstance.ElementId = elementIdFeature; - classInstance.IsAbstract = isAbstractFeature; - classInstance.IsImpliedIncluded = isImpliedIncludedFeature; - classInstance.IsSufficient = isSufficientFeature; - classInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - classInstance.OwningRelationship = owningRelationshipFeature; - - return classInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IClass ReadComplex(Dictionary dictionary) - { - var classInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - classInstance.AliasIds = aliasIdsFeature ?? new List(); - classInstance.DeclaredName = declaredNameFeature; - classInstance.DeclaredShortName = declaredShortNameFeature; - classInstance.ElementId = elementIdFeature; - classInstance.IsAbstract = isAbstractFeature; - classInstance.IsImpliedIncluded = isImpliedIncludedFeature; - classInstance.IsSufficient = isSufficientFeature; - classInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - classInstance.OwningRelationship = owningRelationshipFeature; - - return classInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IClass DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Class") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Class"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Class"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var classInstance = new SysML2.NET.Core.DTO.Class - { - Id = id - }; - - return classInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ClassifierDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ClassifierDictionaryReader.cs deleted file mode 100644 index 729500067..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ClassifierDictionaryReader.cs +++ /dev/null @@ -1,311 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ClassifierDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IClassifier ReadSimplified(Dictionary dictionary) - { - var classifierInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - classifierInstance.AliasIds = aliasIdsFeature ?? new List(); - classifierInstance.DeclaredName = declaredNameFeature; - classifierInstance.DeclaredShortName = declaredShortNameFeature; - classifierInstance.ElementId = elementIdFeature; - classifierInstance.IsAbstract = isAbstractFeature; - classifierInstance.IsImpliedIncluded = isImpliedIncludedFeature; - classifierInstance.IsSufficient = isSufficientFeature; - classifierInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - classifierInstance.OwningRelationship = owningRelationshipFeature; - - return classifierInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IClassifier ReadComplex(Dictionary dictionary) - { - var classifierInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - classifierInstance.AliasIds = aliasIdsFeature ?? new List(); - classifierInstance.DeclaredName = declaredNameFeature; - classifierInstance.DeclaredShortName = declaredShortNameFeature; - classifierInstance.ElementId = elementIdFeature; - classifierInstance.IsAbstract = isAbstractFeature; - classifierInstance.IsImpliedIncluded = isImpliedIncludedFeature; - classifierInstance.IsSufficient = isSufficientFeature; - classifierInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - classifierInstance.OwningRelationship = owningRelationshipFeature; - - return classifierInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IClassifier DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Classifier") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Classifier"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Classifier"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var classifierInstance = new SysML2.NET.Core.DTO.Classifier - { - Id = id - }; - - return classifierInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CollectExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CollectExpressionDictionaryReader.cs deleted file mode 100644 index ef3476133..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CollectExpressionDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class CollectExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ICollectExpression ReadSimplified(Dictionary dictionary) - { - var collectExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("operator", out object operatorObject)) - { - throw new ArgumentException("The operator property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - string operatorFeature = Convert.ToString(operatorObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - collectExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - collectExpressionInstance.DeclaredName = declaredNameFeature; - collectExpressionInstance.DeclaredShortName = declaredShortNameFeature; - collectExpressionInstance.Direction = directionFeature; - collectExpressionInstance.ElementId = elementIdFeature; - collectExpressionInstance.IsAbstract = isAbstractFeature; - collectExpressionInstance.IsComposite = isCompositeFeature; - collectExpressionInstance.IsConstant = isConstantFeature; - collectExpressionInstance.IsDerived = isDerivedFeature; - collectExpressionInstance.IsEnd = isEndFeature; - collectExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - collectExpressionInstance.IsOrdered = isOrderedFeature; - collectExpressionInstance.IsPortion = isPortionFeature; - collectExpressionInstance.IsSufficient = isSufficientFeature; - collectExpressionInstance.IsUnique = isUniqueFeature; - collectExpressionInstance.IsVariable = isVariableFeature; - collectExpressionInstance.Operator = operatorFeature; - collectExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - collectExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return collectExpressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ICollectExpression ReadComplex(Dictionary dictionary) - { - var collectExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("operator", out object operatorObject)) - { - throw new ArgumentException("The operator property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - string operatorFeature = Convert.ToString(operatorObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - collectExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - collectExpressionInstance.DeclaredName = declaredNameFeature; - collectExpressionInstance.DeclaredShortName = declaredShortNameFeature; - collectExpressionInstance.Direction = directionFeature; - collectExpressionInstance.ElementId = elementIdFeature; - collectExpressionInstance.IsAbstract = isAbstractFeature; - collectExpressionInstance.IsComposite = isCompositeFeature; - collectExpressionInstance.IsConstant = isConstantFeature; - collectExpressionInstance.IsDerived = isDerivedFeature; - collectExpressionInstance.IsEnd = isEndFeature; - collectExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - collectExpressionInstance.IsOrdered = isOrderedFeature; - collectExpressionInstance.IsPortion = isPortionFeature; - collectExpressionInstance.IsSufficient = isSufficientFeature; - collectExpressionInstance.IsUnique = isUniqueFeature; - collectExpressionInstance.IsVariable = isVariableFeature; - collectExpressionInstance.Operator = operatorFeature; - collectExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - collectExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return collectExpressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ICollectExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "CollectExpression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a CollectExpression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a CollectExpression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var collectExpressionInstance = new SysML2.NET.Core.DTO.CollectExpression - { - Id = id - }; - - return collectExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CommentDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CommentDictionaryReader.cs deleted file mode 100644 index ea1e73495..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CommentDictionaryReader.cs +++ /dev/null @@ -1,311 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class CommentDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IComment ReadSimplified(Dictionary dictionary) - { - var commentInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("body", out object bodyObject)) - { - throw new ArgumentException("The body property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - string bodyFeature = Convert.ToString(bodyObject); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("locale", out object localeObject)) - { - throw new ArgumentException("The locale property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - string localeFeature = localeObject == null ? null : Convert.ToString(localeObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - commentInstance.AliasIds = aliasIdsFeature ?? new List(); - commentInstance.Body = bodyFeature; - commentInstance.DeclaredName = declaredNameFeature; - commentInstance.DeclaredShortName = declaredShortNameFeature; - commentInstance.ElementId = elementIdFeature; - commentInstance.IsImpliedIncluded = isImpliedIncludedFeature; - commentInstance.Locale = localeFeature; - commentInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - commentInstance.OwningRelationship = owningRelationshipFeature; - - return commentInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IComment ReadComplex(Dictionary dictionary) - { - var commentInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("body", out object bodyObject)) - { - throw new ArgumentException("The body property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - string bodyFeature = Convert.ToString(bodyObject); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("locale", out object localeObject)) - { - throw new ArgumentException("The locale property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - string localeFeature = localeObject == null ? null : Convert.ToString(localeObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - commentInstance.AliasIds = aliasIdsFeature ?? new List(); - commentInstance.Body = bodyFeature; - commentInstance.DeclaredName = declaredNameFeature; - commentInstance.DeclaredShortName = declaredShortNameFeature; - commentInstance.ElementId = elementIdFeature; - commentInstance.IsImpliedIncluded = isImpliedIncludedFeature; - commentInstance.Locale = localeFeature; - commentInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - commentInstance.OwningRelationship = owningRelationshipFeature; - - return commentInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IComment DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Comment") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Comment"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Comment"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var commentInstance = new SysML2.NET.Core.DTO.Comment - { - Id = id - }; - - return commentInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConcernDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConcernDefinitionDictionaryReader.cs deleted file mode 100644 index 493a4b75a..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConcernDefinitionDictionaryReader.cs +++ /dev/null @@ -1,353 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ConcernDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IConcernDefinition ReadSimplified(Dictionary dictionary) - { - var concernDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - concernDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - concernDefinitionInstance.DeclaredName = declaredNameFeature; - concernDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - concernDefinitionInstance.ElementId = elementIdFeature; - concernDefinitionInstance.IsAbstract = isAbstractFeature; - concernDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - concernDefinitionInstance.IsIndividual = isIndividualFeature; - concernDefinitionInstance.IsSufficient = isSufficientFeature; - concernDefinitionInstance.IsVariation = isVariationFeature; - concernDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - concernDefinitionInstance.OwningRelationship = owningRelationshipFeature; - concernDefinitionInstance.ReqId = reqIdFeature; - - return concernDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IConcernDefinition ReadComplex(Dictionary dictionary) - { - var concernDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - concernDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - concernDefinitionInstance.DeclaredName = declaredNameFeature; - concernDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - concernDefinitionInstance.ElementId = elementIdFeature; - concernDefinitionInstance.IsAbstract = isAbstractFeature; - concernDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - concernDefinitionInstance.IsIndividual = isIndividualFeature; - concernDefinitionInstance.IsSufficient = isSufficientFeature; - concernDefinitionInstance.IsVariation = isVariationFeature; - concernDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - concernDefinitionInstance.OwningRelationship = owningRelationshipFeature; - concernDefinitionInstance.ReqId = reqIdFeature; - - return concernDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConcernDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ConcernDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ConcernDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ConcernDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var concernDefinitionInstance = new SysML2.NET.Core.DTO.ConcernDefinition - { - Id = id - }; - - return concernDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConcernUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConcernUsageDictionaryReader.cs deleted file mode 100644 index 161032f5e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConcernUsageDictionaryReader.cs +++ /dev/null @@ -1,493 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ConcernUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IConcernUsage ReadSimplified(Dictionary dictionary) - { - var concernUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - concernUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - concernUsageInstance.DeclaredName = declaredNameFeature; - concernUsageInstance.DeclaredShortName = declaredShortNameFeature; - concernUsageInstance.Direction = directionFeature; - concernUsageInstance.ElementId = elementIdFeature; - concernUsageInstance.IsAbstract = isAbstractFeature; - concernUsageInstance.IsComposite = isCompositeFeature; - concernUsageInstance.IsConstant = isConstantFeature; - concernUsageInstance.IsDerived = isDerivedFeature; - concernUsageInstance.IsEnd = isEndFeature; - concernUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - concernUsageInstance.IsIndividual = isIndividualFeature; - concernUsageInstance.IsOrdered = isOrderedFeature; - concernUsageInstance.IsPortion = isPortionFeature; - concernUsageInstance.IsSufficient = isSufficientFeature; - concernUsageInstance.IsUnique = isUniqueFeature; - concernUsageInstance.IsVariable = isVariableFeature; - concernUsageInstance.IsVariation = isVariationFeature; - concernUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - concernUsageInstance.OwningRelationship = owningRelationshipFeature; - concernUsageInstance.PortionKind = portionKindFeature; - concernUsageInstance.ReqId = reqIdFeature; - - return concernUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IConcernUsage ReadComplex(Dictionary dictionary) - { - var concernUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - concernUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - concernUsageInstance.DeclaredName = declaredNameFeature; - concernUsageInstance.DeclaredShortName = declaredShortNameFeature; - concernUsageInstance.Direction = directionFeature; - concernUsageInstance.ElementId = elementIdFeature; - concernUsageInstance.IsAbstract = isAbstractFeature; - concernUsageInstance.IsComposite = isCompositeFeature; - concernUsageInstance.IsConstant = isConstantFeature; - concernUsageInstance.IsDerived = isDerivedFeature; - concernUsageInstance.IsEnd = isEndFeature; - concernUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - concernUsageInstance.IsIndividual = isIndividualFeature; - concernUsageInstance.IsOrdered = isOrderedFeature; - concernUsageInstance.IsPortion = isPortionFeature; - concernUsageInstance.IsSufficient = isSufficientFeature; - concernUsageInstance.IsUnique = isUniqueFeature; - concernUsageInstance.IsVariable = isVariableFeature; - concernUsageInstance.IsVariation = isVariationFeature; - concernUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - concernUsageInstance.OwningRelationship = owningRelationshipFeature; - concernUsageInstance.PortionKind = portionKindFeature; - concernUsageInstance.ReqId = reqIdFeature; - - return concernUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConcernUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ConcernUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ConcernUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ConcernUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var concernUsageInstance = new SysML2.NET.Core.DTO.ConcernUsage - { - Id = id - }; - - return concernUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConjugatedPortDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConjugatedPortDefinitionDictionaryReader.cs deleted file mode 100644 index e43c14877..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConjugatedPortDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ConjugatedPortDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IConjugatedPortDefinition ReadSimplified(Dictionary dictionary) - { - var conjugatedPortDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - conjugatedPortDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - conjugatedPortDefinitionInstance.DeclaredName = declaredNameFeature; - conjugatedPortDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - conjugatedPortDefinitionInstance.ElementId = elementIdFeature; - conjugatedPortDefinitionInstance.IsAbstract = isAbstractFeature; - conjugatedPortDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - conjugatedPortDefinitionInstance.IsIndividual = isIndividualFeature; - conjugatedPortDefinitionInstance.IsSufficient = isSufficientFeature; - conjugatedPortDefinitionInstance.IsVariation = isVariationFeature; - conjugatedPortDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - conjugatedPortDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return conjugatedPortDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IConjugatedPortDefinition ReadComplex(Dictionary dictionary) - { - var conjugatedPortDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - conjugatedPortDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - conjugatedPortDefinitionInstance.DeclaredName = declaredNameFeature; - conjugatedPortDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - conjugatedPortDefinitionInstance.ElementId = elementIdFeature; - conjugatedPortDefinitionInstance.IsAbstract = isAbstractFeature; - conjugatedPortDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - conjugatedPortDefinitionInstance.IsIndividual = isIndividualFeature; - conjugatedPortDefinitionInstance.IsSufficient = isSufficientFeature; - conjugatedPortDefinitionInstance.IsVariation = isVariationFeature; - conjugatedPortDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - conjugatedPortDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return conjugatedPortDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConjugatedPortDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ConjugatedPortDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ConjugatedPortDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var conjugatedPortDefinitionInstance = new SysML2.NET.Core.DTO.ConjugatedPortDefinition - { - Id = id - }; - - return conjugatedPortDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConjugatedPortTypingDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConjugatedPortTypingDictionaryReader.cs deleted file mode 100644 index 283c7ca3c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConjugatedPortTypingDictionaryReader.cs +++ /dev/null @@ -1,423 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ConjugatedPortTypingDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IConjugatedPortTyping ReadSimplified(Dictionary dictionary) - { - var conjugatedPortTypingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("conjugatedPortDefinition", out object conjugatedPortDefinitionObject)) - { - throw new ArgumentException("The conjugatedPortDefinition property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid conjugatedPortDefinitionFeature = Guid.Parse(Convert.ToString(conjugatedPortDefinitionObject)); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid typeFeature = Guid.Parse(Convert.ToString(typeObject)); - - if (!dictionary.TryGetValue("typedFeature", out object typedFeatureObject)) - { - throw new ArgumentException("The typedFeature property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid typedFeatureFeature = Guid.Parse(Convert.ToString(typedFeatureObject)); - - - conjugatedPortTypingInstance.AliasIds = aliasIdsFeature ?? new List(); - conjugatedPortTypingInstance.ConjugatedPortDefinition = conjugatedPortDefinitionFeature; - conjugatedPortTypingInstance.DeclaredName = declaredNameFeature; - conjugatedPortTypingInstance.DeclaredShortName = declaredShortNameFeature; - conjugatedPortTypingInstance.ElementId = elementIdFeature; - conjugatedPortTypingInstance.General = generalFeature; - conjugatedPortTypingInstance.IsImplied = isImpliedFeature; - conjugatedPortTypingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - conjugatedPortTypingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - conjugatedPortTypingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - conjugatedPortTypingInstance.OwningRelatedElement = owningRelatedElementFeature; - conjugatedPortTypingInstance.OwningRelationship = owningRelationshipFeature; - conjugatedPortTypingInstance.Source = sourceFeature ?? new List(); - conjugatedPortTypingInstance.Specific = specificFeature; - conjugatedPortTypingInstance.Target = targetFeature ?? new List(); - conjugatedPortTypingInstance.Type = typeFeature; - conjugatedPortTypingInstance.TypedFeature = typedFeatureFeature; - - return conjugatedPortTypingInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IConjugatedPortTyping ReadComplex(Dictionary dictionary) - { - var conjugatedPortTypingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("conjugatedPortDefinition", out object conjugatedPortDefinitionObject)) - { - throw new ArgumentException("The conjugatedPortDefinition property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid conjugatedPortDefinitionFeature = Guid.Parse(Convert.ToString(conjugatedPortDefinitionObject)); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid typeFeature = Guid.Parse(Convert.ToString(typeObject)); - - if (!dictionary.TryGetValue("typedFeature", out object typedFeatureObject)) - { - throw new ArgumentException("The typedFeature property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - Guid typedFeatureFeature = Guid.Parse(Convert.ToString(typedFeatureObject)); - - - conjugatedPortTypingInstance.AliasIds = aliasIdsFeature ?? new List(); - conjugatedPortTypingInstance.ConjugatedPortDefinition = conjugatedPortDefinitionFeature; - conjugatedPortTypingInstance.DeclaredName = declaredNameFeature; - conjugatedPortTypingInstance.DeclaredShortName = declaredShortNameFeature; - conjugatedPortTypingInstance.ElementId = elementIdFeature; - conjugatedPortTypingInstance.General = generalFeature; - conjugatedPortTypingInstance.IsImplied = isImpliedFeature; - conjugatedPortTypingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - conjugatedPortTypingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - conjugatedPortTypingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - conjugatedPortTypingInstance.OwningRelatedElement = owningRelatedElementFeature; - conjugatedPortTypingInstance.OwningRelationship = owningRelationshipFeature; - conjugatedPortTypingInstance.Source = sourceFeature ?? new List(); - conjugatedPortTypingInstance.Specific = specificFeature; - conjugatedPortTypingInstance.Target = targetFeature ?? new List(); - conjugatedPortTypingInstance.Type = typeFeature; - conjugatedPortTypingInstance.TypedFeature = typedFeatureFeature; - - return conjugatedPortTypingInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConjugatedPortTyping DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ConjugatedPortTyping") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ConjugatedPortTyping"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ConjugatedPortTyping"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var conjugatedPortTypingInstance = new SysML2.NET.Core.DTO.ConjugatedPortTyping - { - Id = id - }; - - return conjugatedPortTypingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConjugationDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConjugationDictionaryReader.cs deleted file mode 100644 index 93c79b7a3..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConjugationDictionaryReader.cs +++ /dev/null @@ -1,381 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ConjugationDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IConjugation ReadSimplified(Dictionary dictionary) - { - var conjugationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("conjugatedType", out object conjugatedTypeObject)) - { - throw new ArgumentException("The conjugatedType property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - Guid conjugatedTypeFeature = Guid.Parse(Convert.ToString(conjugatedTypeObject)); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("originalType", out object originalTypeObject)) - { - throw new ArgumentException("The originalType property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - Guid originalTypeFeature = Guid.Parse(Convert.ToString(originalTypeObject)); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - conjugationInstance.AliasIds = aliasIdsFeature ?? new List(); - conjugationInstance.ConjugatedType = conjugatedTypeFeature; - conjugationInstance.DeclaredName = declaredNameFeature; - conjugationInstance.DeclaredShortName = declaredShortNameFeature; - conjugationInstance.ElementId = elementIdFeature; - conjugationInstance.IsImplied = isImpliedFeature; - conjugationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - conjugationInstance.OriginalType = originalTypeFeature; - conjugationInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - conjugationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - conjugationInstance.OwningRelatedElement = owningRelatedElementFeature; - conjugationInstance.OwningRelationship = owningRelationshipFeature; - conjugationInstance.Source = sourceFeature ?? new List(); - conjugationInstance.Target = targetFeature ?? new List(); - - return conjugationInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IConjugation ReadComplex(Dictionary dictionary) - { - var conjugationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("conjugatedType", out object conjugatedTypeObject)) - { - throw new ArgumentException("The conjugatedType property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - Guid conjugatedTypeFeature = Guid.Parse(Convert.ToString(conjugatedTypeObject)); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("originalType", out object originalTypeObject)) - { - throw new ArgumentException("The originalType property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - Guid originalTypeFeature = Guid.Parse(Convert.ToString(originalTypeObject)); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - List targetFeature = (targetObject as List); - - - conjugationInstance.AliasIds = aliasIdsFeature ?? new List(); - conjugationInstance.ConjugatedType = conjugatedTypeFeature; - conjugationInstance.DeclaredName = declaredNameFeature; - conjugationInstance.DeclaredShortName = declaredShortNameFeature; - conjugationInstance.ElementId = elementIdFeature; - conjugationInstance.IsImplied = isImpliedFeature; - conjugationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - conjugationInstance.OriginalType = originalTypeFeature; - conjugationInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - conjugationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - conjugationInstance.OwningRelatedElement = owningRelatedElementFeature; - conjugationInstance.OwningRelationship = owningRelationshipFeature; - conjugationInstance.Source = sourceFeature ?? new List(); - conjugationInstance.Target = targetFeature ?? new List(); - - return conjugationInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConjugation DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Conjugation") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Conjugation"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Conjugation"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var conjugationInstance = new SysML2.NET.Core.DTO.Conjugation - { - Id = id - }; - - return conjugationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConnectionDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConnectionDefinitionDictionaryReader.cs deleted file mode 100644 index eb745bc4e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConnectionDefinitionDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ConnectionDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IConnectionDefinition ReadSimplified(Dictionary dictionary) - { - var connectionDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - connectionDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - connectionDefinitionInstance.DeclaredName = declaredNameFeature; - connectionDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - connectionDefinitionInstance.ElementId = elementIdFeature; - connectionDefinitionInstance.IsAbstract = isAbstractFeature; - connectionDefinitionInstance.IsImplied = isImpliedFeature; - connectionDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - connectionDefinitionInstance.IsIndividual = isIndividualFeature; - connectionDefinitionInstance.IsSufficient = isSufficientFeature; - connectionDefinitionInstance.IsVariation = isVariationFeature; - connectionDefinitionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - connectionDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - connectionDefinitionInstance.OwningRelatedElement = owningRelatedElementFeature; - connectionDefinitionInstance.OwningRelationship = owningRelationshipFeature; - connectionDefinitionInstance.Source = sourceFeature ?? new List(); - connectionDefinitionInstance.Target = targetFeature ?? new List(); - - return connectionDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IConnectionDefinition ReadComplex(Dictionary dictionary) - { - var connectionDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - List targetFeature = (targetObject as List); - - - connectionDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - connectionDefinitionInstance.DeclaredName = declaredNameFeature; - connectionDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - connectionDefinitionInstance.ElementId = elementIdFeature; - connectionDefinitionInstance.IsAbstract = isAbstractFeature; - connectionDefinitionInstance.IsImplied = isImpliedFeature; - connectionDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - connectionDefinitionInstance.IsIndividual = isIndividualFeature; - connectionDefinitionInstance.IsSufficient = isSufficientFeature; - connectionDefinitionInstance.IsVariation = isVariationFeature; - connectionDefinitionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - connectionDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - connectionDefinitionInstance.OwningRelatedElement = owningRelatedElementFeature; - connectionDefinitionInstance.OwningRelationship = owningRelationshipFeature; - connectionDefinitionInstance.Source = sourceFeature ?? new List(); - connectionDefinitionInstance.Target = targetFeature ?? new List(); - - return connectionDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConnectionDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ConnectionDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ConnectionDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ConnectionDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var connectionDefinitionInstance = new SysML2.NET.Core.DTO.ConnectionDefinition - { - Id = id - }; - - return connectionDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConnectionUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConnectionUsageDictionaryReader.cs deleted file mode 100644 index d26515ccb..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConnectionUsageDictionaryReader.cs +++ /dev/null @@ -1,549 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ConnectionUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IConnectionUsage ReadSimplified(Dictionary dictionary) - { - var connectionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - connectionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - connectionUsageInstance.DeclaredName = declaredNameFeature; - connectionUsageInstance.DeclaredShortName = declaredShortNameFeature; - connectionUsageInstance.Direction = directionFeature; - connectionUsageInstance.ElementId = elementIdFeature; - connectionUsageInstance.IsAbstract = isAbstractFeature; - connectionUsageInstance.IsComposite = isCompositeFeature; - connectionUsageInstance.IsConstant = isConstantFeature; - connectionUsageInstance.IsDerived = isDerivedFeature; - connectionUsageInstance.IsEnd = isEndFeature; - connectionUsageInstance.IsImplied = isImpliedFeature; - connectionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - connectionUsageInstance.IsIndividual = isIndividualFeature; - connectionUsageInstance.IsOrdered = isOrderedFeature; - connectionUsageInstance.IsPortion = isPortionFeature; - connectionUsageInstance.IsSufficient = isSufficientFeature; - connectionUsageInstance.IsUnique = isUniqueFeature; - connectionUsageInstance.IsVariable = isVariableFeature; - connectionUsageInstance.IsVariation = isVariationFeature; - connectionUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - connectionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - connectionUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - connectionUsageInstance.OwningRelationship = owningRelationshipFeature; - connectionUsageInstance.PortionKind = portionKindFeature; - connectionUsageInstance.Source = sourceFeature ?? new List(); - connectionUsageInstance.Target = targetFeature ?? new List(); - - return connectionUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IConnectionUsage ReadComplex(Dictionary dictionary) - { - var connectionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - List targetFeature = (targetObject as List); - - - connectionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - connectionUsageInstance.DeclaredName = declaredNameFeature; - connectionUsageInstance.DeclaredShortName = declaredShortNameFeature; - connectionUsageInstance.Direction = directionFeature; - connectionUsageInstance.ElementId = elementIdFeature; - connectionUsageInstance.IsAbstract = isAbstractFeature; - connectionUsageInstance.IsComposite = isCompositeFeature; - connectionUsageInstance.IsConstant = isConstantFeature; - connectionUsageInstance.IsDerived = isDerivedFeature; - connectionUsageInstance.IsEnd = isEndFeature; - connectionUsageInstance.IsImplied = isImpliedFeature; - connectionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - connectionUsageInstance.IsIndividual = isIndividualFeature; - connectionUsageInstance.IsOrdered = isOrderedFeature; - connectionUsageInstance.IsPortion = isPortionFeature; - connectionUsageInstance.IsSufficient = isSufficientFeature; - connectionUsageInstance.IsUnique = isUniqueFeature; - connectionUsageInstance.IsVariable = isVariableFeature; - connectionUsageInstance.IsVariation = isVariationFeature; - connectionUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - connectionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - connectionUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - connectionUsageInstance.OwningRelationship = owningRelationshipFeature; - connectionUsageInstance.PortionKind = portionKindFeature; - connectionUsageInstance.Source = sourceFeature ?? new List(); - connectionUsageInstance.Target = targetFeature ?? new List(); - - return connectionUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConnectionUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ConnectionUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ConnectionUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ConnectionUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var connectionUsageInstance = new SysML2.NET.Core.DTO.ConnectionUsage - { - Id = id - }; - - return connectionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConnectorDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConnectorDictionaryReader.cs deleted file mode 100644 index 7ad6a24e7..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConnectorDictionaryReader.cs +++ /dev/null @@ -1,507 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ConnectorDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IConnector ReadSimplified(Dictionary dictionary) - { - var connectorInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - connectorInstance.AliasIds = aliasIdsFeature ?? new List(); - connectorInstance.DeclaredName = declaredNameFeature; - connectorInstance.DeclaredShortName = declaredShortNameFeature; - connectorInstance.Direction = directionFeature; - connectorInstance.ElementId = elementIdFeature; - connectorInstance.IsAbstract = isAbstractFeature; - connectorInstance.IsComposite = isCompositeFeature; - connectorInstance.IsConstant = isConstantFeature; - connectorInstance.IsDerived = isDerivedFeature; - connectorInstance.IsEnd = isEndFeature; - connectorInstance.IsImplied = isImpliedFeature; - connectorInstance.IsImpliedIncluded = isImpliedIncludedFeature; - connectorInstance.IsOrdered = isOrderedFeature; - connectorInstance.IsPortion = isPortionFeature; - connectorInstance.IsSufficient = isSufficientFeature; - connectorInstance.IsUnique = isUniqueFeature; - connectorInstance.IsVariable = isVariableFeature; - connectorInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - connectorInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - connectorInstance.OwningRelatedElement = owningRelatedElementFeature; - connectorInstance.OwningRelationship = owningRelationshipFeature; - connectorInstance.Source = sourceFeature ?? new List(); - connectorInstance.Target = targetFeature ?? new List(); - - return connectorInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IConnector ReadComplex(Dictionary dictionary) - { - var connectorInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - List targetFeature = (targetObject as List); - - - connectorInstance.AliasIds = aliasIdsFeature ?? new List(); - connectorInstance.DeclaredName = declaredNameFeature; - connectorInstance.DeclaredShortName = declaredShortNameFeature; - connectorInstance.Direction = directionFeature; - connectorInstance.ElementId = elementIdFeature; - connectorInstance.IsAbstract = isAbstractFeature; - connectorInstance.IsComposite = isCompositeFeature; - connectorInstance.IsConstant = isConstantFeature; - connectorInstance.IsDerived = isDerivedFeature; - connectorInstance.IsEnd = isEndFeature; - connectorInstance.IsImplied = isImpliedFeature; - connectorInstance.IsImpliedIncluded = isImpliedIncludedFeature; - connectorInstance.IsOrdered = isOrderedFeature; - connectorInstance.IsPortion = isPortionFeature; - connectorInstance.IsSufficient = isSufficientFeature; - connectorInstance.IsUnique = isUniqueFeature; - connectorInstance.IsVariable = isVariableFeature; - connectorInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - connectorInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - connectorInstance.OwningRelatedElement = owningRelatedElementFeature; - connectorInstance.OwningRelationship = owningRelationshipFeature; - connectorInstance.Source = sourceFeature ?? new List(); - connectorInstance.Target = targetFeature ?? new List(); - - return connectorInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConnector DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Connector") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Connector"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Connector"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var connectorInstance = new SysML2.NET.Core.DTO.Connector - { - Id = id - }; - - return connectorInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConstraintDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConstraintDefinitionDictionaryReader.cs deleted file mode 100644 index fc47260aa..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConstraintDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ConstraintDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IConstraintDefinition ReadSimplified(Dictionary dictionary) - { - var constraintDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - constraintDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - constraintDefinitionInstance.DeclaredName = declaredNameFeature; - constraintDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - constraintDefinitionInstance.ElementId = elementIdFeature; - constraintDefinitionInstance.IsAbstract = isAbstractFeature; - constraintDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - constraintDefinitionInstance.IsIndividual = isIndividualFeature; - constraintDefinitionInstance.IsSufficient = isSufficientFeature; - constraintDefinitionInstance.IsVariation = isVariationFeature; - constraintDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - constraintDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return constraintDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IConstraintDefinition ReadComplex(Dictionary dictionary) - { - var constraintDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - constraintDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - constraintDefinitionInstance.DeclaredName = declaredNameFeature; - constraintDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - constraintDefinitionInstance.ElementId = elementIdFeature; - constraintDefinitionInstance.IsAbstract = isAbstractFeature; - constraintDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - constraintDefinitionInstance.IsIndividual = isIndividualFeature; - constraintDefinitionInstance.IsSufficient = isSufficientFeature; - constraintDefinitionInstance.IsVariation = isVariationFeature; - constraintDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - constraintDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return constraintDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConstraintDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ConstraintDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ConstraintDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ConstraintDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var constraintDefinitionInstance = new SysML2.NET.Core.DTO.ConstraintDefinition - { - Id = id - }; - - return constraintDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConstraintUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConstraintUsageDictionaryReader.cs deleted file mode 100644 index 5d0fd3846..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConstraintUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ConstraintUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IConstraintUsage ReadSimplified(Dictionary dictionary) - { - var constraintUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - constraintUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - constraintUsageInstance.DeclaredName = declaredNameFeature; - constraintUsageInstance.DeclaredShortName = declaredShortNameFeature; - constraintUsageInstance.Direction = directionFeature; - constraintUsageInstance.ElementId = elementIdFeature; - constraintUsageInstance.IsAbstract = isAbstractFeature; - constraintUsageInstance.IsComposite = isCompositeFeature; - constraintUsageInstance.IsConstant = isConstantFeature; - constraintUsageInstance.IsDerived = isDerivedFeature; - constraintUsageInstance.IsEnd = isEndFeature; - constraintUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - constraintUsageInstance.IsIndividual = isIndividualFeature; - constraintUsageInstance.IsOrdered = isOrderedFeature; - constraintUsageInstance.IsPortion = isPortionFeature; - constraintUsageInstance.IsSufficient = isSufficientFeature; - constraintUsageInstance.IsUnique = isUniqueFeature; - constraintUsageInstance.IsVariable = isVariableFeature; - constraintUsageInstance.IsVariation = isVariationFeature; - constraintUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - constraintUsageInstance.OwningRelationship = owningRelationshipFeature; - constraintUsageInstance.PortionKind = portionKindFeature; - - return constraintUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IConstraintUsage ReadComplex(Dictionary dictionary) - { - var constraintUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - constraintUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - constraintUsageInstance.DeclaredName = declaredNameFeature; - constraintUsageInstance.DeclaredShortName = declaredShortNameFeature; - constraintUsageInstance.Direction = directionFeature; - constraintUsageInstance.ElementId = elementIdFeature; - constraintUsageInstance.IsAbstract = isAbstractFeature; - constraintUsageInstance.IsComposite = isCompositeFeature; - constraintUsageInstance.IsConstant = isConstantFeature; - constraintUsageInstance.IsDerived = isDerivedFeature; - constraintUsageInstance.IsEnd = isEndFeature; - constraintUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - constraintUsageInstance.IsIndividual = isIndividualFeature; - constraintUsageInstance.IsOrdered = isOrderedFeature; - constraintUsageInstance.IsPortion = isPortionFeature; - constraintUsageInstance.IsSufficient = isSufficientFeature; - constraintUsageInstance.IsUnique = isUniqueFeature; - constraintUsageInstance.IsVariable = isVariableFeature; - constraintUsageInstance.IsVariation = isVariationFeature; - constraintUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - constraintUsageInstance.OwningRelationship = owningRelationshipFeature; - constraintUsageInstance.PortionKind = portionKindFeature; - - return constraintUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConstraintUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ConstraintUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ConstraintUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ConstraintUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var constraintUsageInstance = new SysML2.NET.Core.DTO.ConstraintUsage - { - Id = id - }; - - return constraintUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConstructorExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConstructorExpressionDictionaryReader.cs deleted file mode 100644 index ac2fe4780..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ConstructorExpressionDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ConstructorExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IConstructorExpression ReadSimplified(Dictionary dictionary) - { - var constructorExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - constructorExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - constructorExpressionInstance.DeclaredName = declaredNameFeature; - constructorExpressionInstance.DeclaredShortName = declaredShortNameFeature; - constructorExpressionInstance.Direction = directionFeature; - constructorExpressionInstance.ElementId = elementIdFeature; - constructorExpressionInstance.IsAbstract = isAbstractFeature; - constructorExpressionInstance.IsComposite = isCompositeFeature; - constructorExpressionInstance.IsConstant = isConstantFeature; - constructorExpressionInstance.IsDerived = isDerivedFeature; - constructorExpressionInstance.IsEnd = isEndFeature; - constructorExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - constructorExpressionInstance.IsOrdered = isOrderedFeature; - constructorExpressionInstance.IsPortion = isPortionFeature; - constructorExpressionInstance.IsSufficient = isSufficientFeature; - constructorExpressionInstance.IsUnique = isUniqueFeature; - constructorExpressionInstance.IsVariable = isVariableFeature; - constructorExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - constructorExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return constructorExpressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IConstructorExpression ReadComplex(Dictionary dictionary) - { - var constructorExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - constructorExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - constructorExpressionInstance.DeclaredName = declaredNameFeature; - constructorExpressionInstance.DeclaredShortName = declaredShortNameFeature; - constructorExpressionInstance.Direction = directionFeature; - constructorExpressionInstance.ElementId = elementIdFeature; - constructorExpressionInstance.IsAbstract = isAbstractFeature; - constructorExpressionInstance.IsComposite = isCompositeFeature; - constructorExpressionInstance.IsConstant = isConstantFeature; - constructorExpressionInstance.IsDerived = isDerivedFeature; - constructorExpressionInstance.IsEnd = isEndFeature; - constructorExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - constructorExpressionInstance.IsOrdered = isOrderedFeature; - constructorExpressionInstance.IsPortion = isPortionFeature; - constructorExpressionInstance.IsSufficient = isSufficientFeature; - constructorExpressionInstance.IsUnique = isUniqueFeature; - constructorExpressionInstance.IsVariable = isVariableFeature; - constructorExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - constructorExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return constructorExpressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConstructorExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ConstructorExpression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ConstructorExpression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ConstructorExpression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var constructorExpressionInstance = new SysML2.NET.Core.DTO.ConstructorExpression - { - Id = id - }; - - return constructorExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CrossSubsettingDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CrossSubsettingDictionaryReader.cs deleted file mode 100644 index 5d9d3e8f5..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/CrossSubsettingDictionaryReader.cs +++ /dev/null @@ -1,423 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class CrossSubsettingDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ICrossSubsetting ReadSimplified(Dictionary dictionary) - { - var crossSubsettingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("crossedFeature", out object crossedFeatureObject)) - { - throw new ArgumentException("The crossedFeature property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid crossedFeatureFeature = Guid.Parse(Convert.ToString(crossedFeatureObject)); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("subsettedFeature", out object subsettedFeatureObject)) - { - throw new ArgumentException("The subsettedFeature property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid subsettedFeatureFeature = Guid.Parse(Convert.ToString(subsettedFeatureObject)); - - if (!dictionary.TryGetValue("subsettingFeature", out object subsettingFeatureObject)) - { - throw new ArgumentException("The subsettingFeature property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid subsettingFeatureFeature = Guid.Parse(Convert.ToString(subsettingFeatureObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - crossSubsettingInstance.AliasIds = aliasIdsFeature ?? new List(); - crossSubsettingInstance.CrossedFeature = crossedFeatureFeature; - crossSubsettingInstance.DeclaredName = declaredNameFeature; - crossSubsettingInstance.DeclaredShortName = declaredShortNameFeature; - crossSubsettingInstance.ElementId = elementIdFeature; - crossSubsettingInstance.General = generalFeature; - crossSubsettingInstance.IsImplied = isImpliedFeature; - crossSubsettingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - crossSubsettingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - crossSubsettingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - crossSubsettingInstance.OwningRelatedElement = owningRelatedElementFeature; - crossSubsettingInstance.OwningRelationship = owningRelationshipFeature; - crossSubsettingInstance.Source = sourceFeature ?? new List(); - crossSubsettingInstance.Specific = specificFeature; - crossSubsettingInstance.SubsettedFeature = subsettedFeatureFeature; - crossSubsettingInstance.SubsettingFeature = subsettingFeatureFeature; - crossSubsettingInstance.Target = targetFeature ?? new List(); - - return crossSubsettingInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ICrossSubsetting ReadComplex(Dictionary dictionary) - { - var crossSubsettingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("crossedFeature", out object crossedFeatureObject)) - { - throw new ArgumentException("The crossedFeature property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid crossedFeatureFeature = Guid.Parse(Convert.ToString(crossedFeatureObject)); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("subsettedFeature", out object subsettedFeatureObject)) - { - throw new ArgumentException("The subsettedFeature property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid subsettedFeatureFeature = Guid.Parse(Convert.ToString(subsettedFeatureObject)); - - if (!dictionary.TryGetValue("subsettingFeature", out object subsettingFeatureObject)) - { - throw new ArgumentException("The subsettingFeature property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - Guid subsettingFeatureFeature = Guid.Parse(Convert.ToString(subsettingFeatureObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - List targetFeature = (targetObject as List); - - - crossSubsettingInstance.AliasIds = aliasIdsFeature ?? new List(); - crossSubsettingInstance.CrossedFeature = crossedFeatureFeature; - crossSubsettingInstance.DeclaredName = declaredNameFeature; - crossSubsettingInstance.DeclaredShortName = declaredShortNameFeature; - crossSubsettingInstance.ElementId = elementIdFeature; - crossSubsettingInstance.General = generalFeature; - crossSubsettingInstance.IsImplied = isImpliedFeature; - crossSubsettingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - crossSubsettingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - crossSubsettingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - crossSubsettingInstance.OwningRelatedElement = owningRelatedElementFeature; - crossSubsettingInstance.OwningRelationship = owningRelationshipFeature; - crossSubsettingInstance.Source = sourceFeature ?? new List(); - crossSubsettingInstance.Specific = specificFeature; - crossSubsettingInstance.SubsettedFeature = subsettedFeatureFeature; - crossSubsettingInstance.SubsettingFeature = subsettingFeatureFeature; - crossSubsettingInstance.Target = targetFeature ?? new List(); - - return crossSubsettingInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ICrossSubsetting DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - - var type = Convert.ToString(typeObject); - - if (type != "CrossSubsetting") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a CrossSubsetting"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a CrossSubsetting"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var crossSubsettingInstance = new SysML2.NET.Core.DTO.CrossSubsetting - { - Id = id - }; - - return crossSubsettingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DataTypeDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DataTypeDictionaryReader.cs deleted file mode 100644 index 8e8895d0b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DataTypeDictionaryReader.cs +++ /dev/null @@ -1,311 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class DataTypeDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IDataType ReadSimplified(Dictionary dictionary) - { - var dataTypeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - dataTypeInstance.AliasIds = aliasIdsFeature ?? new List(); - dataTypeInstance.DeclaredName = declaredNameFeature; - dataTypeInstance.DeclaredShortName = declaredShortNameFeature; - dataTypeInstance.ElementId = elementIdFeature; - dataTypeInstance.IsAbstract = isAbstractFeature; - dataTypeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - dataTypeInstance.IsSufficient = isSufficientFeature; - dataTypeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - dataTypeInstance.OwningRelationship = owningRelationshipFeature; - - return dataTypeInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IDataType ReadComplex(Dictionary dictionary) - { - var dataTypeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - dataTypeInstance.AliasIds = aliasIdsFeature ?? new List(); - dataTypeInstance.DeclaredName = declaredNameFeature; - dataTypeInstance.DeclaredShortName = declaredShortNameFeature; - dataTypeInstance.ElementId = elementIdFeature; - dataTypeInstance.IsAbstract = isAbstractFeature; - dataTypeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - dataTypeInstance.IsSufficient = isSufficientFeature; - dataTypeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - dataTypeInstance.OwningRelationship = owningRelationshipFeature; - - return dataTypeInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDataType DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - - var type = Convert.ToString(typeObject); - - if (type != "DataType") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a DataType"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a DataType"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var dataTypeInstance = new SysML2.NET.Core.DTO.DataType - { - Id = id - }; - - return dataTypeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DecisionNodeDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DecisionNodeDictionaryReader.cs deleted file mode 100644 index 93c47c2a7..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DecisionNodeDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class DecisionNodeDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IDecisionNode ReadSimplified(Dictionary dictionary) - { - var decisionNodeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - decisionNodeInstance.AliasIds = aliasIdsFeature ?? new List(); - decisionNodeInstance.DeclaredName = declaredNameFeature; - decisionNodeInstance.DeclaredShortName = declaredShortNameFeature; - decisionNodeInstance.Direction = directionFeature; - decisionNodeInstance.ElementId = elementIdFeature; - decisionNodeInstance.IsAbstract = isAbstractFeature; - decisionNodeInstance.IsComposite = isCompositeFeature; - decisionNodeInstance.IsConstant = isConstantFeature; - decisionNodeInstance.IsDerived = isDerivedFeature; - decisionNodeInstance.IsEnd = isEndFeature; - decisionNodeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - decisionNodeInstance.IsIndividual = isIndividualFeature; - decisionNodeInstance.IsOrdered = isOrderedFeature; - decisionNodeInstance.IsPortion = isPortionFeature; - decisionNodeInstance.IsSufficient = isSufficientFeature; - decisionNodeInstance.IsUnique = isUniqueFeature; - decisionNodeInstance.IsVariable = isVariableFeature; - decisionNodeInstance.IsVariation = isVariationFeature; - decisionNodeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - decisionNodeInstance.OwningRelationship = owningRelationshipFeature; - decisionNodeInstance.PortionKind = portionKindFeature; - - return decisionNodeInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IDecisionNode ReadComplex(Dictionary dictionary) - { - var decisionNodeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - decisionNodeInstance.AliasIds = aliasIdsFeature ?? new List(); - decisionNodeInstance.DeclaredName = declaredNameFeature; - decisionNodeInstance.DeclaredShortName = declaredShortNameFeature; - decisionNodeInstance.Direction = directionFeature; - decisionNodeInstance.ElementId = elementIdFeature; - decisionNodeInstance.IsAbstract = isAbstractFeature; - decisionNodeInstance.IsComposite = isCompositeFeature; - decisionNodeInstance.IsConstant = isConstantFeature; - decisionNodeInstance.IsDerived = isDerivedFeature; - decisionNodeInstance.IsEnd = isEndFeature; - decisionNodeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - decisionNodeInstance.IsIndividual = isIndividualFeature; - decisionNodeInstance.IsOrdered = isOrderedFeature; - decisionNodeInstance.IsPortion = isPortionFeature; - decisionNodeInstance.IsSufficient = isSufficientFeature; - decisionNodeInstance.IsUnique = isUniqueFeature; - decisionNodeInstance.IsVariable = isVariableFeature; - decisionNodeInstance.IsVariation = isVariationFeature; - decisionNodeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - decisionNodeInstance.OwningRelationship = owningRelationshipFeature; - decisionNodeInstance.PortionKind = portionKindFeature; - - return decisionNodeInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDecisionNode DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - - var type = Convert.ToString(typeObject); - - if (type != "DecisionNode") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a DecisionNode"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a DecisionNode"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var decisionNodeInstance = new SysML2.NET.Core.DTO.DecisionNode - { - Id = id - }; - - return decisionNodeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DefinitionDictionaryReader.cs deleted file mode 100644 index 4861bd41f..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DefinitionDictionaryReader.cs +++ /dev/null @@ -1,325 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class DefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IDefinition ReadSimplified(Dictionary dictionary) - { - var definitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - definitionInstance.AliasIds = aliasIdsFeature ?? new List(); - definitionInstance.DeclaredName = declaredNameFeature; - definitionInstance.DeclaredShortName = declaredShortNameFeature; - definitionInstance.ElementId = elementIdFeature; - definitionInstance.IsAbstract = isAbstractFeature; - definitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - definitionInstance.IsSufficient = isSufficientFeature; - definitionInstance.IsVariation = isVariationFeature; - definitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - definitionInstance.OwningRelationship = owningRelationshipFeature; - - return definitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IDefinition ReadComplex(Dictionary dictionary) - { - var definitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - definitionInstance.AliasIds = aliasIdsFeature ?? new List(); - definitionInstance.DeclaredName = declaredNameFeature; - definitionInstance.DeclaredShortName = declaredShortNameFeature; - definitionInstance.ElementId = elementIdFeature; - definitionInstance.IsAbstract = isAbstractFeature; - definitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - definitionInstance.IsSufficient = isSufficientFeature; - definitionInstance.IsVariation = isVariationFeature; - definitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - definitionInstance.OwningRelationship = owningRelationshipFeature; - - return definitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Definition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Definition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Definition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var definitionInstance = new SysML2.NET.Core.DTO.Definition - { - Id = id - }; - - return definitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DependencyDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DependencyDictionaryReader.cs deleted file mode 100644 index d4b81fbcf..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DependencyDictionaryReader.cs +++ /dev/null @@ -1,381 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class DependencyDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IDependency ReadSimplified(Dictionary dictionary) - { - var dependencyInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("client", out object clientObject)) - { - throw new ArgumentException("The client property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List clientFeature = (clientObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("supplier", out object supplierObject)) - { - throw new ArgumentException("The supplier property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List supplierFeature = (supplierObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - dependencyInstance.AliasIds = aliasIdsFeature ?? new List(); - dependencyInstance.Client = clientFeature ?? new List(); - dependencyInstance.DeclaredName = declaredNameFeature; - dependencyInstance.DeclaredShortName = declaredShortNameFeature; - dependencyInstance.ElementId = elementIdFeature; - dependencyInstance.IsImplied = isImpliedFeature; - dependencyInstance.IsImpliedIncluded = isImpliedIncludedFeature; - dependencyInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - dependencyInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - dependencyInstance.OwningRelatedElement = owningRelatedElementFeature; - dependencyInstance.OwningRelationship = owningRelationshipFeature; - dependencyInstance.Source = sourceFeature ?? new List(); - dependencyInstance.Supplier = supplierFeature ?? new List(); - dependencyInstance.Target = targetFeature ?? new List(); - - return dependencyInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IDependency ReadComplex(Dictionary dictionary) - { - var dependencyInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("client", out object clientObject)) - { - throw new ArgumentException("The client property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List clientFeature = (clientObject as List); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("supplier", out object supplierObject)) - { - throw new ArgumentException("The supplier property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List supplierFeature = (supplierObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - List targetFeature = (targetObject as List); - - - dependencyInstance.AliasIds = aliasIdsFeature ?? new List(); - dependencyInstance.Client = clientFeature ?? new List(); - dependencyInstance.DeclaredName = declaredNameFeature; - dependencyInstance.DeclaredShortName = declaredShortNameFeature; - dependencyInstance.ElementId = elementIdFeature; - dependencyInstance.IsImplied = isImpliedFeature; - dependencyInstance.IsImpliedIncluded = isImpliedIncludedFeature; - dependencyInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - dependencyInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - dependencyInstance.OwningRelatedElement = owningRelatedElementFeature; - dependencyInstance.OwningRelationship = owningRelationshipFeature; - dependencyInstance.Source = sourceFeature ?? new List(); - dependencyInstance.Supplier = supplierFeature ?? new List(); - dependencyInstance.Target = targetFeature ?? new List(); - - return dependencyInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDependency DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Dependency") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Dependency"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Dependency"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var dependencyInstance = new SysML2.NET.Core.DTO.Dependency - { - Id = id - }; - - return dependencyInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DictionaryReaderProvider.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DictionaryReaderProvider.cs deleted file mode 100644 index 3184d937e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DictionaryReaderProvider.cs +++ /dev/null @@ -1,248 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - - /// - /// Delegate provider for the appropriate Read method to convert a Dictionary to - /// an instance of - /// - internal static class DictionaryReaderProvider - { - private static readonly Dictionary, DictionaryKind, IData>> DictionaryReaderFuncMap = new Dictionary, DictionaryKind, IData>> - { - { "AcceptActionUsage", AcceptActionUsageDictionaryReader.Read }, - { "ActionDefinition", ActionDefinitionDictionaryReader.Read }, - { "ActionUsage", ActionUsageDictionaryReader.Read }, - { "ActorMembership", ActorMembershipDictionaryReader.Read }, - { "AllocationDefinition", AllocationDefinitionDictionaryReader.Read }, - { "AllocationUsage", AllocationUsageDictionaryReader.Read }, - { "AnalysisCaseDefinition", AnalysisCaseDefinitionDictionaryReader.Read }, - { "AnalysisCaseUsage", AnalysisCaseUsageDictionaryReader.Read }, - { "AnnotatingElement", AnnotatingElementDictionaryReader.Read }, - { "Annotation", AnnotationDictionaryReader.Read }, - { "AssertConstraintUsage", AssertConstraintUsageDictionaryReader.Read }, - { "AssignmentActionUsage", AssignmentActionUsageDictionaryReader.Read }, - { "Association", AssociationDictionaryReader.Read }, - { "AssociationStructure", AssociationStructureDictionaryReader.Read }, - { "AttributeDefinition", AttributeDefinitionDictionaryReader.Read }, - { "AttributeUsage", AttributeUsageDictionaryReader.Read }, - { "Behavior", BehaviorDictionaryReader.Read }, - { "BindingConnector", BindingConnectorDictionaryReader.Read }, - { "BindingConnectorAsUsage", BindingConnectorAsUsageDictionaryReader.Read }, - { "BooleanExpression", BooleanExpressionDictionaryReader.Read }, - { "CalculationDefinition", CalculationDefinitionDictionaryReader.Read }, - { "CalculationUsage", CalculationUsageDictionaryReader.Read }, - { "CaseDefinition", CaseDefinitionDictionaryReader.Read }, - { "CaseUsage", CaseUsageDictionaryReader.Read }, - { "Class", ClassDictionaryReader.Read }, - { "Classifier", ClassifierDictionaryReader.Read }, - { "CollectExpression", CollectExpressionDictionaryReader.Read }, - { "Comment", CommentDictionaryReader.Read }, - { "ConcernDefinition", ConcernDefinitionDictionaryReader.Read }, - { "ConcernUsage", ConcernUsageDictionaryReader.Read }, - { "ConjugatedPortDefinition", ConjugatedPortDefinitionDictionaryReader.Read }, - { "ConjugatedPortTyping", ConjugatedPortTypingDictionaryReader.Read }, - { "Conjugation", ConjugationDictionaryReader.Read }, - { "ConnectionDefinition", ConnectionDefinitionDictionaryReader.Read }, - { "ConnectionUsage", ConnectionUsageDictionaryReader.Read }, - { "Connector", ConnectorDictionaryReader.Read }, - { "ConstraintDefinition", ConstraintDefinitionDictionaryReader.Read }, - { "ConstraintUsage", ConstraintUsageDictionaryReader.Read }, - { "ConstructorExpression", ConstructorExpressionDictionaryReader.Read }, - { "CrossSubsetting", CrossSubsettingDictionaryReader.Read }, - { "DataType", DataTypeDictionaryReader.Read }, - { "DecisionNode", DecisionNodeDictionaryReader.Read }, - { "Definition", DefinitionDictionaryReader.Read }, - { "Dependency", DependencyDictionaryReader.Read }, - { "Differencing", DifferencingDictionaryReader.Read }, - { "Disjoining", DisjoiningDictionaryReader.Read }, - { "Documentation", DocumentationDictionaryReader.Read }, - { "ElementFilterMembership", ElementFilterMembershipDictionaryReader.Read }, - { "EndFeatureMembership", EndFeatureMembershipDictionaryReader.Read }, - { "EnumerationDefinition", EnumerationDefinitionDictionaryReader.Read }, - { "EnumerationUsage", EnumerationUsageDictionaryReader.Read }, - { "EventOccurrenceUsage", EventOccurrenceUsageDictionaryReader.Read }, - { "ExhibitStateUsage", ExhibitStateUsageDictionaryReader.Read }, - { "Expression", ExpressionDictionaryReader.Read }, - { "Feature", FeatureDictionaryReader.Read }, - { "FeatureChainExpression", FeatureChainExpressionDictionaryReader.Read }, - { "FeatureChaining", FeatureChainingDictionaryReader.Read }, - { "FeatureInverting", FeatureInvertingDictionaryReader.Read }, - { "FeatureMembership", FeatureMembershipDictionaryReader.Read }, - { "FeatureReferenceExpression", FeatureReferenceExpressionDictionaryReader.Read }, - { "FeatureTyping", FeatureTypingDictionaryReader.Read }, - { "FeatureValue", FeatureValueDictionaryReader.Read }, - { "Flow", FlowDictionaryReader.Read }, - { "FlowDefinition", FlowDefinitionDictionaryReader.Read }, - { "FlowEnd", FlowEndDictionaryReader.Read }, - { "FlowUsage", FlowUsageDictionaryReader.Read }, - { "ForkNode", ForkNodeDictionaryReader.Read }, - { "ForLoopActionUsage", ForLoopActionUsageDictionaryReader.Read }, - { "FramedConcernMembership", FramedConcernMembershipDictionaryReader.Read }, - { "Function", FunctionDictionaryReader.Read }, - { "IfActionUsage", IfActionUsageDictionaryReader.Read }, - { "IncludeUseCaseUsage", IncludeUseCaseUsageDictionaryReader.Read }, - { "IndexExpression", IndexExpressionDictionaryReader.Read }, - { "Interaction", InteractionDictionaryReader.Read }, - { "InterfaceDefinition", InterfaceDefinitionDictionaryReader.Read }, - { "InterfaceUsage", InterfaceUsageDictionaryReader.Read }, - { "Intersecting", IntersectingDictionaryReader.Read }, - { "Invariant", InvariantDictionaryReader.Read }, - { "InvocationExpression", InvocationExpressionDictionaryReader.Read }, - { "ItemDefinition", ItemDefinitionDictionaryReader.Read }, - { "ItemUsage", ItemUsageDictionaryReader.Read }, - { "JoinNode", JoinNodeDictionaryReader.Read }, - { "LibraryPackage", LibraryPackageDictionaryReader.Read }, - { "LiteralBoolean", LiteralBooleanDictionaryReader.Read }, - { "LiteralExpression", LiteralExpressionDictionaryReader.Read }, - { "LiteralInfinity", LiteralInfinityDictionaryReader.Read }, - { "LiteralInteger", LiteralIntegerDictionaryReader.Read }, - { "LiteralRational", LiteralRationalDictionaryReader.Read }, - { "LiteralString", LiteralStringDictionaryReader.Read }, - { "Membership", MembershipDictionaryReader.Read }, - { "MembershipExpose", MembershipExposeDictionaryReader.Read }, - { "MembershipImport", MembershipImportDictionaryReader.Read }, - { "MergeNode", MergeNodeDictionaryReader.Read }, - { "Metaclass", MetaclassDictionaryReader.Read }, - { "MetadataAccessExpression", MetadataAccessExpressionDictionaryReader.Read }, - { "MetadataDefinition", MetadataDefinitionDictionaryReader.Read }, - { "MetadataFeature", MetadataFeatureDictionaryReader.Read }, - { "MetadataUsage", MetadataUsageDictionaryReader.Read }, - { "Multiplicity", MultiplicityDictionaryReader.Read }, - { "MultiplicityRange", MultiplicityRangeDictionaryReader.Read }, - { "Namespace", NamespaceDictionaryReader.Read }, - { "NamespaceExpose", NamespaceExposeDictionaryReader.Read }, - { "NamespaceImport", NamespaceImportDictionaryReader.Read }, - { "NullExpression", NullExpressionDictionaryReader.Read }, - { "ObjectiveMembership", ObjectiveMembershipDictionaryReader.Read }, - { "OccurrenceDefinition", OccurrenceDefinitionDictionaryReader.Read }, - { "OccurrenceUsage", OccurrenceUsageDictionaryReader.Read }, - { "OperatorExpression", OperatorExpressionDictionaryReader.Read }, - { "OwningMembership", OwningMembershipDictionaryReader.Read }, - { "Package", PackageDictionaryReader.Read }, - { "ParameterMembership", ParameterMembershipDictionaryReader.Read }, - { "PartDefinition", PartDefinitionDictionaryReader.Read }, - { "PartUsage", PartUsageDictionaryReader.Read }, - { "PayloadFeature", PayloadFeatureDictionaryReader.Read }, - { "PerformActionUsage", PerformActionUsageDictionaryReader.Read }, - { "PortConjugation", PortConjugationDictionaryReader.Read }, - { "PortDefinition", PortDefinitionDictionaryReader.Read }, - { "PortUsage", PortUsageDictionaryReader.Read }, - { "Predicate", PredicateDictionaryReader.Read }, - { "Redefinition", RedefinitionDictionaryReader.Read }, - { "ReferenceSubsetting", ReferenceSubsettingDictionaryReader.Read }, - { "ReferenceUsage", ReferenceUsageDictionaryReader.Read }, - { "RenderingDefinition", RenderingDefinitionDictionaryReader.Read }, - { "RenderingUsage", RenderingUsageDictionaryReader.Read }, - { "RequirementConstraintMembership", RequirementConstraintMembershipDictionaryReader.Read }, - { "RequirementDefinition", RequirementDefinitionDictionaryReader.Read }, - { "RequirementUsage", RequirementUsageDictionaryReader.Read }, - { "RequirementVerificationMembership", RequirementVerificationMembershipDictionaryReader.Read }, - { "ResultExpressionMembership", ResultExpressionMembershipDictionaryReader.Read }, - { "ReturnParameterMembership", ReturnParameterMembershipDictionaryReader.Read }, - { "SatisfyRequirementUsage", SatisfyRequirementUsageDictionaryReader.Read }, - { "SelectExpression", SelectExpressionDictionaryReader.Read }, - { "SendActionUsage", SendActionUsageDictionaryReader.Read }, - { "Specialization", SpecializationDictionaryReader.Read }, - { "StakeholderMembership", StakeholderMembershipDictionaryReader.Read }, - { "StateDefinition", StateDefinitionDictionaryReader.Read }, - { "StateSubactionMembership", StateSubactionMembershipDictionaryReader.Read }, - { "StateUsage", StateUsageDictionaryReader.Read }, - { "Step", StepDictionaryReader.Read }, - { "Structure", StructureDictionaryReader.Read }, - { "Subclassification", SubclassificationDictionaryReader.Read }, - { "SubjectMembership", SubjectMembershipDictionaryReader.Read }, - { "Subsetting", SubsettingDictionaryReader.Read }, - { "Succession", SuccessionDictionaryReader.Read }, - { "SuccessionAsUsage", SuccessionAsUsageDictionaryReader.Read }, - { "SuccessionFlow", SuccessionFlowDictionaryReader.Read }, - { "SuccessionFlowUsage", SuccessionFlowUsageDictionaryReader.Read }, - { "TerminateActionUsage", TerminateActionUsageDictionaryReader.Read }, - { "TextualRepresentation", TextualRepresentationDictionaryReader.Read }, - { "TransitionFeatureMembership", TransitionFeatureMembershipDictionaryReader.Read }, - { "TransitionUsage", TransitionUsageDictionaryReader.Read }, - { "TriggerInvocationExpression", TriggerInvocationExpressionDictionaryReader.Read }, - { "Type", TypeDictionaryReader.Read }, - { "TypeFeaturing", TypeFeaturingDictionaryReader.Read }, - { "Unioning", UnioningDictionaryReader.Read }, - { "Usage", UsageDictionaryReader.Read }, - { "UseCaseDefinition", UseCaseDefinitionDictionaryReader.Read }, - { "UseCaseUsage", UseCaseUsageDictionaryReader.Read }, - { "VariantMembership", VariantMembershipDictionaryReader.Read }, - { "VerificationCaseDefinition", VerificationCaseDefinitionDictionaryReader.Read }, - { "VerificationCaseUsage", VerificationCaseUsageDictionaryReader.Read }, - { "ViewDefinition", ViewDefinitionDictionaryReader.Read }, - { "ViewpointDefinition", ViewpointDefinitionDictionaryReader.Read }, - { "ViewpointUsage", ViewpointUsageDictionaryReader.Read }, - { "ViewRenderingMembership", ViewRenderingMembershipDictionaryReader.Read }, - { "ViewUsage", ViewUsageDictionaryReader.Read }, - { "WhileLoopActionUsage", WhileLoopActionUsageDictionaryReader.Read }, - }; - - /// - /// Provides the delegate for the - /// that is to be read - /// - /// - /// The subject that is to be read - /// - /// - /// A Delegate of - /// - /// - /// Thrown when the is not supported. - /// - internal static Func, DictionaryKind, IData> Provide(string typeName) - { - if (!DictionaryReaderFuncMap.TryGetValue(typeName, out var func)) - { - throw new NotSupportedException($"The {typeName} is not supported by the DictionaryWriterProvider."); - } - - return func; - } - - /// - /// Asserts whether the is supported by the provider - /// - /// - /// The name of the subject for which support is asserted - /// - /// - internal static bool IsTypeSupported(string typeName) - { - return DictionaryReaderFuncMap.ContainsKey(typeName); - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DifferencingDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DifferencingDictionaryReader.cs deleted file mode 100644 index 1fe159ef5..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DifferencingDictionaryReader.cs +++ /dev/null @@ -1,367 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class DifferencingDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IDifferencing ReadSimplified(Dictionary dictionary) - { - var differencingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("differencingType", out object differencingTypeObject)) - { - throw new ArgumentException("The differencingType property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - Guid differencingTypeFeature = Guid.Parse(Convert.ToString(differencingTypeObject)); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - differencingInstance.AliasIds = aliasIdsFeature ?? new List(); - differencingInstance.DeclaredName = declaredNameFeature; - differencingInstance.DeclaredShortName = declaredShortNameFeature; - differencingInstance.DifferencingType = differencingTypeFeature; - differencingInstance.ElementId = elementIdFeature; - differencingInstance.IsImplied = isImpliedFeature; - differencingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - differencingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - differencingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - differencingInstance.OwningRelatedElement = owningRelatedElementFeature; - differencingInstance.OwningRelationship = owningRelationshipFeature; - differencingInstance.Source = sourceFeature ?? new List(); - differencingInstance.Target = targetFeature ?? new List(); - - return differencingInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IDifferencing ReadComplex(Dictionary dictionary) - { - var differencingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("differencingType", out object differencingTypeObject)) - { - throw new ArgumentException("The differencingType property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - Guid differencingTypeFeature = Guid.Parse(Convert.ToString(differencingTypeObject)); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - List targetFeature = (targetObject as List); - - - differencingInstance.AliasIds = aliasIdsFeature ?? new List(); - differencingInstance.DeclaredName = declaredNameFeature; - differencingInstance.DeclaredShortName = declaredShortNameFeature; - differencingInstance.DifferencingType = differencingTypeFeature; - differencingInstance.ElementId = elementIdFeature; - differencingInstance.IsImplied = isImpliedFeature; - differencingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - differencingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - differencingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - differencingInstance.OwningRelatedElement = owningRelatedElementFeature; - differencingInstance.OwningRelationship = owningRelationshipFeature; - differencingInstance.Source = sourceFeature ?? new List(); - differencingInstance.Target = targetFeature ?? new List(); - - return differencingInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDifferencing DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Differencing") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Differencing"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Differencing"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var differencingInstance = new SysML2.NET.Core.DTO.Differencing - { - Id = id - }; - - return differencingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DisjoiningDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DisjoiningDictionaryReader.cs deleted file mode 100644 index e0514551a..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DisjoiningDictionaryReader.cs +++ /dev/null @@ -1,381 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class DisjoiningDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IDisjoining ReadSimplified(Dictionary dictionary) - { - var disjoiningInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("disjoiningType", out object disjoiningTypeObject)) - { - throw new ArgumentException("The disjoiningType property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - Guid disjoiningTypeFeature = Guid.Parse(Convert.ToString(disjoiningTypeObject)); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("typeDisjoined", out object typeDisjoinedObject)) - { - throw new ArgumentException("The typeDisjoined property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - Guid typeDisjoinedFeature = Guid.Parse(Convert.ToString(typeDisjoinedObject)); - - - disjoiningInstance.AliasIds = aliasIdsFeature ?? new List(); - disjoiningInstance.DeclaredName = declaredNameFeature; - disjoiningInstance.DeclaredShortName = declaredShortNameFeature; - disjoiningInstance.DisjoiningType = disjoiningTypeFeature; - disjoiningInstance.ElementId = elementIdFeature; - disjoiningInstance.IsImplied = isImpliedFeature; - disjoiningInstance.IsImpliedIncluded = isImpliedIncludedFeature; - disjoiningInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - disjoiningInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - disjoiningInstance.OwningRelatedElement = owningRelatedElementFeature; - disjoiningInstance.OwningRelationship = owningRelationshipFeature; - disjoiningInstance.Source = sourceFeature ?? new List(); - disjoiningInstance.Target = targetFeature ?? new List(); - disjoiningInstance.TypeDisjoined = typeDisjoinedFeature; - - return disjoiningInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IDisjoining ReadComplex(Dictionary dictionary) - { - var disjoiningInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("disjoiningType", out object disjoiningTypeObject)) - { - throw new ArgumentException("The disjoiningType property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - Guid disjoiningTypeFeature = Guid.Parse(Convert.ToString(disjoiningTypeObject)); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("typeDisjoined", out object typeDisjoinedObject)) - { - throw new ArgumentException("The typeDisjoined property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - Guid typeDisjoinedFeature = Guid.Parse(Convert.ToString(typeDisjoinedObject)); - - - disjoiningInstance.AliasIds = aliasIdsFeature ?? new List(); - disjoiningInstance.DeclaredName = declaredNameFeature; - disjoiningInstance.DeclaredShortName = declaredShortNameFeature; - disjoiningInstance.DisjoiningType = disjoiningTypeFeature; - disjoiningInstance.ElementId = elementIdFeature; - disjoiningInstance.IsImplied = isImpliedFeature; - disjoiningInstance.IsImpliedIncluded = isImpliedIncludedFeature; - disjoiningInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - disjoiningInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - disjoiningInstance.OwningRelatedElement = owningRelatedElementFeature; - disjoiningInstance.OwningRelationship = owningRelationshipFeature; - disjoiningInstance.Source = sourceFeature ?? new List(); - disjoiningInstance.Target = targetFeature ?? new List(); - disjoiningInstance.TypeDisjoined = typeDisjoinedFeature; - - return disjoiningInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDisjoining DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Disjoining") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Disjoining"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Disjoining"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var disjoiningInstance = new SysML2.NET.Core.DTO.Disjoining - { - Id = id - }; - - return disjoiningInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DocumentationDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DocumentationDictionaryReader.cs deleted file mode 100644 index be953e431..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/DocumentationDictionaryReader.cs +++ /dev/null @@ -1,311 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class DocumentationDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IDocumentation ReadSimplified(Dictionary dictionary) - { - var documentationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("body", out object bodyObject)) - { - throw new ArgumentException("The body property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - string bodyFeature = Convert.ToString(bodyObject); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("locale", out object localeObject)) - { - throw new ArgumentException("The locale property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - string localeFeature = localeObject == null ? null : Convert.ToString(localeObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - documentationInstance.AliasIds = aliasIdsFeature ?? new List(); - documentationInstance.Body = bodyFeature; - documentationInstance.DeclaredName = declaredNameFeature; - documentationInstance.DeclaredShortName = declaredShortNameFeature; - documentationInstance.ElementId = elementIdFeature; - documentationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - documentationInstance.Locale = localeFeature; - documentationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - documentationInstance.OwningRelationship = owningRelationshipFeature; - - return documentationInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IDocumentation ReadComplex(Dictionary dictionary) - { - var documentationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("body", out object bodyObject)) - { - throw new ArgumentException("The body property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - string bodyFeature = Convert.ToString(bodyObject); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("locale", out object localeObject)) - { - throw new ArgumentException("The locale property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - string localeFeature = localeObject == null ? null : Convert.ToString(localeObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - documentationInstance.AliasIds = aliasIdsFeature ?? new List(); - documentationInstance.Body = bodyFeature; - documentationInstance.DeclaredName = declaredNameFeature; - documentationInstance.DeclaredShortName = declaredShortNameFeature; - documentationInstance.ElementId = elementIdFeature; - documentationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - documentationInstance.Locale = localeFeature; - documentationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - documentationInstance.OwningRelationship = owningRelationshipFeature; - - return documentationInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDocumentation DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Documentation") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Documentation"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Documentation"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var documentationInstance = new SysML2.NET.Core.DTO.Documentation - { - Id = id - }; - - return documentationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ElementFilterMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ElementFilterMembershipDictionaryReader.cs deleted file mode 100644 index cc9b94c94..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ElementFilterMembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ElementFilterMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IElementFilterMembership ReadSimplified(Dictionary dictionary) - { - var elementFilterMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - elementFilterMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - elementFilterMembershipInstance.DeclaredName = declaredNameFeature; - elementFilterMembershipInstance.DeclaredShortName = declaredShortNameFeature; - elementFilterMembershipInstance.ElementId = elementIdFeature; - elementFilterMembershipInstance.IsImplied = isImpliedFeature; - elementFilterMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - elementFilterMembershipInstance.MemberElement = memberElementFeature; - elementFilterMembershipInstance.MemberName = memberNameFeature; - elementFilterMembershipInstance.MemberShortName = memberShortNameFeature; - elementFilterMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - elementFilterMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - elementFilterMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - elementFilterMembershipInstance.OwningRelationship = owningRelationshipFeature; - elementFilterMembershipInstance.Source = sourceFeature ?? new List(); - elementFilterMembershipInstance.Target = targetFeature ?? new List(); - elementFilterMembershipInstance.Visibility = visibilityFeature; - - return elementFilterMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IElementFilterMembership ReadComplex(Dictionary dictionary) - { - var elementFilterMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - elementFilterMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - elementFilterMembershipInstance.DeclaredName = declaredNameFeature; - elementFilterMembershipInstance.DeclaredShortName = declaredShortNameFeature; - elementFilterMembershipInstance.ElementId = elementIdFeature; - elementFilterMembershipInstance.IsImplied = isImpliedFeature; - elementFilterMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - elementFilterMembershipInstance.MemberElement = memberElementFeature; - elementFilterMembershipInstance.MemberName = memberNameFeature; - elementFilterMembershipInstance.MemberShortName = memberShortNameFeature; - elementFilterMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - elementFilterMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - elementFilterMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - elementFilterMembershipInstance.OwningRelationship = owningRelationshipFeature; - elementFilterMembershipInstance.Source = sourceFeature ?? new List(); - elementFilterMembershipInstance.Target = targetFeature ?? new List(); - elementFilterMembershipInstance.Visibility = visibilityFeature; - - return elementFilterMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IElementFilterMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ElementFilterMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ElementFilterMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ElementFilterMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var elementFilterMembershipInstance = new SysML2.NET.Core.DTO.ElementFilterMembership - { - Id = id - }; - - return elementFilterMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EndFeatureMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EndFeatureMembershipDictionaryReader.cs deleted file mode 100644 index b672eb27a..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EndFeatureMembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class EndFeatureMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IEndFeatureMembership ReadSimplified(Dictionary dictionary) - { - var endFeatureMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - endFeatureMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - endFeatureMembershipInstance.DeclaredName = declaredNameFeature; - endFeatureMembershipInstance.DeclaredShortName = declaredShortNameFeature; - endFeatureMembershipInstance.ElementId = elementIdFeature; - endFeatureMembershipInstance.IsImplied = isImpliedFeature; - endFeatureMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - endFeatureMembershipInstance.MemberElement = memberElementFeature; - endFeatureMembershipInstance.MemberName = memberNameFeature; - endFeatureMembershipInstance.MemberShortName = memberShortNameFeature; - endFeatureMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - endFeatureMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - endFeatureMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - endFeatureMembershipInstance.OwningRelationship = owningRelationshipFeature; - endFeatureMembershipInstance.Source = sourceFeature ?? new List(); - endFeatureMembershipInstance.Target = targetFeature ?? new List(); - endFeatureMembershipInstance.Visibility = visibilityFeature; - - return endFeatureMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IEndFeatureMembership ReadComplex(Dictionary dictionary) - { - var endFeatureMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - endFeatureMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - endFeatureMembershipInstance.DeclaredName = declaredNameFeature; - endFeatureMembershipInstance.DeclaredShortName = declaredShortNameFeature; - endFeatureMembershipInstance.ElementId = elementIdFeature; - endFeatureMembershipInstance.IsImplied = isImpliedFeature; - endFeatureMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - endFeatureMembershipInstance.MemberElement = memberElementFeature; - endFeatureMembershipInstance.MemberName = memberNameFeature; - endFeatureMembershipInstance.MemberShortName = memberShortNameFeature; - endFeatureMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - endFeatureMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - endFeatureMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - endFeatureMembershipInstance.OwningRelationship = owningRelationshipFeature; - endFeatureMembershipInstance.Source = sourceFeature ?? new List(); - endFeatureMembershipInstance.Target = targetFeature ?? new List(); - endFeatureMembershipInstance.Visibility = visibilityFeature; - - return endFeatureMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IEndFeatureMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "EndFeatureMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a EndFeatureMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a EndFeatureMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var endFeatureMembershipInstance = new SysML2.NET.Core.DTO.EndFeatureMembership - { - Id = id - }; - - return endFeatureMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EnumerationDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EnumerationDefinitionDictionaryReader.cs deleted file mode 100644 index 9eb0455f8..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EnumerationDefinitionDictionaryReader.cs +++ /dev/null @@ -1,325 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class EnumerationDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IEnumerationDefinition ReadSimplified(Dictionary dictionary) - { - var enumerationDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - enumerationDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - enumerationDefinitionInstance.DeclaredName = declaredNameFeature; - enumerationDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - enumerationDefinitionInstance.ElementId = elementIdFeature; - enumerationDefinitionInstance.IsAbstract = isAbstractFeature; - enumerationDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - enumerationDefinitionInstance.IsSufficient = isSufficientFeature; - enumerationDefinitionInstance.IsVariation = isVariationFeature; - enumerationDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - enumerationDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return enumerationDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IEnumerationDefinition ReadComplex(Dictionary dictionary) - { - var enumerationDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - enumerationDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - enumerationDefinitionInstance.DeclaredName = declaredNameFeature; - enumerationDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - enumerationDefinitionInstance.ElementId = elementIdFeature; - enumerationDefinitionInstance.IsAbstract = isAbstractFeature; - enumerationDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - enumerationDefinitionInstance.IsSufficient = isSufficientFeature; - enumerationDefinitionInstance.IsVariation = isVariationFeature; - enumerationDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - enumerationDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return enumerationDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IEnumerationDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "EnumerationDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a EnumerationDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a EnumerationDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var enumerationDefinitionInstance = new SysML2.NET.Core.DTO.EnumerationDefinition - { - Id = id - }; - - return enumerationDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EnumerationUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EnumerationUsageDictionaryReader.cs deleted file mode 100644 index ddcebbc69..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EnumerationUsageDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class EnumerationUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IEnumerationUsage ReadSimplified(Dictionary dictionary) - { - var enumerationUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - enumerationUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - enumerationUsageInstance.DeclaredName = declaredNameFeature; - enumerationUsageInstance.DeclaredShortName = declaredShortNameFeature; - enumerationUsageInstance.Direction = directionFeature; - enumerationUsageInstance.ElementId = elementIdFeature; - enumerationUsageInstance.IsAbstract = isAbstractFeature; - enumerationUsageInstance.IsComposite = isCompositeFeature; - enumerationUsageInstance.IsConstant = isConstantFeature; - enumerationUsageInstance.IsDerived = isDerivedFeature; - enumerationUsageInstance.IsEnd = isEndFeature; - enumerationUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - enumerationUsageInstance.IsOrdered = isOrderedFeature; - enumerationUsageInstance.IsPortion = isPortionFeature; - enumerationUsageInstance.IsSufficient = isSufficientFeature; - enumerationUsageInstance.IsUnique = isUniqueFeature; - enumerationUsageInstance.IsVariable = isVariableFeature; - enumerationUsageInstance.IsVariation = isVariationFeature; - enumerationUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - enumerationUsageInstance.OwningRelationship = owningRelationshipFeature; - - return enumerationUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IEnumerationUsage ReadComplex(Dictionary dictionary) - { - var enumerationUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - enumerationUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - enumerationUsageInstance.DeclaredName = declaredNameFeature; - enumerationUsageInstance.DeclaredShortName = declaredShortNameFeature; - enumerationUsageInstance.Direction = directionFeature; - enumerationUsageInstance.ElementId = elementIdFeature; - enumerationUsageInstance.IsAbstract = isAbstractFeature; - enumerationUsageInstance.IsComposite = isCompositeFeature; - enumerationUsageInstance.IsConstant = isConstantFeature; - enumerationUsageInstance.IsDerived = isDerivedFeature; - enumerationUsageInstance.IsEnd = isEndFeature; - enumerationUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - enumerationUsageInstance.IsOrdered = isOrderedFeature; - enumerationUsageInstance.IsPortion = isPortionFeature; - enumerationUsageInstance.IsSufficient = isSufficientFeature; - enumerationUsageInstance.IsUnique = isUniqueFeature; - enumerationUsageInstance.IsVariable = isVariableFeature; - enumerationUsageInstance.IsVariation = isVariationFeature; - enumerationUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - enumerationUsageInstance.OwningRelationship = owningRelationshipFeature; - - return enumerationUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IEnumerationUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "EnumerationUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a EnumerationUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a EnumerationUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var enumerationUsageInstance = new SysML2.NET.Core.DTO.EnumerationUsage - { - Id = id - }; - - return enumerationUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EventOccurrenceUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EventOccurrenceUsageDictionaryReader.cs deleted file mode 100644 index db25ff70d..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/EventOccurrenceUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class EventOccurrenceUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IEventOccurrenceUsage ReadSimplified(Dictionary dictionary) - { - var eventOccurrenceUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - eventOccurrenceUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - eventOccurrenceUsageInstance.DeclaredName = declaredNameFeature; - eventOccurrenceUsageInstance.DeclaredShortName = declaredShortNameFeature; - eventOccurrenceUsageInstance.Direction = directionFeature; - eventOccurrenceUsageInstance.ElementId = elementIdFeature; - eventOccurrenceUsageInstance.IsAbstract = isAbstractFeature; - eventOccurrenceUsageInstance.IsComposite = isCompositeFeature; - eventOccurrenceUsageInstance.IsConstant = isConstantFeature; - eventOccurrenceUsageInstance.IsDerived = isDerivedFeature; - eventOccurrenceUsageInstance.IsEnd = isEndFeature; - eventOccurrenceUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - eventOccurrenceUsageInstance.IsIndividual = isIndividualFeature; - eventOccurrenceUsageInstance.IsOrdered = isOrderedFeature; - eventOccurrenceUsageInstance.IsPortion = isPortionFeature; - eventOccurrenceUsageInstance.IsSufficient = isSufficientFeature; - eventOccurrenceUsageInstance.IsUnique = isUniqueFeature; - eventOccurrenceUsageInstance.IsVariable = isVariableFeature; - eventOccurrenceUsageInstance.IsVariation = isVariationFeature; - eventOccurrenceUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - eventOccurrenceUsageInstance.OwningRelationship = owningRelationshipFeature; - eventOccurrenceUsageInstance.PortionKind = portionKindFeature; - - return eventOccurrenceUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IEventOccurrenceUsage ReadComplex(Dictionary dictionary) - { - var eventOccurrenceUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - eventOccurrenceUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - eventOccurrenceUsageInstance.DeclaredName = declaredNameFeature; - eventOccurrenceUsageInstance.DeclaredShortName = declaredShortNameFeature; - eventOccurrenceUsageInstance.Direction = directionFeature; - eventOccurrenceUsageInstance.ElementId = elementIdFeature; - eventOccurrenceUsageInstance.IsAbstract = isAbstractFeature; - eventOccurrenceUsageInstance.IsComposite = isCompositeFeature; - eventOccurrenceUsageInstance.IsConstant = isConstantFeature; - eventOccurrenceUsageInstance.IsDerived = isDerivedFeature; - eventOccurrenceUsageInstance.IsEnd = isEndFeature; - eventOccurrenceUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - eventOccurrenceUsageInstance.IsIndividual = isIndividualFeature; - eventOccurrenceUsageInstance.IsOrdered = isOrderedFeature; - eventOccurrenceUsageInstance.IsPortion = isPortionFeature; - eventOccurrenceUsageInstance.IsSufficient = isSufficientFeature; - eventOccurrenceUsageInstance.IsUnique = isUniqueFeature; - eventOccurrenceUsageInstance.IsVariable = isVariableFeature; - eventOccurrenceUsageInstance.IsVariation = isVariationFeature; - eventOccurrenceUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - eventOccurrenceUsageInstance.OwningRelationship = owningRelationshipFeature; - eventOccurrenceUsageInstance.PortionKind = portionKindFeature; - - return eventOccurrenceUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IEventOccurrenceUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "EventOccurrenceUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a EventOccurrenceUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a EventOccurrenceUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var eventOccurrenceUsageInstance = new SysML2.NET.Core.DTO.EventOccurrenceUsage - { - Id = id - }; - - return eventOccurrenceUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ExhibitStateUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ExhibitStateUsageDictionaryReader.cs deleted file mode 100644 index 80c6f3f08..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ExhibitStateUsageDictionaryReader.cs +++ /dev/null @@ -1,493 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ExhibitStateUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IExhibitStateUsage ReadSimplified(Dictionary dictionary) - { - var exhibitStateUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isParallel", out object isParallelObject)) - { - throw new ArgumentException("The isParallel property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isParallelFeature = Convert.ToBoolean(isParallelObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - exhibitStateUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - exhibitStateUsageInstance.DeclaredName = declaredNameFeature; - exhibitStateUsageInstance.DeclaredShortName = declaredShortNameFeature; - exhibitStateUsageInstance.Direction = directionFeature; - exhibitStateUsageInstance.ElementId = elementIdFeature; - exhibitStateUsageInstance.IsAbstract = isAbstractFeature; - exhibitStateUsageInstance.IsComposite = isCompositeFeature; - exhibitStateUsageInstance.IsConstant = isConstantFeature; - exhibitStateUsageInstance.IsDerived = isDerivedFeature; - exhibitStateUsageInstance.IsEnd = isEndFeature; - exhibitStateUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - exhibitStateUsageInstance.IsIndividual = isIndividualFeature; - exhibitStateUsageInstance.IsOrdered = isOrderedFeature; - exhibitStateUsageInstance.IsParallel = isParallelFeature; - exhibitStateUsageInstance.IsPortion = isPortionFeature; - exhibitStateUsageInstance.IsSufficient = isSufficientFeature; - exhibitStateUsageInstance.IsUnique = isUniqueFeature; - exhibitStateUsageInstance.IsVariable = isVariableFeature; - exhibitStateUsageInstance.IsVariation = isVariationFeature; - exhibitStateUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - exhibitStateUsageInstance.OwningRelationship = owningRelationshipFeature; - exhibitStateUsageInstance.PortionKind = portionKindFeature; - - return exhibitStateUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IExhibitStateUsage ReadComplex(Dictionary dictionary) - { - var exhibitStateUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isParallel", out object isParallelObject)) - { - throw new ArgumentException("The isParallel property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isParallelFeature = Convert.ToBoolean(isParallelObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - exhibitStateUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - exhibitStateUsageInstance.DeclaredName = declaredNameFeature; - exhibitStateUsageInstance.DeclaredShortName = declaredShortNameFeature; - exhibitStateUsageInstance.Direction = directionFeature; - exhibitStateUsageInstance.ElementId = elementIdFeature; - exhibitStateUsageInstance.IsAbstract = isAbstractFeature; - exhibitStateUsageInstance.IsComposite = isCompositeFeature; - exhibitStateUsageInstance.IsConstant = isConstantFeature; - exhibitStateUsageInstance.IsDerived = isDerivedFeature; - exhibitStateUsageInstance.IsEnd = isEndFeature; - exhibitStateUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - exhibitStateUsageInstance.IsIndividual = isIndividualFeature; - exhibitStateUsageInstance.IsOrdered = isOrderedFeature; - exhibitStateUsageInstance.IsParallel = isParallelFeature; - exhibitStateUsageInstance.IsPortion = isPortionFeature; - exhibitStateUsageInstance.IsSufficient = isSufficientFeature; - exhibitStateUsageInstance.IsUnique = isUniqueFeature; - exhibitStateUsageInstance.IsVariable = isVariableFeature; - exhibitStateUsageInstance.IsVariation = isVariationFeature; - exhibitStateUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - exhibitStateUsageInstance.OwningRelationship = owningRelationshipFeature; - exhibitStateUsageInstance.PortionKind = portionKindFeature; - - return exhibitStateUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IExhibitStateUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ExhibitStateUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ExhibitStateUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ExhibitStateUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var exhibitStateUsageInstance = new SysML2.NET.Core.DTO.ExhibitStateUsage - { - Id = id - }; - - return exhibitStateUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ExpressionDictionaryReader.cs deleted file mode 100644 index c21c4ac69..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ExpressionDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IExpression ReadSimplified(Dictionary dictionary) - { - var expressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - expressionInstance.AliasIds = aliasIdsFeature ?? new List(); - expressionInstance.DeclaredName = declaredNameFeature; - expressionInstance.DeclaredShortName = declaredShortNameFeature; - expressionInstance.Direction = directionFeature; - expressionInstance.ElementId = elementIdFeature; - expressionInstance.IsAbstract = isAbstractFeature; - expressionInstance.IsComposite = isCompositeFeature; - expressionInstance.IsConstant = isConstantFeature; - expressionInstance.IsDerived = isDerivedFeature; - expressionInstance.IsEnd = isEndFeature; - expressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - expressionInstance.IsOrdered = isOrderedFeature; - expressionInstance.IsPortion = isPortionFeature; - expressionInstance.IsSufficient = isSufficientFeature; - expressionInstance.IsUnique = isUniqueFeature; - expressionInstance.IsVariable = isVariableFeature; - expressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - expressionInstance.OwningRelationship = owningRelationshipFeature; - - return expressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IExpression ReadComplex(Dictionary dictionary) - { - var expressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - expressionInstance.AliasIds = aliasIdsFeature ?? new List(); - expressionInstance.DeclaredName = declaredNameFeature; - expressionInstance.DeclaredShortName = declaredShortNameFeature; - expressionInstance.Direction = directionFeature; - expressionInstance.ElementId = elementIdFeature; - expressionInstance.IsAbstract = isAbstractFeature; - expressionInstance.IsComposite = isCompositeFeature; - expressionInstance.IsConstant = isConstantFeature; - expressionInstance.IsDerived = isDerivedFeature; - expressionInstance.IsEnd = isEndFeature; - expressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - expressionInstance.IsOrdered = isOrderedFeature; - expressionInstance.IsPortion = isPortionFeature; - expressionInstance.IsSufficient = isSufficientFeature; - expressionInstance.IsUnique = isUniqueFeature; - expressionInstance.IsVariable = isVariableFeature; - expressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - expressionInstance.OwningRelationship = owningRelationshipFeature; - - return expressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Expression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Expression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Expression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var expressionInstance = new SysML2.NET.Core.DTO.Expression - { - Id = id - }; - - return expressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureChainExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureChainExpressionDictionaryReader.cs deleted file mode 100644 index 4afd74a6a..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureChainExpressionDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FeatureChainExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFeatureChainExpression ReadSimplified(Dictionary dictionary) - { - var featureChainExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("operator", out object operatorObject)) - { - throw new ArgumentException("The operator property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - string operatorFeature = Convert.ToString(operatorObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - featureChainExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - featureChainExpressionInstance.DeclaredName = declaredNameFeature; - featureChainExpressionInstance.DeclaredShortName = declaredShortNameFeature; - featureChainExpressionInstance.Direction = directionFeature; - featureChainExpressionInstance.ElementId = elementIdFeature; - featureChainExpressionInstance.IsAbstract = isAbstractFeature; - featureChainExpressionInstance.IsComposite = isCompositeFeature; - featureChainExpressionInstance.IsConstant = isConstantFeature; - featureChainExpressionInstance.IsDerived = isDerivedFeature; - featureChainExpressionInstance.IsEnd = isEndFeature; - featureChainExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureChainExpressionInstance.IsOrdered = isOrderedFeature; - featureChainExpressionInstance.IsPortion = isPortionFeature; - featureChainExpressionInstance.IsSufficient = isSufficientFeature; - featureChainExpressionInstance.IsUnique = isUniqueFeature; - featureChainExpressionInstance.IsVariable = isVariableFeature; - featureChainExpressionInstance.Operator = operatorFeature; - featureChainExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureChainExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return featureChainExpressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFeatureChainExpression ReadComplex(Dictionary dictionary) - { - var featureChainExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("operator", out object operatorObject)) - { - throw new ArgumentException("The operator property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - string operatorFeature = Convert.ToString(operatorObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - featureChainExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - featureChainExpressionInstance.DeclaredName = declaredNameFeature; - featureChainExpressionInstance.DeclaredShortName = declaredShortNameFeature; - featureChainExpressionInstance.Direction = directionFeature; - featureChainExpressionInstance.ElementId = elementIdFeature; - featureChainExpressionInstance.IsAbstract = isAbstractFeature; - featureChainExpressionInstance.IsComposite = isCompositeFeature; - featureChainExpressionInstance.IsConstant = isConstantFeature; - featureChainExpressionInstance.IsDerived = isDerivedFeature; - featureChainExpressionInstance.IsEnd = isEndFeature; - featureChainExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureChainExpressionInstance.IsOrdered = isOrderedFeature; - featureChainExpressionInstance.IsPortion = isPortionFeature; - featureChainExpressionInstance.IsSufficient = isSufficientFeature; - featureChainExpressionInstance.IsUnique = isUniqueFeature; - featureChainExpressionInstance.IsVariable = isVariableFeature; - featureChainExpressionInstance.Operator = operatorFeature; - featureChainExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureChainExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return featureChainExpressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureChainExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "FeatureChainExpression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a FeatureChainExpression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a FeatureChainExpression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var featureChainExpressionInstance = new SysML2.NET.Core.DTO.FeatureChainExpression - { - Id = id - }; - - return featureChainExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureChainingDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureChainingDictionaryReader.cs deleted file mode 100644 index b70f90786..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureChainingDictionaryReader.cs +++ /dev/null @@ -1,367 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FeatureChainingDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFeatureChaining ReadSimplified(Dictionary dictionary) - { - var featureChainingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("chainingFeature", out object chainingFeatureObject)) - { - throw new ArgumentException("The chainingFeature property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - Guid chainingFeatureFeature = Guid.Parse(Convert.ToString(chainingFeatureObject)); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - featureChainingInstance.AliasIds = aliasIdsFeature ?? new List(); - featureChainingInstance.ChainingFeature = chainingFeatureFeature; - featureChainingInstance.DeclaredName = declaredNameFeature; - featureChainingInstance.DeclaredShortName = declaredShortNameFeature; - featureChainingInstance.ElementId = elementIdFeature; - featureChainingInstance.IsImplied = isImpliedFeature; - featureChainingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureChainingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - featureChainingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureChainingInstance.OwningRelatedElement = owningRelatedElementFeature; - featureChainingInstance.OwningRelationship = owningRelationshipFeature; - featureChainingInstance.Source = sourceFeature ?? new List(); - featureChainingInstance.Target = targetFeature ?? new List(); - - return featureChainingInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFeatureChaining ReadComplex(Dictionary dictionary) - { - var featureChainingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("chainingFeature", out object chainingFeatureObject)) - { - throw new ArgumentException("The chainingFeature property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - Guid chainingFeatureFeature = Guid.Parse(Convert.ToString(chainingFeatureObject)); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - List targetFeature = (targetObject as List); - - - featureChainingInstance.AliasIds = aliasIdsFeature ?? new List(); - featureChainingInstance.ChainingFeature = chainingFeatureFeature; - featureChainingInstance.DeclaredName = declaredNameFeature; - featureChainingInstance.DeclaredShortName = declaredShortNameFeature; - featureChainingInstance.ElementId = elementIdFeature; - featureChainingInstance.IsImplied = isImpliedFeature; - featureChainingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureChainingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - featureChainingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureChainingInstance.OwningRelatedElement = owningRelatedElementFeature; - featureChainingInstance.OwningRelationship = owningRelationshipFeature; - featureChainingInstance.Source = sourceFeature ?? new List(); - featureChainingInstance.Target = targetFeature ?? new List(); - - return featureChainingInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureChaining DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - - var type = Convert.ToString(typeObject); - - if (type != "FeatureChaining") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a FeatureChaining"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a FeatureChaining"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var featureChainingInstance = new SysML2.NET.Core.DTO.FeatureChaining - { - Id = id - }; - - return featureChainingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureDictionaryReader.cs deleted file mode 100644 index 50e55ea94..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FeatureDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFeature ReadSimplified(Dictionary dictionary) - { - var featureInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - featureInstance.AliasIds = aliasIdsFeature ?? new List(); - featureInstance.DeclaredName = declaredNameFeature; - featureInstance.DeclaredShortName = declaredShortNameFeature; - featureInstance.Direction = directionFeature; - featureInstance.ElementId = elementIdFeature; - featureInstance.IsAbstract = isAbstractFeature; - featureInstance.IsComposite = isCompositeFeature; - featureInstance.IsConstant = isConstantFeature; - featureInstance.IsDerived = isDerivedFeature; - featureInstance.IsEnd = isEndFeature; - featureInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureInstance.IsOrdered = isOrderedFeature; - featureInstance.IsPortion = isPortionFeature; - featureInstance.IsSufficient = isSufficientFeature; - featureInstance.IsUnique = isUniqueFeature; - featureInstance.IsVariable = isVariableFeature; - featureInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureInstance.OwningRelationship = owningRelationshipFeature; - - return featureInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFeature ReadComplex(Dictionary dictionary) - { - var featureInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - featureInstance.AliasIds = aliasIdsFeature ?? new List(); - featureInstance.DeclaredName = declaredNameFeature; - featureInstance.DeclaredShortName = declaredShortNameFeature; - featureInstance.Direction = directionFeature; - featureInstance.ElementId = elementIdFeature; - featureInstance.IsAbstract = isAbstractFeature; - featureInstance.IsComposite = isCompositeFeature; - featureInstance.IsConstant = isConstantFeature; - featureInstance.IsDerived = isDerivedFeature; - featureInstance.IsEnd = isEndFeature; - featureInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureInstance.IsOrdered = isOrderedFeature; - featureInstance.IsPortion = isPortionFeature; - featureInstance.IsSufficient = isSufficientFeature; - featureInstance.IsUnique = isUniqueFeature; - featureInstance.IsVariable = isVariableFeature; - featureInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureInstance.OwningRelationship = owningRelationshipFeature; - - return featureInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeature DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Feature") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Feature"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Feature"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var featureInstance = new SysML2.NET.Core.DTO.Feature - { - Id = id - }; - - return featureInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureInvertingDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureInvertingDictionaryReader.cs deleted file mode 100644 index 66cf211b6..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureInvertingDictionaryReader.cs +++ /dev/null @@ -1,381 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FeatureInvertingDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFeatureInverting ReadSimplified(Dictionary dictionary) - { - var featureInvertingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("featureInverted", out object featureInvertedObject)) - { - throw new ArgumentException("The featureInverted property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - Guid featureInvertedFeature = Guid.Parse(Convert.ToString(featureInvertedObject)); - - if (!dictionary.TryGetValue("invertingFeature", out object invertingFeatureObject)) - { - throw new ArgumentException("The invertingFeature property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - Guid invertingFeatureFeature = Guid.Parse(Convert.ToString(invertingFeatureObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - featureInvertingInstance.AliasIds = aliasIdsFeature ?? new List(); - featureInvertingInstance.DeclaredName = declaredNameFeature; - featureInvertingInstance.DeclaredShortName = declaredShortNameFeature; - featureInvertingInstance.ElementId = elementIdFeature; - featureInvertingInstance.FeatureInverted = featureInvertedFeature; - featureInvertingInstance.InvertingFeature = invertingFeatureFeature; - featureInvertingInstance.IsImplied = isImpliedFeature; - featureInvertingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureInvertingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - featureInvertingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureInvertingInstance.OwningRelatedElement = owningRelatedElementFeature; - featureInvertingInstance.OwningRelationship = owningRelationshipFeature; - featureInvertingInstance.Source = sourceFeature ?? new List(); - featureInvertingInstance.Target = targetFeature ?? new List(); - - return featureInvertingInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFeatureInverting ReadComplex(Dictionary dictionary) - { - var featureInvertingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("featureInverted", out object featureInvertedObject)) - { - throw new ArgumentException("The featureInverted property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - Guid featureInvertedFeature = Guid.Parse(Convert.ToString(featureInvertedObject)); - - if (!dictionary.TryGetValue("invertingFeature", out object invertingFeatureObject)) - { - throw new ArgumentException("The invertingFeature property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - Guid invertingFeatureFeature = Guid.Parse(Convert.ToString(invertingFeatureObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - List targetFeature = (targetObject as List); - - - featureInvertingInstance.AliasIds = aliasIdsFeature ?? new List(); - featureInvertingInstance.DeclaredName = declaredNameFeature; - featureInvertingInstance.DeclaredShortName = declaredShortNameFeature; - featureInvertingInstance.ElementId = elementIdFeature; - featureInvertingInstance.FeatureInverted = featureInvertedFeature; - featureInvertingInstance.InvertingFeature = invertingFeatureFeature; - featureInvertingInstance.IsImplied = isImpliedFeature; - featureInvertingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureInvertingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - featureInvertingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureInvertingInstance.OwningRelatedElement = owningRelatedElementFeature; - featureInvertingInstance.OwningRelationship = owningRelationshipFeature; - featureInvertingInstance.Source = sourceFeature ?? new List(); - featureInvertingInstance.Target = targetFeature ?? new List(); - - return featureInvertingInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureInverting DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - - var type = Convert.ToString(typeObject); - - if (type != "FeatureInverting") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a FeatureInverting"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a FeatureInverting"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var featureInvertingInstance = new SysML2.NET.Core.DTO.FeatureInverting - { - Id = id - }; - - return featureInvertingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureMembershipDictionaryReader.cs deleted file mode 100644 index 9ed04f169..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureMembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FeatureMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFeatureMembership ReadSimplified(Dictionary dictionary) - { - var featureMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - featureMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - featureMembershipInstance.DeclaredName = declaredNameFeature; - featureMembershipInstance.DeclaredShortName = declaredShortNameFeature; - featureMembershipInstance.ElementId = elementIdFeature; - featureMembershipInstance.IsImplied = isImpliedFeature; - featureMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureMembershipInstance.MemberElement = memberElementFeature; - featureMembershipInstance.MemberName = memberNameFeature; - featureMembershipInstance.MemberShortName = memberShortNameFeature; - featureMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - featureMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - featureMembershipInstance.OwningRelationship = owningRelationshipFeature; - featureMembershipInstance.Source = sourceFeature ?? new List(); - featureMembershipInstance.Target = targetFeature ?? new List(); - featureMembershipInstance.Visibility = visibilityFeature; - - return featureMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFeatureMembership ReadComplex(Dictionary dictionary) - { - var featureMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - featureMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - featureMembershipInstance.DeclaredName = declaredNameFeature; - featureMembershipInstance.DeclaredShortName = declaredShortNameFeature; - featureMembershipInstance.ElementId = elementIdFeature; - featureMembershipInstance.IsImplied = isImpliedFeature; - featureMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureMembershipInstance.MemberElement = memberElementFeature; - featureMembershipInstance.MemberName = memberNameFeature; - featureMembershipInstance.MemberShortName = memberShortNameFeature; - featureMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - featureMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - featureMembershipInstance.OwningRelationship = owningRelationshipFeature; - featureMembershipInstance.Source = sourceFeature ?? new List(); - featureMembershipInstance.Target = targetFeature ?? new List(); - featureMembershipInstance.Visibility = visibilityFeature; - - return featureMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "FeatureMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a FeatureMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a FeatureMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var featureMembershipInstance = new SysML2.NET.Core.DTO.FeatureMembership - { - Id = id - }; - - return featureMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureReferenceExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureReferenceExpressionDictionaryReader.cs deleted file mode 100644 index 5ca38349b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureReferenceExpressionDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FeatureReferenceExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFeatureReferenceExpression ReadSimplified(Dictionary dictionary) - { - var featureReferenceExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - featureReferenceExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - featureReferenceExpressionInstance.DeclaredName = declaredNameFeature; - featureReferenceExpressionInstance.DeclaredShortName = declaredShortNameFeature; - featureReferenceExpressionInstance.Direction = directionFeature; - featureReferenceExpressionInstance.ElementId = elementIdFeature; - featureReferenceExpressionInstance.IsAbstract = isAbstractFeature; - featureReferenceExpressionInstance.IsComposite = isCompositeFeature; - featureReferenceExpressionInstance.IsConstant = isConstantFeature; - featureReferenceExpressionInstance.IsDerived = isDerivedFeature; - featureReferenceExpressionInstance.IsEnd = isEndFeature; - featureReferenceExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureReferenceExpressionInstance.IsOrdered = isOrderedFeature; - featureReferenceExpressionInstance.IsPortion = isPortionFeature; - featureReferenceExpressionInstance.IsSufficient = isSufficientFeature; - featureReferenceExpressionInstance.IsUnique = isUniqueFeature; - featureReferenceExpressionInstance.IsVariable = isVariableFeature; - featureReferenceExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureReferenceExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return featureReferenceExpressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFeatureReferenceExpression ReadComplex(Dictionary dictionary) - { - var featureReferenceExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - featureReferenceExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - featureReferenceExpressionInstance.DeclaredName = declaredNameFeature; - featureReferenceExpressionInstance.DeclaredShortName = declaredShortNameFeature; - featureReferenceExpressionInstance.Direction = directionFeature; - featureReferenceExpressionInstance.ElementId = elementIdFeature; - featureReferenceExpressionInstance.IsAbstract = isAbstractFeature; - featureReferenceExpressionInstance.IsComposite = isCompositeFeature; - featureReferenceExpressionInstance.IsConstant = isConstantFeature; - featureReferenceExpressionInstance.IsDerived = isDerivedFeature; - featureReferenceExpressionInstance.IsEnd = isEndFeature; - featureReferenceExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureReferenceExpressionInstance.IsOrdered = isOrderedFeature; - featureReferenceExpressionInstance.IsPortion = isPortionFeature; - featureReferenceExpressionInstance.IsSufficient = isSufficientFeature; - featureReferenceExpressionInstance.IsUnique = isUniqueFeature; - featureReferenceExpressionInstance.IsVariable = isVariableFeature; - featureReferenceExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureReferenceExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return featureReferenceExpressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureReferenceExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "FeatureReferenceExpression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a FeatureReferenceExpression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a FeatureReferenceExpression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var featureReferenceExpressionInstance = new SysML2.NET.Core.DTO.FeatureReferenceExpression - { - Id = id - }; - - return featureReferenceExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureTypingDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureTypingDictionaryReader.cs deleted file mode 100644 index 971d180f0..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureTypingDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FeatureTypingDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFeatureTyping ReadSimplified(Dictionary dictionary) - { - var featureTypingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - Guid typeFeature = Guid.Parse(Convert.ToString(typeObject)); - - if (!dictionary.TryGetValue("typedFeature", out object typedFeatureObject)) - { - throw new ArgumentException("The typedFeature property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - Guid typedFeatureFeature = Guid.Parse(Convert.ToString(typedFeatureObject)); - - - featureTypingInstance.AliasIds = aliasIdsFeature ?? new List(); - featureTypingInstance.DeclaredName = declaredNameFeature; - featureTypingInstance.DeclaredShortName = declaredShortNameFeature; - featureTypingInstance.ElementId = elementIdFeature; - featureTypingInstance.General = generalFeature; - featureTypingInstance.IsImplied = isImpliedFeature; - featureTypingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureTypingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - featureTypingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureTypingInstance.OwningRelatedElement = owningRelatedElementFeature; - featureTypingInstance.OwningRelationship = owningRelationshipFeature; - featureTypingInstance.Source = sourceFeature ?? new List(); - featureTypingInstance.Specific = specificFeature; - featureTypingInstance.Target = targetFeature ?? new List(); - featureTypingInstance.Type = typeFeature; - featureTypingInstance.TypedFeature = typedFeatureFeature; - - return featureTypingInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFeatureTyping ReadComplex(Dictionary dictionary) - { - var featureTypingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - Guid typeFeature = Guid.Parse(Convert.ToString(typeObject)); - - if (!dictionary.TryGetValue("typedFeature", out object typedFeatureObject)) - { - throw new ArgumentException("The typedFeature property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - Guid typedFeatureFeature = Guid.Parse(Convert.ToString(typedFeatureObject)); - - - featureTypingInstance.AliasIds = aliasIdsFeature ?? new List(); - featureTypingInstance.DeclaredName = declaredNameFeature; - featureTypingInstance.DeclaredShortName = declaredShortNameFeature; - featureTypingInstance.ElementId = elementIdFeature; - featureTypingInstance.General = generalFeature; - featureTypingInstance.IsImplied = isImpliedFeature; - featureTypingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureTypingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - featureTypingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureTypingInstance.OwningRelatedElement = owningRelatedElementFeature; - featureTypingInstance.OwningRelationship = owningRelationshipFeature; - featureTypingInstance.Source = sourceFeature ?? new List(); - featureTypingInstance.Specific = specificFeature; - featureTypingInstance.Target = targetFeature ?? new List(); - featureTypingInstance.Type = typeFeature; - featureTypingInstance.TypedFeature = typedFeatureFeature; - - return featureTypingInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureTyping DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - - var type = Convert.ToString(typeObject); - - if (type != "FeatureTyping") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a FeatureTyping"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a FeatureTyping"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var featureTypingInstance = new SysML2.NET.Core.DTO.FeatureTyping - { - Id = id - }; - - return featureTypingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureValueDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureValueDictionaryReader.cs deleted file mode 100644 index 04440fc99..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FeatureValueDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FeatureValueDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFeatureValue ReadSimplified(Dictionary dictionary) - { - var featureValueInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isDefault", out object isDefaultObject)) - { - throw new ArgumentException("The isDefault property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - bool isDefaultFeature = Convert.ToBoolean(isDefaultObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isInitial", out object isInitialObject)) - { - throw new ArgumentException("The isInitial property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - bool isInitialFeature = Convert.ToBoolean(isInitialObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - featureValueInstance.AliasIds = aliasIdsFeature ?? new List(); - featureValueInstance.DeclaredName = declaredNameFeature; - featureValueInstance.DeclaredShortName = declaredShortNameFeature; - featureValueInstance.ElementId = elementIdFeature; - featureValueInstance.IsDefault = isDefaultFeature; - featureValueInstance.IsImplied = isImpliedFeature; - featureValueInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureValueInstance.IsInitial = isInitialFeature; - featureValueInstance.MemberElement = memberElementFeature; - featureValueInstance.MemberName = memberNameFeature; - featureValueInstance.MemberShortName = memberShortNameFeature; - featureValueInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - featureValueInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureValueInstance.OwningRelatedElement = owningRelatedElementFeature; - featureValueInstance.OwningRelationship = owningRelationshipFeature; - featureValueInstance.Source = sourceFeature ?? new List(); - featureValueInstance.Target = targetFeature ?? new List(); - featureValueInstance.Visibility = visibilityFeature; - - return featureValueInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFeatureValue ReadComplex(Dictionary dictionary) - { - var featureValueInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isDefault", out object isDefaultObject)) - { - throw new ArgumentException("The isDefault property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - bool isDefaultFeature = Convert.ToBoolean(isDefaultObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isInitial", out object isInitialObject)) - { - throw new ArgumentException("The isInitial property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - bool isInitialFeature = Convert.ToBoolean(isInitialObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - featureValueInstance.AliasIds = aliasIdsFeature ?? new List(); - featureValueInstance.DeclaredName = declaredNameFeature; - featureValueInstance.DeclaredShortName = declaredShortNameFeature; - featureValueInstance.ElementId = elementIdFeature; - featureValueInstance.IsDefault = isDefaultFeature; - featureValueInstance.IsImplied = isImpliedFeature; - featureValueInstance.IsImpliedIncluded = isImpliedIncludedFeature; - featureValueInstance.IsInitial = isInitialFeature; - featureValueInstance.MemberElement = memberElementFeature; - featureValueInstance.MemberName = memberNameFeature; - featureValueInstance.MemberShortName = memberShortNameFeature; - featureValueInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - featureValueInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - featureValueInstance.OwningRelatedElement = owningRelatedElementFeature; - featureValueInstance.OwningRelationship = owningRelationshipFeature; - featureValueInstance.Source = sourceFeature ?? new List(); - featureValueInstance.Target = targetFeature ?? new List(); - featureValueInstance.Visibility = visibilityFeature; - - return featureValueInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureValue DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - - var type = Convert.ToString(typeObject); - - if (type != "FeatureValue") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a FeatureValue"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a FeatureValue"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var featureValueInstance = new SysML2.NET.Core.DTO.FeatureValue - { - Id = id - }; - - return featureValueInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowDefinitionDictionaryReader.cs deleted file mode 100644 index c51db9a8d..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowDefinitionDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FlowDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFlowDefinition ReadSimplified(Dictionary dictionary) - { - var flowDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - flowDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - flowDefinitionInstance.DeclaredName = declaredNameFeature; - flowDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - flowDefinitionInstance.ElementId = elementIdFeature; - flowDefinitionInstance.IsAbstract = isAbstractFeature; - flowDefinitionInstance.IsImplied = isImpliedFeature; - flowDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - flowDefinitionInstance.IsIndividual = isIndividualFeature; - flowDefinitionInstance.IsSufficient = isSufficientFeature; - flowDefinitionInstance.IsVariation = isVariationFeature; - flowDefinitionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - flowDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - flowDefinitionInstance.OwningRelatedElement = owningRelatedElementFeature; - flowDefinitionInstance.OwningRelationship = owningRelationshipFeature; - flowDefinitionInstance.Source = sourceFeature ?? new List(); - flowDefinitionInstance.Target = targetFeature ?? new List(); - - return flowDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFlowDefinition ReadComplex(Dictionary dictionary) - { - var flowDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - List targetFeature = (targetObject as List); - - - flowDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - flowDefinitionInstance.DeclaredName = declaredNameFeature; - flowDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - flowDefinitionInstance.ElementId = elementIdFeature; - flowDefinitionInstance.IsAbstract = isAbstractFeature; - flowDefinitionInstance.IsImplied = isImpliedFeature; - flowDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - flowDefinitionInstance.IsIndividual = isIndividualFeature; - flowDefinitionInstance.IsSufficient = isSufficientFeature; - flowDefinitionInstance.IsVariation = isVariationFeature; - flowDefinitionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - flowDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - flowDefinitionInstance.OwningRelatedElement = owningRelatedElementFeature; - flowDefinitionInstance.OwningRelationship = owningRelationshipFeature; - flowDefinitionInstance.Source = sourceFeature ?? new List(); - flowDefinitionInstance.Target = targetFeature ?? new List(); - - return flowDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFlowDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "FlowDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a FlowDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a FlowDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var flowDefinitionInstance = new SysML2.NET.Core.DTO.FlowDefinition - { - Id = id - }; - - return flowDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowDictionaryReader.cs deleted file mode 100644 index 80173f80c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowDictionaryReader.cs +++ /dev/null @@ -1,507 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FlowDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFlow ReadSimplified(Dictionary dictionary) - { - var flowInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - flowInstance.AliasIds = aliasIdsFeature ?? new List(); - flowInstance.DeclaredName = declaredNameFeature; - flowInstance.DeclaredShortName = declaredShortNameFeature; - flowInstance.Direction = directionFeature; - flowInstance.ElementId = elementIdFeature; - flowInstance.IsAbstract = isAbstractFeature; - flowInstance.IsComposite = isCompositeFeature; - flowInstance.IsConstant = isConstantFeature; - flowInstance.IsDerived = isDerivedFeature; - flowInstance.IsEnd = isEndFeature; - flowInstance.IsImplied = isImpliedFeature; - flowInstance.IsImpliedIncluded = isImpliedIncludedFeature; - flowInstance.IsOrdered = isOrderedFeature; - flowInstance.IsPortion = isPortionFeature; - flowInstance.IsSufficient = isSufficientFeature; - flowInstance.IsUnique = isUniqueFeature; - flowInstance.IsVariable = isVariableFeature; - flowInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - flowInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - flowInstance.OwningRelatedElement = owningRelatedElementFeature; - flowInstance.OwningRelationship = owningRelationshipFeature; - flowInstance.Source = sourceFeature ?? new List(); - flowInstance.Target = targetFeature ?? new List(); - - return flowInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFlow ReadComplex(Dictionary dictionary) - { - var flowInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - List targetFeature = (targetObject as List); - - - flowInstance.AliasIds = aliasIdsFeature ?? new List(); - flowInstance.DeclaredName = declaredNameFeature; - flowInstance.DeclaredShortName = declaredShortNameFeature; - flowInstance.Direction = directionFeature; - flowInstance.ElementId = elementIdFeature; - flowInstance.IsAbstract = isAbstractFeature; - flowInstance.IsComposite = isCompositeFeature; - flowInstance.IsConstant = isConstantFeature; - flowInstance.IsDerived = isDerivedFeature; - flowInstance.IsEnd = isEndFeature; - flowInstance.IsImplied = isImpliedFeature; - flowInstance.IsImpliedIncluded = isImpliedIncludedFeature; - flowInstance.IsOrdered = isOrderedFeature; - flowInstance.IsPortion = isPortionFeature; - flowInstance.IsSufficient = isSufficientFeature; - flowInstance.IsUnique = isUniqueFeature; - flowInstance.IsVariable = isVariableFeature; - flowInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - flowInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - flowInstance.OwningRelatedElement = owningRelatedElementFeature; - flowInstance.OwningRelationship = owningRelationshipFeature; - flowInstance.Source = sourceFeature ?? new List(); - flowInstance.Target = targetFeature ?? new List(); - - return flowInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFlow DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Flow") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Flow"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Flow"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var flowInstance = new SysML2.NET.Core.DTO.Flow - { - Id = id - }; - - return flowInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowEndDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowEndDictionaryReader.cs deleted file mode 100644 index cc47a9106..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowEndDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FlowEndDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFlowEnd ReadSimplified(Dictionary dictionary) - { - var flowEndInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - flowEndInstance.AliasIds = aliasIdsFeature ?? new List(); - flowEndInstance.DeclaredName = declaredNameFeature; - flowEndInstance.DeclaredShortName = declaredShortNameFeature; - flowEndInstance.Direction = directionFeature; - flowEndInstance.ElementId = elementIdFeature; - flowEndInstance.IsAbstract = isAbstractFeature; - flowEndInstance.IsComposite = isCompositeFeature; - flowEndInstance.IsConstant = isConstantFeature; - flowEndInstance.IsDerived = isDerivedFeature; - flowEndInstance.IsEnd = isEndFeature; - flowEndInstance.IsImpliedIncluded = isImpliedIncludedFeature; - flowEndInstance.IsOrdered = isOrderedFeature; - flowEndInstance.IsPortion = isPortionFeature; - flowEndInstance.IsSufficient = isSufficientFeature; - flowEndInstance.IsUnique = isUniqueFeature; - flowEndInstance.IsVariable = isVariableFeature; - flowEndInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - flowEndInstance.OwningRelationship = owningRelationshipFeature; - - return flowEndInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFlowEnd ReadComplex(Dictionary dictionary) - { - var flowEndInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - flowEndInstance.AliasIds = aliasIdsFeature ?? new List(); - flowEndInstance.DeclaredName = declaredNameFeature; - flowEndInstance.DeclaredShortName = declaredShortNameFeature; - flowEndInstance.Direction = directionFeature; - flowEndInstance.ElementId = elementIdFeature; - flowEndInstance.IsAbstract = isAbstractFeature; - flowEndInstance.IsComposite = isCompositeFeature; - flowEndInstance.IsConstant = isConstantFeature; - flowEndInstance.IsDerived = isDerivedFeature; - flowEndInstance.IsEnd = isEndFeature; - flowEndInstance.IsImpliedIncluded = isImpliedIncludedFeature; - flowEndInstance.IsOrdered = isOrderedFeature; - flowEndInstance.IsPortion = isPortionFeature; - flowEndInstance.IsSufficient = isSufficientFeature; - flowEndInstance.IsUnique = isUniqueFeature; - flowEndInstance.IsVariable = isVariableFeature; - flowEndInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - flowEndInstance.OwningRelationship = owningRelationshipFeature; - - return flowEndInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFlowEnd DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - - var type = Convert.ToString(typeObject); - - if (type != "FlowEnd") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a FlowEnd"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a FlowEnd"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var flowEndInstance = new SysML2.NET.Core.DTO.FlowEnd - { - Id = id - }; - - return flowEndInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowUsageDictionaryReader.cs deleted file mode 100644 index 703950b7b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FlowUsageDictionaryReader.cs +++ /dev/null @@ -1,549 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FlowUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFlowUsage ReadSimplified(Dictionary dictionary) - { - var flowUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - flowUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - flowUsageInstance.DeclaredName = declaredNameFeature; - flowUsageInstance.DeclaredShortName = declaredShortNameFeature; - flowUsageInstance.Direction = directionFeature; - flowUsageInstance.ElementId = elementIdFeature; - flowUsageInstance.IsAbstract = isAbstractFeature; - flowUsageInstance.IsComposite = isCompositeFeature; - flowUsageInstance.IsConstant = isConstantFeature; - flowUsageInstance.IsDerived = isDerivedFeature; - flowUsageInstance.IsEnd = isEndFeature; - flowUsageInstance.IsImplied = isImpliedFeature; - flowUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - flowUsageInstance.IsIndividual = isIndividualFeature; - flowUsageInstance.IsOrdered = isOrderedFeature; - flowUsageInstance.IsPortion = isPortionFeature; - flowUsageInstance.IsSufficient = isSufficientFeature; - flowUsageInstance.IsUnique = isUniqueFeature; - flowUsageInstance.IsVariable = isVariableFeature; - flowUsageInstance.IsVariation = isVariationFeature; - flowUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - flowUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - flowUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - flowUsageInstance.OwningRelationship = owningRelationshipFeature; - flowUsageInstance.PortionKind = portionKindFeature; - flowUsageInstance.Source = sourceFeature ?? new List(); - flowUsageInstance.Target = targetFeature ?? new List(); - - return flowUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFlowUsage ReadComplex(Dictionary dictionary) - { - var flowUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - List targetFeature = (targetObject as List); - - - flowUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - flowUsageInstance.DeclaredName = declaredNameFeature; - flowUsageInstance.DeclaredShortName = declaredShortNameFeature; - flowUsageInstance.Direction = directionFeature; - flowUsageInstance.ElementId = elementIdFeature; - flowUsageInstance.IsAbstract = isAbstractFeature; - flowUsageInstance.IsComposite = isCompositeFeature; - flowUsageInstance.IsConstant = isConstantFeature; - flowUsageInstance.IsDerived = isDerivedFeature; - flowUsageInstance.IsEnd = isEndFeature; - flowUsageInstance.IsImplied = isImpliedFeature; - flowUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - flowUsageInstance.IsIndividual = isIndividualFeature; - flowUsageInstance.IsOrdered = isOrderedFeature; - flowUsageInstance.IsPortion = isPortionFeature; - flowUsageInstance.IsSufficient = isSufficientFeature; - flowUsageInstance.IsUnique = isUniqueFeature; - flowUsageInstance.IsVariable = isVariableFeature; - flowUsageInstance.IsVariation = isVariationFeature; - flowUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - flowUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - flowUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - flowUsageInstance.OwningRelationship = owningRelationshipFeature; - flowUsageInstance.PortionKind = portionKindFeature; - flowUsageInstance.Source = sourceFeature ?? new List(); - flowUsageInstance.Target = targetFeature ?? new List(); - - return flowUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFlowUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "FlowUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a FlowUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a FlowUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var flowUsageInstance = new SysML2.NET.Core.DTO.FlowUsage - { - Id = id - }; - - return flowUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ForLoopActionUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ForLoopActionUsageDictionaryReader.cs deleted file mode 100644 index 88998e9e3..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ForLoopActionUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ForLoopActionUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IForLoopActionUsage ReadSimplified(Dictionary dictionary) - { - var forLoopActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - forLoopActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - forLoopActionUsageInstance.DeclaredName = declaredNameFeature; - forLoopActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - forLoopActionUsageInstance.Direction = directionFeature; - forLoopActionUsageInstance.ElementId = elementIdFeature; - forLoopActionUsageInstance.IsAbstract = isAbstractFeature; - forLoopActionUsageInstance.IsComposite = isCompositeFeature; - forLoopActionUsageInstance.IsConstant = isConstantFeature; - forLoopActionUsageInstance.IsDerived = isDerivedFeature; - forLoopActionUsageInstance.IsEnd = isEndFeature; - forLoopActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - forLoopActionUsageInstance.IsIndividual = isIndividualFeature; - forLoopActionUsageInstance.IsOrdered = isOrderedFeature; - forLoopActionUsageInstance.IsPortion = isPortionFeature; - forLoopActionUsageInstance.IsSufficient = isSufficientFeature; - forLoopActionUsageInstance.IsUnique = isUniqueFeature; - forLoopActionUsageInstance.IsVariable = isVariableFeature; - forLoopActionUsageInstance.IsVariation = isVariationFeature; - forLoopActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - forLoopActionUsageInstance.OwningRelationship = owningRelationshipFeature; - forLoopActionUsageInstance.PortionKind = portionKindFeature; - - return forLoopActionUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IForLoopActionUsage ReadComplex(Dictionary dictionary) - { - var forLoopActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - forLoopActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - forLoopActionUsageInstance.DeclaredName = declaredNameFeature; - forLoopActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - forLoopActionUsageInstance.Direction = directionFeature; - forLoopActionUsageInstance.ElementId = elementIdFeature; - forLoopActionUsageInstance.IsAbstract = isAbstractFeature; - forLoopActionUsageInstance.IsComposite = isCompositeFeature; - forLoopActionUsageInstance.IsConstant = isConstantFeature; - forLoopActionUsageInstance.IsDerived = isDerivedFeature; - forLoopActionUsageInstance.IsEnd = isEndFeature; - forLoopActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - forLoopActionUsageInstance.IsIndividual = isIndividualFeature; - forLoopActionUsageInstance.IsOrdered = isOrderedFeature; - forLoopActionUsageInstance.IsPortion = isPortionFeature; - forLoopActionUsageInstance.IsSufficient = isSufficientFeature; - forLoopActionUsageInstance.IsUnique = isUniqueFeature; - forLoopActionUsageInstance.IsVariable = isVariableFeature; - forLoopActionUsageInstance.IsVariation = isVariationFeature; - forLoopActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - forLoopActionUsageInstance.OwningRelationship = owningRelationshipFeature; - forLoopActionUsageInstance.PortionKind = portionKindFeature; - - return forLoopActionUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IForLoopActionUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ForLoopActionUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ForLoopActionUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ForLoopActionUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var forLoopActionUsageInstance = new SysML2.NET.Core.DTO.ForLoopActionUsage - { - Id = id - }; - - return forLoopActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ForkNodeDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ForkNodeDictionaryReader.cs deleted file mode 100644 index 26a93752b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ForkNodeDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ForkNodeDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IForkNode ReadSimplified(Dictionary dictionary) - { - var forkNodeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - forkNodeInstance.AliasIds = aliasIdsFeature ?? new List(); - forkNodeInstance.DeclaredName = declaredNameFeature; - forkNodeInstance.DeclaredShortName = declaredShortNameFeature; - forkNodeInstance.Direction = directionFeature; - forkNodeInstance.ElementId = elementIdFeature; - forkNodeInstance.IsAbstract = isAbstractFeature; - forkNodeInstance.IsComposite = isCompositeFeature; - forkNodeInstance.IsConstant = isConstantFeature; - forkNodeInstance.IsDerived = isDerivedFeature; - forkNodeInstance.IsEnd = isEndFeature; - forkNodeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - forkNodeInstance.IsIndividual = isIndividualFeature; - forkNodeInstance.IsOrdered = isOrderedFeature; - forkNodeInstance.IsPortion = isPortionFeature; - forkNodeInstance.IsSufficient = isSufficientFeature; - forkNodeInstance.IsUnique = isUniqueFeature; - forkNodeInstance.IsVariable = isVariableFeature; - forkNodeInstance.IsVariation = isVariationFeature; - forkNodeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - forkNodeInstance.OwningRelationship = owningRelationshipFeature; - forkNodeInstance.PortionKind = portionKindFeature; - - return forkNodeInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IForkNode ReadComplex(Dictionary dictionary) - { - var forkNodeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - forkNodeInstance.AliasIds = aliasIdsFeature ?? new List(); - forkNodeInstance.DeclaredName = declaredNameFeature; - forkNodeInstance.DeclaredShortName = declaredShortNameFeature; - forkNodeInstance.Direction = directionFeature; - forkNodeInstance.ElementId = elementIdFeature; - forkNodeInstance.IsAbstract = isAbstractFeature; - forkNodeInstance.IsComposite = isCompositeFeature; - forkNodeInstance.IsConstant = isConstantFeature; - forkNodeInstance.IsDerived = isDerivedFeature; - forkNodeInstance.IsEnd = isEndFeature; - forkNodeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - forkNodeInstance.IsIndividual = isIndividualFeature; - forkNodeInstance.IsOrdered = isOrderedFeature; - forkNodeInstance.IsPortion = isPortionFeature; - forkNodeInstance.IsSufficient = isSufficientFeature; - forkNodeInstance.IsUnique = isUniqueFeature; - forkNodeInstance.IsVariable = isVariableFeature; - forkNodeInstance.IsVariation = isVariationFeature; - forkNodeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - forkNodeInstance.OwningRelationship = owningRelationshipFeature; - forkNodeInstance.PortionKind = portionKindFeature; - - return forkNodeInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IForkNode DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ForkNode") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ForkNode"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ForkNode"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var forkNodeInstance = new SysML2.NET.Core.DTO.ForkNode - { - Id = id - }; - - return forkNodeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FramedConcernMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FramedConcernMembershipDictionaryReader.cs deleted file mode 100644 index cf07483ed..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FramedConcernMembershipDictionaryReader.cs +++ /dev/null @@ -1,423 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FramedConcernMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFramedConcernMembership ReadSimplified(Dictionary dictionary) - { - var framedConcernMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("kind", out object kindObject)) - { - throw new ArgumentException("The kind property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - RequirementConstraintKind kindFeature = (RequirementConstraintKind)Enum.Parse(typeof(RequirementConstraintKind), Convert.ToString(kindObject), true); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - framedConcernMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - framedConcernMembershipInstance.DeclaredName = declaredNameFeature; - framedConcernMembershipInstance.DeclaredShortName = declaredShortNameFeature; - framedConcernMembershipInstance.ElementId = elementIdFeature; - framedConcernMembershipInstance.IsImplied = isImpliedFeature; - framedConcernMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - framedConcernMembershipInstance.Kind = kindFeature; - framedConcernMembershipInstance.MemberElement = memberElementFeature; - framedConcernMembershipInstance.MemberName = memberNameFeature; - framedConcernMembershipInstance.MemberShortName = memberShortNameFeature; - framedConcernMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - framedConcernMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - framedConcernMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - framedConcernMembershipInstance.OwningRelationship = owningRelationshipFeature; - framedConcernMembershipInstance.Source = sourceFeature ?? new List(); - framedConcernMembershipInstance.Target = targetFeature ?? new List(); - framedConcernMembershipInstance.Visibility = visibilityFeature; - - return framedConcernMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFramedConcernMembership ReadComplex(Dictionary dictionary) - { - var framedConcernMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("kind", out object kindObject)) - { - throw new ArgumentException("The kind property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - RequirementConstraintKind kindFeature = (RequirementConstraintKind)kindObject; - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - framedConcernMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - framedConcernMembershipInstance.DeclaredName = declaredNameFeature; - framedConcernMembershipInstance.DeclaredShortName = declaredShortNameFeature; - framedConcernMembershipInstance.ElementId = elementIdFeature; - framedConcernMembershipInstance.IsImplied = isImpliedFeature; - framedConcernMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - framedConcernMembershipInstance.Kind = kindFeature; - framedConcernMembershipInstance.MemberElement = memberElementFeature; - framedConcernMembershipInstance.MemberName = memberNameFeature; - framedConcernMembershipInstance.MemberShortName = memberShortNameFeature; - framedConcernMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - framedConcernMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - framedConcernMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - framedConcernMembershipInstance.OwningRelationship = owningRelationshipFeature; - framedConcernMembershipInstance.Source = sourceFeature ?? new List(); - framedConcernMembershipInstance.Target = targetFeature ?? new List(); - framedConcernMembershipInstance.Visibility = visibilityFeature; - - return framedConcernMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFramedConcernMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "FramedConcernMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a FramedConcernMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a FramedConcernMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var framedConcernMembershipInstance = new SysML2.NET.Core.DTO.FramedConcernMembership - { - Id = id - }; - - return framedConcernMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FunctionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FunctionDictionaryReader.cs deleted file mode 100644 index 2030c4a49..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/FunctionDictionaryReader.cs +++ /dev/null @@ -1,311 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class FunctionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IFunction ReadSimplified(Dictionary dictionary) - { - var functionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - functionInstance.AliasIds = aliasIdsFeature ?? new List(); - functionInstance.DeclaredName = declaredNameFeature; - functionInstance.DeclaredShortName = declaredShortNameFeature; - functionInstance.ElementId = elementIdFeature; - functionInstance.IsAbstract = isAbstractFeature; - functionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - functionInstance.IsSufficient = isSufficientFeature; - functionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - functionInstance.OwningRelationship = owningRelationshipFeature; - - return functionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IFunction ReadComplex(Dictionary dictionary) - { - var functionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - functionInstance.AliasIds = aliasIdsFeature ?? new List(); - functionInstance.DeclaredName = declaredNameFeature; - functionInstance.DeclaredShortName = declaredShortNameFeature; - functionInstance.ElementId = elementIdFeature; - functionInstance.IsAbstract = isAbstractFeature; - functionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - functionInstance.IsSufficient = isSufficientFeature; - functionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - functionInstance.OwningRelationship = owningRelationshipFeature; - - return functionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFunction DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Function") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Function"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Function"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var functionInstance = new SysML2.NET.Core.DTO.Function - { - Id = id - }; - - return functionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IfActionUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IfActionUsageDictionaryReader.cs deleted file mode 100644 index 26c60c167..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IfActionUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class IfActionUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IIfActionUsage ReadSimplified(Dictionary dictionary) - { - var ifActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - ifActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - ifActionUsageInstance.DeclaredName = declaredNameFeature; - ifActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - ifActionUsageInstance.Direction = directionFeature; - ifActionUsageInstance.ElementId = elementIdFeature; - ifActionUsageInstance.IsAbstract = isAbstractFeature; - ifActionUsageInstance.IsComposite = isCompositeFeature; - ifActionUsageInstance.IsConstant = isConstantFeature; - ifActionUsageInstance.IsDerived = isDerivedFeature; - ifActionUsageInstance.IsEnd = isEndFeature; - ifActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - ifActionUsageInstance.IsIndividual = isIndividualFeature; - ifActionUsageInstance.IsOrdered = isOrderedFeature; - ifActionUsageInstance.IsPortion = isPortionFeature; - ifActionUsageInstance.IsSufficient = isSufficientFeature; - ifActionUsageInstance.IsUnique = isUniqueFeature; - ifActionUsageInstance.IsVariable = isVariableFeature; - ifActionUsageInstance.IsVariation = isVariationFeature; - ifActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - ifActionUsageInstance.OwningRelationship = owningRelationshipFeature; - ifActionUsageInstance.PortionKind = portionKindFeature; - - return ifActionUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IIfActionUsage ReadComplex(Dictionary dictionary) - { - var ifActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - ifActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - ifActionUsageInstance.DeclaredName = declaredNameFeature; - ifActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - ifActionUsageInstance.Direction = directionFeature; - ifActionUsageInstance.ElementId = elementIdFeature; - ifActionUsageInstance.IsAbstract = isAbstractFeature; - ifActionUsageInstance.IsComposite = isCompositeFeature; - ifActionUsageInstance.IsConstant = isConstantFeature; - ifActionUsageInstance.IsDerived = isDerivedFeature; - ifActionUsageInstance.IsEnd = isEndFeature; - ifActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - ifActionUsageInstance.IsIndividual = isIndividualFeature; - ifActionUsageInstance.IsOrdered = isOrderedFeature; - ifActionUsageInstance.IsPortion = isPortionFeature; - ifActionUsageInstance.IsSufficient = isSufficientFeature; - ifActionUsageInstance.IsUnique = isUniqueFeature; - ifActionUsageInstance.IsVariable = isVariableFeature; - ifActionUsageInstance.IsVariation = isVariationFeature; - ifActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - ifActionUsageInstance.OwningRelationship = owningRelationshipFeature; - ifActionUsageInstance.PortionKind = portionKindFeature; - - return ifActionUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IIfActionUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "IfActionUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a IfActionUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a IfActionUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var ifActionUsageInstance = new SysML2.NET.Core.DTO.IfActionUsage - { - Id = id - }; - - return ifActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IncludeUseCaseUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IncludeUseCaseUsageDictionaryReader.cs deleted file mode 100644 index a8f79aab1..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IncludeUseCaseUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class IncludeUseCaseUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IIncludeUseCaseUsage ReadSimplified(Dictionary dictionary) - { - var includeUseCaseUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - includeUseCaseUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - includeUseCaseUsageInstance.DeclaredName = declaredNameFeature; - includeUseCaseUsageInstance.DeclaredShortName = declaredShortNameFeature; - includeUseCaseUsageInstance.Direction = directionFeature; - includeUseCaseUsageInstance.ElementId = elementIdFeature; - includeUseCaseUsageInstance.IsAbstract = isAbstractFeature; - includeUseCaseUsageInstance.IsComposite = isCompositeFeature; - includeUseCaseUsageInstance.IsConstant = isConstantFeature; - includeUseCaseUsageInstance.IsDerived = isDerivedFeature; - includeUseCaseUsageInstance.IsEnd = isEndFeature; - includeUseCaseUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - includeUseCaseUsageInstance.IsIndividual = isIndividualFeature; - includeUseCaseUsageInstance.IsOrdered = isOrderedFeature; - includeUseCaseUsageInstance.IsPortion = isPortionFeature; - includeUseCaseUsageInstance.IsSufficient = isSufficientFeature; - includeUseCaseUsageInstance.IsUnique = isUniqueFeature; - includeUseCaseUsageInstance.IsVariable = isVariableFeature; - includeUseCaseUsageInstance.IsVariation = isVariationFeature; - includeUseCaseUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - includeUseCaseUsageInstance.OwningRelationship = owningRelationshipFeature; - includeUseCaseUsageInstance.PortionKind = portionKindFeature; - - return includeUseCaseUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IIncludeUseCaseUsage ReadComplex(Dictionary dictionary) - { - var includeUseCaseUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - includeUseCaseUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - includeUseCaseUsageInstance.DeclaredName = declaredNameFeature; - includeUseCaseUsageInstance.DeclaredShortName = declaredShortNameFeature; - includeUseCaseUsageInstance.Direction = directionFeature; - includeUseCaseUsageInstance.ElementId = elementIdFeature; - includeUseCaseUsageInstance.IsAbstract = isAbstractFeature; - includeUseCaseUsageInstance.IsComposite = isCompositeFeature; - includeUseCaseUsageInstance.IsConstant = isConstantFeature; - includeUseCaseUsageInstance.IsDerived = isDerivedFeature; - includeUseCaseUsageInstance.IsEnd = isEndFeature; - includeUseCaseUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - includeUseCaseUsageInstance.IsIndividual = isIndividualFeature; - includeUseCaseUsageInstance.IsOrdered = isOrderedFeature; - includeUseCaseUsageInstance.IsPortion = isPortionFeature; - includeUseCaseUsageInstance.IsSufficient = isSufficientFeature; - includeUseCaseUsageInstance.IsUnique = isUniqueFeature; - includeUseCaseUsageInstance.IsVariable = isVariableFeature; - includeUseCaseUsageInstance.IsVariation = isVariationFeature; - includeUseCaseUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - includeUseCaseUsageInstance.OwningRelationship = owningRelationshipFeature; - includeUseCaseUsageInstance.PortionKind = portionKindFeature; - - return includeUseCaseUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IIncludeUseCaseUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "IncludeUseCaseUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a IncludeUseCaseUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a IncludeUseCaseUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var includeUseCaseUsageInstance = new SysML2.NET.Core.DTO.IncludeUseCaseUsage - { - Id = id - }; - - return includeUseCaseUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IndexExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IndexExpressionDictionaryReader.cs deleted file mode 100644 index 7ca42897d..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IndexExpressionDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class IndexExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IIndexExpression ReadSimplified(Dictionary dictionary) - { - var indexExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("operator", out object operatorObject)) - { - throw new ArgumentException("The operator property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - string operatorFeature = Convert.ToString(operatorObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - indexExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - indexExpressionInstance.DeclaredName = declaredNameFeature; - indexExpressionInstance.DeclaredShortName = declaredShortNameFeature; - indexExpressionInstance.Direction = directionFeature; - indexExpressionInstance.ElementId = elementIdFeature; - indexExpressionInstance.IsAbstract = isAbstractFeature; - indexExpressionInstance.IsComposite = isCompositeFeature; - indexExpressionInstance.IsConstant = isConstantFeature; - indexExpressionInstance.IsDerived = isDerivedFeature; - indexExpressionInstance.IsEnd = isEndFeature; - indexExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - indexExpressionInstance.IsOrdered = isOrderedFeature; - indexExpressionInstance.IsPortion = isPortionFeature; - indexExpressionInstance.IsSufficient = isSufficientFeature; - indexExpressionInstance.IsUnique = isUniqueFeature; - indexExpressionInstance.IsVariable = isVariableFeature; - indexExpressionInstance.Operator = operatorFeature; - indexExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - indexExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return indexExpressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IIndexExpression ReadComplex(Dictionary dictionary) - { - var indexExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("operator", out object operatorObject)) - { - throw new ArgumentException("The operator property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - string operatorFeature = Convert.ToString(operatorObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - indexExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - indexExpressionInstance.DeclaredName = declaredNameFeature; - indexExpressionInstance.DeclaredShortName = declaredShortNameFeature; - indexExpressionInstance.Direction = directionFeature; - indexExpressionInstance.ElementId = elementIdFeature; - indexExpressionInstance.IsAbstract = isAbstractFeature; - indexExpressionInstance.IsComposite = isCompositeFeature; - indexExpressionInstance.IsConstant = isConstantFeature; - indexExpressionInstance.IsDerived = isDerivedFeature; - indexExpressionInstance.IsEnd = isEndFeature; - indexExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - indexExpressionInstance.IsOrdered = isOrderedFeature; - indexExpressionInstance.IsPortion = isPortionFeature; - indexExpressionInstance.IsSufficient = isSufficientFeature; - indexExpressionInstance.IsUnique = isUniqueFeature; - indexExpressionInstance.IsVariable = isVariableFeature; - indexExpressionInstance.Operator = operatorFeature; - indexExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - indexExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return indexExpressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IIndexExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "IndexExpression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a IndexExpression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a IndexExpression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var indexExpressionInstance = new SysML2.NET.Core.DTO.IndexExpression - { - Id = id - }; - - return indexExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InteractionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InteractionDictionaryReader.cs deleted file mode 100644 index da9a9bf1c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InteractionDictionaryReader.cs +++ /dev/null @@ -1,381 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class InteractionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IInteraction ReadSimplified(Dictionary dictionary) - { - var interactionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - interactionInstance.AliasIds = aliasIdsFeature ?? new List(); - interactionInstance.DeclaredName = declaredNameFeature; - interactionInstance.DeclaredShortName = declaredShortNameFeature; - interactionInstance.ElementId = elementIdFeature; - interactionInstance.IsAbstract = isAbstractFeature; - interactionInstance.IsImplied = isImpliedFeature; - interactionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - interactionInstance.IsSufficient = isSufficientFeature; - interactionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - interactionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - interactionInstance.OwningRelatedElement = owningRelatedElementFeature; - interactionInstance.OwningRelationship = owningRelationshipFeature; - interactionInstance.Source = sourceFeature ?? new List(); - interactionInstance.Target = targetFeature ?? new List(); - - return interactionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IInteraction ReadComplex(Dictionary dictionary) - { - var interactionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - List targetFeature = (targetObject as List); - - - interactionInstance.AliasIds = aliasIdsFeature ?? new List(); - interactionInstance.DeclaredName = declaredNameFeature; - interactionInstance.DeclaredShortName = declaredShortNameFeature; - interactionInstance.ElementId = elementIdFeature; - interactionInstance.IsAbstract = isAbstractFeature; - interactionInstance.IsImplied = isImpliedFeature; - interactionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - interactionInstance.IsSufficient = isSufficientFeature; - interactionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - interactionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - interactionInstance.OwningRelatedElement = owningRelatedElementFeature; - interactionInstance.OwningRelationship = owningRelationshipFeature; - interactionInstance.Source = sourceFeature ?? new List(); - interactionInstance.Target = targetFeature ?? new List(); - - return interactionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IInteraction DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Interaction") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Interaction"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Interaction"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var interactionInstance = new SysML2.NET.Core.DTO.Interaction - { - Id = id - }; - - return interactionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InterfaceDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InterfaceDefinitionDictionaryReader.cs deleted file mode 100644 index 64fd31744..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InterfaceDefinitionDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class InterfaceDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IInterfaceDefinition ReadSimplified(Dictionary dictionary) - { - var interfaceDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - interfaceDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - interfaceDefinitionInstance.DeclaredName = declaredNameFeature; - interfaceDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - interfaceDefinitionInstance.ElementId = elementIdFeature; - interfaceDefinitionInstance.IsAbstract = isAbstractFeature; - interfaceDefinitionInstance.IsImplied = isImpliedFeature; - interfaceDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - interfaceDefinitionInstance.IsIndividual = isIndividualFeature; - interfaceDefinitionInstance.IsSufficient = isSufficientFeature; - interfaceDefinitionInstance.IsVariation = isVariationFeature; - interfaceDefinitionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - interfaceDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - interfaceDefinitionInstance.OwningRelatedElement = owningRelatedElementFeature; - interfaceDefinitionInstance.OwningRelationship = owningRelationshipFeature; - interfaceDefinitionInstance.Source = sourceFeature ?? new List(); - interfaceDefinitionInstance.Target = targetFeature ?? new List(); - - return interfaceDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IInterfaceDefinition ReadComplex(Dictionary dictionary) - { - var interfaceDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - List targetFeature = (targetObject as List); - - - interfaceDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - interfaceDefinitionInstance.DeclaredName = declaredNameFeature; - interfaceDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - interfaceDefinitionInstance.ElementId = elementIdFeature; - interfaceDefinitionInstance.IsAbstract = isAbstractFeature; - interfaceDefinitionInstance.IsImplied = isImpliedFeature; - interfaceDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - interfaceDefinitionInstance.IsIndividual = isIndividualFeature; - interfaceDefinitionInstance.IsSufficient = isSufficientFeature; - interfaceDefinitionInstance.IsVariation = isVariationFeature; - interfaceDefinitionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - interfaceDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - interfaceDefinitionInstance.OwningRelatedElement = owningRelatedElementFeature; - interfaceDefinitionInstance.OwningRelationship = owningRelationshipFeature; - interfaceDefinitionInstance.Source = sourceFeature ?? new List(); - interfaceDefinitionInstance.Target = targetFeature ?? new List(); - - return interfaceDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IInterfaceDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "InterfaceDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a InterfaceDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a InterfaceDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var interfaceDefinitionInstance = new SysML2.NET.Core.DTO.InterfaceDefinition - { - Id = id - }; - - return interfaceDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InterfaceUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InterfaceUsageDictionaryReader.cs deleted file mode 100644 index b8a766670..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InterfaceUsageDictionaryReader.cs +++ /dev/null @@ -1,549 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class InterfaceUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IInterfaceUsage ReadSimplified(Dictionary dictionary) - { - var interfaceUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - interfaceUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - interfaceUsageInstance.DeclaredName = declaredNameFeature; - interfaceUsageInstance.DeclaredShortName = declaredShortNameFeature; - interfaceUsageInstance.Direction = directionFeature; - interfaceUsageInstance.ElementId = elementIdFeature; - interfaceUsageInstance.IsAbstract = isAbstractFeature; - interfaceUsageInstance.IsComposite = isCompositeFeature; - interfaceUsageInstance.IsConstant = isConstantFeature; - interfaceUsageInstance.IsDerived = isDerivedFeature; - interfaceUsageInstance.IsEnd = isEndFeature; - interfaceUsageInstance.IsImplied = isImpliedFeature; - interfaceUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - interfaceUsageInstance.IsIndividual = isIndividualFeature; - interfaceUsageInstance.IsOrdered = isOrderedFeature; - interfaceUsageInstance.IsPortion = isPortionFeature; - interfaceUsageInstance.IsSufficient = isSufficientFeature; - interfaceUsageInstance.IsUnique = isUniqueFeature; - interfaceUsageInstance.IsVariable = isVariableFeature; - interfaceUsageInstance.IsVariation = isVariationFeature; - interfaceUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - interfaceUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - interfaceUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - interfaceUsageInstance.OwningRelationship = owningRelationshipFeature; - interfaceUsageInstance.PortionKind = portionKindFeature; - interfaceUsageInstance.Source = sourceFeature ?? new List(); - interfaceUsageInstance.Target = targetFeature ?? new List(); - - return interfaceUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IInterfaceUsage ReadComplex(Dictionary dictionary) - { - var interfaceUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - List targetFeature = (targetObject as List); - - - interfaceUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - interfaceUsageInstance.DeclaredName = declaredNameFeature; - interfaceUsageInstance.DeclaredShortName = declaredShortNameFeature; - interfaceUsageInstance.Direction = directionFeature; - interfaceUsageInstance.ElementId = elementIdFeature; - interfaceUsageInstance.IsAbstract = isAbstractFeature; - interfaceUsageInstance.IsComposite = isCompositeFeature; - interfaceUsageInstance.IsConstant = isConstantFeature; - interfaceUsageInstance.IsDerived = isDerivedFeature; - interfaceUsageInstance.IsEnd = isEndFeature; - interfaceUsageInstance.IsImplied = isImpliedFeature; - interfaceUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - interfaceUsageInstance.IsIndividual = isIndividualFeature; - interfaceUsageInstance.IsOrdered = isOrderedFeature; - interfaceUsageInstance.IsPortion = isPortionFeature; - interfaceUsageInstance.IsSufficient = isSufficientFeature; - interfaceUsageInstance.IsUnique = isUniqueFeature; - interfaceUsageInstance.IsVariable = isVariableFeature; - interfaceUsageInstance.IsVariation = isVariationFeature; - interfaceUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - interfaceUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - interfaceUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - interfaceUsageInstance.OwningRelationship = owningRelationshipFeature; - interfaceUsageInstance.PortionKind = portionKindFeature; - interfaceUsageInstance.Source = sourceFeature ?? new List(); - interfaceUsageInstance.Target = targetFeature ?? new List(); - - return interfaceUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IInterfaceUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "InterfaceUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a InterfaceUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a InterfaceUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var interfaceUsageInstance = new SysML2.NET.Core.DTO.InterfaceUsage - { - Id = id - }; - - return interfaceUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IntersectingDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IntersectingDictionaryReader.cs deleted file mode 100644 index ddcfaf2c9..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/IntersectingDictionaryReader.cs +++ /dev/null @@ -1,367 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class IntersectingDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IIntersecting ReadSimplified(Dictionary dictionary) - { - var intersectingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("intersectingType", out object intersectingTypeObject)) - { - throw new ArgumentException("The intersectingType property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - Guid intersectingTypeFeature = Guid.Parse(Convert.ToString(intersectingTypeObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - intersectingInstance.AliasIds = aliasIdsFeature ?? new List(); - intersectingInstance.DeclaredName = declaredNameFeature; - intersectingInstance.DeclaredShortName = declaredShortNameFeature; - intersectingInstance.ElementId = elementIdFeature; - intersectingInstance.IntersectingType = intersectingTypeFeature; - intersectingInstance.IsImplied = isImpliedFeature; - intersectingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - intersectingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - intersectingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - intersectingInstance.OwningRelatedElement = owningRelatedElementFeature; - intersectingInstance.OwningRelationship = owningRelationshipFeature; - intersectingInstance.Source = sourceFeature ?? new List(); - intersectingInstance.Target = targetFeature ?? new List(); - - return intersectingInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IIntersecting ReadComplex(Dictionary dictionary) - { - var intersectingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("intersectingType", out object intersectingTypeObject)) - { - throw new ArgumentException("The intersectingType property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - Guid intersectingTypeFeature = Guid.Parse(Convert.ToString(intersectingTypeObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - List targetFeature = (targetObject as List); - - - intersectingInstance.AliasIds = aliasIdsFeature ?? new List(); - intersectingInstance.DeclaredName = declaredNameFeature; - intersectingInstance.DeclaredShortName = declaredShortNameFeature; - intersectingInstance.ElementId = elementIdFeature; - intersectingInstance.IntersectingType = intersectingTypeFeature; - intersectingInstance.IsImplied = isImpliedFeature; - intersectingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - intersectingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - intersectingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - intersectingInstance.OwningRelatedElement = owningRelatedElementFeature; - intersectingInstance.OwningRelationship = owningRelationshipFeature; - intersectingInstance.Source = sourceFeature ?? new List(); - intersectingInstance.Target = targetFeature ?? new List(); - - return intersectingInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IIntersecting DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Intersecting") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Intersecting"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Intersecting"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var intersectingInstance = new SysML2.NET.Core.DTO.Intersecting - { - Id = id - }; - - return intersectingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InvariantDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InvariantDictionaryReader.cs deleted file mode 100644 index 7233824f4..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InvariantDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class InvariantDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IInvariant ReadSimplified(Dictionary dictionary) - { - var invariantInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isNegated", out object isNegatedObject)) - { - throw new ArgumentException("The isNegated property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isNegatedFeature = Convert.ToBoolean(isNegatedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - invariantInstance.AliasIds = aliasIdsFeature ?? new List(); - invariantInstance.DeclaredName = declaredNameFeature; - invariantInstance.DeclaredShortName = declaredShortNameFeature; - invariantInstance.Direction = directionFeature; - invariantInstance.ElementId = elementIdFeature; - invariantInstance.IsAbstract = isAbstractFeature; - invariantInstance.IsComposite = isCompositeFeature; - invariantInstance.IsConstant = isConstantFeature; - invariantInstance.IsDerived = isDerivedFeature; - invariantInstance.IsEnd = isEndFeature; - invariantInstance.IsImpliedIncluded = isImpliedIncludedFeature; - invariantInstance.IsNegated = isNegatedFeature; - invariantInstance.IsOrdered = isOrderedFeature; - invariantInstance.IsPortion = isPortionFeature; - invariantInstance.IsSufficient = isSufficientFeature; - invariantInstance.IsUnique = isUniqueFeature; - invariantInstance.IsVariable = isVariableFeature; - invariantInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - invariantInstance.OwningRelationship = owningRelationshipFeature; - - return invariantInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IInvariant ReadComplex(Dictionary dictionary) - { - var invariantInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isNegated", out object isNegatedObject)) - { - throw new ArgumentException("The isNegated property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isNegatedFeature = Convert.ToBoolean(isNegatedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - invariantInstance.AliasIds = aliasIdsFeature ?? new List(); - invariantInstance.DeclaredName = declaredNameFeature; - invariantInstance.DeclaredShortName = declaredShortNameFeature; - invariantInstance.Direction = directionFeature; - invariantInstance.ElementId = elementIdFeature; - invariantInstance.IsAbstract = isAbstractFeature; - invariantInstance.IsComposite = isCompositeFeature; - invariantInstance.IsConstant = isConstantFeature; - invariantInstance.IsDerived = isDerivedFeature; - invariantInstance.IsEnd = isEndFeature; - invariantInstance.IsImpliedIncluded = isImpliedIncludedFeature; - invariantInstance.IsNegated = isNegatedFeature; - invariantInstance.IsOrdered = isOrderedFeature; - invariantInstance.IsPortion = isPortionFeature; - invariantInstance.IsSufficient = isSufficientFeature; - invariantInstance.IsUnique = isUniqueFeature; - invariantInstance.IsVariable = isVariableFeature; - invariantInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - invariantInstance.OwningRelationship = owningRelationshipFeature; - - return invariantInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IInvariant DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Invariant") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Invariant"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Invariant"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var invariantInstance = new SysML2.NET.Core.DTO.Invariant - { - Id = id - }; - - return invariantInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InvocationExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InvocationExpressionDictionaryReader.cs deleted file mode 100644 index 18a6f1c54..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/InvocationExpressionDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class InvocationExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IInvocationExpression ReadSimplified(Dictionary dictionary) - { - var invocationExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - invocationExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - invocationExpressionInstance.DeclaredName = declaredNameFeature; - invocationExpressionInstance.DeclaredShortName = declaredShortNameFeature; - invocationExpressionInstance.Direction = directionFeature; - invocationExpressionInstance.ElementId = elementIdFeature; - invocationExpressionInstance.IsAbstract = isAbstractFeature; - invocationExpressionInstance.IsComposite = isCompositeFeature; - invocationExpressionInstance.IsConstant = isConstantFeature; - invocationExpressionInstance.IsDerived = isDerivedFeature; - invocationExpressionInstance.IsEnd = isEndFeature; - invocationExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - invocationExpressionInstance.IsOrdered = isOrderedFeature; - invocationExpressionInstance.IsPortion = isPortionFeature; - invocationExpressionInstance.IsSufficient = isSufficientFeature; - invocationExpressionInstance.IsUnique = isUniqueFeature; - invocationExpressionInstance.IsVariable = isVariableFeature; - invocationExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - invocationExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return invocationExpressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IInvocationExpression ReadComplex(Dictionary dictionary) - { - var invocationExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - invocationExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - invocationExpressionInstance.DeclaredName = declaredNameFeature; - invocationExpressionInstance.DeclaredShortName = declaredShortNameFeature; - invocationExpressionInstance.Direction = directionFeature; - invocationExpressionInstance.ElementId = elementIdFeature; - invocationExpressionInstance.IsAbstract = isAbstractFeature; - invocationExpressionInstance.IsComposite = isCompositeFeature; - invocationExpressionInstance.IsConstant = isConstantFeature; - invocationExpressionInstance.IsDerived = isDerivedFeature; - invocationExpressionInstance.IsEnd = isEndFeature; - invocationExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - invocationExpressionInstance.IsOrdered = isOrderedFeature; - invocationExpressionInstance.IsPortion = isPortionFeature; - invocationExpressionInstance.IsSufficient = isSufficientFeature; - invocationExpressionInstance.IsUnique = isUniqueFeature; - invocationExpressionInstance.IsVariable = isVariableFeature; - invocationExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - invocationExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return invocationExpressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IInvocationExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "InvocationExpression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a InvocationExpression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a InvocationExpression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var invocationExpressionInstance = new SysML2.NET.Core.DTO.InvocationExpression - { - Id = id - }; - - return invocationExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ItemDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ItemDefinitionDictionaryReader.cs deleted file mode 100644 index f48eb28b8..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ItemDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ItemDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IItemDefinition ReadSimplified(Dictionary dictionary) - { - var itemDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - itemDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - itemDefinitionInstance.DeclaredName = declaredNameFeature; - itemDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - itemDefinitionInstance.ElementId = elementIdFeature; - itemDefinitionInstance.IsAbstract = isAbstractFeature; - itemDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - itemDefinitionInstance.IsIndividual = isIndividualFeature; - itemDefinitionInstance.IsSufficient = isSufficientFeature; - itemDefinitionInstance.IsVariation = isVariationFeature; - itemDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - itemDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return itemDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IItemDefinition ReadComplex(Dictionary dictionary) - { - var itemDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - itemDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - itemDefinitionInstance.DeclaredName = declaredNameFeature; - itemDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - itemDefinitionInstance.ElementId = elementIdFeature; - itemDefinitionInstance.IsAbstract = isAbstractFeature; - itemDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - itemDefinitionInstance.IsIndividual = isIndividualFeature; - itemDefinitionInstance.IsSufficient = isSufficientFeature; - itemDefinitionInstance.IsVariation = isVariationFeature; - itemDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - itemDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return itemDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IItemDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ItemDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ItemDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ItemDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var itemDefinitionInstance = new SysML2.NET.Core.DTO.ItemDefinition - { - Id = id - }; - - return itemDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ItemUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ItemUsageDictionaryReader.cs deleted file mode 100644 index 36d4f6224..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ItemUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ItemUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IItemUsage ReadSimplified(Dictionary dictionary) - { - var itemUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - itemUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - itemUsageInstance.DeclaredName = declaredNameFeature; - itemUsageInstance.DeclaredShortName = declaredShortNameFeature; - itemUsageInstance.Direction = directionFeature; - itemUsageInstance.ElementId = elementIdFeature; - itemUsageInstance.IsAbstract = isAbstractFeature; - itemUsageInstance.IsComposite = isCompositeFeature; - itemUsageInstance.IsConstant = isConstantFeature; - itemUsageInstance.IsDerived = isDerivedFeature; - itemUsageInstance.IsEnd = isEndFeature; - itemUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - itemUsageInstance.IsIndividual = isIndividualFeature; - itemUsageInstance.IsOrdered = isOrderedFeature; - itemUsageInstance.IsPortion = isPortionFeature; - itemUsageInstance.IsSufficient = isSufficientFeature; - itemUsageInstance.IsUnique = isUniqueFeature; - itemUsageInstance.IsVariable = isVariableFeature; - itemUsageInstance.IsVariation = isVariationFeature; - itemUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - itemUsageInstance.OwningRelationship = owningRelationshipFeature; - itemUsageInstance.PortionKind = portionKindFeature; - - return itemUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IItemUsage ReadComplex(Dictionary dictionary) - { - var itemUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - itemUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - itemUsageInstance.DeclaredName = declaredNameFeature; - itemUsageInstance.DeclaredShortName = declaredShortNameFeature; - itemUsageInstance.Direction = directionFeature; - itemUsageInstance.ElementId = elementIdFeature; - itemUsageInstance.IsAbstract = isAbstractFeature; - itemUsageInstance.IsComposite = isCompositeFeature; - itemUsageInstance.IsConstant = isConstantFeature; - itemUsageInstance.IsDerived = isDerivedFeature; - itemUsageInstance.IsEnd = isEndFeature; - itemUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - itemUsageInstance.IsIndividual = isIndividualFeature; - itemUsageInstance.IsOrdered = isOrderedFeature; - itemUsageInstance.IsPortion = isPortionFeature; - itemUsageInstance.IsSufficient = isSufficientFeature; - itemUsageInstance.IsUnique = isUniqueFeature; - itemUsageInstance.IsVariable = isVariableFeature; - itemUsageInstance.IsVariation = isVariationFeature; - itemUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - itemUsageInstance.OwningRelationship = owningRelationshipFeature; - itemUsageInstance.PortionKind = portionKindFeature; - - return itemUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IItemUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ItemUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ItemUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ItemUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var itemUsageInstance = new SysML2.NET.Core.DTO.ItemUsage - { - Id = id - }; - - return itemUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/JoinNodeDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/JoinNodeDictionaryReader.cs deleted file mode 100644 index bd2899399..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/JoinNodeDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class JoinNodeDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IJoinNode ReadSimplified(Dictionary dictionary) - { - var joinNodeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - joinNodeInstance.AliasIds = aliasIdsFeature ?? new List(); - joinNodeInstance.DeclaredName = declaredNameFeature; - joinNodeInstance.DeclaredShortName = declaredShortNameFeature; - joinNodeInstance.Direction = directionFeature; - joinNodeInstance.ElementId = elementIdFeature; - joinNodeInstance.IsAbstract = isAbstractFeature; - joinNodeInstance.IsComposite = isCompositeFeature; - joinNodeInstance.IsConstant = isConstantFeature; - joinNodeInstance.IsDerived = isDerivedFeature; - joinNodeInstance.IsEnd = isEndFeature; - joinNodeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - joinNodeInstance.IsIndividual = isIndividualFeature; - joinNodeInstance.IsOrdered = isOrderedFeature; - joinNodeInstance.IsPortion = isPortionFeature; - joinNodeInstance.IsSufficient = isSufficientFeature; - joinNodeInstance.IsUnique = isUniqueFeature; - joinNodeInstance.IsVariable = isVariableFeature; - joinNodeInstance.IsVariation = isVariationFeature; - joinNodeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - joinNodeInstance.OwningRelationship = owningRelationshipFeature; - joinNodeInstance.PortionKind = portionKindFeature; - - return joinNodeInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IJoinNode ReadComplex(Dictionary dictionary) - { - var joinNodeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - joinNodeInstance.AliasIds = aliasIdsFeature ?? new List(); - joinNodeInstance.DeclaredName = declaredNameFeature; - joinNodeInstance.DeclaredShortName = declaredShortNameFeature; - joinNodeInstance.Direction = directionFeature; - joinNodeInstance.ElementId = elementIdFeature; - joinNodeInstance.IsAbstract = isAbstractFeature; - joinNodeInstance.IsComposite = isCompositeFeature; - joinNodeInstance.IsConstant = isConstantFeature; - joinNodeInstance.IsDerived = isDerivedFeature; - joinNodeInstance.IsEnd = isEndFeature; - joinNodeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - joinNodeInstance.IsIndividual = isIndividualFeature; - joinNodeInstance.IsOrdered = isOrderedFeature; - joinNodeInstance.IsPortion = isPortionFeature; - joinNodeInstance.IsSufficient = isSufficientFeature; - joinNodeInstance.IsUnique = isUniqueFeature; - joinNodeInstance.IsVariable = isVariableFeature; - joinNodeInstance.IsVariation = isVariationFeature; - joinNodeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - joinNodeInstance.OwningRelationship = owningRelationshipFeature; - joinNodeInstance.PortionKind = portionKindFeature; - - return joinNodeInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IJoinNode DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - - var type = Convert.ToString(typeObject); - - if (type != "JoinNode") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a JoinNode"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a JoinNode"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var joinNodeInstance = new SysML2.NET.Core.DTO.JoinNode - { - Id = id - }; - - return joinNodeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LibraryPackageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LibraryPackageDictionaryReader.cs deleted file mode 100644 index 41543feaf..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LibraryPackageDictionaryReader.cs +++ /dev/null @@ -1,297 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class LibraryPackageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ILibraryPackage ReadSimplified(Dictionary dictionary) - { - var libraryPackageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isStandard", out object isStandardObject)) - { - throw new ArgumentException("The isStandard property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - bool isStandardFeature = Convert.ToBoolean(isStandardObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - libraryPackageInstance.AliasIds = aliasIdsFeature ?? new List(); - libraryPackageInstance.DeclaredName = declaredNameFeature; - libraryPackageInstance.DeclaredShortName = declaredShortNameFeature; - libraryPackageInstance.ElementId = elementIdFeature; - libraryPackageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - libraryPackageInstance.IsStandard = isStandardFeature; - libraryPackageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - libraryPackageInstance.OwningRelationship = owningRelationshipFeature; - - return libraryPackageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ILibraryPackage ReadComplex(Dictionary dictionary) - { - var libraryPackageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isStandard", out object isStandardObject)) - { - throw new ArgumentException("The isStandard property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - bool isStandardFeature = Convert.ToBoolean(isStandardObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - libraryPackageInstance.AliasIds = aliasIdsFeature ?? new List(); - libraryPackageInstance.DeclaredName = declaredNameFeature; - libraryPackageInstance.DeclaredShortName = declaredShortNameFeature; - libraryPackageInstance.ElementId = elementIdFeature; - libraryPackageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - libraryPackageInstance.IsStandard = isStandardFeature; - libraryPackageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - libraryPackageInstance.OwningRelationship = owningRelationshipFeature; - - return libraryPackageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILibraryPackage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "LibraryPackage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a LibraryPackage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a LibraryPackage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var libraryPackageInstance = new SysML2.NET.Core.DTO.LibraryPackage - { - Id = id - }; - - return libraryPackageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralBooleanDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralBooleanDictionaryReader.cs deleted file mode 100644 index 0db4d5d92..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralBooleanDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class LiteralBooleanDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ILiteralBoolean ReadSimplified(Dictionary dictionary) - { - var literalBooleanInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("value", out object valueObject)) - { - throw new ArgumentException("The value property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool valueFeature = Convert.ToBoolean(valueObject); - - - literalBooleanInstance.AliasIds = aliasIdsFeature ?? new List(); - literalBooleanInstance.DeclaredName = declaredNameFeature; - literalBooleanInstance.DeclaredShortName = declaredShortNameFeature; - literalBooleanInstance.Direction = directionFeature; - literalBooleanInstance.ElementId = elementIdFeature; - literalBooleanInstance.IsAbstract = isAbstractFeature; - literalBooleanInstance.IsComposite = isCompositeFeature; - literalBooleanInstance.IsConstant = isConstantFeature; - literalBooleanInstance.IsDerived = isDerivedFeature; - literalBooleanInstance.IsEnd = isEndFeature; - literalBooleanInstance.IsImpliedIncluded = isImpliedIncludedFeature; - literalBooleanInstance.IsOrdered = isOrderedFeature; - literalBooleanInstance.IsPortion = isPortionFeature; - literalBooleanInstance.IsSufficient = isSufficientFeature; - literalBooleanInstance.IsUnique = isUniqueFeature; - literalBooleanInstance.IsVariable = isVariableFeature; - literalBooleanInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - literalBooleanInstance.OwningRelationship = owningRelationshipFeature; - literalBooleanInstance.Value = valueFeature; - - return literalBooleanInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ILiteralBoolean ReadComplex(Dictionary dictionary) - { - var literalBooleanInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("value", out object valueObject)) - { - throw new ArgumentException("The value property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - bool valueFeature = Convert.ToBoolean(valueObject); - - - literalBooleanInstance.AliasIds = aliasIdsFeature ?? new List(); - literalBooleanInstance.DeclaredName = declaredNameFeature; - literalBooleanInstance.DeclaredShortName = declaredShortNameFeature; - literalBooleanInstance.Direction = directionFeature; - literalBooleanInstance.ElementId = elementIdFeature; - literalBooleanInstance.IsAbstract = isAbstractFeature; - literalBooleanInstance.IsComposite = isCompositeFeature; - literalBooleanInstance.IsConstant = isConstantFeature; - literalBooleanInstance.IsDerived = isDerivedFeature; - literalBooleanInstance.IsEnd = isEndFeature; - literalBooleanInstance.IsImpliedIncluded = isImpliedIncludedFeature; - literalBooleanInstance.IsOrdered = isOrderedFeature; - literalBooleanInstance.IsPortion = isPortionFeature; - literalBooleanInstance.IsSufficient = isSufficientFeature; - literalBooleanInstance.IsUnique = isUniqueFeature; - literalBooleanInstance.IsVariable = isVariableFeature; - literalBooleanInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - literalBooleanInstance.OwningRelationship = owningRelationshipFeature; - literalBooleanInstance.Value = valueFeature; - - return literalBooleanInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILiteralBoolean DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - - var type = Convert.ToString(typeObject); - - if (type != "LiteralBoolean") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a LiteralBoolean"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a LiteralBoolean"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var literalBooleanInstance = new SysML2.NET.Core.DTO.LiteralBoolean - { - Id = id - }; - - return literalBooleanInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralExpressionDictionaryReader.cs deleted file mode 100644 index a8c54a6eb..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralExpressionDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class LiteralExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ILiteralExpression ReadSimplified(Dictionary dictionary) - { - var literalExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - literalExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - literalExpressionInstance.DeclaredName = declaredNameFeature; - literalExpressionInstance.DeclaredShortName = declaredShortNameFeature; - literalExpressionInstance.Direction = directionFeature; - literalExpressionInstance.ElementId = elementIdFeature; - literalExpressionInstance.IsAbstract = isAbstractFeature; - literalExpressionInstance.IsComposite = isCompositeFeature; - literalExpressionInstance.IsConstant = isConstantFeature; - literalExpressionInstance.IsDerived = isDerivedFeature; - literalExpressionInstance.IsEnd = isEndFeature; - literalExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - literalExpressionInstance.IsOrdered = isOrderedFeature; - literalExpressionInstance.IsPortion = isPortionFeature; - literalExpressionInstance.IsSufficient = isSufficientFeature; - literalExpressionInstance.IsUnique = isUniqueFeature; - literalExpressionInstance.IsVariable = isVariableFeature; - literalExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - literalExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return literalExpressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ILiteralExpression ReadComplex(Dictionary dictionary) - { - var literalExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - literalExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - literalExpressionInstance.DeclaredName = declaredNameFeature; - literalExpressionInstance.DeclaredShortName = declaredShortNameFeature; - literalExpressionInstance.Direction = directionFeature; - literalExpressionInstance.ElementId = elementIdFeature; - literalExpressionInstance.IsAbstract = isAbstractFeature; - literalExpressionInstance.IsComposite = isCompositeFeature; - literalExpressionInstance.IsConstant = isConstantFeature; - literalExpressionInstance.IsDerived = isDerivedFeature; - literalExpressionInstance.IsEnd = isEndFeature; - literalExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - literalExpressionInstance.IsOrdered = isOrderedFeature; - literalExpressionInstance.IsPortion = isPortionFeature; - literalExpressionInstance.IsSufficient = isSufficientFeature; - literalExpressionInstance.IsUnique = isUniqueFeature; - literalExpressionInstance.IsVariable = isVariableFeature; - literalExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - literalExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return literalExpressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILiteralExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "LiteralExpression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a LiteralExpression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a LiteralExpression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var literalExpressionInstance = new SysML2.NET.Core.DTO.LiteralExpression - { - Id = id - }; - - return literalExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralInfinityDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralInfinityDictionaryReader.cs deleted file mode 100644 index 351060873..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralInfinityDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class LiteralInfinityDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ILiteralInfinity ReadSimplified(Dictionary dictionary) - { - var literalInfinityInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - literalInfinityInstance.AliasIds = aliasIdsFeature ?? new List(); - literalInfinityInstance.DeclaredName = declaredNameFeature; - literalInfinityInstance.DeclaredShortName = declaredShortNameFeature; - literalInfinityInstance.Direction = directionFeature; - literalInfinityInstance.ElementId = elementIdFeature; - literalInfinityInstance.IsAbstract = isAbstractFeature; - literalInfinityInstance.IsComposite = isCompositeFeature; - literalInfinityInstance.IsConstant = isConstantFeature; - literalInfinityInstance.IsDerived = isDerivedFeature; - literalInfinityInstance.IsEnd = isEndFeature; - literalInfinityInstance.IsImpliedIncluded = isImpliedIncludedFeature; - literalInfinityInstance.IsOrdered = isOrderedFeature; - literalInfinityInstance.IsPortion = isPortionFeature; - literalInfinityInstance.IsSufficient = isSufficientFeature; - literalInfinityInstance.IsUnique = isUniqueFeature; - literalInfinityInstance.IsVariable = isVariableFeature; - literalInfinityInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - literalInfinityInstance.OwningRelationship = owningRelationshipFeature; - - return literalInfinityInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ILiteralInfinity ReadComplex(Dictionary dictionary) - { - var literalInfinityInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - literalInfinityInstance.AliasIds = aliasIdsFeature ?? new List(); - literalInfinityInstance.DeclaredName = declaredNameFeature; - literalInfinityInstance.DeclaredShortName = declaredShortNameFeature; - literalInfinityInstance.Direction = directionFeature; - literalInfinityInstance.ElementId = elementIdFeature; - literalInfinityInstance.IsAbstract = isAbstractFeature; - literalInfinityInstance.IsComposite = isCompositeFeature; - literalInfinityInstance.IsConstant = isConstantFeature; - literalInfinityInstance.IsDerived = isDerivedFeature; - literalInfinityInstance.IsEnd = isEndFeature; - literalInfinityInstance.IsImpliedIncluded = isImpliedIncludedFeature; - literalInfinityInstance.IsOrdered = isOrderedFeature; - literalInfinityInstance.IsPortion = isPortionFeature; - literalInfinityInstance.IsSufficient = isSufficientFeature; - literalInfinityInstance.IsUnique = isUniqueFeature; - literalInfinityInstance.IsVariable = isVariableFeature; - literalInfinityInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - literalInfinityInstance.OwningRelationship = owningRelationshipFeature; - - return literalInfinityInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILiteralInfinity DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - - var type = Convert.ToString(typeObject); - - if (type != "LiteralInfinity") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a LiteralInfinity"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a LiteralInfinity"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var literalInfinityInstance = new SysML2.NET.Core.DTO.LiteralInfinity - { - Id = id - }; - - return literalInfinityInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralIntegerDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralIntegerDictionaryReader.cs deleted file mode 100644 index f35eb469b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralIntegerDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class LiteralIntegerDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ILiteralInteger ReadSimplified(Dictionary dictionary) - { - var literalIntegerInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("value", out object valueObject)) - { - throw new ArgumentException("The value property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - int valueFeature = Convert.ToInt32(valueObject); - - - literalIntegerInstance.AliasIds = aliasIdsFeature ?? new List(); - literalIntegerInstance.DeclaredName = declaredNameFeature; - literalIntegerInstance.DeclaredShortName = declaredShortNameFeature; - literalIntegerInstance.Direction = directionFeature; - literalIntegerInstance.ElementId = elementIdFeature; - literalIntegerInstance.IsAbstract = isAbstractFeature; - literalIntegerInstance.IsComposite = isCompositeFeature; - literalIntegerInstance.IsConstant = isConstantFeature; - literalIntegerInstance.IsDerived = isDerivedFeature; - literalIntegerInstance.IsEnd = isEndFeature; - literalIntegerInstance.IsImpliedIncluded = isImpliedIncludedFeature; - literalIntegerInstance.IsOrdered = isOrderedFeature; - literalIntegerInstance.IsPortion = isPortionFeature; - literalIntegerInstance.IsSufficient = isSufficientFeature; - literalIntegerInstance.IsUnique = isUniqueFeature; - literalIntegerInstance.IsVariable = isVariableFeature; - literalIntegerInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - literalIntegerInstance.OwningRelationship = owningRelationshipFeature; - literalIntegerInstance.Value = valueFeature; - - return literalIntegerInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ILiteralInteger ReadComplex(Dictionary dictionary) - { - var literalIntegerInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("value", out object valueObject)) - { - throw new ArgumentException("The value property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - int valueFeature = Convert.ToInt32(valueObject); - - - literalIntegerInstance.AliasIds = aliasIdsFeature ?? new List(); - literalIntegerInstance.DeclaredName = declaredNameFeature; - literalIntegerInstance.DeclaredShortName = declaredShortNameFeature; - literalIntegerInstance.Direction = directionFeature; - literalIntegerInstance.ElementId = elementIdFeature; - literalIntegerInstance.IsAbstract = isAbstractFeature; - literalIntegerInstance.IsComposite = isCompositeFeature; - literalIntegerInstance.IsConstant = isConstantFeature; - literalIntegerInstance.IsDerived = isDerivedFeature; - literalIntegerInstance.IsEnd = isEndFeature; - literalIntegerInstance.IsImpliedIncluded = isImpliedIncludedFeature; - literalIntegerInstance.IsOrdered = isOrderedFeature; - literalIntegerInstance.IsPortion = isPortionFeature; - literalIntegerInstance.IsSufficient = isSufficientFeature; - literalIntegerInstance.IsUnique = isUniqueFeature; - literalIntegerInstance.IsVariable = isVariableFeature; - literalIntegerInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - literalIntegerInstance.OwningRelationship = owningRelationshipFeature; - literalIntegerInstance.Value = valueFeature; - - return literalIntegerInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILiteralInteger DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - - var type = Convert.ToString(typeObject); - - if (type != "LiteralInteger") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a LiteralInteger"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a LiteralInteger"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var literalIntegerInstance = new SysML2.NET.Core.DTO.LiteralInteger - { - Id = id - }; - - return literalIntegerInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralRationalDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralRationalDictionaryReader.cs deleted file mode 100644 index ddfbc3a9d..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralRationalDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class LiteralRationalDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ILiteralRational ReadSimplified(Dictionary dictionary) - { - var literalRationalInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("value", out object valueObject)) - { - throw new ArgumentException("The value property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - double valueFeature = Convert.ToDouble(valueObject); - - - literalRationalInstance.AliasIds = aliasIdsFeature ?? new List(); - literalRationalInstance.DeclaredName = declaredNameFeature; - literalRationalInstance.DeclaredShortName = declaredShortNameFeature; - literalRationalInstance.Direction = directionFeature; - literalRationalInstance.ElementId = elementIdFeature; - literalRationalInstance.IsAbstract = isAbstractFeature; - literalRationalInstance.IsComposite = isCompositeFeature; - literalRationalInstance.IsConstant = isConstantFeature; - literalRationalInstance.IsDerived = isDerivedFeature; - literalRationalInstance.IsEnd = isEndFeature; - literalRationalInstance.IsImpliedIncluded = isImpliedIncludedFeature; - literalRationalInstance.IsOrdered = isOrderedFeature; - literalRationalInstance.IsPortion = isPortionFeature; - literalRationalInstance.IsSufficient = isSufficientFeature; - literalRationalInstance.IsUnique = isUniqueFeature; - literalRationalInstance.IsVariable = isVariableFeature; - literalRationalInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - literalRationalInstance.OwningRelationship = owningRelationshipFeature; - literalRationalInstance.Value = valueFeature; - - return literalRationalInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ILiteralRational ReadComplex(Dictionary dictionary) - { - var literalRationalInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("value", out object valueObject)) - { - throw new ArgumentException("The value property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - double valueFeature = Convert.ToDouble(valueObject); - - - literalRationalInstance.AliasIds = aliasIdsFeature ?? new List(); - literalRationalInstance.DeclaredName = declaredNameFeature; - literalRationalInstance.DeclaredShortName = declaredShortNameFeature; - literalRationalInstance.Direction = directionFeature; - literalRationalInstance.ElementId = elementIdFeature; - literalRationalInstance.IsAbstract = isAbstractFeature; - literalRationalInstance.IsComposite = isCompositeFeature; - literalRationalInstance.IsConstant = isConstantFeature; - literalRationalInstance.IsDerived = isDerivedFeature; - literalRationalInstance.IsEnd = isEndFeature; - literalRationalInstance.IsImpliedIncluded = isImpliedIncludedFeature; - literalRationalInstance.IsOrdered = isOrderedFeature; - literalRationalInstance.IsPortion = isPortionFeature; - literalRationalInstance.IsSufficient = isSufficientFeature; - literalRationalInstance.IsUnique = isUniqueFeature; - literalRationalInstance.IsVariable = isVariableFeature; - literalRationalInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - literalRationalInstance.OwningRelationship = owningRelationshipFeature; - literalRationalInstance.Value = valueFeature; - - return literalRationalInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILiteralRational DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - - var type = Convert.ToString(typeObject); - - if (type != "LiteralRational") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a LiteralRational"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a LiteralRational"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var literalRationalInstance = new SysML2.NET.Core.DTO.LiteralRational - { - Id = id - }; - - return literalRationalInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralStringDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralStringDictionaryReader.cs deleted file mode 100644 index ed2e1f294..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/LiteralStringDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class LiteralStringDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ILiteralString ReadSimplified(Dictionary dictionary) - { - var literalStringInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("value", out object valueObject)) - { - throw new ArgumentException("The value property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - string valueFeature = Convert.ToString(valueObject); - - - literalStringInstance.AliasIds = aliasIdsFeature ?? new List(); - literalStringInstance.DeclaredName = declaredNameFeature; - literalStringInstance.DeclaredShortName = declaredShortNameFeature; - literalStringInstance.Direction = directionFeature; - literalStringInstance.ElementId = elementIdFeature; - literalStringInstance.IsAbstract = isAbstractFeature; - literalStringInstance.IsComposite = isCompositeFeature; - literalStringInstance.IsConstant = isConstantFeature; - literalStringInstance.IsDerived = isDerivedFeature; - literalStringInstance.IsEnd = isEndFeature; - literalStringInstance.IsImpliedIncluded = isImpliedIncludedFeature; - literalStringInstance.IsOrdered = isOrderedFeature; - literalStringInstance.IsPortion = isPortionFeature; - literalStringInstance.IsSufficient = isSufficientFeature; - literalStringInstance.IsUnique = isUniqueFeature; - literalStringInstance.IsVariable = isVariableFeature; - literalStringInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - literalStringInstance.OwningRelationship = owningRelationshipFeature; - literalStringInstance.Value = valueFeature; - - return literalStringInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ILiteralString ReadComplex(Dictionary dictionary) - { - var literalStringInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("value", out object valueObject)) - { - throw new ArgumentException("The value property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - string valueFeature = Convert.ToString(valueObject); - - - literalStringInstance.AliasIds = aliasIdsFeature ?? new List(); - literalStringInstance.DeclaredName = declaredNameFeature; - literalStringInstance.DeclaredShortName = declaredShortNameFeature; - literalStringInstance.Direction = directionFeature; - literalStringInstance.ElementId = elementIdFeature; - literalStringInstance.IsAbstract = isAbstractFeature; - literalStringInstance.IsComposite = isCompositeFeature; - literalStringInstance.IsConstant = isConstantFeature; - literalStringInstance.IsDerived = isDerivedFeature; - literalStringInstance.IsEnd = isEndFeature; - literalStringInstance.IsImpliedIncluded = isImpliedIncludedFeature; - literalStringInstance.IsOrdered = isOrderedFeature; - literalStringInstance.IsPortion = isPortionFeature; - literalStringInstance.IsSufficient = isSufficientFeature; - literalStringInstance.IsUnique = isUniqueFeature; - literalStringInstance.IsVariable = isVariableFeature; - literalStringInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - literalStringInstance.OwningRelationship = owningRelationshipFeature; - literalStringInstance.Value = valueFeature; - - return literalStringInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILiteralString DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - - var type = Convert.ToString(typeObject); - - if (type != "LiteralString") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a LiteralString"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a LiteralString"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var literalStringInstance = new SysML2.NET.Core.DTO.LiteralString - { - Id = id - }; - - return literalStringInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MembershipDictionaryReader.cs deleted file mode 100644 index 8814f10ba..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class MembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IMembership ReadSimplified(Dictionary dictionary) - { - var membershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - membershipInstance.AliasIds = aliasIdsFeature ?? new List(); - membershipInstance.DeclaredName = declaredNameFeature; - membershipInstance.DeclaredShortName = declaredShortNameFeature; - membershipInstance.ElementId = elementIdFeature; - membershipInstance.IsImplied = isImpliedFeature; - membershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - membershipInstance.MemberElement = memberElementFeature; - membershipInstance.MemberName = memberNameFeature; - membershipInstance.MemberShortName = memberShortNameFeature; - membershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - membershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - membershipInstance.OwningRelatedElement = owningRelatedElementFeature; - membershipInstance.OwningRelationship = owningRelationshipFeature; - membershipInstance.Source = sourceFeature ?? new List(); - membershipInstance.Target = targetFeature ?? new List(); - membershipInstance.Visibility = visibilityFeature; - - return membershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IMembership ReadComplex(Dictionary dictionary) - { - var membershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - membershipInstance.AliasIds = aliasIdsFeature ?? new List(); - membershipInstance.DeclaredName = declaredNameFeature; - membershipInstance.DeclaredShortName = declaredShortNameFeature; - membershipInstance.ElementId = elementIdFeature; - membershipInstance.IsImplied = isImpliedFeature; - membershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - membershipInstance.MemberElement = memberElementFeature; - membershipInstance.MemberName = memberNameFeature; - membershipInstance.MemberShortName = memberShortNameFeature; - membershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - membershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - membershipInstance.OwningRelatedElement = owningRelatedElementFeature; - membershipInstance.OwningRelationship = owningRelationshipFeature; - membershipInstance.Source = sourceFeature ?? new List(); - membershipInstance.Target = targetFeature ?? new List(); - membershipInstance.Visibility = visibilityFeature; - - return membershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Membership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Membership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Membership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var membershipInstance = new SysML2.NET.Core.DTO.Membership - { - Id = id - }; - - return membershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MembershipExposeDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MembershipExposeDictionaryReader.cs deleted file mode 100644 index ab52794c2..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MembershipExposeDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class MembershipExposeDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IMembershipExpose ReadSimplified(Dictionary dictionary) - { - var membershipExposeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("importedMembership", out object importedMembershipObject)) - { - throw new ArgumentException("The importedMembership property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - Guid importedMembershipFeature = Guid.Parse(Convert.ToString(importedMembershipObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isImportAll", out object isImportAllObject)) - { - throw new ArgumentException("The isImportAll property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - bool isImportAllFeature = Convert.ToBoolean(isImportAllObject); - - if (!dictionary.TryGetValue("isRecursive", out object isRecursiveObject)) - { - throw new ArgumentException("The isRecursive property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - bool isRecursiveFeature = Convert.ToBoolean(isRecursiveObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - membershipExposeInstance.AliasIds = aliasIdsFeature ?? new List(); - membershipExposeInstance.DeclaredName = declaredNameFeature; - membershipExposeInstance.DeclaredShortName = declaredShortNameFeature; - membershipExposeInstance.ElementId = elementIdFeature; - membershipExposeInstance.ImportedMembership = importedMembershipFeature; - membershipExposeInstance.IsImplied = isImpliedFeature; - membershipExposeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - membershipExposeInstance.IsImportAll = isImportAllFeature; - membershipExposeInstance.IsRecursive = isRecursiveFeature; - membershipExposeInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - membershipExposeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - membershipExposeInstance.OwningRelatedElement = owningRelatedElementFeature; - membershipExposeInstance.OwningRelationship = owningRelationshipFeature; - membershipExposeInstance.Source = sourceFeature ?? new List(); - membershipExposeInstance.Target = targetFeature ?? new List(); - membershipExposeInstance.Visibility = visibilityFeature; - - return membershipExposeInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IMembershipExpose ReadComplex(Dictionary dictionary) - { - var membershipExposeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("importedMembership", out object importedMembershipObject)) - { - throw new ArgumentException("The importedMembership property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - Guid importedMembershipFeature = Guid.Parse(Convert.ToString(importedMembershipObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isImportAll", out object isImportAllObject)) - { - throw new ArgumentException("The isImportAll property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - bool isImportAllFeature = Convert.ToBoolean(isImportAllObject); - - if (!dictionary.TryGetValue("isRecursive", out object isRecursiveObject)) - { - throw new ArgumentException("The isRecursive property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - bool isRecursiveFeature = Convert.ToBoolean(isRecursiveObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - membershipExposeInstance.AliasIds = aliasIdsFeature ?? new List(); - membershipExposeInstance.DeclaredName = declaredNameFeature; - membershipExposeInstance.DeclaredShortName = declaredShortNameFeature; - membershipExposeInstance.ElementId = elementIdFeature; - membershipExposeInstance.ImportedMembership = importedMembershipFeature; - membershipExposeInstance.IsImplied = isImpliedFeature; - membershipExposeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - membershipExposeInstance.IsImportAll = isImportAllFeature; - membershipExposeInstance.IsRecursive = isRecursiveFeature; - membershipExposeInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - membershipExposeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - membershipExposeInstance.OwningRelatedElement = owningRelatedElementFeature; - membershipExposeInstance.OwningRelationship = owningRelationshipFeature; - membershipExposeInstance.Source = sourceFeature ?? new List(); - membershipExposeInstance.Target = targetFeature ?? new List(); - membershipExposeInstance.Visibility = visibilityFeature; - - return membershipExposeInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMembershipExpose DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - - var type = Convert.ToString(typeObject); - - if (type != "MembershipExpose") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a MembershipExpose"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a MembershipExpose"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var membershipExposeInstance = new SysML2.NET.Core.DTO.MembershipExpose - { - Id = id - }; - - return membershipExposeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MembershipImportDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MembershipImportDictionaryReader.cs deleted file mode 100644 index 8f2ed3a04..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MembershipImportDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class MembershipImportDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IMembershipImport ReadSimplified(Dictionary dictionary) - { - var membershipImportInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("importedMembership", out object importedMembershipObject)) - { - throw new ArgumentException("The importedMembership property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - Guid importedMembershipFeature = Guid.Parse(Convert.ToString(importedMembershipObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isImportAll", out object isImportAllObject)) - { - throw new ArgumentException("The isImportAll property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - bool isImportAllFeature = Convert.ToBoolean(isImportAllObject); - - if (!dictionary.TryGetValue("isRecursive", out object isRecursiveObject)) - { - throw new ArgumentException("The isRecursive property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - bool isRecursiveFeature = Convert.ToBoolean(isRecursiveObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - membershipImportInstance.AliasIds = aliasIdsFeature ?? new List(); - membershipImportInstance.DeclaredName = declaredNameFeature; - membershipImportInstance.DeclaredShortName = declaredShortNameFeature; - membershipImportInstance.ElementId = elementIdFeature; - membershipImportInstance.ImportedMembership = importedMembershipFeature; - membershipImportInstance.IsImplied = isImpliedFeature; - membershipImportInstance.IsImpliedIncluded = isImpliedIncludedFeature; - membershipImportInstance.IsImportAll = isImportAllFeature; - membershipImportInstance.IsRecursive = isRecursiveFeature; - membershipImportInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - membershipImportInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - membershipImportInstance.OwningRelatedElement = owningRelatedElementFeature; - membershipImportInstance.OwningRelationship = owningRelationshipFeature; - membershipImportInstance.Source = sourceFeature ?? new List(); - membershipImportInstance.Target = targetFeature ?? new List(); - membershipImportInstance.Visibility = visibilityFeature; - - return membershipImportInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IMembershipImport ReadComplex(Dictionary dictionary) - { - var membershipImportInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("importedMembership", out object importedMembershipObject)) - { - throw new ArgumentException("The importedMembership property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - Guid importedMembershipFeature = Guid.Parse(Convert.ToString(importedMembershipObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isImportAll", out object isImportAllObject)) - { - throw new ArgumentException("The isImportAll property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - bool isImportAllFeature = Convert.ToBoolean(isImportAllObject); - - if (!dictionary.TryGetValue("isRecursive", out object isRecursiveObject)) - { - throw new ArgumentException("The isRecursive property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - bool isRecursiveFeature = Convert.ToBoolean(isRecursiveObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - membershipImportInstance.AliasIds = aliasIdsFeature ?? new List(); - membershipImportInstance.DeclaredName = declaredNameFeature; - membershipImportInstance.DeclaredShortName = declaredShortNameFeature; - membershipImportInstance.ElementId = elementIdFeature; - membershipImportInstance.ImportedMembership = importedMembershipFeature; - membershipImportInstance.IsImplied = isImpliedFeature; - membershipImportInstance.IsImpliedIncluded = isImpliedIncludedFeature; - membershipImportInstance.IsImportAll = isImportAllFeature; - membershipImportInstance.IsRecursive = isRecursiveFeature; - membershipImportInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - membershipImportInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - membershipImportInstance.OwningRelatedElement = owningRelatedElementFeature; - membershipImportInstance.OwningRelationship = owningRelationshipFeature; - membershipImportInstance.Source = sourceFeature ?? new List(); - membershipImportInstance.Target = targetFeature ?? new List(); - membershipImportInstance.Visibility = visibilityFeature; - - return membershipImportInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMembershipImport DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - - var type = Convert.ToString(typeObject); - - if (type != "MembershipImport") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a MembershipImport"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a MembershipImport"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var membershipImportInstance = new SysML2.NET.Core.DTO.MembershipImport - { - Id = id - }; - - return membershipImportInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MergeNodeDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MergeNodeDictionaryReader.cs deleted file mode 100644 index 4ec70f6d8..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MergeNodeDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class MergeNodeDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IMergeNode ReadSimplified(Dictionary dictionary) - { - var mergeNodeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - mergeNodeInstance.AliasIds = aliasIdsFeature ?? new List(); - mergeNodeInstance.DeclaredName = declaredNameFeature; - mergeNodeInstance.DeclaredShortName = declaredShortNameFeature; - mergeNodeInstance.Direction = directionFeature; - mergeNodeInstance.ElementId = elementIdFeature; - mergeNodeInstance.IsAbstract = isAbstractFeature; - mergeNodeInstance.IsComposite = isCompositeFeature; - mergeNodeInstance.IsConstant = isConstantFeature; - mergeNodeInstance.IsDerived = isDerivedFeature; - mergeNodeInstance.IsEnd = isEndFeature; - mergeNodeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - mergeNodeInstance.IsIndividual = isIndividualFeature; - mergeNodeInstance.IsOrdered = isOrderedFeature; - mergeNodeInstance.IsPortion = isPortionFeature; - mergeNodeInstance.IsSufficient = isSufficientFeature; - mergeNodeInstance.IsUnique = isUniqueFeature; - mergeNodeInstance.IsVariable = isVariableFeature; - mergeNodeInstance.IsVariation = isVariationFeature; - mergeNodeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - mergeNodeInstance.OwningRelationship = owningRelationshipFeature; - mergeNodeInstance.PortionKind = portionKindFeature; - - return mergeNodeInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IMergeNode ReadComplex(Dictionary dictionary) - { - var mergeNodeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - mergeNodeInstance.AliasIds = aliasIdsFeature ?? new List(); - mergeNodeInstance.DeclaredName = declaredNameFeature; - mergeNodeInstance.DeclaredShortName = declaredShortNameFeature; - mergeNodeInstance.Direction = directionFeature; - mergeNodeInstance.ElementId = elementIdFeature; - mergeNodeInstance.IsAbstract = isAbstractFeature; - mergeNodeInstance.IsComposite = isCompositeFeature; - mergeNodeInstance.IsConstant = isConstantFeature; - mergeNodeInstance.IsDerived = isDerivedFeature; - mergeNodeInstance.IsEnd = isEndFeature; - mergeNodeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - mergeNodeInstance.IsIndividual = isIndividualFeature; - mergeNodeInstance.IsOrdered = isOrderedFeature; - mergeNodeInstance.IsPortion = isPortionFeature; - mergeNodeInstance.IsSufficient = isSufficientFeature; - mergeNodeInstance.IsUnique = isUniqueFeature; - mergeNodeInstance.IsVariable = isVariableFeature; - mergeNodeInstance.IsVariation = isVariationFeature; - mergeNodeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - mergeNodeInstance.OwningRelationship = owningRelationshipFeature; - mergeNodeInstance.PortionKind = portionKindFeature; - - return mergeNodeInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMergeNode DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - - var type = Convert.ToString(typeObject); - - if (type != "MergeNode") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a MergeNode"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a MergeNode"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var mergeNodeInstance = new SysML2.NET.Core.DTO.MergeNode - { - Id = id - }; - - return mergeNodeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetaclassDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetaclassDictionaryReader.cs deleted file mode 100644 index 6b54aba8e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetaclassDictionaryReader.cs +++ /dev/null @@ -1,311 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class MetaclassDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IMetaclass ReadSimplified(Dictionary dictionary) - { - var metaclassInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - metaclassInstance.AliasIds = aliasIdsFeature ?? new List(); - metaclassInstance.DeclaredName = declaredNameFeature; - metaclassInstance.DeclaredShortName = declaredShortNameFeature; - metaclassInstance.ElementId = elementIdFeature; - metaclassInstance.IsAbstract = isAbstractFeature; - metaclassInstance.IsImpliedIncluded = isImpliedIncludedFeature; - metaclassInstance.IsSufficient = isSufficientFeature; - metaclassInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - metaclassInstance.OwningRelationship = owningRelationshipFeature; - - return metaclassInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IMetaclass ReadComplex(Dictionary dictionary) - { - var metaclassInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - metaclassInstance.AliasIds = aliasIdsFeature ?? new List(); - metaclassInstance.DeclaredName = declaredNameFeature; - metaclassInstance.DeclaredShortName = declaredShortNameFeature; - metaclassInstance.ElementId = elementIdFeature; - metaclassInstance.IsAbstract = isAbstractFeature; - metaclassInstance.IsImpliedIncluded = isImpliedIncludedFeature; - metaclassInstance.IsSufficient = isSufficientFeature; - metaclassInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - metaclassInstance.OwningRelationship = owningRelationshipFeature; - - return metaclassInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMetaclass DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Metaclass") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Metaclass"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Metaclass"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var metaclassInstance = new SysML2.NET.Core.DTO.Metaclass - { - Id = id - }; - - return metaclassInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataAccessExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataAccessExpressionDictionaryReader.cs deleted file mode 100644 index 1afb6b3e7..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataAccessExpressionDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class MetadataAccessExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IMetadataAccessExpression ReadSimplified(Dictionary dictionary) - { - var metadataAccessExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - metadataAccessExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - metadataAccessExpressionInstance.DeclaredName = declaredNameFeature; - metadataAccessExpressionInstance.DeclaredShortName = declaredShortNameFeature; - metadataAccessExpressionInstance.Direction = directionFeature; - metadataAccessExpressionInstance.ElementId = elementIdFeature; - metadataAccessExpressionInstance.IsAbstract = isAbstractFeature; - metadataAccessExpressionInstance.IsComposite = isCompositeFeature; - metadataAccessExpressionInstance.IsConstant = isConstantFeature; - metadataAccessExpressionInstance.IsDerived = isDerivedFeature; - metadataAccessExpressionInstance.IsEnd = isEndFeature; - metadataAccessExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - metadataAccessExpressionInstance.IsOrdered = isOrderedFeature; - metadataAccessExpressionInstance.IsPortion = isPortionFeature; - metadataAccessExpressionInstance.IsSufficient = isSufficientFeature; - metadataAccessExpressionInstance.IsUnique = isUniqueFeature; - metadataAccessExpressionInstance.IsVariable = isVariableFeature; - metadataAccessExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - metadataAccessExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return metadataAccessExpressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IMetadataAccessExpression ReadComplex(Dictionary dictionary) - { - var metadataAccessExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - metadataAccessExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - metadataAccessExpressionInstance.DeclaredName = declaredNameFeature; - metadataAccessExpressionInstance.DeclaredShortName = declaredShortNameFeature; - metadataAccessExpressionInstance.Direction = directionFeature; - metadataAccessExpressionInstance.ElementId = elementIdFeature; - metadataAccessExpressionInstance.IsAbstract = isAbstractFeature; - metadataAccessExpressionInstance.IsComposite = isCompositeFeature; - metadataAccessExpressionInstance.IsConstant = isConstantFeature; - metadataAccessExpressionInstance.IsDerived = isDerivedFeature; - metadataAccessExpressionInstance.IsEnd = isEndFeature; - metadataAccessExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - metadataAccessExpressionInstance.IsOrdered = isOrderedFeature; - metadataAccessExpressionInstance.IsPortion = isPortionFeature; - metadataAccessExpressionInstance.IsSufficient = isSufficientFeature; - metadataAccessExpressionInstance.IsUnique = isUniqueFeature; - metadataAccessExpressionInstance.IsVariable = isVariableFeature; - metadataAccessExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - metadataAccessExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return metadataAccessExpressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMetadataAccessExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "MetadataAccessExpression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a MetadataAccessExpression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a MetadataAccessExpression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var metadataAccessExpressionInstance = new SysML2.NET.Core.DTO.MetadataAccessExpression - { - Id = id - }; - - return metadataAccessExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataDefinitionDictionaryReader.cs deleted file mode 100644 index ee65dab78..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class MetadataDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IMetadataDefinition ReadSimplified(Dictionary dictionary) - { - var metadataDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - metadataDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - metadataDefinitionInstance.DeclaredName = declaredNameFeature; - metadataDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - metadataDefinitionInstance.ElementId = elementIdFeature; - metadataDefinitionInstance.IsAbstract = isAbstractFeature; - metadataDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - metadataDefinitionInstance.IsIndividual = isIndividualFeature; - metadataDefinitionInstance.IsSufficient = isSufficientFeature; - metadataDefinitionInstance.IsVariation = isVariationFeature; - metadataDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - metadataDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return metadataDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IMetadataDefinition ReadComplex(Dictionary dictionary) - { - var metadataDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - metadataDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - metadataDefinitionInstance.DeclaredName = declaredNameFeature; - metadataDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - metadataDefinitionInstance.ElementId = elementIdFeature; - metadataDefinitionInstance.IsAbstract = isAbstractFeature; - metadataDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - metadataDefinitionInstance.IsIndividual = isIndividualFeature; - metadataDefinitionInstance.IsSufficient = isSufficientFeature; - metadataDefinitionInstance.IsVariation = isVariationFeature; - metadataDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - metadataDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return metadataDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMetadataDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "MetadataDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a MetadataDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a MetadataDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var metadataDefinitionInstance = new SysML2.NET.Core.DTO.MetadataDefinition - { - Id = id - }; - - return metadataDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataFeatureDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataFeatureDictionaryReader.cs deleted file mode 100644 index 538ac9f3a..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataFeatureDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class MetadataFeatureDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IMetadataFeature ReadSimplified(Dictionary dictionary) - { - var metadataFeatureInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - metadataFeatureInstance.AliasIds = aliasIdsFeature ?? new List(); - metadataFeatureInstance.DeclaredName = declaredNameFeature; - metadataFeatureInstance.DeclaredShortName = declaredShortNameFeature; - metadataFeatureInstance.Direction = directionFeature; - metadataFeatureInstance.ElementId = elementIdFeature; - metadataFeatureInstance.IsAbstract = isAbstractFeature; - metadataFeatureInstance.IsComposite = isCompositeFeature; - metadataFeatureInstance.IsConstant = isConstantFeature; - metadataFeatureInstance.IsDerived = isDerivedFeature; - metadataFeatureInstance.IsEnd = isEndFeature; - metadataFeatureInstance.IsImpliedIncluded = isImpliedIncludedFeature; - metadataFeatureInstance.IsOrdered = isOrderedFeature; - metadataFeatureInstance.IsPortion = isPortionFeature; - metadataFeatureInstance.IsSufficient = isSufficientFeature; - metadataFeatureInstance.IsUnique = isUniqueFeature; - metadataFeatureInstance.IsVariable = isVariableFeature; - metadataFeatureInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - metadataFeatureInstance.OwningRelationship = owningRelationshipFeature; - - return metadataFeatureInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IMetadataFeature ReadComplex(Dictionary dictionary) - { - var metadataFeatureInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - metadataFeatureInstance.AliasIds = aliasIdsFeature ?? new List(); - metadataFeatureInstance.DeclaredName = declaredNameFeature; - metadataFeatureInstance.DeclaredShortName = declaredShortNameFeature; - metadataFeatureInstance.Direction = directionFeature; - metadataFeatureInstance.ElementId = elementIdFeature; - metadataFeatureInstance.IsAbstract = isAbstractFeature; - metadataFeatureInstance.IsComposite = isCompositeFeature; - metadataFeatureInstance.IsConstant = isConstantFeature; - metadataFeatureInstance.IsDerived = isDerivedFeature; - metadataFeatureInstance.IsEnd = isEndFeature; - metadataFeatureInstance.IsImpliedIncluded = isImpliedIncludedFeature; - metadataFeatureInstance.IsOrdered = isOrderedFeature; - metadataFeatureInstance.IsPortion = isPortionFeature; - metadataFeatureInstance.IsSufficient = isSufficientFeature; - metadataFeatureInstance.IsUnique = isUniqueFeature; - metadataFeatureInstance.IsVariable = isVariableFeature; - metadataFeatureInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - metadataFeatureInstance.OwningRelationship = owningRelationshipFeature; - - return metadataFeatureInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMetadataFeature DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - - var type = Convert.ToString(typeObject); - - if (type != "MetadataFeature") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a MetadataFeature"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a MetadataFeature"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var metadataFeatureInstance = new SysML2.NET.Core.DTO.MetadataFeature - { - Id = id - }; - - return metadataFeatureInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataUsageDictionaryReader.cs deleted file mode 100644 index 7f7833a72..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MetadataUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class MetadataUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IMetadataUsage ReadSimplified(Dictionary dictionary) - { - var metadataUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - metadataUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - metadataUsageInstance.DeclaredName = declaredNameFeature; - metadataUsageInstance.DeclaredShortName = declaredShortNameFeature; - metadataUsageInstance.Direction = directionFeature; - metadataUsageInstance.ElementId = elementIdFeature; - metadataUsageInstance.IsAbstract = isAbstractFeature; - metadataUsageInstance.IsComposite = isCompositeFeature; - metadataUsageInstance.IsConstant = isConstantFeature; - metadataUsageInstance.IsDerived = isDerivedFeature; - metadataUsageInstance.IsEnd = isEndFeature; - metadataUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - metadataUsageInstance.IsIndividual = isIndividualFeature; - metadataUsageInstance.IsOrdered = isOrderedFeature; - metadataUsageInstance.IsPortion = isPortionFeature; - metadataUsageInstance.IsSufficient = isSufficientFeature; - metadataUsageInstance.IsUnique = isUniqueFeature; - metadataUsageInstance.IsVariable = isVariableFeature; - metadataUsageInstance.IsVariation = isVariationFeature; - metadataUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - metadataUsageInstance.OwningRelationship = owningRelationshipFeature; - metadataUsageInstance.PortionKind = portionKindFeature; - - return metadataUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IMetadataUsage ReadComplex(Dictionary dictionary) - { - var metadataUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - metadataUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - metadataUsageInstance.DeclaredName = declaredNameFeature; - metadataUsageInstance.DeclaredShortName = declaredShortNameFeature; - metadataUsageInstance.Direction = directionFeature; - metadataUsageInstance.ElementId = elementIdFeature; - metadataUsageInstance.IsAbstract = isAbstractFeature; - metadataUsageInstance.IsComposite = isCompositeFeature; - metadataUsageInstance.IsConstant = isConstantFeature; - metadataUsageInstance.IsDerived = isDerivedFeature; - metadataUsageInstance.IsEnd = isEndFeature; - metadataUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - metadataUsageInstance.IsIndividual = isIndividualFeature; - metadataUsageInstance.IsOrdered = isOrderedFeature; - metadataUsageInstance.IsPortion = isPortionFeature; - metadataUsageInstance.IsSufficient = isSufficientFeature; - metadataUsageInstance.IsUnique = isUniqueFeature; - metadataUsageInstance.IsVariable = isVariableFeature; - metadataUsageInstance.IsVariation = isVariationFeature; - metadataUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - metadataUsageInstance.OwningRelationship = owningRelationshipFeature; - metadataUsageInstance.PortionKind = portionKindFeature; - - return metadataUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMetadataUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "MetadataUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a MetadataUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a MetadataUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var metadataUsageInstance = new SysML2.NET.Core.DTO.MetadataUsage - { - Id = id - }; - - return metadataUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MultiplicityDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MultiplicityDictionaryReader.cs deleted file mode 100644 index fed28619c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MultiplicityDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class MultiplicityDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IMultiplicity ReadSimplified(Dictionary dictionary) - { - var multiplicityInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - multiplicityInstance.AliasIds = aliasIdsFeature ?? new List(); - multiplicityInstance.DeclaredName = declaredNameFeature; - multiplicityInstance.DeclaredShortName = declaredShortNameFeature; - multiplicityInstance.Direction = directionFeature; - multiplicityInstance.ElementId = elementIdFeature; - multiplicityInstance.IsAbstract = isAbstractFeature; - multiplicityInstance.IsComposite = isCompositeFeature; - multiplicityInstance.IsConstant = isConstantFeature; - multiplicityInstance.IsDerived = isDerivedFeature; - multiplicityInstance.IsEnd = isEndFeature; - multiplicityInstance.IsImpliedIncluded = isImpliedIncludedFeature; - multiplicityInstance.IsOrdered = isOrderedFeature; - multiplicityInstance.IsPortion = isPortionFeature; - multiplicityInstance.IsSufficient = isSufficientFeature; - multiplicityInstance.IsUnique = isUniqueFeature; - multiplicityInstance.IsVariable = isVariableFeature; - multiplicityInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - multiplicityInstance.OwningRelationship = owningRelationshipFeature; - - return multiplicityInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IMultiplicity ReadComplex(Dictionary dictionary) - { - var multiplicityInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - multiplicityInstance.AliasIds = aliasIdsFeature ?? new List(); - multiplicityInstance.DeclaredName = declaredNameFeature; - multiplicityInstance.DeclaredShortName = declaredShortNameFeature; - multiplicityInstance.Direction = directionFeature; - multiplicityInstance.ElementId = elementIdFeature; - multiplicityInstance.IsAbstract = isAbstractFeature; - multiplicityInstance.IsComposite = isCompositeFeature; - multiplicityInstance.IsConstant = isConstantFeature; - multiplicityInstance.IsDerived = isDerivedFeature; - multiplicityInstance.IsEnd = isEndFeature; - multiplicityInstance.IsImpliedIncluded = isImpliedIncludedFeature; - multiplicityInstance.IsOrdered = isOrderedFeature; - multiplicityInstance.IsPortion = isPortionFeature; - multiplicityInstance.IsSufficient = isSufficientFeature; - multiplicityInstance.IsUnique = isUniqueFeature; - multiplicityInstance.IsVariable = isVariableFeature; - multiplicityInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - multiplicityInstance.OwningRelationship = owningRelationshipFeature; - - return multiplicityInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMultiplicity DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Multiplicity") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Multiplicity"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Multiplicity"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var multiplicityInstance = new SysML2.NET.Core.DTO.Multiplicity - { - Id = id - }; - - return multiplicityInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MultiplicityRangeDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MultiplicityRangeDictionaryReader.cs deleted file mode 100644 index 21557151b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/MultiplicityRangeDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class MultiplicityRangeDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IMultiplicityRange ReadSimplified(Dictionary dictionary) - { - var multiplicityRangeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - multiplicityRangeInstance.AliasIds = aliasIdsFeature ?? new List(); - multiplicityRangeInstance.DeclaredName = declaredNameFeature; - multiplicityRangeInstance.DeclaredShortName = declaredShortNameFeature; - multiplicityRangeInstance.Direction = directionFeature; - multiplicityRangeInstance.ElementId = elementIdFeature; - multiplicityRangeInstance.IsAbstract = isAbstractFeature; - multiplicityRangeInstance.IsComposite = isCompositeFeature; - multiplicityRangeInstance.IsConstant = isConstantFeature; - multiplicityRangeInstance.IsDerived = isDerivedFeature; - multiplicityRangeInstance.IsEnd = isEndFeature; - multiplicityRangeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - multiplicityRangeInstance.IsOrdered = isOrderedFeature; - multiplicityRangeInstance.IsPortion = isPortionFeature; - multiplicityRangeInstance.IsSufficient = isSufficientFeature; - multiplicityRangeInstance.IsUnique = isUniqueFeature; - multiplicityRangeInstance.IsVariable = isVariableFeature; - multiplicityRangeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - multiplicityRangeInstance.OwningRelationship = owningRelationshipFeature; - - return multiplicityRangeInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IMultiplicityRange ReadComplex(Dictionary dictionary) - { - var multiplicityRangeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - multiplicityRangeInstance.AliasIds = aliasIdsFeature ?? new List(); - multiplicityRangeInstance.DeclaredName = declaredNameFeature; - multiplicityRangeInstance.DeclaredShortName = declaredShortNameFeature; - multiplicityRangeInstance.Direction = directionFeature; - multiplicityRangeInstance.ElementId = elementIdFeature; - multiplicityRangeInstance.IsAbstract = isAbstractFeature; - multiplicityRangeInstance.IsComposite = isCompositeFeature; - multiplicityRangeInstance.IsConstant = isConstantFeature; - multiplicityRangeInstance.IsDerived = isDerivedFeature; - multiplicityRangeInstance.IsEnd = isEndFeature; - multiplicityRangeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - multiplicityRangeInstance.IsOrdered = isOrderedFeature; - multiplicityRangeInstance.IsPortion = isPortionFeature; - multiplicityRangeInstance.IsSufficient = isSufficientFeature; - multiplicityRangeInstance.IsUnique = isUniqueFeature; - multiplicityRangeInstance.IsVariable = isVariableFeature; - multiplicityRangeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - multiplicityRangeInstance.OwningRelationship = owningRelationshipFeature; - - return multiplicityRangeInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMultiplicityRange DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - - var type = Convert.ToString(typeObject); - - if (type != "MultiplicityRange") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a MultiplicityRange"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a MultiplicityRange"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var multiplicityRangeInstance = new SysML2.NET.Core.DTO.MultiplicityRange - { - Id = id - }; - - return multiplicityRangeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NamespaceDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NamespaceDictionaryReader.cs deleted file mode 100644 index b351b3e2e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NamespaceDictionaryReader.cs +++ /dev/null @@ -1,283 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class NamespaceDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static INamespace ReadSimplified(Dictionary dictionary) - { - var namespaceInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - namespaceInstance.AliasIds = aliasIdsFeature ?? new List(); - namespaceInstance.DeclaredName = declaredNameFeature; - namespaceInstance.DeclaredShortName = declaredShortNameFeature; - namespaceInstance.ElementId = elementIdFeature; - namespaceInstance.IsImpliedIncluded = isImpliedIncludedFeature; - namespaceInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - namespaceInstance.OwningRelationship = owningRelationshipFeature; - - return namespaceInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static INamespace ReadComplex(Dictionary dictionary) - { - var namespaceInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - namespaceInstance.AliasIds = aliasIdsFeature ?? new List(); - namespaceInstance.DeclaredName = declaredNameFeature; - namespaceInstance.DeclaredShortName = declaredShortNameFeature; - namespaceInstance.ElementId = elementIdFeature; - namespaceInstance.IsImpliedIncluded = isImpliedIncludedFeature; - namespaceInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - namespaceInstance.OwningRelationship = owningRelationshipFeature; - - return namespaceInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static INamespace DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Namespace") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Namespace"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Namespace"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var namespaceInstance = new SysML2.NET.Core.DTO.Namespace - { - Id = id - }; - - return namespaceInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NamespaceExposeDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NamespaceExposeDictionaryReader.cs deleted file mode 100644 index 3cd68cef8..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NamespaceExposeDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class NamespaceExposeDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static INamespaceExpose ReadSimplified(Dictionary dictionary) - { - var namespaceExposeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("importedNamespace", out object importedNamespaceObject)) - { - throw new ArgumentException("The importedNamespace property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - Guid importedNamespaceFeature = Guid.Parse(Convert.ToString(importedNamespaceObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isImportAll", out object isImportAllObject)) - { - throw new ArgumentException("The isImportAll property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - bool isImportAllFeature = Convert.ToBoolean(isImportAllObject); - - if (!dictionary.TryGetValue("isRecursive", out object isRecursiveObject)) - { - throw new ArgumentException("The isRecursive property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - bool isRecursiveFeature = Convert.ToBoolean(isRecursiveObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - namespaceExposeInstance.AliasIds = aliasIdsFeature ?? new List(); - namespaceExposeInstance.DeclaredName = declaredNameFeature; - namespaceExposeInstance.DeclaredShortName = declaredShortNameFeature; - namespaceExposeInstance.ElementId = elementIdFeature; - namespaceExposeInstance.ImportedNamespace = importedNamespaceFeature; - namespaceExposeInstance.IsImplied = isImpliedFeature; - namespaceExposeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - namespaceExposeInstance.IsImportAll = isImportAllFeature; - namespaceExposeInstance.IsRecursive = isRecursiveFeature; - namespaceExposeInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - namespaceExposeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - namespaceExposeInstance.OwningRelatedElement = owningRelatedElementFeature; - namespaceExposeInstance.OwningRelationship = owningRelationshipFeature; - namespaceExposeInstance.Source = sourceFeature ?? new List(); - namespaceExposeInstance.Target = targetFeature ?? new List(); - namespaceExposeInstance.Visibility = visibilityFeature; - - return namespaceExposeInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static INamespaceExpose ReadComplex(Dictionary dictionary) - { - var namespaceExposeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("importedNamespace", out object importedNamespaceObject)) - { - throw new ArgumentException("The importedNamespace property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - Guid importedNamespaceFeature = Guid.Parse(Convert.ToString(importedNamespaceObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isImportAll", out object isImportAllObject)) - { - throw new ArgumentException("The isImportAll property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - bool isImportAllFeature = Convert.ToBoolean(isImportAllObject); - - if (!dictionary.TryGetValue("isRecursive", out object isRecursiveObject)) - { - throw new ArgumentException("The isRecursive property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - bool isRecursiveFeature = Convert.ToBoolean(isRecursiveObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - namespaceExposeInstance.AliasIds = aliasIdsFeature ?? new List(); - namespaceExposeInstance.DeclaredName = declaredNameFeature; - namespaceExposeInstance.DeclaredShortName = declaredShortNameFeature; - namespaceExposeInstance.ElementId = elementIdFeature; - namespaceExposeInstance.ImportedNamespace = importedNamespaceFeature; - namespaceExposeInstance.IsImplied = isImpliedFeature; - namespaceExposeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - namespaceExposeInstance.IsImportAll = isImportAllFeature; - namespaceExposeInstance.IsRecursive = isRecursiveFeature; - namespaceExposeInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - namespaceExposeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - namespaceExposeInstance.OwningRelatedElement = owningRelatedElementFeature; - namespaceExposeInstance.OwningRelationship = owningRelationshipFeature; - namespaceExposeInstance.Source = sourceFeature ?? new List(); - namespaceExposeInstance.Target = targetFeature ?? new List(); - namespaceExposeInstance.Visibility = visibilityFeature; - - return namespaceExposeInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static INamespaceExpose DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - - var type = Convert.ToString(typeObject); - - if (type != "NamespaceExpose") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a NamespaceExpose"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a NamespaceExpose"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var namespaceExposeInstance = new SysML2.NET.Core.DTO.NamespaceExpose - { - Id = id - }; - - return namespaceExposeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NamespaceImportDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NamespaceImportDictionaryReader.cs deleted file mode 100644 index 651524955..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NamespaceImportDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class NamespaceImportDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static INamespaceImport ReadSimplified(Dictionary dictionary) - { - var namespaceImportInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("importedNamespace", out object importedNamespaceObject)) - { - throw new ArgumentException("The importedNamespace property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - Guid importedNamespaceFeature = Guid.Parse(Convert.ToString(importedNamespaceObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isImportAll", out object isImportAllObject)) - { - throw new ArgumentException("The isImportAll property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - bool isImportAllFeature = Convert.ToBoolean(isImportAllObject); - - if (!dictionary.TryGetValue("isRecursive", out object isRecursiveObject)) - { - throw new ArgumentException("The isRecursive property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - bool isRecursiveFeature = Convert.ToBoolean(isRecursiveObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - namespaceImportInstance.AliasIds = aliasIdsFeature ?? new List(); - namespaceImportInstance.DeclaredName = declaredNameFeature; - namespaceImportInstance.DeclaredShortName = declaredShortNameFeature; - namespaceImportInstance.ElementId = elementIdFeature; - namespaceImportInstance.ImportedNamespace = importedNamespaceFeature; - namespaceImportInstance.IsImplied = isImpliedFeature; - namespaceImportInstance.IsImpliedIncluded = isImpliedIncludedFeature; - namespaceImportInstance.IsImportAll = isImportAllFeature; - namespaceImportInstance.IsRecursive = isRecursiveFeature; - namespaceImportInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - namespaceImportInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - namespaceImportInstance.OwningRelatedElement = owningRelatedElementFeature; - namespaceImportInstance.OwningRelationship = owningRelationshipFeature; - namespaceImportInstance.Source = sourceFeature ?? new List(); - namespaceImportInstance.Target = targetFeature ?? new List(); - namespaceImportInstance.Visibility = visibilityFeature; - - return namespaceImportInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static INamespaceImport ReadComplex(Dictionary dictionary) - { - var namespaceImportInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("importedNamespace", out object importedNamespaceObject)) - { - throw new ArgumentException("The importedNamespace property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - Guid importedNamespaceFeature = Guid.Parse(Convert.ToString(importedNamespaceObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isImportAll", out object isImportAllObject)) - { - throw new ArgumentException("The isImportAll property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - bool isImportAllFeature = Convert.ToBoolean(isImportAllObject); - - if (!dictionary.TryGetValue("isRecursive", out object isRecursiveObject)) - { - throw new ArgumentException("The isRecursive property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - bool isRecursiveFeature = Convert.ToBoolean(isRecursiveObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - namespaceImportInstance.AliasIds = aliasIdsFeature ?? new List(); - namespaceImportInstance.DeclaredName = declaredNameFeature; - namespaceImportInstance.DeclaredShortName = declaredShortNameFeature; - namespaceImportInstance.ElementId = elementIdFeature; - namespaceImportInstance.ImportedNamespace = importedNamespaceFeature; - namespaceImportInstance.IsImplied = isImpliedFeature; - namespaceImportInstance.IsImpliedIncluded = isImpliedIncludedFeature; - namespaceImportInstance.IsImportAll = isImportAllFeature; - namespaceImportInstance.IsRecursive = isRecursiveFeature; - namespaceImportInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - namespaceImportInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - namespaceImportInstance.OwningRelatedElement = owningRelatedElementFeature; - namespaceImportInstance.OwningRelationship = owningRelationshipFeature; - namespaceImportInstance.Source = sourceFeature ?? new List(); - namespaceImportInstance.Target = targetFeature ?? new List(); - namespaceImportInstance.Visibility = visibilityFeature; - - return namespaceImportInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static INamespaceImport DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - - var type = Convert.ToString(typeObject); - - if (type != "NamespaceImport") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a NamespaceImport"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a NamespaceImport"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var namespaceImportInstance = new SysML2.NET.Core.DTO.NamespaceImport - { - Id = id - }; - - return namespaceImportInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NullExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NullExpressionDictionaryReader.cs deleted file mode 100644 index 4cd53d47e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/NullExpressionDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class NullExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static INullExpression ReadSimplified(Dictionary dictionary) - { - var nullExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - nullExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - nullExpressionInstance.DeclaredName = declaredNameFeature; - nullExpressionInstance.DeclaredShortName = declaredShortNameFeature; - nullExpressionInstance.Direction = directionFeature; - nullExpressionInstance.ElementId = elementIdFeature; - nullExpressionInstance.IsAbstract = isAbstractFeature; - nullExpressionInstance.IsComposite = isCompositeFeature; - nullExpressionInstance.IsConstant = isConstantFeature; - nullExpressionInstance.IsDerived = isDerivedFeature; - nullExpressionInstance.IsEnd = isEndFeature; - nullExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - nullExpressionInstance.IsOrdered = isOrderedFeature; - nullExpressionInstance.IsPortion = isPortionFeature; - nullExpressionInstance.IsSufficient = isSufficientFeature; - nullExpressionInstance.IsUnique = isUniqueFeature; - nullExpressionInstance.IsVariable = isVariableFeature; - nullExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - nullExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return nullExpressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static INullExpression ReadComplex(Dictionary dictionary) - { - var nullExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - nullExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - nullExpressionInstance.DeclaredName = declaredNameFeature; - nullExpressionInstance.DeclaredShortName = declaredShortNameFeature; - nullExpressionInstance.Direction = directionFeature; - nullExpressionInstance.ElementId = elementIdFeature; - nullExpressionInstance.IsAbstract = isAbstractFeature; - nullExpressionInstance.IsComposite = isCompositeFeature; - nullExpressionInstance.IsConstant = isConstantFeature; - nullExpressionInstance.IsDerived = isDerivedFeature; - nullExpressionInstance.IsEnd = isEndFeature; - nullExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - nullExpressionInstance.IsOrdered = isOrderedFeature; - nullExpressionInstance.IsPortion = isPortionFeature; - nullExpressionInstance.IsSufficient = isSufficientFeature; - nullExpressionInstance.IsUnique = isUniqueFeature; - nullExpressionInstance.IsVariable = isVariableFeature; - nullExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - nullExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return nullExpressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static INullExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "NullExpression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a NullExpression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a NullExpression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var nullExpressionInstance = new SysML2.NET.Core.DTO.NullExpression - { - Id = id - }; - - return nullExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ObjectiveMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ObjectiveMembershipDictionaryReader.cs deleted file mode 100644 index 3450cb4bf..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ObjectiveMembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ObjectiveMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IObjectiveMembership ReadSimplified(Dictionary dictionary) - { - var objectiveMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - objectiveMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - objectiveMembershipInstance.DeclaredName = declaredNameFeature; - objectiveMembershipInstance.DeclaredShortName = declaredShortNameFeature; - objectiveMembershipInstance.ElementId = elementIdFeature; - objectiveMembershipInstance.IsImplied = isImpliedFeature; - objectiveMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - objectiveMembershipInstance.MemberElement = memberElementFeature; - objectiveMembershipInstance.MemberName = memberNameFeature; - objectiveMembershipInstance.MemberShortName = memberShortNameFeature; - objectiveMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - objectiveMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - objectiveMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - objectiveMembershipInstance.OwningRelationship = owningRelationshipFeature; - objectiveMembershipInstance.Source = sourceFeature ?? new List(); - objectiveMembershipInstance.Target = targetFeature ?? new List(); - objectiveMembershipInstance.Visibility = visibilityFeature; - - return objectiveMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IObjectiveMembership ReadComplex(Dictionary dictionary) - { - var objectiveMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - objectiveMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - objectiveMembershipInstance.DeclaredName = declaredNameFeature; - objectiveMembershipInstance.DeclaredShortName = declaredShortNameFeature; - objectiveMembershipInstance.ElementId = elementIdFeature; - objectiveMembershipInstance.IsImplied = isImpliedFeature; - objectiveMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - objectiveMembershipInstance.MemberElement = memberElementFeature; - objectiveMembershipInstance.MemberName = memberNameFeature; - objectiveMembershipInstance.MemberShortName = memberShortNameFeature; - objectiveMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - objectiveMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - objectiveMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - objectiveMembershipInstance.OwningRelationship = owningRelationshipFeature; - objectiveMembershipInstance.Source = sourceFeature ?? new List(); - objectiveMembershipInstance.Target = targetFeature ?? new List(); - objectiveMembershipInstance.Visibility = visibilityFeature; - - return objectiveMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IObjectiveMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ObjectiveMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ObjectiveMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ObjectiveMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var objectiveMembershipInstance = new SysML2.NET.Core.DTO.ObjectiveMembership - { - Id = id - }; - - return objectiveMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OccurrenceDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OccurrenceDefinitionDictionaryReader.cs deleted file mode 100644 index 15450d56d..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OccurrenceDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class OccurrenceDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IOccurrenceDefinition ReadSimplified(Dictionary dictionary) - { - var occurrenceDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - occurrenceDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - occurrenceDefinitionInstance.DeclaredName = declaredNameFeature; - occurrenceDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - occurrenceDefinitionInstance.ElementId = elementIdFeature; - occurrenceDefinitionInstance.IsAbstract = isAbstractFeature; - occurrenceDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - occurrenceDefinitionInstance.IsIndividual = isIndividualFeature; - occurrenceDefinitionInstance.IsSufficient = isSufficientFeature; - occurrenceDefinitionInstance.IsVariation = isVariationFeature; - occurrenceDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - occurrenceDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return occurrenceDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IOccurrenceDefinition ReadComplex(Dictionary dictionary) - { - var occurrenceDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - occurrenceDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - occurrenceDefinitionInstance.DeclaredName = declaredNameFeature; - occurrenceDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - occurrenceDefinitionInstance.ElementId = elementIdFeature; - occurrenceDefinitionInstance.IsAbstract = isAbstractFeature; - occurrenceDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - occurrenceDefinitionInstance.IsIndividual = isIndividualFeature; - occurrenceDefinitionInstance.IsSufficient = isSufficientFeature; - occurrenceDefinitionInstance.IsVariation = isVariationFeature; - occurrenceDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - occurrenceDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return occurrenceDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IOccurrenceDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "OccurrenceDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a OccurrenceDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var occurrenceDefinitionInstance = new SysML2.NET.Core.DTO.OccurrenceDefinition - { - Id = id - }; - - return occurrenceDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OccurrenceUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OccurrenceUsageDictionaryReader.cs deleted file mode 100644 index 23b8f606e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OccurrenceUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class OccurrenceUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IOccurrenceUsage ReadSimplified(Dictionary dictionary) - { - var occurrenceUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - occurrenceUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - occurrenceUsageInstance.DeclaredName = declaredNameFeature; - occurrenceUsageInstance.DeclaredShortName = declaredShortNameFeature; - occurrenceUsageInstance.Direction = directionFeature; - occurrenceUsageInstance.ElementId = elementIdFeature; - occurrenceUsageInstance.IsAbstract = isAbstractFeature; - occurrenceUsageInstance.IsComposite = isCompositeFeature; - occurrenceUsageInstance.IsConstant = isConstantFeature; - occurrenceUsageInstance.IsDerived = isDerivedFeature; - occurrenceUsageInstance.IsEnd = isEndFeature; - occurrenceUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - occurrenceUsageInstance.IsIndividual = isIndividualFeature; - occurrenceUsageInstance.IsOrdered = isOrderedFeature; - occurrenceUsageInstance.IsPortion = isPortionFeature; - occurrenceUsageInstance.IsSufficient = isSufficientFeature; - occurrenceUsageInstance.IsUnique = isUniqueFeature; - occurrenceUsageInstance.IsVariable = isVariableFeature; - occurrenceUsageInstance.IsVariation = isVariationFeature; - occurrenceUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - occurrenceUsageInstance.OwningRelationship = owningRelationshipFeature; - occurrenceUsageInstance.PortionKind = portionKindFeature; - - return occurrenceUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IOccurrenceUsage ReadComplex(Dictionary dictionary) - { - var occurrenceUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - occurrenceUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - occurrenceUsageInstance.DeclaredName = declaredNameFeature; - occurrenceUsageInstance.DeclaredShortName = declaredShortNameFeature; - occurrenceUsageInstance.Direction = directionFeature; - occurrenceUsageInstance.ElementId = elementIdFeature; - occurrenceUsageInstance.IsAbstract = isAbstractFeature; - occurrenceUsageInstance.IsComposite = isCompositeFeature; - occurrenceUsageInstance.IsConstant = isConstantFeature; - occurrenceUsageInstance.IsDerived = isDerivedFeature; - occurrenceUsageInstance.IsEnd = isEndFeature; - occurrenceUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - occurrenceUsageInstance.IsIndividual = isIndividualFeature; - occurrenceUsageInstance.IsOrdered = isOrderedFeature; - occurrenceUsageInstance.IsPortion = isPortionFeature; - occurrenceUsageInstance.IsSufficient = isSufficientFeature; - occurrenceUsageInstance.IsUnique = isUniqueFeature; - occurrenceUsageInstance.IsVariable = isVariableFeature; - occurrenceUsageInstance.IsVariation = isVariationFeature; - occurrenceUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - occurrenceUsageInstance.OwningRelationship = owningRelationshipFeature; - occurrenceUsageInstance.PortionKind = portionKindFeature; - - return occurrenceUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IOccurrenceUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "OccurrenceUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a OccurrenceUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a OccurrenceUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var occurrenceUsageInstance = new SysML2.NET.Core.DTO.OccurrenceUsage - { - Id = id - }; - - return occurrenceUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OperatorExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OperatorExpressionDictionaryReader.cs deleted file mode 100644 index 804e420eb..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OperatorExpressionDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class OperatorExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IOperatorExpression ReadSimplified(Dictionary dictionary) - { - var operatorExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("operator", out object operatorObject)) - { - throw new ArgumentException("The operator property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - string operatorFeature = Convert.ToString(operatorObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - operatorExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - operatorExpressionInstance.DeclaredName = declaredNameFeature; - operatorExpressionInstance.DeclaredShortName = declaredShortNameFeature; - operatorExpressionInstance.Direction = directionFeature; - operatorExpressionInstance.ElementId = elementIdFeature; - operatorExpressionInstance.IsAbstract = isAbstractFeature; - operatorExpressionInstance.IsComposite = isCompositeFeature; - operatorExpressionInstance.IsConstant = isConstantFeature; - operatorExpressionInstance.IsDerived = isDerivedFeature; - operatorExpressionInstance.IsEnd = isEndFeature; - operatorExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - operatorExpressionInstance.IsOrdered = isOrderedFeature; - operatorExpressionInstance.IsPortion = isPortionFeature; - operatorExpressionInstance.IsSufficient = isSufficientFeature; - operatorExpressionInstance.IsUnique = isUniqueFeature; - operatorExpressionInstance.IsVariable = isVariableFeature; - operatorExpressionInstance.Operator = operatorFeature; - operatorExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - operatorExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return operatorExpressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IOperatorExpression ReadComplex(Dictionary dictionary) - { - var operatorExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("operator", out object operatorObject)) - { - throw new ArgumentException("The operator property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - string operatorFeature = Convert.ToString(operatorObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - operatorExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - operatorExpressionInstance.DeclaredName = declaredNameFeature; - operatorExpressionInstance.DeclaredShortName = declaredShortNameFeature; - operatorExpressionInstance.Direction = directionFeature; - operatorExpressionInstance.ElementId = elementIdFeature; - operatorExpressionInstance.IsAbstract = isAbstractFeature; - operatorExpressionInstance.IsComposite = isCompositeFeature; - operatorExpressionInstance.IsConstant = isConstantFeature; - operatorExpressionInstance.IsDerived = isDerivedFeature; - operatorExpressionInstance.IsEnd = isEndFeature; - operatorExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - operatorExpressionInstance.IsOrdered = isOrderedFeature; - operatorExpressionInstance.IsPortion = isPortionFeature; - operatorExpressionInstance.IsSufficient = isSufficientFeature; - operatorExpressionInstance.IsUnique = isUniqueFeature; - operatorExpressionInstance.IsVariable = isVariableFeature; - operatorExpressionInstance.Operator = operatorFeature; - operatorExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - operatorExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return operatorExpressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IOperatorExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "OperatorExpression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a OperatorExpression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a OperatorExpression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var operatorExpressionInstance = new SysML2.NET.Core.DTO.OperatorExpression - { - Id = id - }; - - return operatorExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OwningMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OwningMembershipDictionaryReader.cs deleted file mode 100644 index 5dbec16bf..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/OwningMembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class OwningMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IOwningMembership ReadSimplified(Dictionary dictionary) - { - var owningMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - owningMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - owningMembershipInstance.DeclaredName = declaredNameFeature; - owningMembershipInstance.DeclaredShortName = declaredShortNameFeature; - owningMembershipInstance.ElementId = elementIdFeature; - owningMembershipInstance.IsImplied = isImpliedFeature; - owningMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - owningMembershipInstance.MemberElement = memberElementFeature; - owningMembershipInstance.MemberName = memberNameFeature; - owningMembershipInstance.MemberShortName = memberShortNameFeature; - owningMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - owningMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - owningMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - owningMembershipInstance.OwningRelationship = owningRelationshipFeature; - owningMembershipInstance.Source = sourceFeature ?? new List(); - owningMembershipInstance.Target = targetFeature ?? new List(); - owningMembershipInstance.Visibility = visibilityFeature; - - return owningMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IOwningMembership ReadComplex(Dictionary dictionary) - { - var owningMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - owningMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - owningMembershipInstance.DeclaredName = declaredNameFeature; - owningMembershipInstance.DeclaredShortName = declaredShortNameFeature; - owningMembershipInstance.ElementId = elementIdFeature; - owningMembershipInstance.IsImplied = isImpliedFeature; - owningMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - owningMembershipInstance.MemberElement = memberElementFeature; - owningMembershipInstance.MemberName = memberNameFeature; - owningMembershipInstance.MemberShortName = memberShortNameFeature; - owningMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - owningMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - owningMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - owningMembershipInstance.OwningRelationship = owningRelationshipFeature; - owningMembershipInstance.Source = sourceFeature ?? new List(); - owningMembershipInstance.Target = targetFeature ?? new List(); - owningMembershipInstance.Visibility = visibilityFeature; - - return owningMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IOwningMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "OwningMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a OwningMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a OwningMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var owningMembershipInstance = new SysML2.NET.Core.DTO.OwningMembership - { - Id = id - }; - - return owningMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PackageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PackageDictionaryReader.cs deleted file mode 100644 index 1f0b8e786..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PackageDictionaryReader.cs +++ /dev/null @@ -1,283 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class PackageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IPackage ReadSimplified(Dictionary dictionary) - { - var packageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - packageInstance.AliasIds = aliasIdsFeature ?? new List(); - packageInstance.DeclaredName = declaredNameFeature; - packageInstance.DeclaredShortName = declaredShortNameFeature; - packageInstance.ElementId = elementIdFeature; - packageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - packageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - packageInstance.OwningRelationship = owningRelationshipFeature; - - return packageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IPackage ReadComplex(Dictionary dictionary) - { - var packageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - packageInstance.AliasIds = aliasIdsFeature ?? new List(); - packageInstance.DeclaredName = declaredNameFeature; - packageInstance.DeclaredShortName = declaredShortNameFeature; - packageInstance.ElementId = elementIdFeature; - packageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - packageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - packageInstance.OwningRelationship = owningRelationshipFeature; - - return packageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPackage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Package") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Package"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Package"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var packageInstance = new SysML2.NET.Core.DTO.Package - { - Id = id - }; - - return packageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ParameterMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ParameterMembershipDictionaryReader.cs deleted file mode 100644 index 52c626ebc..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ParameterMembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ParameterMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IParameterMembership ReadSimplified(Dictionary dictionary) - { - var parameterMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - parameterMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - parameterMembershipInstance.DeclaredName = declaredNameFeature; - parameterMembershipInstance.DeclaredShortName = declaredShortNameFeature; - parameterMembershipInstance.ElementId = elementIdFeature; - parameterMembershipInstance.IsImplied = isImpliedFeature; - parameterMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - parameterMembershipInstance.MemberElement = memberElementFeature; - parameterMembershipInstance.MemberName = memberNameFeature; - parameterMembershipInstance.MemberShortName = memberShortNameFeature; - parameterMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - parameterMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - parameterMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - parameterMembershipInstance.OwningRelationship = owningRelationshipFeature; - parameterMembershipInstance.Source = sourceFeature ?? new List(); - parameterMembershipInstance.Target = targetFeature ?? new List(); - parameterMembershipInstance.Visibility = visibilityFeature; - - return parameterMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IParameterMembership ReadComplex(Dictionary dictionary) - { - var parameterMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - parameterMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - parameterMembershipInstance.DeclaredName = declaredNameFeature; - parameterMembershipInstance.DeclaredShortName = declaredShortNameFeature; - parameterMembershipInstance.ElementId = elementIdFeature; - parameterMembershipInstance.IsImplied = isImpliedFeature; - parameterMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - parameterMembershipInstance.MemberElement = memberElementFeature; - parameterMembershipInstance.MemberName = memberNameFeature; - parameterMembershipInstance.MemberShortName = memberShortNameFeature; - parameterMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - parameterMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - parameterMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - parameterMembershipInstance.OwningRelationship = owningRelationshipFeature; - parameterMembershipInstance.Source = sourceFeature ?? new List(); - parameterMembershipInstance.Target = targetFeature ?? new List(); - parameterMembershipInstance.Visibility = visibilityFeature; - - return parameterMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IParameterMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ParameterMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ParameterMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ParameterMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var parameterMembershipInstance = new SysML2.NET.Core.DTO.ParameterMembership - { - Id = id - }; - - return parameterMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PartDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PartDefinitionDictionaryReader.cs deleted file mode 100644 index 953a94adc..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PartDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class PartDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IPartDefinition ReadSimplified(Dictionary dictionary) - { - var partDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - partDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - partDefinitionInstance.DeclaredName = declaredNameFeature; - partDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - partDefinitionInstance.ElementId = elementIdFeature; - partDefinitionInstance.IsAbstract = isAbstractFeature; - partDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - partDefinitionInstance.IsIndividual = isIndividualFeature; - partDefinitionInstance.IsSufficient = isSufficientFeature; - partDefinitionInstance.IsVariation = isVariationFeature; - partDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - partDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return partDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IPartDefinition ReadComplex(Dictionary dictionary) - { - var partDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - partDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - partDefinitionInstance.DeclaredName = declaredNameFeature; - partDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - partDefinitionInstance.ElementId = elementIdFeature; - partDefinitionInstance.IsAbstract = isAbstractFeature; - partDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - partDefinitionInstance.IsIndividual = isIndividualFeature; - partDefinitionInstance.IsSufficient = isSufficientFeature; - partDefinitionInstance.IsVariation = isVariationFeature; - partDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - partDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return partDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPartDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "PartDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a PartDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a PartDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var partDefinitionInstance = new SysML2.NET.Core.DTO.PartDefinition - { - Id = id - }; - - return partDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PartUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PartUsageDictionaryReader.cs deleted file mode 100644 index 6a69dc3ee..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PartUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class PartUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IPartUsage ReadSimplified(Dictionary dictionary) - { - var partUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - partUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - partUsageInstance.DeclaredName = declaredNameFeature; - partUsageInstance.DeclaredShortName = declaredShortNameFeature; - partUsageInstance.Direction = directionFeature; - partUsageInstance.ElementId = elementIdFeature; - partUsageInstance.IsAbstract = isAbstractFeature; - partUsageInstance.IsComposite = isCompositeFeature; - partUsageInstance.IsConstant = isConstantFeature; - partUsageInstance.IsDerived = isDerivedFeature; - partUsageInstance.IsEnd = isEndFeature; - partUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - partUsageInstance.IsIndividual = isIndividualFeature; - partUsageInstance.IsOrdered = isOrderedFeature; - partUsageInstance.IsPortion = isPortionFeature; - partUsageInstance.IsSufficient = isSufficientFeature; - partUsageInstance.IsUnique = isUniqueFeature; - partUsageInstance.IsVariable = isVariableFeature; - partUsageInstance.IsVariation = isVariationFeature; - partUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - partUsageInstance.OwningRelationship = owningRelationshipFeature; - partUsageInstance.PortionKind = portionKindFeature; - - return partUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IPartUsage ReadComplex(Dictionary dictionary) - { - var partUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - partUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - partUsageInstance.DeclaredName = declaredNameFeature; - partUsageInstance.DeclaredShortName = declaredShortNameFeature; - partUsageInstance.Direction = directionFeature; - partUsageInstance.ElementId = elementIdFeature; - partUsageInstance.IsAbstract = isAbstractFeature; - partUsageInstance.IsComposite = isCompositeFeature; - partUsageInstance.IsConstant = isConstantFeature; - partUsageInstance.IsDerived = isDerivedFeature; - partUsageInstance.IsEnd = isEndFeature; - partUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - partUsageInstance.IsIndividual = isIndividualFeature; - partUsageInstance.IsOrdered = isOrderedFeature; - partUsageInstance.IsPortion = isPortionFeature; - partUsageInstance.IsSufficient = isSufficientFeature; - partUsageInstance.IsUnique = isUniqueFeature; - partUsageInstance.IsVariable = isVariableFeature; - partUsageInstance.IsVariation = isVariationFeature; - partUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - partUsageInstance.OwningRelationship = owningRelationshipFeature; - partUsageInstance.PortionKind = portionKindFeature; - - return partUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPartUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "PartUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a PartUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a PartUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var partUsageInstance = new SysML2.NET.Core.DTO.PartUsage - { - Id = id - }; - - return partUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PayloadFeatureDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PayloadFeatureDictionaryReader.cs deleted file mode 100644 index 540427c66..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PayloadFeatureDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class PayloadFeatureDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IPayloadFeature ReadSimplified(Dictionary dictionary) - { - var payloadFeatureInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - payloadFeatureInstance.AliasIds = aliasIdsFeature ?? new List(); - payloadFeatureInstance.DeclaredName = declaredNameFeature; - payloadFeatureInstance.DeclaredShortName = declaredShortNameFeature; - payloadFeatureInstance.Direction = directionFeature; - payloadFeatureInstance.ElementId = elementIdFeature; - payloadFeatureInstance.IsAbstract = isAbstractFeature; - payloadFeatureInstance.IsComposite = isCompositeFeature; - payloadFeatureInstance.IsConstant = isConstantFeature; - payloadFeatureInstance.IsDerived = isDerivedFeature; - payloadFeatureInstance.IsEnd = isEndFeature; - payloadFeatureInstance.IsImpliedIncluded = isImpliedIncludedFeature; - payloadFeatureInstance.IsOrdered = isOrderedFeature; - payloadFeatureInstance.IsPortion = isPortionFeature; - payloadFeatureInstance.IsSufficient = isSufficientFeature; - payloadFeatureInstance.IsUnique = isUniqueFeature; - payloadFeatureInstance.IsVariable = isVariableFeature; - payloadFeatureInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - payloadFeatureInstance.OwningRelationship = owningRelationshipFeature; - - return payloadFeatureInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IPayloadFeature ReadComplex(Dictionary dictionary) - { - var payloadFeatureInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - payloadFeatureInstance.AliasIds = aliasIdsFeature ?? new List(); - payloadFeatureInstance.DeclaredName = declaredNameFeature; - payloadFeatureInstance.DeclaredShortName = declaredShortNameFeature; - payloadFeatureInstance.Direction = directionFeature; - payloadFeatureInstance.ElementId = elementIdFeature; - payloadFeatureInstance.IsAbstract = isAbstractFeature; - payloadFeatureInstance.IsComposite = isCompositeFeature; - payloadFeatureInstance.IsConstant = isConstantFeature; - payloadFeatureInstance.IsDerived = isDerivedFeature; - payloadFeatureInstance.IsEnd = isEndFeature; - payloadFeatureInstance.IsImpliedIncluded = isImpliedIncludedFeature; - payloadFeatureInstance.IsOrdered = isOrderedFeature; - payloadFeatureInstance.IsPortion = isPortionFeature; - payloadFeatureInstance.IsSufficient = isSufficientFeature; - payloadFeatureInstance.IsUnique = isUniqueFeature; - payloadFeatureInstance.IsVariable = isVariableFeature; - payloadFeatureInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - payloadFeatureInstance.OwningRelationship = owningRelationshipFeature; - - return payloadFeatureInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPayloadFeature DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - - var type = Convert.ToString(typeObject); - - if (type != "PayloadFeature") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a PayloadFeature"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a PayloadFeature"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var payloadFeatureInstance = new SysML2.NET.Core.DTO.PayloadFeature - { - Id = id - }; - - return payloadFeatureInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PerformActionUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PerformActionUsageDictionaryReader.cs deleted file mode 100644 index ed8b574b0..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PerformActionUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class PerformActionUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IPerformActionUsage ReadSimplified(Dictionary dictionary) - { - var performActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - performActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - performActionUsageInstance.DeclaredName = declaredNameFeature; - performActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - performActionUsageInstance.Direction = directionFeature; - performActionUsageInstance.ElementId = elementIdFeature; - performActionUsageInstance.IsAbstract = isAbstractFeature; - performActionUsageInstance.IsComposite = isCompositeFeature; - performActionUsageInstance.IsConstant = isConstantFeature; - performActionUsageInstance.IsDerived = isDerivedFeature; - performActionUsageInstance.IsEnd = isEndFeature; - performActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - performActionUsageInstance.IsIndividual = isIndividualFeature; - performActionUsageInstance.IsOrdered = isOrderedFeature; - performActionUsageInstance.IsPortion = isPortionFeature; - performActionUsageInstance.IsSufficient = isSufficientFeature; - performActionUsageInstance.IsUnique = isUniqueFeature; - performActionUsageInstance.IsVariable = isVariableFeature; - performActionUsageInstance.IsVariation = isVariationFeature; - performActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - performActionUsageInstance.OwningRelationship = owningRelationshipFeature; - performActionUsageInstance.PortionKind = portionKindFeature; - - return performActionUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IPerformActionUsage ReadComplex(Dictionary dictionary) - { - var performActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - performActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - performActionUsageInstance.DeclaredName = declaredNameFeature; - performActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - performActionUsageInstance.Direction = directionFeature; - performActionUsageInstance.ElementId = elementIdFeature; - performActionUsageInstance.IsAbstract = isAbstractFeature; - performActionUsageInstance.IsComposite = isCompositeFeature; - performActionUsageInstance.IsConstant = isConstantFeature; - performActionUsageInstance.IsDerived = isDerivedFeature; - performActionUsageInstance.IsEnd = isEndFeature; - performActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - performActionUsageInstance.IsIndividual = isIndividualFeature; - performActionUsageInstance.IsOrdered = isOrderedFeature; - performActionUsageInstance.IsPortion = isPortionFeature; - performActionUsageInstance.IsSufficient = isSufficientFeature; - performActionUsageInstance.IsUnique = isUniqueFeature; - performActionUsageInstance.IsVariable = isVariableFeature; - performActionUsageInstance.IsVariation = isVariationFeature; - performActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - performActionUsageInstance.OwningRelationship = owningRelationshipFeature; - performActionUsageInstance.PortionKind = portionKindFeature; - - return performActionUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPerformActionUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "PerformActionUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a PerformActionUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a PerformActionUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var performActionUsageInstance = new SysML2.NET.Core.DTO.PerformActionUsage - { - Id = id - }; - - return performActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PortConjugationDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PortConjugationDictionaryReader.cs deleted file mode 100644 index 7ab18a963..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PortConjugationDictionaryReader.cs +++ /dev/null @@ -1,395 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class PortConjugationDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IPortConjugation ReadSimplified(Dictionary dictionary) - { - var portConjugationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("conjugatedType", out object conjugatedTypeObject)) - { - throw new ArgumentException("The conjugatedType property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - Guid conjugatedTypeFeature = Guid.Parse(Convert.ToString(conjugatedTypeObject)); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("originalPortDefinition", out object originalPortDefinitionObject)) - { - throw new ArgumentException("The originalPortDefinition property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - Guid originalPortDefinitionFeature = Guid.Parse(Convert.ToString(originalPortDefinitionObject)); - - if (!dictionary.TryGetValue("originalType", out object originalTypeObject)) - { - throw new ArgumentException("The originalType property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - Guid originalTypeFeature = Guid.Parse(Convert.ToString(originalTypeObject)); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - portConjugationInstance.AliasIds = aliasIdsFeature ?? new List(); - portConjugationInstance.ConjugatedType = conjugatedTypeFeature; - portConjugationInstance.DeclaredName = declaredNameFeature; - portConjugationInstance.DeclaredShortName = declaredShortNameFeature; - portConjugationInstance.ElementId = elementIdFeature; - portConjugationInstance.IsImplied = isImpliedFeature; - portConjugationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - portConjugationInstance.OriginalPortDefinition = originalPortDefinitionFeature; - portConjugationInstance.OriginalType = originalTypeFeature; - portConjugationInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - portConjugationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - portConjugationInstance.OwningRelatedElement = owningRelatedElementFeature; - portConjugationInstance.OwningRelationship = owningRelationshipFeature; - portConjugationInstance.Source = sourceFeature ?? new List(); - portConjugationInstance.Target = targetFeature ?? new List(); - - return portConjugationInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IPortConjugation ReadComplex(Dictionary dictionary) - { - var portConjugationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("conjugatedType", out object conjugatedTypeObject)) - { - throw new ArgumentException("The conjugatedType property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - Guid conjugatedTypeFeature = Guid.Parse(Convert.ToString(conjugatedTypeObject)); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("originalPortDefinition", out object originalPortDefinitionObject)) - { - throw new ArgumentException("The originalPortDefinition property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - Guid originalPortDefinitionFeature = Guid.Parse(Convert.ToString(originalPortDefinitionObject)); - - if (!dictionary.TryGetValue("originalType", out object originalTypeObject)) - { - throw new ArgumentException("The originalType property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - Guid originalTypeFeature = Guid.Parse(Convert.ToString(originalTypeObject)); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - List targetFeature = (targetObject as List); - - - portConjugationInstance.AliasIds = aliasIdsFeature ?? new List(); - portConjugationInstance.ConjugatedType = conjugatedTypeFeature; - portConjugationInstance.DeclaredName = declaredNameFeature; - portConjugationInstance.DeclaredShortName = declaredShortNameFeature; - portConjugationInstance.ElementId = elementIdFeature; - portConjugationInstance.IsImplied = isImpliedFeature; - portConjugationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - portConjugationInstance.OriginalPortDefinition = originalPortDefinitionFeature; - portConjugationInstance.OriginalType = originalTypeFeature; - portConjugationInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - portConjugationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - portConjugationInstance.OwningRelatedElement = owningRelatedElementFeature; - portConjugationInstance.OwningRelationship = owningRelationshipFeature; - portConjugationInstance.Source = sourceFeature ?? new List(); - portConjugationInstance.Target = targetFeature ?? new List(); - - return portConjugationInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPortConjugation DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - - var type = Convert.ToString(typeObject); - - if (type != "PortConjugation") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a PortConjugation"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a PortConjugation"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var portConjugationInstance = new SysML2.NET.Core.DTO.PortConjugation - { - Id = id - }; - - return portConjugationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PortDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PortDefinitionDictionaryReader.cs deleted file mode 100644 index 1c3956fda..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PortDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class PortDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IPortDefinition ReadSimplified(Dictionary dictionary) - { - var portDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - portDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - portDefinitionInstance.DeclaredName = declaredNameFeature; - portDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - portDefinitionInstance.ElementId = elementIdFeature; - portDefinitionInstance.IsAbstract = isAbstractFeature; - portDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - portDefinitionInstance.IsIndividual = isIndividualFeature; - portDefinitionInstance.IsSufficient = isSufficientFeature; - portDefinitionInstance.IsVariation = isVariationFeature; - portDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - portDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return portDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IPortDefinition ReadComplex(Dictionary dictionary) - { - var portDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - portDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - portDefinitionInstance.DeclaredName = declaredNameFeature; - portDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - portDefinitionInstance.ElementId = elementIdFeature; - portDefinitionInstance.IsAbstract = isAbstractFeature; - portDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - portDefinitionInstance.IsIndividual = isIndividualFeature; - portDefinitionInstance.IsSufficient = isSufficientFeature; - portDefinitionInstance.IsVariation = isVariationFeature; - portDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - portDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return portDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPortDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "PortDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a PortDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a PortDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var portDefinitionInstance = new SysML2.NET.Core.DTO.PortDefinition - { - Id = id - }; - - return portDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PortUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PortUsageDictionaryReader.cs deleted file mode 100644 index a6dd4315e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PortUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class PortUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IPortUsage ReadSimplified(Dictionary dictionary) - { - var portUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - portUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - portUsageInstance.DeclaredName = declaredNameFeature; - portUsageInstance.DeclaredShortName = declaredShortNameFeature; - portUsageInstance.Direction = directionFeature; - portUsageInstance.ElementId = elementIdFeature; - portUsageInstance.IsAbstract = isAbstractFeature; - portUsageInstance.IsComposite = isCompositeFeature; - portUsageInstance.IsConstant = isConstantFeature; - portUsageInstance.IsDerived = isDerivedFeature; - portUsageInstance.IsEnd = isEndFeature; - portUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - portUsageInstance.IsIndividual = isIndividualFeature; - portUsageInstance.IsOrdered = isOrderedFeature; - portUsageInstance.IsPortion = isPortionFeature; - portUsageInstance.IsSufficient = isSufficientFeature; - portUsageInstance.IsUnique = isUniqueFeature; - portUsageInstance.IsVariable = isVariableFeature; - portUsageInstance.IsVariation = isVariationFeature; - portUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - portUsageInstance.OwningRelationship = owningRelationshipFeature; - portUsageInstance.PortionKind = portionKindFeature; - - return portUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IPortUsage ReadComplex(Dictionary dictionary) - { - var portUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - portUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - portUsageInstance.DeclaredName = declaredNameFeature; - portUsageInstance.DeclaredShortName = declaredShortNameFeature; - portUsageInstance.Direction = directionFeature; - portUsageInstance.ElementId = elementIdFeature; - portUsageInstance.IsAbstract = isAbstractFeature; - portUsageInstance.IsComposite = isCompositeFeature; - portUsageInstance.IsConstant = isConstantFeature; - portUsageInstance.IsDerived = isDerivedFeature; - portUsageInstance.IsEnd = isEndFeature; - portUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - portUsageInstance.IsIndividual = isIndividualFeature; - portUsageInstance.IsOrdered = isOrderedFeature; - portUsageInstance.IsPortion = isPortionFeature; - portUsageInstance.IsSufficient = isSufficientFeature; - portUsageInstance.IsUnique = isUniqueFeature; - portUsageInstance.IsVariable = isVariableFeature; - portUsageInstance.IsVariation = isVariationFeature; - portUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - portUsageInstance.OwningRelationship = owningRelationshipFeature; - portUsageInstance.PortionKind = portionKindFeature; - - return portUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPortUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "PortUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a PortUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a PortUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var portUsageInstance = new SysML2.NET.Core.DTO.PortUsage - { - Id = id - }; - - return portUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PredicateDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PredicateDictionaryReader.cs deleted file mode 100644 index 4fd61a721..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/PredicateDictionaryReader.cs +++ /dev/null @@ -1,311 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class PredicateDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IPredicate ReadSimplified(Dictionary dictionary) - { - var predicateInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - predicateInstance.AliasIds = aliasIdsFeature ?? new List(); - predicateInstance.DeclaredName = declaredNameFeature; - predicateInstance.DeclaredShortName = declaredShortNameFeature; - predicateInstance.ElementId = elementIdFeature; - predicateInstance.IsAbstract = isAbstractFeature; - predicateInstance.IsImpliedIncluded = isImpliedIncludedFeature; - predicateInstance.IsSufficient = isSufficientFeature; - predicateInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - predicateInstance.OwningRelationship = owningRelationshipFeature; - - return predicateInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IPredicate ReadComplex(Dictionary dictionary) - { - var predicateInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - predicateInstance.AliasIds = aliasIdsFeature ?? new List(); - predicateInstance.DeclaredName = declaredNameFeature; - predicateInstance.DeclaredShortName = declaredShortNameFeature; - predicateInstance.ElementId = elementIdFeature; - predicateInstance.IsAbstract = isAbstractFeature; - predicateInstance.IsImpliedIncluded = isImpliedIncludedFeature; - predicateInstance.IsSufficient = isSufficientFeature; - predicateInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - predicateInstance.OwningRelationship = owningRelationshipFeature; - - return predicateInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPredicate DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Predicate") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Predicate"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Predicate"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var predicateInstance = new SysML2.NET.Core.DTO.Predicate - { - Id = id - }; - - return predicateInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RedefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RedefinitionDictionaryReader.cs deleted file mode 100644 index 3a1a863fe..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RedefinitionDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class RedefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IRedefinition ReadSimplified(Dictionary dictionary) - { - var redefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("redefinedFeature", out object redefinedFeatureObject)) - { - throw new ArgumentException("The redefinedFeature property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid redefinedFeatureFeature = Guid.Parse(Convert.ToString(redefinedFeatureObject)); - - if (!dictionary.TryGetValue("redefiningFeature", out object redefiningFeatureObject)) - { - throw new ArgumentException("The redefiningFeature property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid redefiningFeatureFeature = Guid.Parse(Convert.ToString(redefiningFeatureObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("subsettedFeature", out object subsettedFeatureObject)) - { - throw new ArgumentException("The subsettedFeature property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid subsettedFeatureFeature = Guid.Parse(Convert.ToString(subsettedFeatureObject)); - - if (!dictionary.TryGetValue("subsettingFeature", out object subsettingFeatureObject)) - { - throw new ArgumentException("The subsettingFeature property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid subsettingFeatureFeature = Guid.Parse(Convert.ToString(subsettingFeatureObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - redefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - redefinitionInstance.DeclaredName = declaredNameFeature; - redefinitionInstance.DeclaredShortName = declaredShortNameFeature; - redefinitionInstance.ElementId = elementIdFeature; - redefinitionInstance.General = generalFeature; - redefinitionInstance.IsImplied = isImpliedFeature; - redefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - redefinitionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - redefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - redefinitionInstance.OwningRelatedElement = owningRelatedElementFeature; - redefinitionInstance.OwningRelationship = owningRelationshipFeature; - redefinitionInstance.RedefinedFeature = redefinedFeatureFeature; - redefinitionInstance.RedefiningFeature = redefiningFeatureFeature; - redefinitionInstance.Source = sourceFeature ?? new List(); - redefinitionInstance.Specific = specificFeature; - redefinitionInstance.SubsettedFeature = subsettedFeatureFeature; - redefinitionInstance.SubsettingFeature = subsettingFeatureFeature; - redefinitionInstance.Target = targetFeature ?? new List(); - - return redefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IRedefinition ReadComplex(Dictionary dictionary) - { - var redefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("redefinedFeature", out object redefinedFeatureObject)) - { - throw new ArgumentException("The redefinedFeature property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid redefinedFeatureFeature = Guid.Parse(Convert.ToString(redefinedFeatureObject)); - - if (!dictionary.TryGetValue("redefiningFeature", out object redefiningFeatureObject)) - { - throw new ArgumentException("The redefiningFeature property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid redefiningFeatureFeature = Guid.Parse(Convert.ToString(redefiningFeatureObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("subsettedFeature", out object subsettedFeatureObject)) - { - throw new ArgumentException("The subsettedFeature property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid subsettedFeatureFeature = Guid.Parse(Convert.ToString(subsettedFeatureObject)); - - if (!dictionary.TryGetValue("subsettingFeature", out object subsettingFeatureObject)) - { - throw new ArgumentException("The subsettingFeature property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - Guid subsettingFeatureFeature = Guid.Parse(Convert.ToString(subsettingFeatureObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - List targetFeature = (targetObject as List); - - - redefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - redefinitionInstance.DeclaredName = declaredNameFeature; - redefinitionInstance.DeclaredShortName = declaredShortNameFeature; - redefinitionInstance.ElementId = elementIdFeature; - redefinitionInstance.General = generalFeature; - redefinitionInstance.IsImplied = isImpliedFeature; - redefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - redefinitionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - redefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - redefinitionInstance.OwningRelatedElement = owningRelatedElementFeature; - redefinitionInstance.OwningRelationship = owningRelationshipFeature; - redefinitionInstance.RedefinedFeature = redefinedFeatureFeature; - redefinitionInstance.RedefiningFeature = redefiningFeatureFeature; - redefinitionInstance.Source = sourceFeature ?? new List(); - redefinitionInstance.Specific = specificFeature; - redefinitionInstance.SubsettedFeature = subsettedFeatureFeature; - redefinitionInstance.SubsettingFeature = subsettingFeatureFeature; - redefinitionInstance.Target = targetFeature ?? new List(); - - return redefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRedefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Redefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Redefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Redefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var redefinitionInstance = new SysML2.NET.Core.DTO.Redefinition - { - Id = id - }; - - return redefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ReferenceSubsettingDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ReferenceSubsettingDictionaryReader.cs deleted file mode 100644 index 4a2ef9d0c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ReferenceSubsettingDictionaryReader.cs +++ /dev/null @@ -1,423 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ReferenceSubsettingDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IReferenceSubsetting ReadSimplified(Dictionary dictionary) - { - var referenceSubsettingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("referencedFeature", out object referencedFeatureObject)) - { - throw new ArgumentException("The referencedFeature property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid referencedFeatureFeature = Guid.Parse(Convert.ToString(referencedFeatureObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("subsettedFeature", out object subsettedFeatureObject)) - { - throw new ArgumentException("The subsettedFeature property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid subsettedFeatureFeature = Guid.Parse(Convert.ToString(subsettedFeatureObject)); - - if (!dictionary.TryGetValue("subsettingFeature", out object subsettingFeatureObject)) - { - throw new ArgumentException("The subsettingFeature property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid subsettingFeatureFeature = Guid.Parse(Convert.ToString(subsettingFeatureObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - referenceSubsettingInstance.AliasIds = aliasIdsFeature ?? new List(); - referenceSubsettingInstance.DeclaredName = declaredNameFeature; - referenceSubsettingInstance.DeclaredShortName = declaredShortNameFeature; - referenceSubsettingInstance.ElementId = elementIdFeature; - referenceSubsettingInstance.General = generalFeature; - referenceSubsettingInstance.IsImplied = isImpliedFeature; - referenceSubsettingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - referenceSubsettingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - referenceSubsettingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - referenceSubsettingInstance.OwningRelatedElement = owningRelatedElementFeature; - referenceSubsettingInstance.OwningRelationship = owningRelationshipFeature; - referenceSubsettingInstance.ReferencedFeature = referencedFeatureFeature; - referenceSubsettingInstance.Source = sourceFeature ?? new List(); - referenceSubsettingInstance.Specific = specificFeature; - referenceSubsettingInstance.SubsettedFeature = subsettedFeatureFeature; - referenceSubsettingInstance.SubsettingFeature = subsettingFeatureFeature; - referenceSubsettingInstance.Target = targetFeature ?? new List(); - - return referenceSubsettingInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IReferenceSubsetting ReadComplex(Dictionary dictionary) - { - var referenceSubsettingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("referencedFeature", out object referencedFeatureObject)) - { - throw new ArgumentException("The referencedFeature property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid referencedFeatureFeature = Guid.Parse(Convert.ToString(referencedFeatureObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("subsettedFeature", out object subsettedFeatureObject)) - { - throw new ArgumentException("The subsettedFeature property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid subsettedFeatureFeature = Guid.Parse(Convert.ToString(subsettedFeatureObject)); - - if (!dictionary.TryGetValue("subsettingFeature", out object subsettingFeatureObject)) - { - throw new ArgumentException("The subsettingFeature property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - Guid subsettingFeatureFeature = Guid.Parse(Convert.ToString(subsettingFeatureObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - List targetFeature = (targetObject as List); - - - referenceSubsettingInstance.AliasIds = aliasIdsFeature ?? new List(); - referenceSubsettingInstance.DeclaredName = declaredNameFeature; - referenceSubsettingInstance.DeclaredShortName = declaredShortNameFeature; - referenceSubsettingInstance.ElementId = elementIdFeature; - referenceSubsettingInstance.General = generalFeature; - referenceSubsettingInstance.IsImplied = isImpliedFeature; - referenceSubsettingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - referenceSubsettingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - referenceSubsettingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - referenceSubsettingInstance.OwningRelatedElement = owningRelatedElementFeature; - referenceSubsettingInstance.OwningRelationship = owningRelationshipFeature; - referenceSubsettingInstance.ReferencedFeature = referencedFeatureFeature; - referenceSubsettingInstance.Source = sourceFeature ?? new List(); - referenceSubsettingInstance.Specific = specificFeature; - referenceSubsettingInstance.SubsettedFeature = subsettedFeatureFeature; - referenceSubsettingInstance.SubsettingFeature = subsettingFeatureFeature; - referenceSubsettingInstance.Target = targetFeature ?? new List(); - - return referenceSubsettingInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IReferenceSubsetting DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ReferenceSubsetting") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ReferenceSubsetting"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ReferenceSubsetting"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var referenceSubsettingInstance = new SysML2.NET.Core.DTO.ReferenceSubsetting - { - Id = id - }; - - return referenceSubsettingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ReferenceUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ReferenceUsageDictionaryReader.cs deleted file mode 100644 index b0263f619..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ReferenceUsageDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ReferenceUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IReferenceUsage ReadSimplified(Dictionary dictionary) - { - var referenceUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - referenceUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - referenceUsageInstance.DeclaredName = declaredNameFeature; - referenceUsageInstance.DeclaredShortName = declaredShortNameFeature; - referenceUsageInstance.Direction = directionFeature; - referenceUsageInstance.ElementId = elementIdFeature; - referenceUsageInstance.IsAbstract = isAbstractFeature; - referenceUsageInstance.IsComposite = isCompositeFeature; - referenceUsageInstance.IsConstant = isConstantFeature; - referenceUsageInstance.IsDerived = isDerivedFeature; - referenceUsageInstance.IsEnd = isEndFeature; - referenceUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - referenceUsageInstance.IsOrdered = isOrderedFeature; - referenceUsageInstance.IsPortion = isPortionFeature; - referenceUsageInstance.IsSufficient = isSufficientFeature; - referenceUsageInstance.IsUnique = isUniqueFeature; - referenceUsageInstance.IsVariable = isVariableFeature; - referenceUsageInstance.IsVariation = isVariationFeature; - referenceUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - referenceUsageInstance.OwningRelationship = owningRelationshipFeature; - - return referenceUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IReferenceUsage ReadComplex(Dictionary dictionary) - { - var referenceUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - referenceUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - referenceUsageInstance.DeclaredName = declaredNameFeature; - referenceUsageInstance.DeclaredShortName = declaredShortNameFeature; - referenceUsageInstance.Direction = directionFeature; - referenceUsageInstance.ElementId = elementIdFeature; - referenceUsageInstance.IsAbstract = isAbstractFeature; - referenceUsageInstance.IsComposite = isCompositeFeature; - referenceUsageInstance.IsConstant = isConstantFeature; - referenceUsageInstance.IsDerived = isDerivedFeature; - referenceUsageInstance.IsEnd = isEndFeature; - referenceUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - referenceUsageInstance.IsOrdered = isOrderedFeature; - referenceUsageInstance.IsPortion = isPortionFeature; - referenceUsageInstance.IsSufficient = isSufficientFeature; - referenceUsageInstance.IsUnique = isUniqueFeature; - referenceUsageInstance.IsVariable = isVariableFeature; - referenceUsageInstance.IsVariation = isVariationFeature; - referenceUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - referenceUsageInstance.OwningRelationship = owningRelationshipFeature; - - return referenceUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IReferenceUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ReferenceUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ReferenceUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ReferenceUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var referenceUsageInstance = new SysML2.NET.Core.DTO.ReferenceUsage - { - Id = id - }; - - return referenceUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RenderingDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RenderingDefinitionDictionaryReader.cs deleted file mode 100644 index dad7224ea..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RenderingDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class RenderingDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IRenderingDefinition ReadSimplified(Dictionary dictionary) - { - var renderingDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - renderingDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - renderingDefinitionInstance.DeclaredName = declaredNameFeature; - renderingDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - renderingDefinitionInstance.ElementId = elementIdFeature; - renderingDefinitionInstance.IsAbstract = isAbstractFeature; - renderingDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - renderingDefinitionInstance.IsIndividual = isIndividualFeature; - renderingDefinitionInstance.IsSufficient = isSufficientFeature; - renderingDefinitionInstance.IsVariation = isVariationFeature; - renderingDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - renderingDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return renderingDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IRenderingDefinition ReadComplex(Dictionary dictionary) - { - var renderingDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - renderingDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - renderingDefinitionInstance.DeclaredName = declaredNameFeature; - renderingDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - renderingDefinitionInstance.ElementId = elementIdFeature; - renderingDefinitionInstance.IsAbstract = isAbstractFeature; - renderingDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - renderingDefinitionInstance.IsIndividual = isIndividualFeature; - renderingDefinitionInstance.IsSufficient = isSufficientFeature; - renderingDefinitionInstance.IsVariation = isVariationFeature; - renderingDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - renderingDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return renderingDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRenderingDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "RenderingDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a RenderingDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a RenderingDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var renderingDefinitionInstance = new SysML2.NET.Core.DTO.RenderingDefinition - { - Id = id - }; - - return renderingDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RenderingUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RenderingUsageDictionaryReader.cs deleted file mode 100644 index a7bf4aea4..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RenderingUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class RenderingUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IRenderingUsage ReadSimplified(Dictionary dictionary) - { - var renderingUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - renderingUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - renderingUsageInstance.DeclaredName = declaredNameFeature; - renderingUsageInstance.DeclaredShortName = declaredShortNameFeature; - renderingUsageInstance.Direction = directionFeature; - renderingUsageInstance.ElementId = elementIdFeature; - renderingUsageInstance.IsAbstract = isAbstractFeature; - renderingUsageInstance.IsComposite = isCompositeFeature; - renderingUsageInstance.IsConstant = isConstantFeature; - renderingUsageInstance.IsDerived = isDerivedFeature; - renderingUsageInstance.IsEnd = isEndFeature; - renderingUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - renderingUsageInstance.IsIndividual = isIndividualFeature; - renderingUsageInstance.IsOrdered = isOrderedFeature; - renderingUsageInstance.IsPortion = isPortionFeature; - renderingUsageInstance.IsSufficient = isSufficientFeature; - renderingUsageInstance.IsUnique = isUniqueFeature; - renderingUsageInstance.IsVariable = isVariableFeature; - renderingUsageInstance.IsVariation = isVariationFeature; - renderingUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - renderingUsageInstance.OwningRelationship = owningRelationshipFeature; - renderingUsageInstance.PortionKind = portionKindFeature; - - return renderingUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IRenderingUsage ReadComplex(Dictionary dictionary) - { - var renderingUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - renderingUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - renderingUsageInstance.DeclaredName = declaredNameFeature; - renderingUsageInstance.DeclaredShortName = declaredShortNameFeature; - renderingUsageInstance.Direction = directionFeature; - renderingUsageInstance.ElementId = elementIdFeature; - renderingUsageInstance.IsAbstract = isAbstractFeature; - renderingUsageInstance.IsComposite = isCompositeFeature; - renderingUsageInstance.IsConstant = isConstantFeature; - renderingUsageInstance.IsDerived = isDerivedFeature; - renderingUsageInstance.IsEnd = isEndFeature; - renderingUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - renderingUsageInstance.IsIndividual = isIndividualFeature; - renderingUsageInstance.IsOrdered = isOrderedFeature; - renderingUsageInstance.IsPortion = isPortionFeature; - renderingUsageInstance.IsSufficient = isSufficientFeature; - renderingUsageInstance.IsUnique = isUniqueFeature; - renderingUsageInstance.IsVariable = isVariableFeature; - renderingUsageInstance.IsVariation = isVariationFeature; - renderingUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - renderingUsageInstance.OwningRelationship = owningRelationshipFeature; - renderingUsageInstance.PortionKind = portionKindFeature; - - return renderingUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRenderingUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "RenderingUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a RenderingUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a RenderingUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var renderingUsageInstance = new SysML2.NET.Core.DTO.RenderingUsage - { - Id = id - }; - - return renderingUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementConstraintMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementConstraintMembershipDictionaryReader.cs deleted file mode 100644 index 1601bbaec..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementConstraintMembershipDictionaryReader.cs +++ /dev/null @@ -1,423 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class RequirementConstraintMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IRequirementConstraintMembership ReadSimplified(Dictionary dictionary) - { - var requirementConstraintMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("kind", out object kindObject)) - { - throw new ArgumentException("The kind property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - RequirementConstraintKind kindFeature = (RequirementConstraintKind)Enum.Parse(typeof(RequirementConstraintKind), Convert.ToString(kindObject), true); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - requirementConstraintMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - requirementConstraintMembershipInstance.DeclaredName = declaredNameFeature; - requirementConstraintMembershipInstance.DeclaredShortName = declaredShortNameFeature; - requirementConstraintMembershipInstance.ElementId = elementIdFeature; - requirementConstraintMembershipInstance.IsImplied = isImpliedFeature; - requirementConstraintMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - requirementConstraintMembershipInstance.Kind = kindFeature; - requirementConstraintMembershipInstance.MemberElement = memberElementFeature; - requirementConstraintMembershipInstance.MemberName = memberNameFeature; - requirementConstraintMembershipInstance.MemberShortName = memberShortNameFeature; - requirementConstraintMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - requirementConstraintMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - requirementConstraintMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - requirementConstraintMembershipInstance.OwningRelationship = owningRelationshipFeature; - requirementConstraintMembershipInstance.Source = sourceFeature ?? new List(); - requirementConstraintMembershipInstance.Target = targetFeature ?? new List(); - requirementConstraintMembershipInstance.Visibility = visibilityFeature; - - return requirementConstraintMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IRequirementConstraintMembership ReadComplex(Dictionary dictionary) - { - var requirementConstraintMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("kind", out object kindObject)) - { - throw new ArgumentException("The kind property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - RequirementConstraintKind kindFeature = (RequirementConstraintKind)kindObject; - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - requirementConstraintMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - requirementConstraintMembershipInstance.DeclaredName = declaredNameFeature; - requirementConstraintMembershipInstance.DeclaredShortName = declaredShortNameFeature; - requirementConstraintMembershipInstance.ElementId = elementIdFeature; - requirementConstraintMembershipInstance.IsImplied = isImpliedFeature; - requirementConstraintMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - requirementConstraintMembershipInstance.Kind = kindFeature; - requirementConstraintMembershipInstance.MemberElement = memberElementFeature; - requirementConstraintMembershipInstance.MemberName = memberNameFeature; - requirementConstraintMembershipInstance.MemberShortName = memberShortNameFeature; - requirementConstraintMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - requirementConstraintMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - requirementConstraintMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - requirementConstraintMembershipInstance.OwningRelationship = owningRelationshipFeature; - requirementConstraintMembershipInstance.Source = sourceFeature ?? new List(); - requirementConstraintMembershipInstance.Target = targetFeature ?? new List(); - requirementConstraintMembershipInstance.Visibility = visibilityFeature; - - return requirementConstraintMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRequirementConstraintMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "RequirementConstraintMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a RequirementConstraintMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a RequirementConstraintMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var requirementConstraintMembershipInstance = new SysML2.NET.Core.DTO.RequirementConstraintMembership - { - Id = id - }; - - return requirementConstraintMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementDefinitionDictionaryReader.cs deleted file mode 100644 index 7b2c89562..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementDefinitionDictionaryReader.cs +++ /dev/null @@ -1,353 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class RequirementDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IRequirementDefinition ReadSimplified(Dictionary dictionary) - { - var requirementDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - requirementDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - requirementDefinitionInstance.DeclaredName = declaredNameFeature; - requirementDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - requirementDefinitionInstance.ElementId = elementIdFeature; - requirementDefinitionInstance.IsAbstract = isAbstractFeature; - requirementDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - requirementDefinitionInstance.IsIndividual = isIndividualFeature; - requirementDefinitionInstance.IsSufficient = isSufficientFeature; - requirementDefinitionInstance.IsVariation = isVariationFeature; - requirementDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - requirementDefinitionInstance.OwningRelationship = owningRelationshipFeature; - requirementDefinitionInstance.ReqId = reqIdFeature; - - return requirementDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IRequirementDefinition ReadComplex(Dictionary dictionary) - { - var requirementDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - requirementDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - requirementDefinitionInstance.DeclaredName = declaredNameFeature; - requirementDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - requirementDefinitionInstance.ElementId = elementIdFeature; - requirementDefinitionInstance.IsAbstract = isAbstractFeature; - requirementDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - requirementDefinitionInstance.IsIndividual = isIndividualFeature; - requirementDefinitionInstance.IsSufficient = isSufficientFeature; - requirementDefinitionInstance.IsVariation = isVariationFeature; - requirementDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - requirementDefinitionInstance.OwningRelationship = owningRelationshipFeature; - requirementDefinitionInstance.ReqId = reqIdFeature; - - return requirementDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRequirementDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "RequirementDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a RequirementDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a RequirementDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var requirementDefinitionInstance = new SysML2.NET.Core.DTO.RequirementDefinition - { - Id = id - }; - - return requirementDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementUsageDictionaryReader.cs deleted file mode 100644 index b192d1ad3..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementUsageDictionaryReader.cs +++ /dev/null @@ -1,493 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class RequirementUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IRequirementUsage ReadSimplified(Dictionary dictionary) - { - var requirementUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - requirementUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - requirementUsageInstance.DeclaredName = declaredNameFeature; - requirementUsageInstance.DeclaredShortName = declaredShortNameFeature; - requirementUsageInstance.Direction = directionFeature; - requirementUsageInstance.ElementId = elementIdFeature; - requirementUsageInstance.IsAbstract = isAbstractFeature; - requirementUsageInstance.IsComposite = isCompositeFeature; - requirementUsageInstance.IsConstant = isConstantFeature; - requirementUsageInstance.IsDerived = isDerivedFeature; - requirementUsageInstance.IsEnd = isEndFeature; - requirementUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - requirementUsageInstance.IsIndividual = isIndividualFeature; - requirementUsageInstance.IsOrdered = isOrderedFeature; - requirementUsageInstance.IsPortion = isPortionFeature; - requirementUsageInstance.IsSufficient = isSufficientFeature; - requirementUsageInstance.IsUnique = isUniqueFeature; - requirementUsageInstance.IsVariable = isVariableFeature; - requirementUsageInstance.IsVariation = isVariationFeature; - requirementUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - requirementUsageInstance.OwningRelationship = owningRelationshipFeature; - requirementUsageInstance.PortionKind = portionKindFeature; - requirementUsageInstance.ReqId = reqIdFeature; - - return requirementUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IRequirementUsage ReadComplex(Dictionary dictionary) - { - var requirementUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - requirementUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - requirementUsageInstance.DeclaredName = declaredNameFeature; - requirementUsageInstance.DeclaredShortName = declaredShortNameFeature; - requirementUsageInstance.Direction = directionFeature; - requirementUsageInstance.ElementId = elementIdFeature; - requirementUsageInstance.IsAbstract = isAbstractFeature; - requirementUsageInstance.IsComposite = isCompositeFeature; - requirementUsageInstance.IsConstant = isConstantFeature; - requirementUsageInstance.IsDerived = isDerivedFeature; - requirementUsageInstance.IsEnd = isEndFeature; - requirementUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - requirementUsageInstance.IsIndividual = isIndividualFeature; - requirementUsageInstance.IsOrdered = isOrderedFeature; - requirementUsageInstance.IsPortion = isPortionFeature; - requirementUsageInstance.IsSufficient = isSufficientFeature; - requirementUsageInstance.IsUnique = isUniqueFeature; - requirementUsageInstance.IsVariable = isVariableFeature; - requirementUsageInstance.IsVariation = isVariationFeature; - requirementUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - requirementUsageInstance.OwningRelationship = owningRelationshipFeature; - requirementUsageInstance.PortionKind = portionKindFeature; - requirementUsageInstance.ReqId = reqIdFeature; - - return requirementUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRequirementUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "RequirementUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a RequirementUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a RequirementUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var requirementUsageInstance = new SysML2.NET.Core.DTO.RequirementUsage - { - Id = id - }; - - return requirementUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementVerificationMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementVerificationMembershipDictionaryReader.cs deleted file mode 100644 index ec1f6f3c9..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/RequirementVerificationMembershipDictionaryReader.cs +++ /dev/null @@ -1,423 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class RequirementVerificationMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IRequirementVerificationMembership ReadSimplified(Dictionary dictionary) - { - var requirementVerificationMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("kind", out object kindObject)) - { - throw new ArgumentException("The kind property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - RequirementConstraintKind kindFeature = (RequirementConstraintKind)Enum.Parse(typeof(RequirementConstraintKind), Convert.ToString(kindObject), true); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - requirementVerificationMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - requirementVerificationMembershipInstance.DeclaredName = declaredNameFeature; - requirementVerificationMembershipInstance.DeclaredShortName = declaredShortNameFeature; - requirementVerificationMembershipInstance.ElementId = elementIdFeature; - requirementVerificationMembershipInstance.IsImplied = isImpliedFeature; - requirementVerificationMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - requirementVerificationMembershipInstance.Kind = kindFeature; - requirementVerificationMembershipInstance.MemberElement = memberElementFeature; - requirementVerificationMembershipInstance.MemberName = memberNameFeature; - requirementVerificationMembershipInstance.MemberShortName = memberShortNameFeature; - requirementVerificationMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - requirementVerificationMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - requirementVerificationMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - requirementVerificationMembershipInstance.OwningRelationship = owningRelationshipFeature; - requirementVerificationMembershipInstance.Source = sourceFeature ?? new List(); - requirementVerificationMembershipInstance.Target = targetFeature ?? new List(); - requirementVerificationMembershipInstance.Visibility = visibilityFeature; - - return requirementVerificationMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IRequirementVerificationMembership ReadComplex(Dictionary dictionary) - { - var requirementVerificationMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("kind", out object kindObject)) - { - throw new ArgumentException("The kind property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - RequirementConstraintKind kindFeature = (RequirementConstraintKind)kindObject; - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - requirementVerificationMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - requirementVerificationMembershipInstance.DeclaredName = declaredNameFeature; - requirementVerificationMembershipInstance.DeclaredShortName = declaredShortNameFeature; - requirementVerificationMembershipInstance.ElementId = elementIdFeature; - requirementVerificationMembershipInstance.IsImplied = isImpliedFeature; - requirementVerificationMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - requirementVerificationMembershipInstance.Kind = kindFeature; - requirementVerificationMembershipInstance.MemberElement = memberElementFeature; - requirementVerificationMembershipInstance.MemberName = memberNameFeature; - requirementVerificationMembershipInstance.MemberShortName = memberShortNameFeature; - requirementVerificationMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - requirementVerificationMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - requirementVerificationMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - requirementVerificationMembershipInstance.OwningRelationship = owningRelationshipFeature; - requirementVerificationMembershipInstance.Source = sourceFeature ?? new List(); - requirementVerificationMembershipInstance.Target = targetFeature ?? new List(); - requirementVerificationMembershipInstance.Visibility = visibilityFeature; - - return requirementVerificationMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRequirementVerificationMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "RequirementVerificationMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a RequirementVerificationMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a RequirementVerificationMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var requirementVerificationMembershipInstance = new SysML2.NET.Core.DTO.RequirementVerificationMembership - { - Id = id - }; - - return requirementVerificationMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ResultExpressionMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ResultExpressionMembershipDictionaryReader.cs deleted file mode 100644 index 4c6ddca7d..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ResultExpressionMembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ResultExpressionMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IResultExpressionMembership ReadSimplified(Dictionary dictionary) - { - var resultExpressionMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - resultExpressionMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - resultExpressionMembershipInstance.DeclaredName = declaredNameFeature; - resultExpressionMembershipInstance.DeclaredShortName = declaredShortNameFeature; - resultExpressionMembershipInstance.ElementId = elementIdFeature; - resultExpressionMembershipInstance.IsImplied = isImpliedFeature; - resultExpressionMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - resultExpressionMembershipInstance.MemberElement = memberElementFeature; - resultExpressionMembershipInstance.MemberName = memberNameFeature; - resultExpressionMembershipInstance.MemberShortName = memberShortNameFeature; - resultExpressionMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - resultExpressionMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - resultExpressionMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - resultExpressionMembershipInstance.OwningRelationship = owningRelationshipFeature; - resultExpressionMembershipInstance.Source = sourceFeature ?? new List(); - resultExpressionMembershipInstance.Target = targetFeature ?? new List(); - resultExpressionMembershipInstance.Visibility = visibilityFeature; - - return resultExpressionMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IResultExpressionMembership ReadComplex(Dictionary dictionary) - { - var resultExpressionMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - resultExpressionMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - resultExpressionMembershipInstance.DeclaredName = declaredNameFeature; - resultExpressionMembershipInstance.DeclaredShortName = declaredShortNameFeature; - resultExpressionMembershipInstance.ElementId = elementIdFeature; - resultExpressionMembershipInstance.IsImplied = isImpliedFeature; - resultExpressionMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - resultExpressionMembershipInstance.MemberElement = memberElementFeature; - resultExpressionMembershipInstance.MemberName = memberNameFeature; - resultExpressionMembershipInstance.MemberShortName = memberShortNameFeature; - resultExpressionMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - resultExpressionMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - resultExpressionMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - resultExpressionMembershipInstance.OwningRelationship = owningRelationshipFeature; - resultExpressionMembershipInstance.Source = sourceFeature ?? new List(); - resultExpressionMembershipInstance.Target = targetFeature ?? new List(); - resultExpressionMembershipInstance.Visibility = visibilityFeature; - - return resultExpressionMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IResultExpressionMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ResultExpressionMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ResultExpressionMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ResultExpressionMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var resultExpressionMembershipInstance = new SysML2.NET.Core.DTO.ResultExpressionMembership - { - Id = id - }; - - return resultExpressionMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ReturnParameterMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ReturnParameterMembershipDictionaryReader.cs deleted file mode 100644 index 79fb1c055..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ReturnParameterMembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ReturnParameterMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IReturnParameterMembership ReadSimplified(Dictionary dictionary) - { - var returnParameterMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - returnParameterMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - returnParameterMembershipInstance.DeclaredName = declaredNameFeature; - returnParameterMembershipInstance.DeclaredShortName = declaredShortNameFeature; - returnParameterMembershipInstance.ElementId = elementIdFeature; - returnParameterMembershipInstance.IsImplied = isImpliedFeature; - returnParameterMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - returnParameterMembershipInstance.MemberElement = memberElementFeature; - returnParameterMembershipInstance.MemberName = memberNameFeature; - returnParameterMembershipInstance.MemberShortName = memberShortNameFeature; - returnParameterMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - returnParameterMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - returnParameterMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - returnParameterMembershipInstance.OwningRelationship = owningRelationshipFeature; - returnParameterMembershipInstance.Source = sourceFeature ?? new List(); - returnParameterMembershipInstance.Target = targetFeature ?? new List(); - returnParameterMembershipInstance.Visibility = visibilityFeature; - - return returnParameterMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IReturnParameterMembership ReadComplex(Dictionary dictionary) - { - var returnParameterMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - returnParameterMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - returnParameterMembershipInstance.DeclaredName = declaredNameFeature; - returnParameterMembershipInstance.DeclaredShortName = declaredShortNameFeature; - returnParameterMembershipInstance.ElementId = elementIdFeature; - returnParameterMembershipInstance.IsImplied = isImpliedFeature; - returnParameterMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - returnParameterMembershipInstance.MemberElement = memberElementFeature; - returnParameterMembershipInstance.MemberName = memberNameFeature; - returnParameterMembershipInstance.MemberShortName = memberShortNameFeature; - returnParameterMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - returnParameterMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - returnParameterMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - returnParameterMembershipInstance.OwningRelationship = owningRelationshipFeature; - returnParameterMembershipInstance.Source = sourceFeature ?? new List(); - returnParameterMembershipInstance.Target = targetFeature ?? new List(); - returnParameterMembershipInstance.Visibility = visibilityFeature; - - return returnParameterMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IReturnParameterMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ReturnParameterMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ReturnParameterMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ReturnParameterMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var returnParameterMembershipInstance = new SysML2.NET.Core.DTO.ReturnParameterMembership - { - Id = id - }; - - return returnParameterMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SatisfyRequirementUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SatisfyRequirementUsageDictionaryReader.cs deleted file mode 100644 index ee1b76d54..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SatisfyRequirementUsageDictionaryReader.cs +++ /dev/null @@ -1,507 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class SatisfyRequirementUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ISatisfyRequirementUsage ReadSimplified(Dictionary dictionary) - { - var satisfyRequirementUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isNegated", out object isNegatedObject)) - { - throw new ArgumentException("The isNegated property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isNegatedFeature = Convert.ToBoolean(isNegatedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - satisfyRequirementUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - satisfyRequirementUsageInstance.DeclaredName = declaredNameFeature; - satisfyRequirementUsageInstance.DeclaredShortName = declaredShortNameFeature; - satisfyRequirementUsageInstance.Direction = directionFeature; - satisfyRequirementUsageInstance.ElementId = elementIdFeature; - satisfyRequirementUsageInstance.IsAbstract = isAbstractFeature; - satisfyRequirementUsageInstance.IsComposite = isCompositeFeature; - satisfyRequirementUsageInstance.IsConstant = isConstantFeature; - satisfyRequirementUsageInstance.IsDerived = isDerivedFeature; - satisfyRequirementUsageInstance.IsEnd = isEndFeature; - satisfyRequirementUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - satisfyRequirementUsageInstance.IsIndividual = isIndividualFeature; - satisfyRequirementUsageInstance.IsNegated = isNegatedFeature; - satisfyRequirementUsageInstance.IsOrdered = isOrderedFeature; - satisfyRequirementUsageInstance.IsPortion = isPortionFeature; - satisfyRequirementUsageInstance.IsSufficient = isSufficientFeature; - satisfyRequirementUsageInstance.IsUnique = isUniqueFeature; - satisfyRequirementUsageInstance.IsVariable = isVariableFeature; - satisfyRequirementUsageInstance.IsVariation = isVariationFeature; - satisfyRequirementUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - satisfyRequirementUsageInstance.OwningRelationship = owningRelationshipFeature; - satisfyRequirementUsageInstance.PortionKind = portionKindFeature; - satisfyRequirementUsageInstance.ReqId = reqIdFeature; - - return satisfyRequirementUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ISatisfyRequirementUsage ReadComplex(Dictionary dictionary) - { - var satisfyRequirementUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isNegated", out object isNegatedObject)) - { - throw new ArgumentException("The isNegated property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isNegatedFeature = Convert.ToBoolean(isNegatedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - satisfyRequirementUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - satisfyRequirementUsageInstance.DeclaredName = declaredNameFeature; - satisfyRequirementUsageInstance.DeclaredShortName = declaredShortNameFeature; - satisfyRequirementUsageInstance.Direction = directionFeature; - satisfyRequirementUsageInstance.ElementId = elementIdFeature; - satisfyRequirementUsageInstance.IsAbstract = isAbstractFeature; - satisfyRequirementUsageInstance.IsComposite = isCompositeFeature; - satisfyRequirementUsageInstance.IsConstant = isConstantFeature; - satisfyRequirementUsageInstance.IsDerived = isDerivedFeature; - satisfyRequirementUsageInstance.IsEnd = isEndFeature; - satisfyRequirementUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - satisfyRequirementUsageInstance.IsIndividual = isIndividualFeature; - satisfyRequirementUsageInstance.IsNegated = isNegatedFeature; - satisfyRequirementUsageInstance.IsOrdered = isOrderedFeature; - satisfyRequirementUsageInstance.IsPortion = isPortionFeature; - satisfyRequirementUsageInstance.IsSufficient = isSufficientFeature; - satisfyRequirementUsageInstance.IsUnique = isUniqueFeature; - satisfyRequirementUsageInstance.IsVariable = isVariableFeature; - satisfyRequirementUsageInstance.IsVariation = isVariationFeature; - satisfyRequirementUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - satisfyRequirementUsageInstance.OwningRelationship = owningRelationshipFeature; - satisfyRequirementUsageInstance.PortionKind = portionKindFeature; - satisfyRequirementUsageInstance.ReqId = reqIdFeature; - - return satisfyRequirementUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISatisfyRequirementUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "SatisfyRequirementUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a SatisfyRequirementUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a SatisfyRequirementUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var satisfyRequirementUsageInstance = new SysML2.NET.Core.DTO.SatisfyRequirementUsage - { - Id = id - }; - - return satisfyRequirementUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SelectExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SelectExpressionDictionaryReader.cs deleted file mode 100644 index 8d0b0d678..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SelectExpressionDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class SelectExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ISelectExpression ReadSimplified(Dictionary dictionary) - { - var selectExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("operator", out object operatorObject)) - { - throw new ArgumentException("The operator property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - string operatorFeature = Convert.ToString(operatorObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - selectExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - selectExpressionInstance.DeclaredName = declaredNameFeature; - selectExpressionInstance.DeclaredShortName = declaredShortNameFeature; - selectExpressionInstance.Direction = directionFeature; - selectExpressionInstance.ElementId = elementIdFeature; - selectExpressionInstance.IsAbstract = isAbstractFeature; - selectExpressionInstance.IsComposite = isCompositeFeature; - selectExpressionInstance.IsConstant = isConstantFeature; - selectExpressionInstance.IsDerived = isDerivedFeature; - selectExpressionInstance.IsEnd = isEndFeature; - selectExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - selectExpressionInstance.IsOrdered = isOrderedFeature; - selectExpressionInstance.IsPortion = isPortionFeature; - selectExpressionInstance.IsSufficient = isSufficientFeature; - selectExpressionInstance.IsUnique = isUniqueFeature; - selectExpressionInstance.IsVariable = isVariableFeature; - selectExpressionInstance.Operator = operatorFeature; - selectExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - selectExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return selectExpressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ISelectExpression ReadComplex(Dictionary dictionary) - { - var selectExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("operator", out object operatorObject)) - { - throw new ArgumentException("The operator property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - string operatorFeature = Convert.ToString(operatorObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - selectExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - selectExpressionInstance.DeclaredName = declaredNameFeature; - selectExpressionInstance.DeclaredShortName = declaredShortNameFeature; - selectExpressionInstance.Direction = directionFeature; - selectExpressionInstance.ElementId = elementIdFeature; - selectExpressionInstance.IsAbstract = isAbstractFeature; - selectExpressionInstance.IsComposite = isCompositeFeature; - selectExpressionInstance.IsConstant = isConstantFeature; - selectExpressionInstance.IsDerived = isDerivedFeature; - selectExpressionInstance.IsEnd = isEndFeature; - selectExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - selectExpressionInstance.IsOrdered = isOrderedFeature; - selectExpressionInstance.IsPortion = isPortionFeature; - selectExpressionInstance.IsSufficient = isSufficientFeature; - selectExpressionInstance.IsUnique = isUniqueFeature; - selectExpressionInstance.IsVariable = isVariableFeature; - selectExpressionInstance.Operator = operatorFeature; - selectExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - selectExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return selectExpressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISelectExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "SelectExpression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a SelectExpression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a SelectExpression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var selectExpressionInstance = new SysML2.NET.Core.DTO.SelectExpression - { - Id = id - }; - - return selectExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SendActionUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SendActionUsageDictionaryReader.cs deleted file mode 100644 index e353d69c8..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SendActionUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class SendActionUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ISendActionUsage ReadSimplified(Dictionary dictionary) - { - var sendActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - sendActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - sendActionUsageInstance.DeclaredName = declaredNameFeature; - sendActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - sendActionUsageInstance.Direction = directionFeature; - sendActionUsageInstance.ElementId = elementIdFeature; - sendActionUsageInstance.IsAbstract = isAbstractFeature; - sendActionUsageInstance.IsComposite = isCompositeFeature; - sendActionUsageInstance.IsConstant = isConstantFeature; - sendActionUsageInstance.IsDerived = isDerivedFeature; - sendActionUsageInstance.IsEnd = isEndFeature; - sendActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - sendActionUsageInstance.IsIndividual = isIndividualFeature; - sendActionUsageInstance.IsOrdered = isOrderedFeature; - sendActionUsageInstance.IsPortion = isPortionFeature; - sendActionUsageInstance.IsSufficient = isSufficientFeature; - sendActionUsageInstance.IsUnique = isUniqueFeature; - sendActionUsageInstance.IsVariable = isVariableFeature; - sendActionUsageInstance.IsVariation = isVariationFeature; - sendActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - sendActionUsageInstance.OwningRelationship = owningRelationshipFeature; - sendActionUsageInstance.PortionKind = portionKindFeature; - - return sendActionUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ISendActionUsage ReadComplex(Dictionary dictionary) - { - var sendActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - sendActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - sendActionUsageInstance.DeclaredName = declaredNameFeature; - sendActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - sendActionUsageInstance.Direction = directionFeature; - sendActionUsageInstance.ElementId = elementIdFeature; - sendActionUsageInstance.IsAbstract = isAbstractFeature; - sendActionUsageInstance.IsComposite = isCompositeFeature; - sendActionUsageInstance.IsConstant = isConstantFeature; - sendActionUsageInstance.IsDerived = isDerivedFeature; - sendActionUsageInstance.IsEnd = isEndFeature; - sendActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - sendActionUsageInstance.IsIndividual = isIndividualFeature; - sendActionUsageInstance.IsOrdered = isOrderedFeature; - sendActionUsageInstance.IsPortion = isPortionFeature; - sendActionUsageInstance.IsSufficient = isSufficientFeature; - sendActionUsageInstance.IsUnique = isUniqueFeature; - sendActionUsageInstance.IsVariable = isVariableFeature; - sendActionUsageInstance.IsVariation = isVariationFeature; - sendActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - sendActionUsageInstance.OwningRelationship = owningRelationshipFeature; - sendActionUsageInstance.PortionKind = portionKindFeature; - - return sendActionUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISendActionUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "SendActionUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a SendActionUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a SendActionUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var sendActionUsageInstance = new SysML2.NET.Core.DTO.SendActionUsage - { - Id = id - }; - - return sendActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SpecializationDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SpecializationDictionaryReader.cs deleted file mode 100644 index a240bd83e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SpecializationDictionaryReader.cs +++ /dev/null @@ -1,381 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class SpecializationDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ISpecialization ReadSimplified(Dictionary dictionary) - { - var specializationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - specializationInstance.AliasIds = aliasIdsFeature ?? new List(); - specializationInstance.DeclaredName = declaredNameFeature; - specializationInstance.DeclaredShortName = declaredShortNameFeature; - specializationInstance.ElementId = elementIdFeature; - specializationInstance.General = generalFeature; - specializationInstance.IsImplied = isImpliedFeature; - specializationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - specializationInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - specializationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - specializationInstance.OwningRelatedElement = owningRelatedElementFeature; - specializationInstance.OwningRelationship = owningRelationshipFeature; - specializationInstance.Source = sourceFeature ?? new List(); - specializationInstance.Specific = specificFeature; - specializationInstance.Target = targetFeature ?? new List(); - - return specializationInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ISpecialization ReadComplex(Dictionary dictionary) - { - var specializationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - List targetFeature = (targetObject as List); - - - specializationInstance.AliasIds = aliasIdsFeature ?? new List(); - specializationInstance.DeclaredName = declaredNameFeature; - specializationInstance.DeclaredShortName = declaredShortNameFeature; - specializationInstance.ElementId = elementIdFeature; - specializationInstance.General = generalFeature; - specializationInstance.IsImplied = isImpliedFeature; - specializationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - specializationInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - specializationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - specializationInstance.OwningRelatedElement = owningRelatedElementFeature; - specializationInstance.OwningRelationship = owningRelationshipFeature; - specializationInstance.Source = sourceFeature ?? new List(); - specializationInstance.Specific = specificFeature; - specializationInstance.Target = targetFeature ?? new List(); - - return specializationInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISpecialization DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Specialization") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Specialization"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Specialization"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var specializationInstance = new SysML2.NET.Core.DTO.Specialization - { - Id = id - }; - - return specializationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StakeholderMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StakeholderMembershipDictionaryReader.cs deleted file mode 100644 index 7fe1be190..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StakeholderMembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class StakeholderMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IStakeholderMembership ReadSimplified(Dictionary dictionary) - { - var stakeholderMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - stakeholderMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - stakeholderMembershipInstance.DeclaredName = declaredNameFeature; - stakeholderMembershipInstance.DeclaredShortName = declaredShortNameFeature; - stakeholderMembershipInstance.ElementId = elementIdFeature; - stakeholderMembershipInstance.IsImplied = isImpliedFeature; - stakeholderMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - stakeholderMembershipInstance.MemberElement = memberElementFeature; - stakeholderMembershipInstance.MemberName = memberNameFeature; - stakeholderMembershipInstance.MemberShortName = memberShortNameFeature; - stakeholderMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - stakeholderMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - stakeholderMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - stakeholderMembershipInstance.OwningRelationship = owningRelationshipFeature; - stakeholderMembershipInstance.Source = sourceFeature ?? new List(); - stakeholderMembershipInstance.Target = targetFeature ?? new List(); - stakeholderMembershipInstance.Visibility = visibilityFeature; - - return stakeholderMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IStakeholderMembership ReadComplex(Dictionary dictionary) - { - var stakeholderMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - stakeholderMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - stakeholderMembershipInstance.DeclaredName = declaredNameFeature; - stakeholderMembershipInstance.DeclaredShortName = declaredShortNameFeature; - stakeholderMembershipInstance.ElementId = elementIdFeature; - stakeholderMembershipInstance.IsImplied = isImpliedFeature; - stakeholderMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - stakeholderMembershipInstance.MemberElement = memberElementFeature; - stakeholderMembershipInstance.MemberName = memberNameFeature; - stakeholderMembershipInstance.MemberShortName = memberShortNameFeature; - stakeholderMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - stakeholderMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - stakeholderMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - stakeholderMembershipInstance.OwningRelationship = owningRelationshipFeature; - stakeholderMembershipInstance.Source = sourceFeature ?? new List(); - stakeholderMembershipInstance.Target = targetFeature ?? new List(); - stakeholderMembershipInstance.Visibility = visibilityFeature; - - return stakeholderMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IStakeholderMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "StakeholderMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a StakeholderMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a StakeholderMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var stakeholderMembershipInstance = new SysML2.NET.Core.DTO.StakeholderMembership - { - Id = id - }; - - return stakeholderMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StateDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StateDefinitionDictionaryReader.cs deleted file mode 100644 index 7c542a741..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StateDefinitionDictionaryReader.cs +++ /dev/null @@ -1,353 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class StateDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IStateDefinition ReadSimplified(Dictionary dictionary) - { - var stateDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isParallel", out object isParallelObject)) - { - throw new ArgumentException("The isParallel property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - bool isParallelFeature = Convert.ToBoolean(isParallelObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - stateDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - stateDefinitionInstance.DeclaredName = declaredNameFeature; - stateDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - stateDefinitionInstance.ElementId = elementIdFeature; - stateDefinitionInstance.IsAbstract = isAbstractFeature; - stateDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - stateDefinitionInstance.IsIndividual = isIndividualFeature; - stateDefinitionInstance.IsParallel = isParallelFeature; - stateDefinitionInstance.IsSufficient = isSufficientFeature; - stateDefinitionInstance.IsVariation = isVariationFeature; - stateDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - stateDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return stateDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IStateDefinition ReadComplex(Dictionary dictionary) - { - var stateDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isParallel", out object isParallelObject)) - { - throw new ArgumentException("The isParallel property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - bool isParallelFeature = Convert.ToBoolean(isParallelObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - stateDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - stateDefinitionInstance.DeclaredName = declaredNameFeature; - stateDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - stateDefinitionInstance.ElementId = elementIdFeature; - stateDefinitionInstance.IsAbstract = isAbstractFeature; - stateDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - stateDefinitionInstance.IsIndividual = isIndividualFeature; - stateDefinitionInstance.IsParallel = isParallelFeature; - stateDefinitionInstance.IsSufficient = isSufficientFeature; - stateDefinitionInstance.IsVariation = isVariationFeature; - stateDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - stateDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return stateDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IStateDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "StateDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a StateDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a StateDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var stateDefinitionInstance = new SysML2.NET.Core.DTO.StateDefinition - { - Id = id - }; - - return stateDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StateSubactionMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StateSubactionMembershipDictionaryReader.cs deleted file mode 100644 index 9b271a63c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StateSubactionMembershipDictionaryReader.cs +++ /dev/null @@ -1,423 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class StateSubactionMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IStateSubactionMembership ReadSimplified(Dictionary dictionary) - { - var stateSubactionMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("kind", out object kindObject)) - { - throw new ArgumentException("The kind property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - StateSubactionKind kindFeature = (StateSubactionKind)Enum.Parse(typeof(StateSubactionKind), Convert.ToString(kindObject), true); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - stateSubactionMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - stateSubactionMembershipInstance.DeclaredName = declaredNameFeature; - stateSubactionMembershipInstance.DeclaredShortName = declaredShortNameFeature; - stateSubactionMembershipInstance.ElementId = elementIdFeature; - stateSubactionMembershipInstance.IsImplied = isImpliedFeature; - stateSubactionMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - stateSubactionMembershipInstance.Kind = kindFeature; - stateSubactionMembershipInstance.MemberElement = memberElementFeature; - stateSubactionMembershipInstance.MemberName = memberNameFeature; - stateSubactionMembershipInstance.MemberShortName = memberShortNameFeature; - stateSubactionMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - stateSubactionMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - stateSubactionMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - stateSubactionMembershipInstance.OwningRelationship = owningRelationshipFeature; - stateSubactionMembershipInstance.Source = sourceFeature ?? new List(); - stateSubactionMembershipInstance.Target = targetFeature ?? new List(); - stateSubactionMembershipInstance.Visibility = visibilityFeature; - - return stateSubactionMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IStateSubactionMembership ReadComplex(Dictionary dictionary) - { - var stateSubactionMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("kind", out object kindObject)) - { - throw new ArgumentException("The kind property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - StateSubactionKind kindFeature = (StateSubactionKind)kindObject; - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - stateSubactionMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - stateSubactionMembershipInstance.DeclaredName = declaredNameFeature; - stateSubactionMembershipInstance.DeclaredShortName = declaredShortNameFeature; - stateSubactionMembershipInstance.ElementId = elementIdFeature; - stateSubactionMembershipInstance.IsImplied = isImpliedFeature; - stateSubactionMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - stateSubactionMembershipInstance.Kind = kindFeature; - stateSubactionMembershipInstance.MemberElement = memberElementFeature; - stateSubactionMembershipInstance.MemberName = memberNameFeature; - stateSubactionMembershipInstance.MemberShortName = memberShortNameFeature; - stateSubactionMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - stateSubactionMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - stateSubactionMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - stateSubactionMembershipInstance.OwningRelationship = owningRelationshipFeature; - stateSubactionMembershipInstance.Source = sourceFeature ?? new List(); - stateSubactionMembershipInstance.Target = targetFeature ?? new List(); - stateSubactionMembershipInstance.Visibility = visibilityFeature; - - return stateSubactionMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IStateSubactionMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "StateSubactionMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a StateSubactionMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a StateSubactionMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var stateSubactionMembershipInstance = new SysML2.NET.Core.DTO.StateSubactionMembership - { - Id = id - }; - - return stateSubactionMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StateUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StateUsageDictionaryReader.cs deleted file mode 100644 index 855446a72..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StateUsageDictionaryReader.cs +++ /dev/null @@ -1,493 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class StateUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IStateUsage ReadSimplified(Dictionary dictionary) - { - var stateUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isParallel", out object isParallelObject)) - { - throw new ArgumentException("The isParallel property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isParallelFeature = Convert.ToBoolean(isParallelObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - stateUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - stateUsageInstance.DeclaredName = declaredNameFeature; - stateUsageInstance.DeclaredShortName = declaredShortNameFeature; - stateUsageInstance.Direction = directionFeature; - stateUsageInstance.ElementId = elementIdFeature; - stateUsageInstance.IsAbstract = isAbstractFeature; - stateUsageInstance.IsComposite = isCompositeFeature; - stateUsageInstance.IsConstant = isConstantFeature; - stateUsageInstance.IsDerived = isDerivedFeature; - stateUsageInstance.IsEnd = isEndFeature; - stateUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - stateUsageInstance.IsIndividual = isIndividualFeature; - stateUsageInstance.IsOrdered = isOrderedFeature; - stateUsageInstance.IsParallel = isParallelFeature; - stateUsageInstance.IsPortion = isPortionFeature; - stateUsageInstance.IsSufficient = isSufficientFeature; - stateUsageInstance.IsUnique = isUniqueFeature; - stateUsageInstance.IsVariable = isVariableFeature; - stateUsageInstance.IsVariation = isVariationFeature; - stateUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - stateUsageInstance.OwningRelationship = owningRelationshipFeature; - stateUsageInstance.PortionKind = portionKindFeature; - - return stateUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IStateUsage ReadComplex(Dictionary dictionary) - { - var stateUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isParallel", out object isParallelObject)) - { - throw new ArgumentException("The isParallel property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isParallelFeature = Convert.ToBoolean(isParallelObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - stateUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - stateUsageInstance.DeclaredName = declaredNameFeature; - stateUsageInstance.DeclaredShortName = declaredShortNameFeature; - stateUsageInstance.Direction = directionFeature; - stateUsageInstance.ElementId = elementIdFeature; - stateUsageInstance.IsAbstract = isAbstractFeature; - stateUsageInstance.IsComposite = isCompositeFeature; - stateUsageInstance.IsConstant = isConstantFeature; - stateUsageInstance.IsDerived = isDerivedFeature; - stateUsageInstance.IsEnd = isEndFeature; - stateUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - stateUsageInstance.IsIndividual = isIndividualFeature; - stateUsageInstance.IsOrdered = isOrderedFeature; - stateUsageInstance.IsParallel = isParallelFeature; - stateUsageInstance.IsPortion = isPortionFeature; - stateUsageInstance.IsSufficient = isSufficientFeature; - stateUsageInstance.IsUnique = isUniqueFeature; - stateUsageInstance.IsVariable = isVariableFeature; - stateUsageInstance.IsVariation = isVariationFeature; - stateUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - stateUsageInstance.OwningRelationship = owningRelationshipFeature; - stateUsageInstance.PortionKind = portionKindFeature; - - return stateUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IStateUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "StateUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a StateUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a StateUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var stateUsageInstance = new SysML2.NET.Core.DTO.StateUsage - { - Id = id - }; - - return stateUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StepDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StepDictionaryReader.cs deleted file mode 100644 index 2405ebc10..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StepDictionaryReader.cs +++ /dev/null @@ -1,437 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class StepDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IStep ReadSimplified(Dictionary dictionary) - { - var stepInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - stepInstance.AliasIds = aliasIdsFeature ?? new List(); - stepInstance.DeclaredName = declaredNameFeature; - stepInstance.DeclaredShortName = declaredShortNameFeature; - stepInstance.Direction = directionFeature; - stepInstance.ElementId = elementIdFeature; - stepInstance.IsAbstract = isAbstractFeature; - stepInstance.IsComposite = isCompositeFeature; - stepInstance.IsConstant = isConstantFeature; - stepInstance.IsDerived = isDerivedFeature; - stepInstance.IsEnd = isEndFeature; - stepInstance.IsImpliedIncluded = isImpliedIncludedFeature; - stepInstance.IsOrdered = isOrderedFeature; - stepInstance.IsPortion = isPortionFeature; - stepInstance.IsSufficient = isSufficientFeature; - stepInstance.IsUnique = isUniqueFeature; - stepInstance.IsVariable = isVariableFeature; - stepInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - stepInstance.OwningRelationship = owningRelationshipFeature; - - return stepInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IStep ReadComplex(Dictionary dictionary) - { - var stepInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - stepInstance.AliasIds = aliasIdsFeature ?? new List(); - stepInstance.DeclaredName = declaredNameFeature; - stepInstance.DeclaredShortName = declaredShortNameFeature; - stepInstance.Direction = directionFeature; - stepInstance.ElementId = elementIdFeature; - stepInstance.IsAbstract = isAbstractFeature; - stepInstance.IsComposite = isCompositeFeature; - stepInstance.IsConstant = isConstantFeature; - stepInstance.IsDerived = isDerivedFeature; - stepInstance.IsEnd = isEndFeature; - stepInstance.IsImpliedIncluded = isImpliedIncludedFeature; - stepInstance.IsOrdered = isOrderedFeature; - stepInstance.IsPortion = isPortionFeature; - stepInstance.IsSufficient = isSufficientFeature; - stepInstance.IsUnique = isUniqueFeature; - stepInstance.IsVariable = isVariableFeature; - stepInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - stepInstance.OwningRelationship = owningRelationshipFeature; - - return stepInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IStep DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Step") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Step"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Step"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var stepInstance = new SysML2.NET.Core.DTO.Step - { - Id = id - }; - - return stepInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StructureDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StructureDictionaryReader.cs deleted file mode 100644 index 7fee72ca3..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/StructureDictionaryReader.cs +++ /dev/null @@ -1,311 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class StructureDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IStructure ReadSimplified(Dictionary dictionary) - { - var structureInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - structureInstance.AliasIds = aliasIdsFeature ?? new List(); - structureInstance.DeclaredName = declaredNameFeature; - structureInstance.DeclaredShortName = declaredShortNameFeature; - structureInstance.ElementId = elementIdFeature; - structureInstance.IsAbstract = isAbstractFeature; - structureInstance.IsImpliedIncluded = isImpliedIncludedFeature; - structureInstance.IsSufficient = isSufficientFeature; - structureInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - structureInstance.OwningRelationship = owningRelationshipFeature; - - return structureInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IStructure ReadComplex(Dictionary dictionary) - { - var structureInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - structureInstance.AliasIds = aliasIdsFeature ?? new List(); - structureInstance.DeclaredName = declaredNameFeature; - structureInstance.DeclaredShortName = declaredShortNameFeature; - structureInstance.ElementId = elementIdFeature; - structureInstance.IsAbstract = isAbstractFeature; - structureInstance.IsImpliedIncluded = isImpliedIncludedFeature; - structureInstance.IsSufficient = isSufficientFeature; - structureInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - structureInstance.OwningRelationship = owningRelationshipFeature; - - return structureInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IStructure DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Structure") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Structure"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Structure"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var structureInstance = new SysML2.NET.Core.DTO.Structure - { - Id = id - }; - - return structureInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SubclassificationDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SubclassificationDictionaryReader.cs deleted file mode 100644 index 3cbd5c58c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SubclassificationDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class SubclassificationDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ISubclassification ReadSimplified(Dictionary dictionary) - { - var subclassificationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("subclassifier", out object subclassifierObject)) - { - throw new ArgumentException("The subclassifier property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - Guid subclassifierFeature = Guid.Parse(Convert.ToString(subclassifierObject)); - - if (!dictionary.TryGetValue("superclassifier", out object superclassifierObject)) - { - throw new ArgumentException("The superclassifier property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - Guid superclassifierFeature = Guid.Parse(Convert.ToString(superclassifierObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - subclassificationInstance.AliasIds = aliasIdsFeature ?? new List(); - subclassificationInstance.DeclaredName = declaredNameFeature; - subclassificationInstance.DeclaredShortName = declaredShortNameFeature; - subclassificationInstance.ElementId = elementIdFeature; - subclassificationInstance.General = generalFeature; - subclassificationInstance.IsImplied = isImpliedFeature; - subclassificationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - subclassificationInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - subclassificationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - subclassificationInstance.OwningRelatedElement = owningRelatedElementFeature; - subclassificationInstance.OwningRelationship = owningRelationshipFeature; - subclassificationInstance.Source = sourceFeature ?? new List(); - subclassificationInstance.Specific = specificFeature; - subclassificationInstance.Subclassifier = subclassifierFeature; - subclassificationInstance.Superclassifier = superclassifierFeature; - subclassificationInstance.Target = targetFeature ?? new List(); - - return subclassificationInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ISubclassification ReadComplex(Dictionary dictionary) - { - var subclassificationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("subclassifier", out object subclassifierObject)) - { - throw new ArgumentException("The subclassifier property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - Guid subclassifierFeature = Guid.Parse(Convert.ToString(subclassifierObject)); - - if (!dictionary.TryGetValue("superclassifier", out object superclassifierObject)) - { - throw new ArgumentException("The superclassifier property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - Guid superclassifierFeature = Guid.Parse(Convert.ToString(superclassifierObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - List targetFeature = (targetObject as List); - - - subclassificationInstance.AliasIds = aliasIdsFeature ?? new List(); - subclassificationInstance.DeclaredName = declaredNameFeature; - subclassificationInstance.DeclaredShortName = declaredShortNameFeature; - subclassificationInstance.ElementId = elementIdFeature; - subclassificationInstance.General = generalFeature; - subclassificationInstance.IsImplied = isImpliedFeature; - subclassificationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - subclassificationInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - subclassificationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - subclassificationInstance.OwningRelatedElement = owningRelatedElementFeature; - subclassificationInstance.OwningRelationship = owningRelationshipFeature; - subclassificationInstance.Source = sourceFeature ?? new List(); - subclassificationInstance.Specific = specificFeature; - subclassificationInstance.Subclassifier = subclassifierFeature; - subclassificationInstance.Superclassifier = superclassifierFeature; - subclassificationInstance.Target = targetFeature ?? new List(); - - return subclassificationInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISubclassification DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Subclassification") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Subclassification"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Subclassification"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var subclassificationInstance = new SysML2.NET.Core.DTO.Subclassification - { - Id = id - }; - - return subclassificationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SubjectMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SubjectMembershipDictionaryReader.cs deleted file mode 100644 index d0887d2ae..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SubjectMembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class SubjectMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ISubjectMembership ReadSimplified(Dictionary dictionary) - { - var subjectMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - subjectMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - subjectMembershipInstance.DeclaredName = declaredNameFeature; - subjectMembershipInstance.DeclaredShortName = declaredShortNameFeature; - subjectMembershipInstance.ElementId = elementIdFeature; - subjectMembershipInstance.IsImplied = isImpliedFeature; - subjectMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - subjectMembershipInstance.MemberElement = memberElementFeature; - subjectMembershipInstance.MemberName = memberNameFeature; - subjectMembershipInstance.MemberShortName = memberShortNameFeature; - subjectMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - subjectMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - subjectMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - subjectMembershipInstance.OwningRelationship = owningRelationshipFeature; - subjectMembershipInstance.Source = sourceFeature ?? new List(); - subjectMembershipInstance.Target = targetFeature ?? new List(); - subjectMembershipInstance.Visibility = visibilityFeature; - - return subjectMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ISubjectMembership ReadComplex(Dictionary dictionary) - { - var subjectMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - subjectMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - subjectMembershipInstance.DeclaredName = declaredNameFeature; - subjectMembershipInstance.DeclaredShortName = declaredShortNameFeature; - subjectMembershipInstance.ElementId = elementIdFeature; - subjectMembershipInstance.IsImplied = isImpliedFeature; - subjectMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - subjectMembershipInstance.MemberElement = memberElementFeature; - subjectMembershipInstance.MemberName = memberNameFeature; - subjectMembershipInstance.MemberShortName = memberShortNameFeature; - subjectMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - subjectMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - subjectMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - subjectMembershipInstance.OwningRelationship = owningRelationshipFeature; - subjectMembershipInstance.Source = sourceFeature ?? new List(); - subjectMembershipInstance.Target = targetFeature ?? new List(); - subjectMembershipInstance.Visibility = visibilityFeature; - - return subjectMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISubjectMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "SubjectMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a SubjectMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a SubjectMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var subjectMembershipInstance = new SysML2.NET.Core.DTO.SubjectMembership - { - Id = id - }; - - return subjectMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SubsettingDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SubsettingDictionaryReader.cs deleted file mode 100644 index c82ebc245..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SubsettingDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class SubsettingDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ISubsetting ReadSimplified(Dictionary dictionary) - { - var subsettingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("subsettedFeature", out object subsettedFeatureObject)) - { - throw new ArgumentException("The subsettedFeature property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - Guid subsettedFeatureFeature = Guid.Parse(Convert.ToString(subsettedFeatureObject)); - - if (!dictionary.TryGetValue("subsettingFeature", out object subsettingFeatureObject)) - { - throw new ArgumentException("The subsettingFeature property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - Guid subsettingFeatureFeature = Guid.Parse(Convert.ToString(subsettingFeatureObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - subsettingInstance.AliasIds = aliasIdsFeature ?? new List(); - subsettingInstance.DeclaredName = declaredNameFeature; - subsettingInstance.DeclaredShortName = declaredShortNameFeature; - subsettingInstance.ElementId = elementIdFeature; - subsettingInstance.General = generalFeature; - subsettingInstance.IsImplied = isImpliedFeature; - subsettingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - subsettingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - subsettingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - subsettingInstance.OwningRelatedElement = owningRelatedElementFeature; - subsettingInstance.OwningRelationship = owningRelationshipFeature; - subsettingInstance.Source = sourceFeature ?? new List(); - subsettingInstance.Specific = specificFeature; - subsettingInstance.SubsettedFeature = subsettedFeatureFeature; - subsettingInstance.SubsettingFeature = subsettingFeatureFeature; - subsettingInstance.Target = targetFeature ?? new List(); - - return subsettingInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ISubsetting ReadComplex(Dictionary dictionary) - { - var subsettingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("general", out object generalObject)) - { - throw new ArgumentException("The general property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - Guid generalFeature = Guid.Parse(Convert.ToString(generalObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("specific", out object specificObject)) - { - throw new ArgumentException("The specific property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - Guid specificFeature = Guid.Parse(Convert.ToString(specificObject)); - - if (!dictionary.TryGetValue("subsettedFeature", out object subsettedFeatureObject)) - { - throw new ArgumentException("The subsettedFeature property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - Guid subsettedFeatureFeature = Guid.Parse(Convert.ToString(subsettedFeatureObject)); - - if (!dictionary.TryGetValue("subsettingFeature", out object subsettingFeatureObject)) - { - throw new ArgumentException("The subsettingFeature property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - Guid subsettingFeatureFeature = Guid.Parse(Convert.ToString(subsettingFeatureObject)); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - List targetFeature = (targetObject as List); - - - subsettingInstance.AliasIds = aliasIdsFeature ?? new List(); - subsettingInstance.DeclaredName = declaredNameFeature; - subsettingInstance.DeclaredShortName = declaredShortNameFeature; - subsettingInstance.ElementId = elementIdFeature; - subsettingInstance.General = generalFeature; - subsettingInstance.IsImplied = isImpliedFeature; - subsettingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - subsettingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - subsettingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - subsettingInstance.OwningRelatedElement = owningRelatedElementFeature; - subsettingInstance.OwningRelationship = owningRelationshipFeature; - subsettingInstance.Source = sourceFeature ?? new List(); - subsettingInstance.Specific = specificFeature; - subsettingInstance.SubsettedFeature = subsettedFeatureFeature; - subsettingInstance.SubsettingFeature = subsettingFeatureFeature; - subsettingInstance.Target = targetFeature ?? new List(); - - return subsettingInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISubsetting DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Subsetting") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Subsetting"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Subsetting"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var subsettingInstance = new SysML2.NET.Core.DTO.Subsetting - { - Id = id - }; - - return subsettingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionAsUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionAsUsageDictionaryReader.cs deleted file mode 100644 index f660a4a42..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionAsUsageDictionaryReader.cs +++ /dev/null @@ -1,521 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class SuccessionAsUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ISuccessionAsUsage ReadSimplified(Dictionary dictionary) - { - var successionAsUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - successionAsUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - successionAsUsageInstance.DeclaredName = declaredNameFeature; - successionAsUsageInstance.DeclaredShortName = declaredShortNameFeature; - successionAsUsageInstance.Direction = directionFeature; - successionAsUsageInstance.ElementId = elementIdFeature; - successionAsUsageInstance.IsAbstract = isAbstractFeature; - successionAsUsageInstance.IsComposite = isCompositeFeature; - successionAsUsageInstance.IsConstant = isConstantFeature; - successionAsUsageInstance.IsDerived = isDerivedFeature; - successionAsUsageInstance.IsEnd = isEndFeature; - successionAsUsageInstance.IsImplied = isImpliedFeature; - successionAsUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - successionAsUsageInstance.IsOrdered = isOrderedFeature; - successionAsUsageInstance.IsPortion = isPortionFeature; - successionAsUsageInstance.IsSufficient = isSufficientFeature; - successionAsUsageInstance.IsUnique = isUniqueFeature; - successionAsUsageInstance.IsVariable = isVariableFeature; - successionAsUsageInstance.IsVariation = isVariationFeature; - successionAsUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - successionAsUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - successionAsUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - successionAsUsageInstance.OwningRelationship = owningRelationshipFeature; - successionAsUsageInstance.Source = sourceFeature ?? new List(); - successionAsUsageInstance.Target = targetFeature ?? new List(); - - return successionAsUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ISuccessionAsUsage ReadComplex(Dictionary dictionary) - { - var successionAsUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - List targetFeature = (targetObject as List); - - - successionAsUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - successionAsUsageInstance.DeclaredName = declaredNameFeature; - successionAsUsageInstance.DeclaredShortName = declaredShortNameFeature; - successionAsUsageInstance.Direction = directionFeature; - successionAsUsageInstance.ElementId = elementIdFeature; - successionAsUsageInstance.IsAbstract = isAbstractFeature; - successionAsUsageInstance.IsComposite = isCompositeFeature; - successionAsUsageInstance.IsConstant = isConstantFeature; - successionAsUsageInstance.IsDerived = isDerivedFeature; - successionAsUsageInstance.IsEnd = isEndFeature; - successionAsUsageInstance.IsImplied = isImpliedFeature; - successionAsUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - successionAsUsageInstance.IsOrdered = isOrderedFeature; - successionAsUsageInstance.IsPortion = isPortionFeature; - successionAsUsageInstance.IsSufficient = isSufficientFeature; - successionAsUsageInstance.IsUnique = isUniqueFeature; - successionAsUsageInstance.IsVariable = isVariableFeature; - successionAsUsageInstance.IsVariation = isVariationFeature; - successionAsUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - successionAsUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - successionAsUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - successionAsUsageInstance.OwningRelationship = owningRelationshipFeature; - successionAsUsageInstance.Source = sourceFeature ?? new List(); - successionAsUsageInstance.Target = targetFeature ?? new List(); - - return successionAsUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISuccessionAsUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "SuccessionAsUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a SuccessionAsUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a SuccessionAsUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var successionAsUsageInstance = new SysML2.NET.Core.DTO.SuccessionAsUsage - { - Id = id - }; - - return successionAsUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionDictionaryReader.cs deleted file mode 100644 index 03efefa64..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionDictionaryReader.cs +++ /dev/null @@ -1,507 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class SuccessionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ISuccession ReadSimplified(Dictionary dictionary) - { - var successionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - successionInstance.AliasIds = aliasIdsFeature ?? new List(); - successionInstance.DeclaredName = declaredNameFeature; - successionInstance.DeclaredShortName = declaredShortNameFeature; - successionInstance.Direction = directionFeature; - successionInstance.ElementId = elementIdFeature; - successionInstance.IsAbstract = isAbstractFeature; - successionInstance.IsComposite = isCompositeFeature; - successionInstance.IsConstant = isConstantFeature; - successionInstance.IsDerived = isDerivedFeature; - successionInstance.IsEnd = isEndFeature; - successionInstance.IsImplied = isImpliedFeature; - successionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - successionInstance.IsOrdered = isOrderedFeature; - successionInstance.IsPortion = isPortionFeature; - successionInstance.IsSufficient = isSufficientFeature; - successionInstance.IsUnique = isUniqueFeature; - successionInstance.IsVariable = isVariableFeature; - successionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - successionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - successionInstance.OwningRelatedElement = owningRelatedElementFeature; - successionInstance.OwningRelationship = owningRelationshipFeature; - successionInstance.Source = sourceFeature ?? new List(); - successionInstance.Target = targetFeature ?? new List(); - - return successionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ISuccession ReadComplex(Dictionary dictionary) - { - var successionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - List targetFeature = (targetObject as List); - - - successionInstance.AliasIds = aliasIdsFeature ?? new List(); - successionInstance.DeclaredName = declaredNameFeature; - successionInstance.DeclaredShortName = declaredShortNameFeature; - successionInstance.Direction = directionFeature; - successionInstance.ElementId = elementIdFeature; - successionInstance.IsAbstract = isAbstractFeature; - successionInstance.IsComposite = isCompositeFeature; - successionInstance.IsConstant = isConstantFeature; - successionInstance.IsDerived = isDerivedFeature; - successionInstance.IsEnd = isEndFeature; - successionInstance.IsImplied = isImpliedFeature; - successionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - successionInstance.IsOrdered = isOrderedFeature; - successionInstance.IsPortion = isPortionFeature; - successionInstance.IsSufficient = isSufficientFeature; - successionInstance.IsUnique = isUniqueFeature; - successionInstance.IsVariable = isVariableFeature; - successionInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - successionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - successionInstance.OwningRelatedElement = owningRelatedElementFeature; - successionInstance.OwningRelationship = owningRelationshipFeature; - successionInstance.Source = sourceFeature ?? new List(); - successionInstance.Target = targetFeature ?? new List(); - - return successionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISuccession DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Succession") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Succession"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Succession"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var successionInstance = new SysML2.NET.Core.DTO.Succession - { - Id = id - }; - - return successionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionFlowDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionFlowDictionaryReader.cs deleted file mode 100644 index 6a50d8668..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionFlowDictionaryReader.cs +++ /dev/null @@ -1,507 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class SuccessionFlowDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ISuccessionFlow ReadSimplified(Dictionary dictionary) - { - var successionFlowInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - successionFlowInstance.AliasIds = aliasIdsFeature ?? new List(); - successionFlowInstance.DeclaredName = declaredNameFeature; - successionFlowInstance.DeclaredShortName = declaredShortNameFeature; - successionFlowInstance.Direction = directionFeature; - successionFlowInstance.ElementId = elementIdFeature; - successionFlowInstance.IsAbstract = isAbstractFeature; - successionFlowInstance.IsComposite = isCompositeFeature; - successionFlowInstance.IsConstant = isConstantFeature; - successionFlowInstance.IsDerived = isDerivedFeature; - successionFlowInstance.IsEnd = isEndFeature; - successionFlowInstance.IsImplied = isImpliedFeature; - successionFlowInstance.IsImpliedIncluded = isImpliedIncludedFeature; - successionFlowInstance.IsOrdered = isOrderedFeature; - successionFlowInstance.IsPortion = isPortionFeature; - successionFlowInstance.IsSufficient = isSufficientFeature; - successionFlowInstance.IsUnique = isUniqueFeature; - successionFlowInstance.IsVariable = isVariableFeature; - successionFlowInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - successionFlowInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - successionFlowInstance.OwningRelatedElement = owningRelatedElementFeature; - successionFlowInstance.OwningRelationship = owningRelationshipFeature; - successionFlowInstance.Source = sourceFeature ?? new List(); - successionFlowInstance.Target = targetFeature ?? new List(); - - return successionFlowInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ISuccessionFlow ReadComplex(Dictionary dictionary) - { - var successionFlowInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - List targetFeature = (targetObject as List); - - - successionFlowInstance.AliasIds = aliasIdsFeature ?? new List(); - successionFlowInstance.DeclaredName = declaredNameFeature; - successionFlowInstance.DeclaredShortName = declaredShortNameFeature; - successionFlowInstance.Direction = directionFeature; - successionFlowInstance.ElementId = elementIdFeature; - successionFlowInstance.IsAbstract = isAbstractFeature; - successionFlowInstance.IsComposite = isCompositeFeature; - successionFlowInstance.IsConstant = isConstantFeature; - successionFlowInstance.IsDerived = isDerivedFeature; - successionFlowInstance.IsEnd = isEndFeature; - successionFlowInstance.IsImplied = isImpliedFeature; - successionFlowInstance.IsImpliedIncluded = isImpliedIncludedFeature; - successionFlowInstance.IsOrdered = isOrderedFeature; - successionFlowInstance.IsPortion = isPortionFeature; - successionFlowInstance.IsSufficient = isSufficientFeature; - successionFlowInstance.IsUnique = isUniqueFeature; - successionFlowInstance.IsVariable = isVariableFeature; - successionFlowInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - successionFlowInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - successionFlowInstance.OwningRelatedElement = owningRelatedElementFeature; - successionFlowInstance.OwningRelationship = owningRelationshipFeature; - successionFlowInstance.Source = sourceFeature ?? new List(); - successionFlowInstance.Target = targetFeature ?? new List(); - - return successionFlowInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISuccessionFlow DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - - var type = Convert.ToString(typeObject); - - if (type != "SuccessionFlow") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a SuccessionFlow"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlow"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var successionFlowInstance = new SysML2.NET.Core.DTO.SuccessionFlow - { - Id = id - }; - - return successionFlowInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionFlowUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionFlowUsageDictionaryReader.cs deleted file mode 100644 index e7497cedb..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/SuccessionFlowUsageDictionaryReader.cs +++ /dev/null @@ -1,549 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class SuccessionFlowUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ISuccessionFlowUsage ReadSimplified(Dictionary dictionary) - { - var successionFlowUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - successionFlowUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - successionFlowUsageInstance.DeclaredName = declaredNameFeature; - successionFlowUsageInstance.DeclaredShortName = declaredShortNameFeature; - successionFlowUsageInstance.Direction = directionFeature; - successionFlowUsageInstance.ElementId = elementIdFeature; - successionFlowUsageInstance.IsAbstract = isAbstractFeature; - successionFlowUsageInstance.IsComposite = isCompositeFeature; - successionFlowUsageInstance.IsConstant = isConstantFeature; - successionFlowUsageInstance.IsDerived = isDerivedFeature; - successionFlowUsageInstance.IsEnd = isEndFeature; - successionFlowUsageInstance.IsImplied = isImpliedFeature; - successionFlowUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - successionFlowUsageInstance.IsIndividual = isIndividualFeature; - successionFlowUsageInstance.IsOrdered = isOrderedFeature; - successionFlowUsageInstance.IsPortion = isPortionFeature; - successionFlowUsageInstance.IsSufficient = isSufficientFeature; - successionFlowUsageInstance.IsUnique = isUniqueFeature; - successionFlowUsageInstance.IsVariable = isVariableFeature; - successionFlowUsageInstance.IsVariation = isVariationFeature; - successionFlowUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - successionFlowUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - successionFlowUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - successionFlowUsageInstance.OwningRelationship = owningRelationshipFeature; - successionFlowUsageInstance.PortionKind = portionKindFeature; - successionFlowUsageInstance.Source = sourceFeature ?? new List(); - successionFlowUsageInstance.Target = targetFeature ?? new List(); - - return successionFlowUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ISuccessionFlowUsage ReadComplex(Dictionary dictionary) - { - var successionFlowUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - List targetFeature = (targetObject as List); - - - successionFlowUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - successionFlowUsageInstance.DeclaredName = declaredNameFeature; - successionFlowUsageInstance.DeclaredShortName = declaredShortNameFeature; - successionFlowUsageInstance.Direction = directionFeature; - successionFlowUsageInstance.ElementId = elementIdFeature; - successionFlowUsageInstance.IsAbstract = isAbstractFeature; - successionFlowUsageInstance.IsComposite = isCompositeFeature; - successionFlowUsageInstance.IsConstant = isConstantFeature; - successionFlowUsageInstance.IsDerived = isDerivedFeature; - successionFlowUsageInstance.IsEnd = isEndFeature; - successionFlowUsageInstance.IsImplied = isImpliedFeature; - successionFlowUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - successionFlowUsageInstance.IsIndividual = isIndividualFeature; - successionFlowUsageInstance.IsOrdered = isOrderedFeature; - successionFlowUsageInstance.IsPortion = isPortionFeature; - successionFlowUsageInstance.IsSufficient = isSufficientFeature; - successionFlowUsageInstance.IsUnique = isUniqueFeature; - successionFlowUsageInstance.IsVariable = isVariableFeature; - successionFlowUsageInstance.IsVariation = isVariationFeature; - successionFlowUsageInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - successionFlowUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - successionFlowUsageInstance.OwningRelatedElement = owningRelatedElementFeature; - successionFlowUsageInstance.OwningRelationship = owningRelationshipFeature; - successionFlowUsageInstance.PortionKind = portionKindFeature; - successionFlowUsageInstance.Source = sourceFeature ?? new List(); - successionFlowUsageInstance.Target = targetFeature ?? new List(); - - return successionFlowUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISuccessionFlowUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "SuccessionFlowUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a SuccessionFlowUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a SuccessionFlowUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var successionFlowUsageInstance = new SysML2.NET.Core.DTO.SuccessionFlowUsage - { - Id = id - }; - - return successionFlowUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TerminateActionUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TerminateActionUsageDictionaryReader.cs deleted file mode 100644 index 85e5b094e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TerminateActionUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class TerminateActionUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ITerminateActionUsage ReadSimplified(Dictionary dictionary) - { - var terminateActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - terminateActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - terminateActionUsageInstance.DeclaredName = declaredNameFeature; - terminateActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - terminateActionUsageInstance.Direction = directionFeature; - terminateActionUsageInstance.ElementId = elementIdFeature; - terminateActionUsageInstance.IsAbstract = isAbstractFeature; - terminateActionUsageInstance.IsComposite = isCompositeFeature; - terminateActionUsageInstance.IsConstant = isConstantFeature; - terminateActionUsageInstance.IsDerived = isDerivedFeature; - terminateActionUsageInstance.IsEnd = isEndFeature; - terminateActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - terminateActionUsageInstance.IsIndividual = isIndividualFeature; - terminateActionUsageInstance.IsOrdered = isOrderedFeature; - terminateActionUsageInstance.IsPortion = isPortionFeature; - terminateActionUsageInstance.IsSufficient = isSufficientFeature; - terminateActionUsageInstance.IsUnique = isUniqueFeature; - terminateActionUsageInstance.IsVariable = isVariableFeature; - terminateActionUsageInstance.IsVariation = isVariationFeature; - terminateActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - terminateActionUsageInstance.OwningRelationship = owningRelationshipFeature; - terminateActionUsageInstance.PortionKind = portionKindFeature; - - return terminateActionUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ITerminateActionUsage ReadComplex(Dictionary dictionary) - { - var terminateActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - terminateActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - terminateActionUsageInstance.DeclaredName = declaredNameFeature; - terminateActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - terminateActionUsageInstance.Direction = directionFeature; - terminateActionUsageInstance.ElementId = elementIdFeature; - terminateActionUsageInstance.IsAbstract = isAbstractFeature; - terminateActionUsageInstance.IsComposite = isCompositeFeature; - terminateActionUsageInstance.IsConstant = isConstantFeature; - terminateActionUsageInstance.IsDerived = isDerivedFeature; - terminateActionUsageInstance.IsEnd = isEndFeature; - terminateActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - terminateActionUsageInstance.IsIndividual = isIndividualFeature; - terminateActionUsageInstance.IsOrdered = isOrderedFeature; - terminateActionUsageInstance.IsPortion = isPortionFeature; - terminateActionUsageInstance.IsSufficient = isSufficientFeature; - terminateActionUsageInstance.IsUnique = isUniqueFeature; - terminateActionUsageInstance.IsVariable = isVariableFeature; - terminateActionUsageInstance.IsVariation = isVariationFeature; - terminateActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - terminateActionUsageInstance.OwningRelationship = owningRelationshipFeature; - terminateActionUsageInstance.PortionKind = portionKindFeature; - - return terminateActionUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ITerminateActionUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "TerminateActionUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a TerminateActionUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a TerminateActionUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var terminateActionUsageInstance = new SysML2.NET.Core.DTO.TerminateActionUsage - { - Id = id - }; - - return terminateActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TextualRepresentationDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TextualRepresentationDictionaryReader.cs deleted file mode 100644 index 45098f782..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TextualRepresentationDictionaryReader.cs +++ /dev/null @@ -1,311 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class TextualRepresentationDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ITextualRepresentation ReadSimplified(Dictionary dictionary) - { - var textualRepresentationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("body", out object bodyObject)) - { - throw new ArgumentException("The body property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - string bodyFeature = Convert.ToString(bodyObject); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("language", out object languageObject)) - { - throw new ArgumentException("The language property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - string languageFeature = Convert.ToString(languageObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - textualRepresentationInstance.AliasIds = aliasIdsFeature ?? new List(); - textualRepresentationInstance.Body = bodyFeature; - textualRepresentationInstance.DeclaredName = declaredNameFeature; - textualRepresentationInstance.DeclaredShortName = declaredShortNameFeature; - textualRepresentationInstance.ElementId = elementIdFeature; - textualRepresentationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - textualRepresentationInstance.Language = languageFeature; - textualRepresentationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - textualRepresentationInstance.OwningRelationship = owningRelationshipFeature; - - return textualRepresentationInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ITextualRepresentation ReadComplex(Dictionary dictionary) - { - var textualRepresentationInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("body", out object bodyObject)) - { - throw new ArgumentException("The body property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - string bodyFeature = Convert.ToString(bodyObject); - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("language", out object languageObject)) - { - throw new ArgumentException("The language property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - string languageFeature = Convert.ToString(languageObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - textualRepresentationInstance.AliasIds = aliasIdsFeature ?? new List(); - textualRepresentationInstance.Body = bodyFeature; - textualRepresentationInstance.DeclaredName = declaredNameFeature; - textualRepresentationInstance.DeclaredShortName = declaredShortNameFeature; - textualRepresentationInstance.ElementId = elementIdFeature; - textualRepresentationInstance.IsImpliedIncluded = isImpliedIncludedFeature; - textualRepresentationInstance.Language = languageFeature; - textualRepresentationInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - textualRepresentationInstance.OwningRelationship = owningRelationshipFeature; - - return textualRepresentationInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ITextualRepresentation DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - - var type = Convert.ToString(typeObject); - - if (type != "TextualRepresentation") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a TextualRepresentation"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a TextualRepresentation"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var textualRepresentationInstance = new SysML2.NET.Core.DTO.TextualRepresentation - { - Id = id - }; - - return textualRepresentationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TransitionFeatureMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TransitionFeatureMembershipDictionaryReader.cs deleted file mode 100644 index ea8f0c874..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TransitionFeatureMembershipDictionaryReader.cs +++ /dev/null @@ -1,423 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class TransitionFeatureMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ITransitionFeatureMembership ReadSimplified(Dictionary dictionary) - { - var transitionFeatureMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("kind", out object kindObject)) - { - throw new ArgumentException("The kind property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - TransitionFeatureKind kindFeature = (TransitionFeatureKind)Enum.Parse(typeof(TransitionFeatureKind), Convert.ToString(kindObject), true); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - transitionFeatureMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - transitionFeatureMembershipInstance.DeclaredName = declaredNameFeature; - transitionFeatureMembershipInstance.DeclaredShortName = declaredShortNameFeature; - transitionFeatureMembershipInstance.ElementId = elementIdFeature; - transitionFeatureMembershipInstance.IsImplied = isImpliedFeature; - transitionFeatureMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - transitionFeatureMembershipInstance.Kind = kindFeature; - transitionFeatureMembershipInstance.MemberElement = memberElementFeature; - transitionFeatureMembershipInstance.MemberName = memberNameFeature; - transitionFeatureMembershipInstance.MemberShortName = memberShortNameFeature; - transitionFeatureMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - transitionFeatureMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - transitionFeatureMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - transitionFeatureMembershipInstance.OwningRelationship = owningRelationshipFeature; - transitionFeatureMembershipInstance.Source = sourceFeature ?? new List(); - transitionFeatureMembershipInstance.Target = targetFeature ?? new List(); - transitionFeatureMembershipInstance.Visibility = visibilityFeature; - - return transitionFeatureMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ITransitionFeatureMembership ReadComplex(Dictionary dictionary) - { - var transitionFeatureMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("kind", out object kindObject)) - { - throw new ArgumentException("The kind property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - TransitionFeatureKind kindFeature = (TransitionFeatureKind)kindObject; - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - transitionFeatureMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - transitionFeatureMembershipInstance.DeclaredName = declaredNameFeature; - transitionFeatureMembershipInstance.DeclaredShortName = declaredShortNameFeature; - transitionFeatureMembershipInstance.ElementId = elementIdFeature; - transitionFeatureMembershipInstance.IsImplied = isImpliedFeature; - transitionFeatureMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - transitionFeatureMembershipInstance.Kind = kindFeature; - transitionFeatureMembershipInstance.MemberElement = memberElementFeature; - transitionFeatureMembershipInstance.MemberName = memberNameFeature; - transitionFeatureMembershipInstance.MemberShortName = memberShortNameFeature; - transitionFeatureMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - transitionFeatureMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - transitionFeatureMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - transitionFeatureMembershipInstance.OwningRelationship = owningRelationshipFeature; - transitionFeatureMembershipInstance.Source = sourceFeature ?? new List(); - transitionFeatureMembershipInstance.Target = targetFeature ?? new List(); - transitionFeatureMembershipInstance.Visibility = visibilityFeature; - - return transitionFeatureMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ITransitionFeatureMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "TransitionFeatureMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a TransitionFeatureMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a TransitionFeatureMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var transitionFeatureMembershipInstance = new SysML2.NET.Core.DTO.TransitionFeatureMembership - { - Id = id - }; - - return transitionFeatureMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TransitionUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TransitionUsageDictionaryReader.cs deleted file mode 100644 index f88058b9a..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TransitionUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class TransitionUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ITransitionUsage ReadSimplified(Dictionary dictionary) - { - var transitionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - transitionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - transitionUsageInstance.DeclaredName = declaredNameFeature; - transitionUsageInstance.DeclaredShortName = declaredShortNameFeature; - transitionUsageInstance.Direction = directionFeature; - transitionUsageInstance.ElementId = elementIdFeature; - transitionUsageInstance.IsAbstract = isAbstractFeature; - transitionUsageInstance.IsComposite = isCompositeFeature; - transitionUsageInstance.IsConstant = isConstantFeature; - transitionUsageInstance.IsDerived = isDerivedFeature; - transitionUsageInstance.IsEnd = isEndFeature; - transitionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - transitionUsageInstance.IsIndividual = isIndividualFeature; - transitionUsageInstance.IsOrdered = isOrderedFeature; - transitionUsageInstance.IsPortion = isPortionFeature; - transitionUsageInstance.IsSufficient = isSufficientFeature; - transitionUsageInstance.IsUnique = isUniqueFeature; - transitionUsageInstance.IsVariable = isVariableFeature; - transitionUsageInstance.IsVariation = isVariationFeature; - transitionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - transitionUsageInstance.OwningRelationship = owningRelationshipFeature; - transitionUsageInstance.PortionKind = portionKindFeature; - - return transitionUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ITransitionUsage ReadComplex(Dictionary dictionary) - { - var transitionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - transitionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - transitionUsageInstance.DeclaredName = declaredNameFeature; - transitionUsageInstance.DeclaredShortName = declaredShortNameFeature; - transitionUsageInstance.Direction = directionFeature; - transitionUsageInstance.ElementId = elementIdFeature; - transitionUsageInstance.IsAbstract = isAbstractFeature; - transitionUsageInstance.IsComposite = isCompositeFeature; - transitionUsageInstance.IsConstant = isConstantFeature; - transitionUsageInstance.IsDerived = isDerivedFeature; - transitionUsageInstance.IsEnd = isEndFeature; - transitionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - transitionUsageInstance.IsIndividual = isIndividualFeature; - transitionUsageInstance.IsOrdered = isOrderedFeature; - transitionUsageInstance.IsPortion = isPortionFeature; - transitionUsageInstance.IsSufficient = isSufficientFeature; - transitionUsageInstance.IsUnique = isUniqueFeature; - transitionUsageInstance.IsVariable = isVariableFeature; - transitionUsageInstance.IsVariation = isVariationFeature; - transitionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - transitionUsageInstance.OwningRelationship = owningRelationshipFeature; - transitionUsageInstance.PortionKind = portionKindFeature; - - return transitionUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ITransitionUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "TransitionUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a TransitionUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a TransitionUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var transitionUsageInstance = new SysML2.NET.Core.DTO.TransitionUsage - { - Id = id - }; - - return transitionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TriggerInvocationExpressionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TriggerInvocationExpressionDictionaryReader.cs deleted file mode 100644 index 8615a4740..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TriggerInvocationExpressionDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class TriggerInvocationExpressionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ITriggerInvocationExpression ReadSimplified(Dictionary dictionary) - { - var triggerInvocationExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("kind", out object kindObject)) - { - throw new ArgumentException("The kind property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - TriggerKind kindFeature = (TriggerKind)Enum.Parse(typeof(TriggerKind), Convert.ToString(kindObject), true); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - triggerInvocationExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - triggerInvocationExpressionInstance.DeclaredName = declaredNameFeature; - triggerInvocationExpressionInstance.DeclaredShortName = declaredShortNameFeature; - triggerInvocationExpressionInstance.Direction = directionFeature; - triggerInvocationExpressionInstance.ElementId = elementIdFeature; - triggerInvocationExpressionInstance.IsAbstract = isAbstractFeature; - triggerInvocationExpressionInstance.IsComposite = isCompositeFeature; - triggerInvocationExpressionInstance.IsConstant = isConstantFeature; - triggerInvocationExpressionInstance.IsDerived = isDerivedFeature; - triggerInvocationExpressionInstance.IsEnd = isEndFeature; - triggerInvocationExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - triggerInvocationExpressionInstance.IsOrdered = isOrderedFeature; - triggerInvocationExpressionInstance.IsPortion = isPortionFeature; - triggerInvocationExpressionInstance.IsSufficient = isSufficientFeature; - triggerInvocationExpressionInstance.IsUnique = isUniqueFeature; - triggerInvocationExpressionInstance.IsVariable = isVariableFeature; - triggerInvocationExpressionInstance.Kind = kindFeature; - triggerInvocationExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - triggerInvocationExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return triggerInvocationExpressionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ITriggerInvocationExpression ReadComplex(Dictionary dictionary) - { - var triggerInvocationExpressionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("kind", out object kindObject)) - { - throw new ArgumentException("The kind property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - TriggerKind kindFeature = (TriggerKind)kindObject; - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - triggerInvocationExpressionInstance.AliasIds = aliasIdsFeature ?? new List(); - triggerInvocationExpressionInstance.DeclaredName = declaredNameFeature; - triggerInvocationExpressionInstance.DeclaredShortName = declaredShortNameFeature; - triggerInvocationExpressionInstance.Direction = directionFeature; - triggerInvocationExpressionInstance.ElementId = elementIdFeature; - triggerInvocationExpressionInstance.IsAbstract = isAbstractFeature; - triggerInvocationExpressionInstance.IsComposite = isCompositeFeature; - triggerInvocationExpressionInstance.IsConstant = isConstantFeature; - triggerInvocationExpressionInstance.IsDerived = isDerivedFeature; - triggerInvocationExpressionInstance.IsEnd = isEndFeature; - triggerInvocationExpressionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - triggerInvocationExpressionInstance.IsOrdered = isOrderedFeature; - triggerInvocationExpressionInstance.IsPortion = isPortionFeature; - triggerInvocationExpressionInstance.IsSufficient = isSufficientFeature; - triggerInvocationExpressionInstance.IsUnique = isUniqueFeature; - triggerInvocationExpressionInstance.IsVariable = isVariableFeature; - triggerInvocationExpressionInstance.Kind = kindFeature; - triggerInvocationExpressionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - triggerInvocationExpressionInstance.OwningRelationship = owningRelationshipFeature; - - return triggerInvocationExpressionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ITriggerInvocationExpression DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - - var type = Convert.ToString(typeObject); - - if (type != "TriggerInvocationExpression") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a TriggerInvocationExpression"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a TriggerInvocationExpression"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var triggerInvocationExpressionInstance = new SysML2.NET.Core.DTO.TriggerInvocationExpression - { - Id = id - }; - - return triggerInvocationExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TypeDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TypeDictionaryReader.cs deleted file mode 100644 index 12e71b1e0..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TypeDictionaryReader.cs +++ /dev/null @@ -1,311 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class TypeDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IType ReadSimplified(Dictionary dictionary) - { - var typeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - typeInstance.AliasIds = aliasIdsFeature ?? new List(); - typeInstance.DeclaredName = declaredNameFeature; - typeInstance.DeclaredShortName = declaredShortNameFeature; - typeInstance.ElementId = elementIdFeature; - typeInstance.IsAbstract = isAbstractFeature; - typeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - typeInstance.IsSufficient = isSufficientFeature; - typeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - typeInstance.OwningRelationship = owningRelationshipFeature; - - return typeInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IType ReadComplex(Dictionary dictionary) - { - var typeInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - typeInstance.AliasIds = aliasIdsFeature ?? new List(); - typeInstance.DeclaredName = declaredNameFeature; - typeInstance.DeclaredShortName = declaredShortNameFeature; - typeInstance.ElementId = elementIdFeature; - typeInstance.IsAbstract = isAbstractFeature; - typeInstance.IsImpliedIncluded = isImpliedIncludedFeature; - typeInstance.IsSufficient = isSufficientFeature; - typeInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - typeInstance.OwningRelationship = owningRelationshipFeature; - - return typeInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IType DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Type") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Type"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Type"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var typeInstance = new SysML2.NET.Core.DTO.Type - { - Id = id - }; - - return typeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TypeFeaturingDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TypeFeaturingDictionaryReader.cs deleted file mode 100644 index 557c883b1..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/TypeFeaturingDictionaryReader.cs +++ /dev/null @@ -1,381 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class TypeFeaturingDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static ITypeFeaturing ReadSimplified(Dictionary dictionary) - { - var typeFeaturingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("featureOfType", out object featureOfTypeObject)) - { - throw new ArgumentException("The featureOfType property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - Guid featureOfTypeFeature = Guid.Parse(Convert.ToString(featureOfTypeObject)); - - if (!dictionary.TryGetValue("featuringType", out object featuringTypeObject)) - { - throw new ArgumentException("The featuringType property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - Guid featuringTypeFeature = Guid.Parse(Convert.ToString(featuringTypeObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - - typeFeaturingInstance.AliasIds = aliasIdsFeature ?? new List(); - typeFeaturingInstance.DeclaredName = declaredNameFeature; - typeFeaturingInstance.DeclaredShortName = declaredShortNameFeature; - typeFeaturingInstance.ElementId = elementIdFeature; - typeFeaturingInstance.FeatureOfType = featureOfTypeFeature; - typeFeaturingInstance.FeaturingType = featuringTypeFeature; - typeFeaturingInstance.IsImplied = isImpliedFeature; - typeFeaturingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - typeFeaturingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - typeFeaturingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - typeFeaturingInstance.OwningRelatedElement = owningRelatedElementFeature; - typeFeaturingInstance.OwningRelationship = owningRelationshipFeature; - typeFeaturingInstance.Source = sourceFeature ?? new List(); - typeFeaturingInstance.Target = targetFeature ?? new List(); - - return typeFeaturingInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static ITypeFeaturing ReadComplex(Dictionary dictionary) - { - var typeFeaturingInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("featureOfType", out object featureOfTypeObject)) - { - throw new ArgumentException("The featureOfType property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - Guid featureOfTypeFeature = Guid.Parse(Convert.ToString(featureOfTypeObject)); - - if (!dictionary.TryGetValue("featuringType", out object featuringTypeObject)) - { - throw new ArgumentException("The featuringType property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - Guid featuringTypeFeature = Guid.Parse(Convert.ToString(featuringTypeObject)); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - List targetFeature = (targetObject as List); - - - typeFeaturingInstance.AliasIds = aliasIdsFeature ?? new List(); - typeFeaturingInstance.DeclaredName = declaredNameFeature; - typeFeaturingInstance.DeclaredShortName = declaredShortNameFeature; - typeFeaturingInstance.ElementId = elementIdFeature; - typeFeaturingInstance.FeatureOfType = featureOfTypeFeature; - typeFeaturingInstance.FeaturingType = featuringTypeFeature; - typeFeaturingInstance.IsImplied = isImpliedFeature; - typeFeaturingInstance.IsImpliedIncluded = isImpliedIncludedFeature; - typeFeaturingInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - typeFeaturingInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - typeFeaturingInstance.OwningRelatedElement = owningRelatedElementFeature; - typeFeaturingInstance.OwningRelationship = owningRelationshipFeature; - typeFeaturingInstance.Source = sourceFeature ?? new List(); - typeFeaturingInstance.Target = targetFeature ?? new List(); - - return typeFeaturingInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ITypeFeaturing DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - - var type = Convert.ToString(typeObject); - - if (type != "TypeFeaturing") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a TypeFeaturing"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a TypeFeaturing"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var typeFeaturingInstance = new SysML2.NET.Core.DTO.TypeFeaturing - { - Id = id - }; - - return typeFeaturingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UnioningDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UnioningDictionaryReader.cs deleted file mode 100644 index a6ce71367..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UnioningDictionaryReader.cs +++ /dev/null @@ -1,367 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class UnioningDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IUnioning ReadSimplified(Dictionary dictionary) - { - var unioningInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("unioningType", out object unioningTypeObject)) - { - throw new ArgumentException("The unioningType property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - Guid unioningTypeFeature = Guid.Parse(Convert.ToString(unioningTypeObject)); - - - unioningInstance.AliasIds = aliasIdsFeature ?? new List(); - unioningInstance.DeclaredName = declaredNameFeature; - unioningInstance.DeclaredShortName = declaredShortNameFeature; - unioningInstance.ElementId = elementIdFeature; - unioningInstance.IsImplied = isImpliedFeature; - unioningInstance.IsImpliedIncluded = isImpliedIncludedFeature; - unioningInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - unioningInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - unioningInstance.OwningRelatedElement = owningRelatedElementFeature; - unioningInstance.OwningRelationship = owningRelationshipFeature; - unioningInstance.Source = sourceFeature ?? new List(); - unioningInstance.Target = targetFeature ?? new List(); - unioningInstance.UnioningType = unioningTypeFeature; - - return unioningInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IUnioning ReadComplex(Dictionary dictionary) - { - var unioningInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("unioningType", out object unioningTypeObject)) - { - throw new ArgumentException("The unioningType property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - Guid unioningTypeFeature = Guid.Parse(Convert.ToString(unioningTypeObject)); - - - unioningInstance.AliasIds = aliasIdsFeature ?? new List(); - unioningInstance.DeclaredName = declaredNameFeature; - unioningInstance.DeclaredShortName = declaredShortNameFeature; - unioningInstance.ElementId = elementIdFeature; - unioningInstance.IsImplied = isImpliedFeature; - unioningInstance.IsImpliedIncluded = isImpliedIncludedFeature; - unioningInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - unioningInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - unioningInstance.OwningRelatedElement = owningRelatedElementFeature; - unioningInstance.OwningRelationship = owningRelationshipFeature; - unioningInstance.Source = sourceFeature ?? new List(); - unioningInstance.Target = targetFeature ?? new List(); - unioningInstance.UnioningType = unioningTypeFeature; - - return unioningInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IUnioning DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Unioning") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Unioning"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Unioning"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var unioningInstance = new SysML2.NET.Core.DTO.Unioning - { - Id = id - }; - - return unioningInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UsageDictionaryReader.cs deleted file mode 100644 index b4ef3aa3c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UsageDictionaryReader.cs +++ /dev/null @@ -1,451 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class UsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IUsage ReadSimplified(Dictionary dictionary) - { - var usageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - usageInstance.AliasIds = aliasIdsFeature ?? new List(); - usageInstance.DeclaredName = declaredNameFeature; - usageInstance.DeclaredShortName = declaredShortNameFeature; - usageInstance.Direction = directionFeature; - usageInstance.ElementId = elementIdFeature; - usageInstance.IsAbstract = isAbstractFeature; - usageInstance.IsComposite = isCompositeFeature; - usageInstance.IsConstant = isConstantFeature; - usageInstance.IsDerived = isDerivedFeature; - usageInstance.IsEnd = isEndFeature; - usageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - usageInstance.IsOrdered = isOrderedFeature; - usageInstance.IsPortion = isPortionFeature; - usageInstance.IsSufficient = isSufficientFeature; - usageInstance.IsUnique = isUniqueFeature; - usageInstance.IsVariable = isVariableFeature; - usageInstance.IsVariation = isVariationFeature; - usageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - usageInstance.OwningRelationship = owningRelationshipFeature; - - return usageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IUsage ReadComplex(Dictionary dictionary) - { - var usageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - usageInstance.AliasIds = aliasIdsFeature ?? new List(); - usageInstance.DeclaredName = declaredNameFeature; - usageInstance.DeclaredShortName = declaredShortNameFeature; - usageInstance.Direction = directionFeature; - usageInstance.ElementId = elementIdFeature; - usageInstance.IsAbstract = isAbstractFeature; - usageInstance.IsComposite = isCompositeFeature; - usageInstance.IsConstant = isConstantFeature; - usageInstance.IsDerived = isDerivedFeature; - usageInstance.IsEnd = isEndFeature; - usageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - usageInstance.IsOrdered = isOrderedFeature; - usageInstance.IsPortion = isPortionFeature; - usageInstance.IsSufficient = isSufficientFeature; - usageInstance.IsUnique = isUniqueFeature; - usageInstance.IsVariable = isVariableFeature; - usageInstance.IsVariation = isVariationFeature; - usageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - usageInstance.OwningRelationship = owningRelationshipFeature; - - return usageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "Usage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a Usage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a Usage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var usageInstance = new SysML2.NET.Core.DTO.Usage - { - Id = id - }; - - return usageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UseCaseDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UseCaseDefinitionDictionaryReader.cs deleted file mode 100644 index e946687e9..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UseCaseDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class UseCaseDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IUseCaseDefinition ReadSimplified(Dictionary dictionary) - { - var useCaseDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - useCaseDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - useCaseDefinitionInstance.DeclaredName = declaredNameFeature; - useCaseDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - useCaseDefinitionInstance.ElementId = elementIdFeature; - useCaseDefinitionInstance.IsAbstract = isAbstractFeature; - useCaseDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - useCaseDefinitionInstance.IsIndividual = isIndividualFeature; - useCaseDefinitionInstance.IsSufficient = isSufficientFeature; - useCaseDefinitionInstance.IsVariation = isVariationFeature; - useCaseDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - useCaseDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return useCaseDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IUseCaseDefinition ReadComplex(Dictionary dictionary) - { - var useCaseDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - useCaseDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - useCaseDefinitionInstance.DeclaredName = declaredNameFeature; - useCaseDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - useCaseDefinitionInstance.ElementId = elementIdFeature; - useCaseDefinitionInstance.IsAbstract = isAbstractFeature; - useCaseDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - useCaseDefinitionInstance.IsIndividual = isIndividualFeature; - useCaseDefinitionInstance.IsSufficient = isSufficientFeature; - useCaseDefinitionInstance.IsVariation = isVariationFeature; - useCaseDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - useCaseDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return useCaseDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IUseCaseDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "UseCaseDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a UseCaseDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a UseCaseDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var useCaseDefinitionInstance = new SysML2.NET.Core.DTO.UseCaseDefinition - { - Id = id - }; - - return useCaseDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UseCaseUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UseCaseUsageDictionaryReader.cs deleted file mode 100644 index 35f34277e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/UseCaseUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class UseCaseUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IUseCaseUsage ReadSimplified(Dictionary dictionary) - { - var useCaseUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - useCaseUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - useCaseUsageInstance.DeclaredName = declaredNameFeature; - useCaseUsageInstance.DeclaredShortName = declaredShortNameFeature; - useCaseUsageInstance.Direction = directionFeature; - useCaseUsageInstance.ElementId = elementIdFeature; - useCaseUsageInstance.IsAbstract = isAbstractFeature; - useCaseUsageInstance.IsComposite = isCompositeFeature; - useCaseUsageInstance.IsConstant = isConstantFeature; - useCaseUsageInstance.IsDerived = isDerivedFeature; - useCaseUsageInstance.IsEnd = isEndFeature; - useCaseUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - useCaseUsageInstance.IsIndividual = isIndividualFeature; - useCaseUsageInstance.IsOrdered = isOrderedFeature; - useCaseUsageInstance.IsPortion = isPortionFeature; - useCaseUsageInstance.IsSufficient = isSufficientFeature; - useCaseUsageInstance.IsUnique = isUniqueFeature; - useCaseUsageInstance.IsVariable = isVariableFeature; - useCaseUsageInstance.IsVariation = isVariationFeature; - useCaseUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - useCaseUsageInstance.OwningRelationship = owningRelationshipFeature; - useCaseUsageInstance.PortionKind = portionKindFeature; - - return useCaseUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IUseCaseUsage ReadComplex(Dictionary dictionary) - { - var useCaseUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - useCaseUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - useCaseUsageInstance.DeclaredName = declaredNameFeature; - useCaseUsageInstance.DeclaredShortName = declaredShortNameFeature; - useCaseUsageInstance.Direction = directionFeature; - useCaseUsageInstance.ElementId = elementIdFeature; - useCaseUsageInstance.IsAbstract = isAbstractFeature; - useCaseUsageInstance.IsComposite = isCompositeFeature; - useCaseUsageInstance.IsConstant = isConstantFeature; - useCaseUsageInstance.IsDerived = isDerivedFeature; - useCaseUsageInstance.IsEnd = isEndFeature; - useCaseUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - useCaseUsageInstance.IsIndividual = isIndividualFeature; - useCaseUsageInstance.IsOrdered = isOrderedFeature; - useCaseUsageInstance.IsPortion = isPortionFeature; - useCaseUsageInstance.IsSufficient = isSufficientFeature; - useCaseUsageInstance.IsUnique = isUniqueFeature; - useCaseUsageInstance.IsVariable = isVariableFeature; - useCaseUsageInstance.IsVariation = isVariationFeature; - useCaseUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - useCaseUsageInstance.OwningRelationship = owningRelationshipFeature; - useCaseUsageInstance.PortionKind = portionKindFeature; - - return useCaseUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IUseCaseUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "UseCaseUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a UseCaseUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a UseCaseUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var useCaseUsageInstance = new SysML2.NET.Core.DTO.UseCaseUsage - { - Id = id - }; - - return useCaseUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/VariantMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/VariantMembershipDictionaryReader.cs deleted file mode 100644 index cef1287db..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/VariantMembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class VariantMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IVariantMembership ReadSimplified(Dictionary dictionary) - { - var variantMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - variantMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - variantMembershipInstance.DeclaredName = declaredNameFeature; - variantMembershipInstance.DeclaredShortName = declaredShortNameFeature; - variantMembershipInstance.ElementId = elementIdFeature; - variantMembershipInstance.IsImplied = isImpliedFeature; - variantMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - variantMembershipInstance.MemberElement = memberElementFeature; - variantMembershipInstance.MemberName = memberNameFeature; - variantMembershipInstance.MemberShortName = memberShortNameFeature; - variantMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - variantMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - variantMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - variantMembershipInstance.OwningRelationship = owningRelationshipFeature; - variantMembershipInstance.Source = sourceFeature ?? new List(); - variantMembershipInstance.Target = targetFeature ?? new List(); - variantMembershipInstance.Visibility = visibilityFeature; - - return variantMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IVariantMembership ReadComplex(Dictionary dictionary) - { - var variantMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - variantMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - variantMembershipInstance.DeclaredName = declaredNameFeature; - variantMembershipInstance.DeclaredShortName = declaredShortNameFeature; - variantMembershipInstance.ElementId = elementIdFeature; - variantMembershipInstance.IsImplied = isImpliedFeature; - variantMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - variantMembershipInstance.MemberElement = memberElementFeature; - variantMembershipInstance.MemberName = memberNameFeature; - variantMembershipInstance.MemberShortName = memberShortNameFeature; - variantMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - variantMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - variantMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - variantMembershipInstance.OwningRelationship = owningRelationshipFeature; - variantMembershipInstance.Source = sourceFeature ?? new List(); - variantMembershipInstance.Target = targetFeature ?? new List(); - variantMembershipInstance.Visibility = visibilityFeature; - - return variantMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IVariantMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "VariantMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a VariantMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a VariantMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var variantMembershipInstance = new SysML2.NET.Core.DTO.VariantMembership - { - Id = id - }; - - return variantMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/VerificationCaseDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/VerificationCaseDefinitionDictionaryReader.cs deleted file mode 100644 index 5ae6edce4..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/VerificationCaseDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class VerificationCaseDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IVerificationCaseDefinition ReadSimplified(Dictionary dictionary) - { - var verificationCaseDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - verificationCaseDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - verificationCaseDefinitionInstance.DeclaredName = declaredNameFeature; - verificationCaseDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - verificationCaseDefinitionInstance.ElementId = elementIdFeature; - verificationCaseDefinitionInstance.IsAbstract = isAbstractFeature; - verificationCaseDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - verificationCaseDefinitionInstance.IsIndividual = isIndividualFeature; - verificationCaseDefinitionInstance.IsSufficient = isSufficientFeature; - verificationCaseDefinitionInstance.IsVariation = isVariationFeature; - verificationCaseDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - verificationCaseDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return verificationCaseDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IVerificationCaseDefinition ReadComplex(Dictionary dictionary) - { - var verificationCaseDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - verificationCaseDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - verificationCaseDefinitionInstance.DeclaredName = declaredNameFeature; - verificationCaseDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - verificationCaseDefinitionInstance.ElementId = elementIdFeature; - verificationCaseDefinitionInstance.IsAbstract = isAbstractFeature; - verificationCaseDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - verificationCaseDefinitionInstance.IsIndividual = isIndividualFeature; - verificationCaseDefinitionInstance.IsSufficient = isSufficientFeature; - verificationCaseDefinitionInstance.IsVariation = isVariationFeature; - verificationCaseDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - verificationCaseDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return verificationCaseDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IVerificationCaseDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "VerificationCaseDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a VerificationCaseDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var verificationCaseDefinitionInstance = new SysML2.NET.Core.DTO.VerificationCaseDefinition - { - Id = id - }; - - return verificationCaseDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/VerificationCaseUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/VerificationCaseUsageDictionaryReader.cs deleted file mode 100644 index f843f91f5..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/VerificationCaseUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class VerificationCaseUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IVerificationCaseUsage ReadSimplified(Dictionary dictionary) - { - var verificationCaseUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - verificationCaseUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - verificationCaseUsageInstance.DeclaredName = declaredNameFeature; - verificationCaseUsageInstance.DeclaredShortName = declaredShortNameFeature; - verificationCaseUsageInstance.Direction = directionFeature; - verificationCaseUsageInstance.ElementId = elementIdFeature; - verificationCaseUsageInstance.IsAbstract = isAbstractFeature; - verificationCaseUsageInstance.IsComposite = isCompositeFeature; - verificationCaseUsageInstance.IsConstant = isConstantFeature; - verificationCaseUsageInstance.IsDerived = isDerivedFeature; - verificationCaseUsageInstance.IsEnd = isEndFeature; - verificationCaseUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - verificationCaseUsageInstance.IsIndividual = isIndividualFeature; - verificationCaseUsageInstance.IsOrdered = isOrderedFeature; - verificationCaseUsageInstance.IsPortion = isPortionFeature; - verificationCaseUsageInstance.IsSufficient = isSufficientFeature; - verificationCaseUsageInstance.IsUnique = isUniqueFeature; - verificationCaseUsageInstance.IsVariable = isVariableFeature; - verificationCaseUsageInstance.IsVariation = isVariationFeature; - verificationCaseUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - verificationCaseUsageInstance.OwningRelationship = owningRelationshipFeature; - verificationCaseUsageInstance.PortionKind = portionKindFeature; - - return verificationCaseUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IVerificationCaseUsage ReadComplex(Dictionary dictionary) - { - var verificationCaseUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - verificationCaseUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - verificationCaseUsageInstance.DeclaredName = declaredNameFeature; - verificationCaseUsageInstance.DeclaredShortName = declaredShortNameFeature; - verificationCaseUsageInstance.Direction = directionFeature; - verificationCaseUsageInstance.ElementId = elementIdFeature; - verificationCaseUsageInstance.IsAbstract = isAbstractFeature; - verificationCaseUsageInstance.IsComposite = isCompositeFeature; - verificationCaseUsageInstance.IsConstant = isConstantFeature; - verificationCaseUsageInstance.IsDerived = isDerivedFeature; - verificationCaseUsageInstance.IsEnd = isEndFeature; - verificationCaseUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - verificationCaseUsageInstance.IsIndividual = isIndividualFeature; - verificationCaseUsageInstance.IsOrdered = isOrderedFeature; - verificationCaseUsageInstance.IsPortion = isPortionFeature; - verificationCaseUsageInstance.IsSufficient = isSufficientFeature; - verificationCaseUsageInstance.IsUnique = isUniqueFeature; - verificationCaseUsageInstance.IsVariable = isVariableFeature; - verificationCaseUsageInstance.IsVariation = isVariationFeature; - verificationCaseUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - verificationCaseUsageInstance.OwningRelationship = owningRelationshipFeature; - verificationCaseUsageInstance.PortionKind = portionKindFeature; - - return verificationCaseUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IVerificationCaseUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "VerificationCaseUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a VerificationCaseUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a VerificationCaseUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var verificationCaseUsageInstance = new SysML2.NET.Core.DTO.VerificationCaseUsage - { - Id = id - }; - - return verificationCaseUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewDefinitionDictionaryReader.cs deleted file mode 100644 index 7b54f6724..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewDefinitionDictionaryReader.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ViewDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IViewDefinition ReadSimplified(Dictionary dictionary) - { - var viewDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - - viewDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - viewDefinitionInstance.DeclaredName = declaredNameFeature; - viewDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - viewDefinitionInstance.ElementId = elementIdFeature; - viewDefinitionInstance.IsAbstract = isAbstractFeature; - viewDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - viewDefinitionInstance.IsIndividual = isIndividualFeature; - viewDefinitionInstance.IsSufficient = isSufficientFeature; - viewDefinitionInstance.IsVariation = isVariationFeature; - viewDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - viewDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return viewDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IViewDefinition ReadComplex(Dictionary dictionary) - { - var viewDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - - viewDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - viewDefinitionInstance.DeclaredName = declaredNameFeature; - viewDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - viewDefinitionInstance.ElementId = elementIdFeature; - viewDefinitionInstance.IsAbstract = isAbstractFeature; - viewDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - viewDefinitionInstance.IsIndividual = isIndividualFeature; - viewDefinitionInstance.IsSufficient = isSufficientFeature; - viewDefinitionInstance.IsVariation = isVariationFeature; - viewDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - viewDefinitionInstance.OwningRelationship = owningRelationshipFeature; - - return viewDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IViewDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ViewDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ViewDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ViewDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var viewDefinitionInstance = new SysML2.NET.Core.DTO.ViewDefinition - { - Id = id - }; - - return viewDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewRenderingMembershipDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewRenderingMembershipDictionaryReader.cs deleted file mode 100644 index cba434876..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewRenderingMembershipDictionaryReader.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ViewRenderingMembershipDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IViewRenderingMembership ReadSimplified(Dictionary dictionary) - { - var viewRenderingMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - Guid? owningRelatedElementFeature = owningRelatedElementObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelatedElementObject)); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - List sourceFeature = (sourceObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - List targetFeature = (targetObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)Enum.Parse(typeof(VisibilityKind), Convert.ToString(visibilityObject), true); - - - viewRenderingMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - viewRenderingMembershipInstance.DeclaredName = declaredNameFeature; - viewRenderingMembershipInstance.DeclaredShortName = declaredShortNameFeature; - viewRenderingMembershipInstance.ElementId = elementIdFeature; - viewRenderingMembershipInstance.IsImplied = isImpliedFeature; - viewRenderingMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - viewRenderingMembershipInstance.MemberElement = memberElementFeature; - viewRenderingMembershipInstance.MemberName = memberNameFeature; - viewRenderingMembershipInstance.MemberShortName = memberShortNameFeature; - viewRenderingMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - viewRenderingMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - viewRenderingMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - viewRenderingMembershipInstance.OwningRelationship = owningRelationshipFeature; - viewRenderingMembershipInstance.Source = sourceFeature ?? new List(); - viewRenderingMembershipInstance.Target = targetFeature ?? new List(); - viewRenderingMembershipInstance.Visibility = visibilityFeature; - - return viewRenderingMembershipInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IViewRenderingMembership ReadComplex(Dictionary dictionary) - { - var viewRenderingMembershipInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isImplied", out object isImpliedObject)) - { - throw new ArgumentException("The isImplied property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - bool isImpliedFeature = Convert.ToBoolean(isImpliedObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("memberElement", out object memberElementObject)) - { - throw new ArgumentException("The memberElement property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - Guid memberElementFeature = Guid.Parse(Convert.ToString(memberElementObject)); - - if (!dictionary.TryGetValue("memberName", out object memberNameObject)) - { - throw new ArgumentException("The memberName property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - string memberNameFeature = memberNameObject == null ? null : Convert.ToString(memberNameObject); - - if (!dictionary.TryGetValue("memberShortName", out object memberShortNameObject)) - { - throw new ArgumentException("The memberShortName property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - string memberShortNameFeature = memberShortNameObject == null ? null : Convert.ToString(memberShortNameObject); - - if (!dictionary.TryGetValue("ownedRelatedElement", out object ownedRelatedElementObject)) - { - throw new ArgumentException("The ownedRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - List ownedRelatedElementFeature = (ownedRelatedElementObject as List); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelatedElement", out object owningRelatedElementObject)) - { - throw new ArgumentException("The owningRelatedElement property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - Guid? owningRelatedElementFeature = (Guid?)owningRelatedElementObject; - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("source", out object sourceObject)) - { - throw new ArgumentException("The source property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - List sourceFeature = (sourceObject as List); - - if (!dictionary.TryGetValue("target", out object targetObject)) - { - throw new ArgumentException("The target property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - List targetFeature = (targetObject as List); - - if (!dictionary.TryGetValue("visibility", out object visibilityObject)) - { - throw new ArgumentException("The visibility property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - VisibilityKind visibilityFeature = (VisibilityKind)visibilityObject; - - - viewRenderingMembershipInstance.AliasIds = aliasIdsFeature ?? new List(); - viewRenderingMembershipInstance.DeclaredName = declaredNameFeature; - viewRenderingMembershipInstance.DeclaredShortName = declaredShortNameFeature; - viewRenderingMembershipInstance.ElementId = elementIdFeature; - viewRenderingMembershipInstance.IsImplied = isImpliedFeature; - viewRenderingMembershipInstance.IsImpliedIncluded = isImpliedIncludedFeature; - viewRenderingMembershipInstance.MemberElement = memberElementFeature; - viewRenderingMembershipInstance.MemberName = memberNameFeature; - viewRenderingMembershipInstance.MemberShortName = memberShortNameFeature; - viewRenderingMembershipInstance.OwnedRelatedElement = ownedRelatedElementFeature ?? new List(); - viewRenderingMembershipInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - viewRenderingMembershipInstance.OwningRelatedElement = owningRelatedElementFeature; - viewRenderingMembershipInstance.OwningRelationship = owningRelationshipFeature; - viewRenderingMembershipInstance.Source = sourceFeature ?? new List(); - viewRenderingMembershipInstance.Target = targetFeature ?? new List(); - viewRenderingMembershipInstance.Visibility = visibilityFeature; - - return viewRenderingMembershipInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IViewRenderingMembership DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ViewRenderingMembership") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ViewRenderingMembership"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ViewRenderingMembership"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var viewRenderingMembershipInstance = new SysML2.NET.Core.DTO.ViewRenderingMembership - { - Id = id - }; - - return viewRenderingMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewUsageDictionaryReader.cs deleted file mode 100644 index b5fb1f717..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ViewUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IViewUsage ReadSimplified(Dictionary dictionary) - { - var viewUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - viewUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - viewUsageInstance.DeclaredName = declaredNameFeature; - viewUsageInstance.DeclaredShortName = declaredShortNameFeature; - viewUsageInstance.Direction = directionFeature; - viewUsageInstance.ElementId = elementIdFeature; - viewUsageInstance.IsAbstract = isAbstractFeature; - viewUsageInstance.IsComposite = isCompositeFeature; - viewUsageInstance.IsConstant = isConstantFeature; - viewUsageInstance.IsDerived = isDerivedFeature; - viewUsageInstance.IsEnd = isEndFeature; - viewUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - viewUsageInstance.IsIndividual = isIndividualFeature; - viewUsageInstance.IsOrdered = isOrderedFeature; - viewUsageInstance.IsPortion = isPortionFeature; - viewUsageInstance.IsSufficient = isSufficientFeature; - viewUsageInstance.IsUnique = isUniqueFeature; - viewUsageInstance.IsVariable = isVariableFeature; - viewUsageInstance.IsVariation = isVariationFeature; - viewUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - viewUsageInstance.OwningRelationship = owningRelationshipFeature; - viewUsageInstance.PortionKind = portionKindFeature; - - return viewUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IViewUsage ReadComplex(Dictionary dictionary) - { - var viewUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - viewUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - viewUsageInstance.DeclaredName = declaredNameFeature; - viewUsageInstance.DeclaredShortName = declaredShortNameFeature; - viewUsageInstance.Direction = directionFeature; - viewUsageInstance.ElementId = elementIdFeature; - viewUsageInstance.IsAbstract = isAbstractFeature; - viewUsageInstance.IsComposite = isCompositeFeature; - viewUsageInstance.IsConstant = isConstantFeature; - viewUsageInstance.IsDerived = isDerivedFeature; - viewUsageInstance.IsEnd = isEndFeature; - viewUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - viewUsageInstance.IsIndividual = isIndividualFeature; - viewUsageInstance.IsOrdered = isOrderedFeature; - viewUsageInstance.IsPortion = isPortionFeature; - viewUsageInstance.IsSufficient = isSufficientFeature; - viewUsageInstance.IsUnique = isUniqueFeature; - viewUsageInstance.IsVariable = isVariableFeature; - viewUsageInstance.IsVariation = isVariationFeature; - viewUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - viewUsageInstance.OwningRelationship = owningRelationshipFeature; - viewUsageInstance.PortionKind = portionKindFeature; - - return viewUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IViewUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ViewUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ViewUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ViewUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var viewUsageInstance = new SysML2.NET.Core.DTO.ViewUsage - { - Id = id - }; - - return viewUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewpointDefinitionDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewpointDefinitionDictionaryReader.cs deleted file mode 100644 index c1160bd2c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewpointDefinitionDictionaryReader.cs +++ /dev/null @@ -1,353 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ViewpointDefinitionDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IViewpointDefinition ReadSimplified(Dictionary dictionary) - { - var viewpointDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - viewpointDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - viewpointDefinitionInstance.DeclaredName = declaredNameFeature; - viewpointDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - viewpointDefinitionInstance.ElementId = elementIdFeature; - viewpointDefinitionInstance.IsAbstract = isAbstractFeature; - viewpointDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - viewpointDefinitionInstance.IsIndividual = isIndividualFeature; - viewpointDefinitionInstance.IsSufficient = isSufficientFeature; - viewpointDefinitionInstance.IsVariation = isVariationFeature; - viewpointDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - viewpointDefinitionInstance.OwningRelationship = owningRelationshipFeature; - viewpointDefinitionInstance.ReqId = reqIdFeature; - - return viewpointDefinitionInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IViewpointDefinition ReadComplex(Dictionary dictionary) - { - var viewpointDefinitionInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - viewpointDefinitionInstance.AliasIds = aliasIdsFeature ?? new List(); - viewpointDefinitionInstance.DeclaredName = declaredNameFeature; - viewpointDefinitionInstance.DeclaredShortName = declaredShortNameFeature; - viewpointDefinitionInstance.ElementId = elementIdFeature; - viewpointDefinitionInstance.IsAbstract = isAbstractFeature; - viewpointDefinitionInstance.IsImpliedIncluded = isImpliedIncludedFeature; - viewpointDefinitionInstance.IsIndividual = isIndividualFeature; - viewpointDefinitionInstance.IsSufficient = isSufficientFeature; - viewpointDefinitionInstance.IsVariation = isVariationFeature; - viewpointDefinitionInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - viewpointDefinitionInstance.OwningRelationship = owningRelationshipFeature; - viewpointDefinitionInstance.ReqId = reqIdFeature; - - return viewpointDefinitionInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IViewpointDefinition DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ViewpointDefinition") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ViewpointDefinition"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ViewpointDefinition"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var viewpointDefinitionInstance = new SysML2.NET.Core.DTO.ViewpointDefinition - { - Id = id - }; - - return viewpointDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewpointUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewpointUsageDictionaryReader.cs deleted file mode 100644 index f84d0cc82..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/ViewpointUsageDictionaryReader.cs +++ /dev/null @@ -1,493 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class ViewpointUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IViewpointUsage ReadSimplified(Dictionary dictionary) - { - var viewpointUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - viewpointUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - viewpointUsageInstance.DeclaredName = declaredNameFeature; - viewpointUsageInstance.DeclaredShortName = declaredShortNameFeature; - viewpointUsageInstance.Direction = directionFeature; - viewpointUsageInstance.ElementId = elementIdFeature; - viewpointUsageInstance.IsAbstract = isAbstractFeature; - viewpointUsageInstance.IsComposite = isCompositeFeature; - viewpointUsageInstance.IsConstant = isConstantFeature; - viewpointUsageInstance.IsDerived = isDerivedFeature; - viewpointUsageInstance.IsEnd = isEndFeature; - viewpointUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - viewpointUsageInstance.IsIndividual = isIndividualFeature; - viewpointUsageInstance.IsOrdered = isOrderedFeature; - viewpointUsageInstance.IsPortion = isPortionFeature; - viewpointUsageInstance.IsSufficient = isSufficientFeature; - viewpointUsageInstance.IsUnique = isUniqueFeature; - viewpointUsageInstance.IsVariable = isVariableFeature; - viewpointUsageInstance.IsVariation = isVariationFeature; - viewpointUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - viewpointUsageInstance.OwningRelationship = owningRelationshipFeature; - viewpointUsageInstance.PortionKind = portionKindFeature; - viewpointUsageInstance.ReqId = reqIdFeature; - - return viewpointUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IViewpointUsage ReadComplex(Dictionary dictionary) - { - var viewpointUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - if (!dictionary.TryGetValue("reqId", out object reqIdObject)) - { - throw new ArgumentException("The reqId property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - string reqIdFeature = reqIdObject == null ? null : Convert.ToString(reqIdObject); - - - viewpointUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - viewpointUsageInstance.DeclaredName = declaredNameFeature; - viewpointUsageInstance.DeclaredShortName = declaredShortNameFeature; - viewpointUsageInstance.Direction = directionFeature; - viewpointUsageInstance.ElementId = elementIdFeature; - viewpointUsageInstance.IsAbstract = isAbstractFeature; - viewpointUsageInstance.IsComposite = isCompositeFeature; - viewpointUsageInstance.IsConstant = isConstantFeature; - viewpointUsageInstance.IsDerived = isDerivedFeature; - viewpointUsageInstance.IsEnd = isEndFeature; - viewpointUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - viewpointUsageInstance.IsIndividual = isIndividualFeature; - viewpointUsageInstance.IsOrdered = isOrderedFeature; - viewpointUsageInstance.IsPortion = isPortionFeature; - viewpointUsageInstance.IsSufficient = isSufficientFeature; - viewpointUsageInstance.IsUnique = isUniqueFeature; - viewpointUsageInstance.IsVariable = isVariableFeature; - viewpointUsageInstance.IsVariation = isVariationFeature; - viewpointUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - viewpointUsageInstance.OwningRelationship = owningRelationshipFeature; - viewpointUsageInstance.PortionKind = portionKindFeature; - viewpointUsageInstance.ReqId = reqIdFeature; - - return viewpointUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IViewpointUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "ViewpointUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a ViewpointUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a ViewpointUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var viewpointUsageInstance = new SysML2.NET.Core.DTO.ViewpointUsage - { - Id = id - }; - - return viewpointUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/WhileLoopActionUsageDictionaryReader.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/WhileLoopActionUsageDictionaryReader.cs deleted file mode 100644 index bf609860c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryReader/WhileLoopActionUsageDictionaryReader.cs +++ /dev/null @@ -1,479 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using SysML2.NET.Common; - using SysML2.NET.Core; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to read (convert) - /// a from an - /// - public static class WhileLoopActionUsageDictionaryReader - { - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// The source that is to be read from - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return ReadComplex(dictionary); - case DictionaryKind.Simplified: - return ReadSimplified(dictionary); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static IWhileLoopActionUsage ReadSimplified(Dictionary dictionary) - { - var whileLoopActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - FeatureDirectionKind? directionFeature = directionObject == null ? null : (FeatureDirectionKind?)Enum.Parse(typeof(FeatureDirectionKind), Convert.ToString(directionObject), true); - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List)?.Select(Guid.Parse).ToList(); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - Guid? owningRelationshipFeature = owningRelationshipObject == null ? (Guid?)null : Guid.Parse(Convert.ToString(owningRelationshipObject)); - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - PortionKind? portionKindFeature = portionKindObject == null ? null : (PortionKind?)Enum.Parse(typeof(PortionKind), Convert.ToString(portionKindObject), true); - - - whileLoopActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - whileLoopActionUsageInstance.DeclaredName = declaredNameFeature; - whileLoopActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - whileLoopActionUsageInstance.Direction = directionFeature; - whileLoopActionUsageInstance.ElementId = elementIdFeature; - whileLoopActionUsageInstance.IsAbstract = isAbstractFeature; - whileLoopActionUsageInstance.IsComposite = isCompositeFeature; - whileLoopActionUsageInstance.IsConstant = isConstantFeature; - whileLoopActionUsageInstance.IsDerived = isDerivedFeature; - whileLoopActionUsageInstance.IsEnd = isEndFeature; - whileLoopActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - whileLoopActionUsageInstance.IsIndividual = isIndividualFeature; - whileLoopActionUsageInstance.IsOrdered = isOrderedFeature; - whileLoopActionUsageInstance.IsPortion = isPortionFeature; - whileLoopActionUsageInstance.IsSufficient = isSufficientFeature; - whileLoopActionUsageInstance.IsUnique = isUniqueFeature; - whileLoopActionUsageInstance.IsVariable = isVariableFeature; - whileLoopActionUsageInstance.IsVariation = isVariationFeature; - whileLoopActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - whileLoopActionUsageInstance.OwningRelationship = owningRelationshipFeature; - whileLoopActionUsageInstance.PortionKind = portionKindFeature; - - return whileLoopActionUsageInstance; - } - - /// - /// Reads a from a that contains a key-value-pair - /// for each property. - /// - /// - /// The subject that is to be converted into a - /// - /// - /// An instance of - /// - private static IWhileLoopActionUsage ReadComplex(Dictionary dictionary) - { - var whileLoopActionUsageInstance = DictionaryNullAndTypeCheck(dictionary); - - if (!dictionary.TryGetValue("aliasIds", out object aliasIdsObject)) - { - throw new ArgumentException("The aliasIds property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - List aliasIdsFeature = aliasIdsObject as List; - - if (!dictionary.TryGetValue("declaredName", out object declaredNameObject)) - { - throw new ArgumentException("The declaredName property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - string declaredNameFeature = declaredNameObject == null ? null : Convert.ToString(declaredNameObject); - - if (!dictionary.TryGetValue("declaredShortName", out object declaredShortNameObject)) - { - throw new ArgumentException("The declaredShortName property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - string declaredShortNameFeature = declaredShortNameObject == null ? null : Convert.ToString(declaredShortNameObject); - - if (!dictionary.TryGetValue("direction", out object directionObject)) - { - throw new ArgumentException("The direction property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - FeatureDirectionKind? directionFeature = (FeatureDirectionKind?)directionObject; - - if (!dictionary.TryGetValue("elementId", out object elementIdObject)) - { - throw new ArgumentException("The elementId property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - string elementIdFeature = Convert.ToString(elementIdObject); - - if (!dictionary.TryGetValue("isAbstract", out object isAbstractObject)) - { - throw new ArgumentException("The isAbstract property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isAbstractFeature = Convert.ToBoolean(isAbstractObject); - - if (!dictionary.TryGetValue("isComposite", out object isCompositeObject)) - { - throw new ArgumentException("The isComposite property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isCompositeFeature = Convert.ToBoolean(isCompositeObject); - - if (!dictionary.TryGetValue("isConstant", out object isConstantObject)) - { - throw new ArgumentException("The isConstant property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isConstantFeature = Convert.ToBoolean(isConstantObject); - - if (!dictionary.TryGetValue("isDerived", out object isDerivedObject)) - { - throw new ArgumentException("The isDerived property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isDerivedFeature = Convert.ToBoolean(isDerivedObject); - - if (!dictionary.TryGetValue("isEnd", out object isEndObject)) - { - throw new ArgumentException("The isEnd property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isEndFeature = Convert.ToBoolean(isEndObject); - - if (!dictionary.TryGetValue("isImpliedIncluded", out object isImpliedIncludedObject)) - { - throw new ArgumentException("The isImpliedIncluded property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isImpliedIncludedFeature = Convert.ToBoolean(isImpliedIncludedObject); - - if (!dictionary.TryGetValue("isIndividual", out object isIndividualObject)) - { - throw new ArgumentException("The isIndividual property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isIndividualFeature = Convert.ToBoolean(isIndividualObject); - - if (!dictionary.TryGetValue("isOrdered", out object isOrderedObject)) - { - throw new ArgumentException("The isOrdered property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isOrderedFeature = Convert.ToBoolean(isOrderedObject); - - if (!dictionary.TryGetValue("isPortion", out object isPortionObject)) - { - throw new ArgumentException("The isPortion property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isPortionFeature = Convert.ToBoolean(isPortionObject); - - if (!dictionary.TryGetValue("isSufficient", out object isSufficientObject)) - { - throw new ArgumentException("The isSufficient property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isSufficientFeature = Convert.ToBoolean(isSufficientObject); - - if (!dictionary.TryGetValue("isUnique", out object isUniqueObject)) - { - throw new ArgumentException("The isUnique property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isUniqueFeature = Convert.ToBoolean(isUniqueObject); - - if (!dictionary.TryGetValue("isVariable", out object isVariableObject)) - { - throw new ArgumentException("The isVariable property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isVariableFeature = Convert.ToBoolean(isVariableObject); - - if (!dictionary.TryGetValue("isVariation", out object isVariationObject)) - { - throw new ArgumentException("The isVariation property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - bool isVariationFeature = Convert.ToBoolean(isVariationObject); - - if (!dictionary.TryGetValue("ownedRelationship", out object ownedRelationshipObject)) - { - throw new ArgumentException("The ownedRelationship property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - List ownedRelationshipFeature = (ownedRelationshipObject as List); - - if (!dictionary.TryGetValue("owningRelationship", out object owningRelationshipObject)) - { - throw new ArgumentException("The owningRelationship property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - Guid? owningRelationshipFeature = (Guid?)owningRelationshipObject; - - if (!dictionary.TryGetValue("portionKind", out object portionKindObject)) - { - throw new ArgumentException("The portionKind property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - PortionKind? portionKindFeature = (PortionKind?)portionKindObject; - - - whileLoopActionUsageInstance.AliasIds = aliasIdsFeature ?? new List(); - whileLoopActionUsageInstance.DeclaredName = declaredNameFeature; - whileLoopActionUsageInstance.DeclaredShortName = declaredShortNameFeature; - whileLoopActionUsageInstance.Direction = directionFeature; - whileLoopActionUsageInstance.ElementId = elementIdFeature; - whileLoopActionUsageInstance.IsAbstract = isAbstractFeature; - whileLoopActionUsageInstance.IsComposite = isCompositeFeature; - whileLoopActionUsageInstance.IsConstant = isConstantFeature; - whileLoopActionUsageInstance.IsDerived = isDerivedFeature; - whileLoopActionUsageInstance.IsEnd = isEndFeature; - whileLoopActionUsageInstance.IsImpliedIncluded = isImpliedIncludedFeature; - whileLoopActionUsageInstance.IsIndividual = isIndividualFeature; - whileLoopActionUsageInstance.IsOrdered = isOrderedFeature; - whileLoopActionUsageInstance.IsPortion = isPortionFeature; - whileLoopActionUsageInstance.IsSufficient = isSufficientFeature; - whileLoopActionUsageInstance.IsUnique = isUniqueFeature; - whileLoopActionUsageInstance.IsVariable = isVariableFeature; - whileLoopActionUsageInstance.IsVariation = isVariationFeature; - whileLoopActionUsageInstance.OwnedRelationship = ownedRelationshipFeature ?? new List(); - whileLoopActionUsageInstance.OwningRelationship = owningRelationshipFeature; - whileLoopActionUsageInstance.PortionKind = portionKindFeature; - - return whileLoopActionUsageInstance; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject that contains the key-value pairs of - /// properties and values. - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IWhileLoopActionUsage DictionaryNullAndTypeCheck(Dictionary dictionary) - { - if (dictionary == null) - { - throw new ArgumentNullException("dictionary", "The dictionary may not be null"); - } - - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - - var type = Convert.ToString(typeObject); - - if (type != "WhileLoopActionUsage") - { - throw new ArgumentException($"The dictionary contains an Object is of type {type} and can therefore not be converted into a WhileLoopActionUsage"); - } - - if (!dictionary.TryGetValue("@id", out object idObject)) - { - throw new ArgumentException("The id property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - var id = Guid.Parse(Convert.ToString(idObject)); - - var whileLoopActionUsageInstance = new SysML2.NET.Core.DTO.WhileLoopActionUsage - { - Id = id - }; - - return whileLoopActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AcceptActionUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AcceptActionUsageDictionaryWriter.cs deleted file mode 100644 index 3f6f26ac9..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AcceptActionUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class AcceptActionUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var acceptActionUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(acceptActionUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(acceptActionUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IAcceptActionUsage acceptActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "AcceptActionUsage" }, - { "@id", acceptActionUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", acceptActionUsageInstance.AliasIds); - dictionary.Add("declaredName", acceptActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", acceptActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", acceptActionUsageInstance.Direction); - dictionary.Add("elementId", acceptActionUsageInstance.ElementId); - dictionary.Add("isAbstract", acceptActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", acceptActionUsageInstance.IsComposite); - dictionary.Add("isConstant", acceptActionUsageInstance.IsConstant); - dictionary.Add("isDerived", acceptActionUsageInstance.IsDerived); - dictionary.Add("isEnd", acceptActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", acceptActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", acceptActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", acceptActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", acceptActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", acceptActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", acceptActionUsageInstance.IsUnique); - dictionary.Add("isVariable", acceptActionUsageInstance.IsVariable); - dictionary.Add("isVariation", acceptActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", acceptActionUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", acceptActionUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", acceptActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IAcceptActionUsage acceptActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "AcceptActionUsage" }, - { "@id", acceptActionUsageInstance.Id } - }; - - dictionary.Add("aliasIds", acceptActionUsageInstance.AliasIds); - dictionary.Add("declaredName", acceptActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", acceptActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", acceptActionUsageInstance.Direction); - dictionary.Add("elementId", acceptActionUsageInstance.ElementId); - dictionary.Add("isAbstract", acceptActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", acceptActionUsageInstance.IsComposite); - dictionary.Add("isConstant", acceptActionUsageInstance.IsConstant); - dictionary.Add("isDerived", acceptActionUsageInstance.IsDerived); - dictionary.Add("isEnd", acceptActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", acceptActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", acceptActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", acceptActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", acceptActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", acceptActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", acceptActionUsageInstance.IsUnique); - dictionary.Add("isVariable", acceptActionUsageInstance.IsVariable); - dictionary.Add("isVariation", acceptActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", acceptActionUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", acceptActionUsageInstance.OwningRelationship); - dictionary.Add("portionKind", acceptActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAcceptActionUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IAcceptActionUsage acceptActionUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IAcceptActionUsage", "dataItem"); - } - - return acceptActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ActionDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ActionDefinitionDictionaryWriter.cs deleted file mode 100644 index e0664b10f..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ActionDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ActionDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var actionDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(actionDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(actionDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IActionDefinition actionDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ActionDefinition" }, - { "@id", actionDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", actionDefinitionInstance.AliasIds); - dictionary.Add("declaredName", actionDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", actionDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", actionDefinitionInstance.ElementId); - dictionary.Add("isAbstract", actionDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", actionDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", actionDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", actionDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", actionDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", actionDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", actionDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IActionDefinition actionDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ActionDefinition" }, - { "@id", actionDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", actionDefinitionInstance.AliasIds); - dictionary.Add("declaredName", actionDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", actionDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", actionDefinitionInstance.ElementId); - dictionary.Add("isAbstract", actionDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", actionDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", actionDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", actionDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", actionDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", actionDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", actionDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IActionDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IActionDefinition actionDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IActionDefinition", "dataItem"); - } - - return actionDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ActionUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ActionUsageDictionaryWriter.cs deleted file mode 100644 index 4c821ce94..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ActionUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ActionUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var actionUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(actionUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(actionUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IActionUsage actionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ActionUsage" }, - { "@id", actionUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", actionUsageInstance.AliasIds); - dictionary.Add("declaredName", actionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", actionUsageInstance.DeclaredShortName); - dictionary.Add("direction", actionUsageInstance.Direction); - dictionary.Add("elementId", actionUsageInstance.ElementId); - dictionary.Add("isAbstract", actionUsageInstance.IsAbstract); - dictionary.Add("isComposite", actionUsageInstance.IsComposite); - dictionary.Add("isConstant", actionUsageInstance.IsConstant); - dictionary.Add("isDerived", actionUsageInstance.IsDerived); - dictionary.Add("isEnd", actionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", actionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", actionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", actionUsageInstance.IsOrdered); - dictionary.Add("isPortion", actionUsageInstance.IsPortion); - dictionary.Add("isSufficient", actionUsageInstance.IsSufficient); - dictionary.Add("isUnique", actionUsageInstance.IsUnique); - dictionary.Add("isVariable", actionUsageInstance.IsVariable); - dictionary.Add("isVariation", actionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", actionUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", actionUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", actionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IActionUsage actionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ActionUsage" }, - { "@id", actionUsageInstance.Id } - }; - - dictionary.Add("aliasIds", actionUsageInstance.AliasIds); - dictionary.Add("declaredName", actionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", actionUsageInstance.DeclaredShortName); - dictionary.Add("direction", actionUsageInstance.Direction); - dictionary.Add("elementId", actionUsageInstance.ElementId); - dictionary.Add("isAbstract", actionUsageInstance.IsAbstract); - dictionary.Add("isComposite", actionUsageInstance.IsComposite); - dictionary.Add("isConstant", actionUsageInstance.IsConstant); - dictionary.Add("isDerived", actionUsageInstance.IsDerived); - dictionary.Add("isEnd", actionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", actionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", actionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", actionUsageInstance.IsOrdered); - dictionary.Add("isPortion", actionUsageInstance.IsPortion); - dictionary.Add("isSufficient", actionUsageInstance.IsSufficient); - dictionary.Add("isUnique", actionUsageInstance.IsUnique); - dictionary.Add("isVariable", actionUsageInstance.IsVariable); - dictionary.Add("isVariation", actionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", actionUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", actionUsageInstance.OwningRelationship); - dictionary.Add("portionKind", actionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IActionUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IActionUsage actionUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IActionUsage", "dataItem"); - } - - return actionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ActorMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ActorMembershipDictionaryWriter.cs deleted file mode 100644 index 3d3dcb678..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ActorMembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ActorMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var actorMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(actorMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(actorMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IActorMembership actorMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ActorMembership" }, - { "@id", actorMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", actorMembershipInstance.AliasIds); - dictionary.Add("declaredName", actorMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", actorMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", actorMembershipInstance.ElementId); - dictionary.Add("isImplied", actorMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", actorMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", actorMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", actorMembershipInstance.MemberName); - dictionary.Add("memberShortName", actorMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", actorMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", actorMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", actorMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", actorMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", actorMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", actorMembershipInstance.Target)} ]"); - dictionary.Add("visibility", actorMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IActorMembership actorMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ActorMembership" }, - { "@id", actorMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", actorMembershipInstance.AliasIds); - dictionary.Add("declaredName", actorMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", actorMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", actorMembershipInstance.ElementId); - dictionary.Add("isImplied", actorMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", actorMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", actorMembershipInstance.MemberElement); - dictionary.Add("memberName", actorMembershipInstance.MemberName); - dictionary.Add("memberShortName", actorMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", actorMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", actorMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", actorMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", actorMembershipInstance.OwningRelationship); - dictionary.Add("source", actorMembershipInstance.Source); - dictionary.Add("target", actorMembershipInstance.Target); - dictionary.Add("visibility", actorMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IActorMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IActorMembership actorMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IActorMembership", "dataItem"); - } - - return actorMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AllocationDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AllocationDefinitionDictionaryWriter.cs deleted file mode 100644 index a4ad5e7c8..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AllocationDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class AllocationDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var allocationDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(allocationDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(allocationDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IAllocationDefinition allocationDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "AllocationDefinition" }, - { "@id", allocationDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", allocationDefinitionInstance.AliasIds); - dictionary.Add("declaredName", allocationDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", allocationDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", allocationDefinitionInstance.ElementId); - dictionary.Add("isAbstract", allocationDefinitionInstance.IsAbstract); - dictionary.Add("isImplied", allocationDefinitionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", allocationDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", allocationDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", allocationDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", allocationDefinitionInstance.IsVariation); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", allocationDefinitionInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", allocationDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", allocationDefinitionInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", allocationDefinitionInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", allocationDefinitionInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", allocationDefinitionInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IAllocationDefinition allocationDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "AllocationDefinition" }, - { "@id", allocationDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", allocationDefinitionInstance.AliasIds); - dictionary.Add("declaredName", allocationDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", allocationDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", allocationDefinitionInstance.ElementId); - dictionary.Add("isAbstract", allocationDefinitionInstance.IsAbstract); - dictionary.Add("isImplied", allocationDefinitionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", allocationDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", allocationDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", allocationDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", allocationDefinitionInstance.IsVariation); - dictionary.Add("ownedRelatedElement", allocationDefinitionInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", allocationDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", allocationDefinitionInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", allocationDefinitionInstance.OwningRelationship); - dictionary.Add("source", allocationDefinitionInstance.Source); - dictionary.Add("target", allocationDefinitionInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAllocationDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IAllocationDefinition allocationDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IAllocationDefinition", "dataItem"); - } - - return allocationDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AllocationUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AllocationUsageDictionaryWriter.cs deleted file mode 100644 index fc6665897..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AllocationUsageDictionaryWriter.cs +++ /dev/null @@ -1,227 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class AllocationUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var allocationUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(allocationUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(allocationUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IAllocationUsage allocationUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "AllocationUsage" }, - { "@id", allocationUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", allocationUsageInstance.AliasIds); - dictionary.Add("declaredName", allocationUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", allocationUsageInstance.DeclaredShortName); - dictionary.Add("direction", allocationUsageInstance.Direction); - dictionary.Add("elementId", allocationUsageInstance.ElementId); - dictionary.Add("isAbstract", allocationUsageInstance.IsAbstract); - dictionary.Add("isComposite", allocationUsageInstance.IsComposite); - dictionary.Add("isConstant", allocationUsageInstance.IsConstant); - dictionary.Add("isDerived", allocationUsageInstance.IsDerived); - dictionary.Add("isEnd", allocationUsageInstance.IsEnd); - dictionary.Add("isImplied", allocationUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", allocationUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", allocationUsageInstance.IsIndividual); - dictionary.Add("isOrdered", allocationUsageInstance.IsOrdered); - dictionary.Add("isPortion", allocationUsageInstance.IsPortion); - dictionary.Add("isSufficient", allocationUsageInstance.IsSufficient); - dictionary.Add("isUnique", allocationUsageInstance.IsUnique); - dictionary.Add("isVariable", allocationUsageInstance.IsVariable); - dictionary.Add("isVariation", allocationUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", allocationUsageInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", allocationUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", allocationUsageInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", allocationUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", allocationUsageInstance.PortionKind); - dictionary.Add("source", $"[ {string.Join(",", allocationUsageInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", allocationUsageInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IAllocationUsage allocationUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "AllocationUsage" }, - { "@id", allocationUsageInstance.Id } - }; - - dictionary.Add("aliasIds", allocationUsageInstance.AliasIds); - dictionary.Add("declaredName", allocationUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", allocationUsageInstance.DeclaredShortName); - dictionary.Add("direction", allocationUsageInstance.Direction); - dictionary.Add("elementId", allocationUsageInstance.ElementId); - dictionary.Add("isAbstract", allocationUsageInstance.IsAbstract); - dictionary.Add("isComposite", allocationUsageInstance.IsComposite); - dictionary.Add("isConstant", allocationUsageInstance.IsConstant); - dictionary.Add("isDerived", allocationUsageInstance.IsDerived); - dictionary.Add("isEnd", allocationUsageInstance.IsEnd); - dictionary.Add("isImplied", allocationUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", allocationUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", allocationUsageInstance.IsIndividual); - dictionary.Add("isOrdered", allocationUsageInstance.IsOrdered); - dictionary.Add("isPortion", allocationUsageInstance.IsPortion); - dictionary.Add("isSufficient", allocationUsageInstance.IsSufficient); - dictionary.Add("isUnique", allocationUsageInstance.IsUnique); - dictionary.Add("isVariable", allocationUsageInstance.IsVariable); - dictionary.Add("isVariation", allocationUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", allocationUsageInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", allocationUsageInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", allocationUsageInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", allocationUsageInstance.OwningRelationship); - dictionary.Add("portionKind", allocationUsageInstance.PortionKind); - dictionary.Add("source", allocationUsageInstance.Source); - dictionary.Add("target", allocationUsageInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAllocationUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IAllocationUsage allocationUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IAllocationUsage", "dataItem"); - } - - return allocationUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnalysisCaseDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnalysisCaseDefinitionDictionaryWriter.cs deleted file mode 100644 index cffbb2136..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnalysisCaseDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class AnalysisCaseDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var analysisCaseDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(analysisCaseDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(analysisCaseDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IAnalysisCaseDefinition analysisCaseDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "AnalysisCaseDefinition" }, - { "@id", analysisCaseDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", analysisCaseDefinitionInstance.AliasIds); - dictionary.Add("declaredName", analysisCaseDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", analysisCaseDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", analysisCaseDefinitionInstance.ElementId); - dictionary.Add("isAbstract", analysisCaseDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", analysisCaseDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", analysisCaseDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", analysisCaseDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", analysisCaseDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", analysisCaseDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", analysisCaseDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IAnalysisCaseDefinition analysisCaseDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "AnalysisCaseDefinition" }, - { "@id", analysisCaseDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", analysisCaseDefinitionInstance.AliasIds); - dictionary.Add("declaredName", analysisCaseDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", analysisCaseDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", analysisCaseDefinitionInstance.ElementId); - dictionary.Add("isAbstract", analysisCaseDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", analysisCaseDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", analysisCaseDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", analysisCaseDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", analysisCaseDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", analysisCaseDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", analysisCaseDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAnalysisCaseDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IAnalysisCaseDefinition analysisCaseDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IAnalysisCaseDefinition", "dataItem"); - } - - return analysisCaseDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnalysisCaseUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnalysisCaseUsageDictionaryWriter.cs deleted file mode 100644 index e49fa2ee3..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnalysisCaseUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class AnalysisCaseUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var analysisCaseUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(analysisCaseUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(analysisCaseUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IAnalysisCaseUsage analysisCaseUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "AnalysisCaseUsage" }, - { "@id", analysisCaseUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", analysisCaseUsageInstance.AliasIds); - dictionary.Add("declaredName", analysisCaseUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", analysisCaseUsageInstance.DeclaredShortName); - dictionary.Add("direction", analysisCaseUsageInstance.Direction); - dictionary.Add("elementId", analysisCaseUsageInstance.ElementId); - dictionary.Add("isAbstract", analysisCaseUsageInstance.IsAbstract); - dictionary.Add("isComposite", analysisCaseUsageInstance.IsComposite); - dictionary.Add("isConstant", analysisCaseUsageInstance.IsConstant); - dictionary.Add("isDerived", analysisCaseUsageInstance.IsDerived); - dictionary.Add("isEnd", analysisCaseUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", analysisCaseUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", analysisCaseUsageInstance.IsIndividual); - dictionary.Add("isOrdered", analysisCaseUsageInstance.IsOrdered); - dictionary.Add("isPortion", analysisCaseUsageInstance.IsPortion); - dictionary.Add("isSufficient", analysisCaseUsageInstance.IsSufficient); - dictionary.Add("isUnique", analysisCaseUsageInstance.IsUnique); - dictionary.Add("isVariable", analysisCaseUsageInstance.IsVariable); - dictionary.Add("isVariation", analysisCaseUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", analysisCaseUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", analysisCaseUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", analysisCaseUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IAnalysisCaseUsage analysisCaseUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "AnalysisCaseUsage" }, - { "@id", analysisCaseUsageInstance.Id } - }; - - dictionary.Add("aliasIds", analysisCaseUsageInstance.AliasIds); - dictionary.Add("declaredName", analysisCaseUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", analysisCaseUsageInstance.DeclaredShortName); - dictionary.Add("direction", analysisCaseUsageInstance.Direction); - dictionary.Add("elementId", analysisCaseUsageInstance.ElementId); - dictionary.Add("isAbstract", analysisCaseUsageInstance.IsAbstract); - dictionary.Add("isComposite", analysisCaseUsageInstance.IsComposite); - dictionary.Add("isConstant", analysisCaseUsageInstance.IsConstant); - dictionary.Add("isDerived", analysisCaseUsageInstance.IsDerived); - dictionary.Add("isEnd", analysisCaseUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", analysisCaseUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", analysisCaseUsageInstance.IsIndividual); - dictionary.Add("isOrdered", analysisCaseUsageInstance.IsOrdered); - dictionary.Add("isPortion", analysisCaseUsageInstance.IsPortion); - dictionary.Add("isSufficient", analysisCaseUsageInstance.IsSufficient); - dictionary.Add("isUnique", analysisCaseUsageInstance.IsUnique); - dictionary.Add("isVariable", analysisCaseUsageInstance.IsVariable); - dictionary.Add("isVariation", analysisCaseUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", analysisCaseUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", analysisCaseUsageInstance.OwningRelationship); - dictionary.Add("portionKind", analysisCaseUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAnalysisCaseUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IAnalysisCaseUsage analysisCaseUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IAnalysisCaseUsage", "dataItem"); - } - - return analysisCaseUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnnotatingElementDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnnotatingElementDictionaryWriter.cs deleted file mode 100644 index 71142bf6b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnnotatingElementDictionaryWriter.cs +++ /dev/null @@ -1,189 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class AnnotatingElementDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var annotatingElementInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(annotatingElementInstance); - case DictionaryKind.Simplified: - return WriteSimplified(annotatingElementInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IAnnotatingElement annotatingElementInstance) - { - var dictionary = new Dictionary - { - { "@type", "AnnotatingElement" }, - { "@id", annotatingElementInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", annotatingElementInstance.AliasIds); - dictionary.Add("declaredName", annotatingElementInstance.DeclaredName); - dictionary.Add("declaredShortName", annotatingElementInstance.DeclaredShortName); - dictionary.Add("elementId", annotatingElementInstance.ElementId); - dictionary.Add("isImpliedIncluded", annotatingElementInstance.IsImpliedIncluded); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", annotatingElementInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", annotatingElementInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IAnnotatingElement annotatingElementInstance) - { - var dictionary = new Dictionary - { - { "@type", "AnnotatingElement" }, - { "@id", annotatingElementInstance.Id } - }; - - dictionary.Add("aliasIds", annotatingElementInstance.AliasIds); - dictionary.Add("declaredName", annotatingElementInstance.DeclaredName); - dictionary.Add("declaredShortName", annotatingElementInstance.DeclaredShortName); - dictionary.Add("elementId", annotatingElementInstance.ElementId); - dictionary.Add("isImpliedIncluded", annotatingElementInstance.IsImpliedIncluded); - dictionary.Add("ownedRelationship", annotatingElementInstance.OwnedRelationship); - dictionary.Add("owningRelationship", annotatingElementInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAnnotatingElement ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IAnnotatingElement annotatingElementInstance)) - { - throw new ArgumentException("The dataItem must be of Type IAnnotatingElement", "dataItem"); - } - - return annotatingElementInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnnotationDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnnotationDictionaryWriter.cs deleted file mode 100644 index c23213720..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AnnotationDictionaryWriter.cs +++ /dev/null @@ -1,201 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class AnnotationDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var annotationInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(annotationInstance); - case DictionaryKind.Simplified: - return WriteSimplified(annotationInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IAnnotation annotationInstance) - { - var dictionary = new Dictionary - { - { "@type", "Annotation" }, - { "@id", annotationInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", annotationInstance.AliasIds); - dictionary.Add("annotatedElement", annotationInstance.AnnotatedElement.ToString()); - dictionary.Add("declaredName", annotationInstance.DeclaredName); - dictionary.Add("declaredShortName", annotationInstance.DeclaredShortName); - dictionary.Add("elementId", annotationInstance.ElementId); - dictionary.Add("isImplied", annotationInstance.IsImplied); - dictionary.Add("isImpliedIncluded", annotationInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", annotationInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", annotationInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", annotationInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", annotationInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", annotationInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", annotationInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IAnnotation annotationInstance) - { - var dictionary = new Dictionary - { - { "@type", "Annotation" }, - { "@id", annotationInstance.Id } - }; - - dictionary.Add("aliasIds", annotationInstance.AliasIds); - dictionary.Add("annotatedElement", annotationInstance.AnnotatedElement); - dictionary.Add("declaredName", annotationInstance.DeclaredName); - dictionary.Add("declaredShortName", annotationInstance.DeclaredShortName); - dictionary.Add("elementId", annotationInstance.ElementId); - dictionary.Add("isImplied", annotationInstance.IsImplied); - dictionary.Add("isImpliedIncluded", annotationInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", annotationInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", annotationInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", annotationInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", annotationInstance.OwningRelationship); - dictionary.Add("source", annotationInstance.Source); - dictionary.Add("target", annotationInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAnnotation ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IAnnotation annotationInstance)) - { - throw new ArgumentException("The dataItem must be of Type IAnnotation", "dataItem"); - } - - return annotationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssertConstraintUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssertConstraintUsageDictionaryWriter.cs deleted file mode 100644 index bbb2db3d2..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssertConstraintUsageDictionaryWriter.cs +++ /dev/null @@ -1,219 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class AssertConstraintUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var assertConstraintUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(assertConstraintUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(assertConstraintUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IAssertConstraintUsage assertConstraintUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "AssertConstraintUsage" }, - { "@id", assertConstraintUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", assertConstraintUsageInstance.AliasIds); - dictionary.Add("declaredName", assertConstraintUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", assertConstraintUsageInstance.DeclaredShortName); - dictionary.Add("direction", assertConstraintUsageInstance.Direction); - dictionary.Add("elementId", assertConstraintUsageInstance.ElementId); - dictionary.Add("isAbstract", assertConstraintUsageInstance.IsAbstract); - dictionary.Add("isComposite", assertConstraintUsageInstance.IsComposite); - dictionary.Add("isConstant", assertConstraintUsageInstance.IsConstant); - dictionary.Add("isDerived", assertConstraintUsageInstance.IsDerived); - dictionary.Add("isEnd", assertConstraintUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", assertConstraintUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", assertConstraintUsageInstance.IsIndividual); - dictionary.Add("isNegated", assertConstraintUsageInstance.IsNegated); - dictionary.Add("isOrdered", assertConstraintUsageInstance.IsOrdered); - dictionary.Add("isPortion", assertConstraintUsageInstance.IsPortion); - dictionary.Add("isSufficient", assertConstraintUsageInstance.IsSufficient); - dictionary.Add("isUnique", assertConstraintUsageInstance.IsUnique); - dictionary.Add("isVariable", assertConstraintUsageInstance.IsVariable); - dictionary.Add("isVariation", assertConstraintUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", assertConstraintUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", assertConstraintUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", assertConstraintUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IAssertConstraintUsage assertConstraintUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "AssertConstraintUsage" }, - { "@id", assertConstraintUsageInstance.Id } - }; - - dictionary.Add("aliasIds", assertConstraintUsageInstance.AliasIds); - dictionary.Add("declaredName", assertConstraintUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", assertConstraintUsageInstance.DeclaredShortName); - dictionary.Add("direction", assertConstraintUsageInstance.Direction); - dictionary.Add("elementId", assertConstraintUsageInstance.ElementId); - dictionary.Add("isAbstract", assertConstraintUsageInstance.IsAbstract); - dictionary.Add("isComposite", assertConstraintUsageInstance.IsComposite); - dictionary.Add("isConstant", assertConstraintUsageInstance.IsConstant); - dictionary.Add("isDerived", assertConstraintUsageInstance.IsDerived); - dictionary.Add("isEnd", assertConstraintUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", assertConstraintUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", assertConstraintUsageInstance.IsIndividual); - dictionary.Add("isNegated", assertConstraintUsageInstance.IsNegated); - dictionary.Add("isOrdered", assertConstraintUsageInstance.IsOrdered); - dictionary.Add("isPortion", assertConstraintUsageInstance.IsPortion); - dictionary.Add("isSufficient", assertConstraintUsageInstance.IsSufficient); - dictionary.Add("isUnique", assertConstraintUsageInstance.IsUnique); - dictionary.Add("isVariable", assertConstraintUsageInstance.IsVariable); - dictionary.Add("isVariation", assertConstraintUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", assertConstraintUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", assertConstraintUsageInstance.OwningRelationship); - dictionary.Add("portionKind", assertConstraintUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAssertConstraintUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IAssertConstraintUsage assertConstraintUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IAssertConstraintUsage", "dataItem"); - } - - return assertConstraintUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssignmentActionUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssignmentActionUsageDictionaryWriter.cs deleted file mode 100644 index 36168ca55..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssignmentActionUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class AssignmentActionUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var assignmentActionUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(assignmentActionUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(assignmentActionUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IAssignmentActionUsage assignmentActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "AssignmentActionUsage" }, - { "@id", assignmentActionUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", assignmentActionUsageInstance.AliasIds); - dictionary.Add("declaredName", assignmentActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", assignmentActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", assignmentActionUsageInstance.Direction); - dictionary.Add("elementId", assignmentActionUsageInstance.ElementId); - dictionary.Add("isAbstract", assignmentActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", assignmentActionUsageInstance.IsComposite); - dictionary.Add("isConstant", assignmentActionUsageInstance.IsConstant); - dictionary.Add("isDerived", assignmentActionUsageInstance.IsDerived); - dictionary.Add("isEnd", assignmentActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", assignmentActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", assignmentActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", assignmentActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", assignmentActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", assignmentActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", assignmentActionUsageInstance.IsUnique); - dictionary.Add("isVariable", assignmentActionUsageInstance.IsVariable); - dictionary.Add("isVariation", assignmentActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", assignmentActionUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", assignmentActionUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", assignmentActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IAssignmentActionUsage assignmentActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "AssignmentActionUsage" }, - { "@id", assignmentActionUsageInstance.Id } - }; - - dictionary.Add("aliasIds", assignmentActionUsageInstance.AliasIds); - dictionary.Add("declaredName", assignmentActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", assignmentActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", assignmentActionUsageInstance.Direction); - dictionary.Add("elementId", assignmentActionUsageInstance.ElementId); - dictionary.Add("isAbstract", assignmentActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", assignmentActionUsageInstance.IsComposite); - dictionary.Add("isConstant", assignmentActionUsageInstance.IsConstant); - dictionary.Add("isDerived", assignmentActionUsageInstance.IsDerived); - dictionary.Add("isEnd", assignmentActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", assignmentActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", assignmentActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", assignmentActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", assignmentActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", assignmentActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", assignmentActionUsageInstance.IsUnique); - dictionary.Add("isVariable", assignmentActionUsageInstance.IsVariable); - dictionary.Add("isVariation", assignmentActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", assignmentActionUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", assignmentActionUsageInstance.OwningRelationship); - dictionary.Add("portionKind", assignmentActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAssignmentActionUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IAssignmentActionUsage assignmentActionUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IAssignmentActionUsage", "dataItem"); - } - - return assignmentActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssociationDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssociationDictionaryWriter.cs deleted file mode 100644 index f7d6395c4..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssociationDictionaryWriter.cs +++ /dev/null @@ -1,203 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class AssociationDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var associationInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(associationInstance); - case DictionaryKind.Simplified: - return WriteSimplified(associationInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IAssociation associationInstance) - { - var dictionary = new Dictionary - { - { "@type", "Association" }, - { "@id", associationInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", associationInstance.AliasIds); - dictionary.Add("declaredName", associationInstance.DeclaredName); - dictionary.Add("declaredShortName", associationInstance.DeclaredShortName); - dictionary.Add("elementId", associationInstance.ElementId); - dictionary.Add("isAbstract", associationInstance.IsAbstract); - dictionary.Add("isImplied", associationInstance.IsImplied); - dictionary.Add("isImpliedIncluded", associationInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", associationInstance.IsSufficient); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", associationInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", associationInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", associationInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", associationInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", associationInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", associationInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IAssociation associationInstance) - { - var dictionary = new Dictionary - { - { "@type", "Association" }, - { "@id", associationInstance.Id } - }; - - dictionary.Add("aliasIds", associationInstance.AliasIds); - dictionary.Add("declaredName", associationInstance.DeclaredName); - dictionary.Add("declaredShortName", associationInstance.DeclaredShortName); - dictionary.Add("elementId", associationInstance.ElementId); - dictionary.Add("isAbstract", associationInstance.IsAbstract); - dictionary.Add("isImplied", associationInstance.IsImplied); - dictionary.Add("isImpliedIncluded", associationInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", associationInstance.IsSufficient); - dictionary.Add("ownedRelatedElement", associationInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", associationInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", associationInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", associationInstance.OwningRelationship); - dictionary.Add("source", associationInstance.Source); - dictionary.Add("target", associationInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAssociation ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IAssociation associationInstance)) - { - throw new ArgumentException("The dataItem must be of Type IAssociation", "dataItem"); - } - - return associationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssociationStructureDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssociationStructureDictionaryWriter.cs deleted file mode 100644 index 8825afa39..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AssociationStructureDictionaryWriter.cs +++ /dev/null @@ -1,203 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class AssociationStructureDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var associationStructureInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(associationStructureInstance); - case DictionaryKind.Simplified: - return WriteSimplified(associationStructureInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IAssociationStructure associationStructureInstance) - { - var dictionary = new Dictionary - { - { "@type", "AssociationStructure" }, - { "@id", associationStructureInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", associationStructureInstance.AliasIds); - dictionary.Add("declaredName", associationStructureInstance.DeclaredName); - dictionary.Add("declaredShortName", associationStructureInstance.DeclaredShortName); - dictionary.Add("elementId", associationStructureInstance.ElementId); - dictionary.Add("isAbstract", associationStructureInstance.IsAbstract); - dictionary.Add("isImplied", associationStructureInstance.IsImplied); - dictionary.Add("isImpliedIncluded", associationStructureInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", associationStructureInstance.IsSufficient); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", associationStructureInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", associationStructureInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", associationStructureInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", associationStructureInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", associationStructureInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", associationStructureInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IAssociationStructure associationStructureInstance) - { - var dictionary = new Dictionary - { - { "@type", "AssociationStructure" }, - { "@id", associationStructureInstance.Id } - }; - - dictionary.Add("aliasIds", associationStructureInstance.AliasIds); - dictionary.Add("declaredName", associationStructureInstance.DeclaredName); - dictionary.Add("declaredShortName", associationStructureInstance.DeclaredShortName); - dictionary.Add("elementId", associationStructureInstance.ElementId); - dictionary.Add("isAbstract", associationStructureInstance.IsAbstract); - dictionary.Add("isImplied", associationStructureInstance.IsImplied); - dictionary.Add("isImpliedIncluded", associationStructureInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", associationStructureInstance.IsSufficient); - dictionary.Add("ownedRelatedElement", associationStructureInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", associationStructureInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", associationStructureInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", associationStructureInstance.OwningRelationship); - dictionary.Add("source", associationStructureInstance.Source); - dictionary.Add("target", associationStructureInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAssociationStructure ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IAssociationStructure associationStructureInstance)) - { - throw new ArgumentException("The dataItem must be of Type IAssociationStructure", "dataItem"); - } - - return associationStructureInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AttributeDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AttributeDefinitionDictionaryWriter.cs deleted file mode 100644 index 725e0e6b1..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AttributeDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,195 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class AttributeDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var attributeDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(attributeDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(attributeDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IAttributeDefinition attributeDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "AttributeDefinition" }, - { "@id", attributeDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", attributeDefinitionInstance.AliasIds); - dictionary.Add("declaredName", attributeDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", attributeDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", attributeDefinitionInstance.ElementId); - dictionary.Add("isAbstract", attributeDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", attributeDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", attributeDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", attributeDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", attributeDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", attributeDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IAttributeDefinition attributeDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "AttributeDefinition" }, - { "@id", attributeDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", attributeDefinitionInstance.AliasIds); - dictionary.Add("declaredName", attributeDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", attributeDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", attributeDefinitionInstance.ElementId); - dictionary.Add("isAbstract", attributeDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", attributeDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", attributeDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", attributeDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", attributeDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", attributeDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAttributeDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IAttributeDefinition attributeDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IAttributeDefinition", "dataItem"); - } - - return attributeDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AttributeUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AttributeUsageDictionaryWriter.cs deleted file mode 100644 index 334b369ee..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/AttributeUsageDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class AttributeUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var attributeUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(attributeUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(attributeUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IAttributeUsage attributeUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "AttributeUsage" }, - { "@id", attributeUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", attributeUsageInstance.AliasIds); - dictionary.Add("declaredName", attributeUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", attributeUsageInstance.DeclaredShortName); - dictionary.Add("direction", attributeUsageInstance.Direction); - dictionary.Add("elementId", attributeUsageInstance.ElementId); - dictionary.Add("isAbstract", attributeUsageInstance.IsAbstract); - dictionary.Add("isComposite", attributeUsageInstance.IsComposite); - dictionary.Add("isConstant", attributeUsageInstance.IsConstant); - dictionary.Add("isDerived", attributeUsageInstance.IsDerived); - dictionary.Add("isEnd", attributeUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", attributeUsageInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", attributeUsageInstance.IsOrdered); - dictionary.Add("isPortion", attributeUsageInstance.IsPortion); - dictionary.Add("isSufficient", attributeUsageInstance.IsSufficient); - dictionary.Add("isUnique", attributeUsageInstance.IsUnique); - dictionary.Add("isVariable", attributeUsageInstance.IsVariable); - dictionary.Add("isVariation", attributeUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", attributeUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", attributeUsageInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IAttributeUsage attributeUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "AttributeUsage" }, - { "@id", attributeUsageInstance.Id } - }; - - dictionary.Add("aliasIds", attributeUsageInstance.AliasIds); - dictionary.Add("declaredName", attributeUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", attributeUsageInstance.DeclaredShortName); - dictionary.Add("direction", attributeUsageInstance.Direction); - dictionary.Add("elementId", attributeUsageInstance.ElementId); - dictionary.Add("isAbstract", attributeUsageInstance.IsAbstract); - dictionary.Add("isComposite", attributeUsageInstance.IsComposite); - dictionary.Add("isConstant", attributeUsageInstance.IsConstant); - dictionary.Add("isDerived", attributeUsageInstance.IsDerived); - dictionary.Add("isEnd", attributeUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", attributeUsageInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", attributeUsageInstance.IsOrdered); - dictionary.Add("isPortion", attributeUsageInstance.IsPortion); - dictionary.Add("isSufficient", attributeUsageInstance.IsSufficient); - dictionary.Add("isUnique", attributeUsageInstance.IsUnique); - dictionary.Add("isVariable", attributeUsageInstance.IsVariable); - dictionary.Add("isVariation", attributeUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", attributeUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", attributeUsageInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IAttributeUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IAttributeUsage attributeUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IAttributeUsage", "dataItem"); - } - - return attributeUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BehaviorDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BehaviorDictionaryWriter.cs deleted file mode 100644 index 4c1e801b3..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BehaviorDictionaryWriter.cs +++ /dev/null @@ -1,193 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class BehaviorDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var behaviorInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(behaviorInstance); - case DictionaryKind.Simplified: - return WriteSimplified(behaviorInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IBehavior behaviorInstance) - { - var dictionary = new Dictionary - { - { "@type", "Behavior" }, - { "@id", behaviorInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", behaviorInstance.AliasIds); - dictionary.Add("declaredName", behaviorInstance.DeclaredName); - dictionary.Add("declaredShortName", behaviorInstance.DeclaredShortName); - dictionary.Add("elementId", behaviorInstance.ElementId); - dictionary.Add("isAbstract", behaviorInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", behaviorInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", behaviorInstance.IsSufficient); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", behaviorInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", behaviorInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IBehavior behaviorInstance) - { - var dictionary = new Dictionary - { - { "@type", "Behavior" }, - { "@id", behaviorInstance.Id } - }; - - dictionary.Add("aliasIds", behaviorInstance.AliasIds); - dictionary.Add("declaredName", behaviorInstance.DeclaredName); - dictionary.Add("declaredShortName", behaviorInstance.DeclaredShortName); - dictionary.Add("elementId", behaviorInstance.ElementId); - dictionary.Add("isAbstract", behaviorInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", behaviorInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", behaviorInstance.IsSufficient); - dictionary.Add("ownedRelationship", behaviorInstance.OwnedRelationship); - dictionary.Add("owningRelationship", behaviorInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IBehavior ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IBehavior behaviorInstance)) - { - throw new ArgumentException("The dataItem must be of Type IBehavior", "dataItem"); - } - - return behaviorInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BindingConnectorAsUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BindingConnectorAsUsageDictionaryWriter.cs deleted file mode 100644 index bb35c2919..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BindingConnectorAsUsageDictionaryWriter.cs +++ /dev/null @@ -1,223 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class BindingConnectorAsUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var bindingConnectorAsUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(bindingConnectorAsUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(bindingConnectorAsUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IBindingConnectorAsUsage bindingConnectorAsUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "BindingConnectorAsUsage" }, - { "@id", bindingConnectorAsUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", bindingConnectorAsUsageInstance.AliasIds); - dictionary.Add("declaredName", bindingConnectorAsUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", bindingConnectorAsUsageInstance.DeclaredShortName); - dictionary.Add("direction", bindingConnectorAsUsageInstance.Direction); - dictionary.Add("elementId", bindingConnectorAsUsageInstance.ElementId); - dictionary.Add("isAbstract", bindingConnectorAsUsageInstance.IsAbstract); - dictionary.Add("isComposite", bindingConnectorAsUsageInstance.IsComposite); - dictionary.Add("isConstant", bindingConnectorAsUsageInstance.IsConstant); - dictionary.Add("isDerived", bindingConnectorAsUsageInstance.IsDerived); - dictionary.Add("isEnd", bindingConnectorAsUsageInstance.IsEnd); - dictionary.Add("isImplied", bindingConnectorAsUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", bindingConnectorAsUsageInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", bindingConnectorAsUsageInstance.IsOrdered); - dictionary.Add("isPortion", bindingConnectorAsUsageInstance.IsPortion); - dictionary.Add("isSufficient", bindingConnectorAsUsageInstance.IsSufficient); - dictionary.Add("isUnique", bindingConnectorAsUsageInstance.IsUnique); - dictionary.Add("isVariable", bindingConnectorAsUsageInstance.IsVariable); - dictionary.Add("isVariation", bindingConnectorAsUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", bindingConnectorAsUsageInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", bindingConnectorAsUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", bindingConnectorAsUsageInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", bindingConnectorAsUsageInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", bindingConnectorAsUsageInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", bindingConnectorAsUsageInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IBindingConnectorAsUsage bindingConnectorAsUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "BindingConnectorAsUsage" }, - { "@id", bindingConnectorAsUsageInstance.Id } - }; - - dictionary.Add("aliasIds", bindingConnectorAsUsageInstance.AliasIds); - dictionary.Add("declaredName", bindingConnectorAsUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", bindingConnectorAsUsageInstance.DeclaredShortName); - dictionary.Add("direction", bindingConnectorAsUsageInstance.Direction); - dictionary.Add("elementId", bindingConnectorAsUsageInstance.ElementId); - dictionary.Add("isAbstract", bindingConnectorAsUsageInstance.IsAbstract); - dictionary.Add("isComposite", bindingConnectorAsUsageInstance.IsComposite); - dictionary.Add("isConstant", bindingConnectorAsUsageInstance.IsConstant); - dictionary.Add("isDerived", bindingConnectorAsUsageInstance.IsDerived); - dictionary.Add("isEnd", bindingConnectorAsUsageInstance.IsEnd); - dictionary.Add("isImplied", bindingConnectorAsUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", bindingConnectorAsUsageInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", bindingConnectorAsUsageInstance.IsOrdered); - dictionary.Add("isPortion", bindingConnectorAsUsageInstance.IsPortion); - dictionary.Add("isSufficient", bindingConnectorAsUsageInstance.IsSufficient); - dictionary.Add("isUnique", bindingConnectorAsUsageInstance.IsUnique); - dictionary.Add("isVariable", bindingConnectorAsUsageInstance.IsVariable); - dictionary.Add("isVariation", bindingConnectorAsUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", bindingConnectorAsUsageInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", bindingConnectorAsUsageInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", bindingConnectorAsUsageInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", bindingConnectorAsUsageInstance.OwningRelationship); - dictionary.Add("source", bindingConnectorAsUsageInstance.Source); - dictionary.Add("target", bindingConnectorAsUsageInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IBindingConnectorAsUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IBindingConnectorAsUsage bindingConnectorAsUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IBindingConnectorAsUsage", "dataItem"); - } - - return bindingConnectorAsUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BindingConnectorDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BindingConnectorDictionaryWriter.cs deleted file mode 100644 index 879b2b937..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BindingConnectorDictionaryWriter.cs +++ /dev/null @@ -1,221 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class BindingConnectorDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var bindingConnectorInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(bindingConnectorInstance); - case DictionaryKind.Simplified: - return WriteSimplified(bindingConnectorInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IBindingConnector bindingConnectorInstance) - { - var dictionary = new Dictionary - { - { "@type", "BindingConnector" }, - { "@id", bindingConnectorInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", bindingConnectorInstance.AliasIds); - dictionary.Add("declaredName", bindingConnectorInstance.DeclaredName); - dictionary.Add("declaredShortName", bindingConnectorInstance.DeclaredShortName); - dictionary.Add("direction", bindingConnectorInstance.Direction); - dictionary.Add("elementId", bindingConnectorInstance.ElementId); - dictionary.Add("isAbstract", bindingConnectorInstance.IsAbstract); - dictionary.Add("isComposite", bindingConnectorInstance.IsComposite); - dictionary.Add("isConstant", bindingConnectorInstance.IsConstant); - dictionary.Add("isDerived", bindingConnectorInstance.IsDerived); - dictionary.Add("isEnd", bindingConnectorInstance.IsEnd); - dictionary.Add("isImplied", bindingConnectorInstance.IsImplied); - dictionary.Add("isImpliedIncluded", bindingConnectorInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", bindingConnectorInstance.IsOrdered); - dictionary.Add("isPortion", bindingConnectorInstance.IsPortion); - dictionary.Add("isSufficient", bindingConnectorInstance.IsSufficient); - dictionary.Add("isUnique", bindingConnectorInstance.IsUnique); - dictionary.Add("isVariable", bindingConnectorInstance.IsVariable); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", bindingConnectorInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", bindingConnectorInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", bindingConnectorInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", bindingConnectorInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", bindingConnectorInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", bindingConnectorInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IBindingConnector bindingConnectorInstance) - { - var dictionary = new Dictionary - { - { "@type", "BindingConnector" }, - { "@id", bindingConnectorInstance.Id } - }; - - dictionary.Add("aliasIds", bindingConnectorInstance.AliasIds); - dictionary.Add("declaredName", bindingConnectorInstance.DeclaredName); - dictionary.Add("declaredShortName", bindingConnectorInstance.DeclaredShortName); - dictionary.Add("direction", bindingConnectorInstance.Direction); - dictionary.Add("elementId", bindingConnectorInstance.ElementId); - dictionary.Add("isAbstract", bindingConnectorInstance.IsAbstract); - dictionary.Add("isComposite", bindingConnectorInstance.IsComposite); - dictionary.Add("isConstant", bindingConnectorInstance.IsConstant); - dictionary.Add("isDerived", bindingConnectorInstance.IsDerived); - dictionary.Add("isEnd", bindingConnectorInstance.IsEnd); - dictionary.Add("isImplied", bindingConnectorInstance.IsImplied); - dictionary.Add("isImpliedIncluded", bindingConnectorInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", bindingConnectorInstance.IsOrdered); - dictionary.Add("isPortion", bindingConnectorInstance.IsPortion); - dictionary.Add("isSufficient", bindingConnectorInstance.IsSufficient); - dictionary.Add("isUnique", bindingConnectorInstance.IsUnique); - dictionary.Add("isVariable", bindingConnectorInstance.IsVariable); - dictionary.Add("ownedRelatedElement", bindingConnectorInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", bindingConnectorInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", bindingConnectorInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", bindingConnectorInstance.OwningRelationship); - dictionary.Add("source", bindingConnectorInstance.Source); - dictionary.Add("target", bindingConnectorInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IBindingConnector ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IBindingConnector bindingConnectorInstance)) - { - throw new ArgumentException("The dataItem must be of Type IBindingConnector", "dataItem"); - } - - return bindingConnectorInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BooleanExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BooleanExpressionDictionaryWriter.cs deleted file mode 100644 index 04ecce357..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/BooleanExpressionDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class BooleanExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var booleanExpressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(booleanExpressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(booleanExpressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IBooleanExpression booleanExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "BooleanExpression" }, - { "@id", booleanExpressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", booleanExpressionInstance.AliasIds); - dictionary.Add("declaredName", booleanExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", booleanExpressionInstance.DeclaredShortName); - dictionary.Add("direction", booleanExpressionInstance.Direction); - dictionary.Add("elementId", booleanExpressionInstance.ElementId); - dictionary.Add("isAbstract", booleanExpressionInstance.IsAbstract); - dictionary.Add("isComposite", booleanExpressionInstance.IsComposite); - dictionary.Add("isConstant", booleanExpressionInstance.IsConstant); - dictionary.Add("isDerived", booleanExpressionInstance.IsDerived); - dictionary.Add("isEnd", booleanExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", booleanExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", booleanExpressionInstance.IsOrdered); - dictionary.Add("isPortion", booleanExpressionInstance.IsPortion); - dictionary.Add("isSufficient", booleanExpressionInstance.IsSufficient); - dictionary.Add("isUnique", booleanExpressionInstance.IsUnique); - dictionary.Add("isVariable", booleanExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", booleanExpressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", booleanExpressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IBooleanExpression booleanExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "BooleanExpression" }, - { "@id", booleanExpressionInstance.Id } - }; - - dictionary.Add("aliasIds", booleanExpressionInstance.AliasIds); - dictionary.Add("declaredName", booleanExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", booleanExpressionInstance.DeclaredShortName); - dictionary.Add("direction", booleanExpressionInstance.Direction); - dictionary.Add("elementId", booleanExpressionInstance.ElementId); - dictionary.Add("isAbstract", booleanExpressionInstance.IsAbstract); - dictionary.Add("isComposite", booleanExpressionInstance.IsComposite); - dictionary.Add("isConstant", booleanExpressionInstance.IsConstant); - dictionary.Add("isDerived", booleanExpressionInstance.IsDerived); - dictionary.Add("isEnd", booleanExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", booleanExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", booleanExpressionInstance.IsOrdered); - dictionary.Add("isPortion", booleanExpressionInstance.IsPortion); - dictionary.Add("isSufficient", booleanExpressionInstance.IsSufficient); - dictionary.Add("isUnique", booleanExpressionInstance.IsUnique); - dictionary.Add("isVariable", booleanExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", booleanExpressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", booleanExpressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IBooleanExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IBooleanExpression booleanExpressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IBooleanExpression", "dataItem"); - } - - return booleanExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CalculationDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CalculationDefinitionDictionaryWriter.cs deleted file mode 100644 index 18dd44d1d..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CalculationDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class CalculationDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var calculationDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(calculationDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(calculationDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ICalculationDefinition calculationDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "CalculationDefinition" }, - { "@id", calculationDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", calculationDefinitionInstance.AliasIds); - dictionary.Add("declaredName", calculationDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", calculationDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", calculationDefinitionInstance.ElementId); - dictionary.Add("isAbstract", calculationDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", calculationDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", calculationDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", calculationDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", calculationDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", calculationDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", calculationDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ICalculationDefinition calculationDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "CalculationDefinition" }, - { "@id", calculationDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", calculationDefinitionInstance.AliasIds); - dictionary.Add("declaredName", calculationDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", calculationDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", calculationDefinitionInstance.ElementId); - dictionary.Add("isAbstract", calculationDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", calculationDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", calculationDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", calculationDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", calculationDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", calculationDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", calculationDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ICalculationDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ICalculationDefinition calculationDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type ICalculationDefinition", "dataItem"); - } - - return calculationDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CalculationUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CalculationUsageDictionaryWriter.cs deleted file mode 100644 index 3d15ec251..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CalculationUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class CalculationUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var calculationUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(calculationUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(calculationUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ICalculationUsage calculationUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "CalculationUsage" }, - { "@id", calculationUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", calculationUsageInstance.AliasIds); - dictionary.Add("declaredName", calculationUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", calculationUsageInstance.DeclaredShortName); - dictionary.Add("direction", calculationUsageInstance.Direction); - dictionary.Add("elementId", calculationUsageInstance.ElementId); - dictionary.Add("isAbstract", calculationUsageInstance.IsAbstract); - dictionary.Add("isComposite", calculationUsageInstance.IsComposite); - dictionary.Add("isConstant", calculationUsageInstance.IsConstant); - dictionary.Add("isDerived", calculationUsageInstance.IsDerived); - dictionary.Add("isEnd", calculationUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", calculationUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", calculationUsageInstance.IsIndividual); - dictionary.Add("isOrdered", calculationUsageInstance.IsOrdered); - dictionary.Add("isPortion", calculationUsageInstance.IsPortion); - dictionary.Add("isSufficient", calculationUsageInstance.IsSufficient); - dictionary.Add("isUnique", calculationUsageInstance.IsUnique); - dictionary.Add("isVariable", calculationUsageInstance.IsVariable); - dictionary.Add("isVariation", calculationUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", calculationUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", calculationUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", calculationUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ICalculationUsage calculationUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "CalculationUsage" }, - { "@id", calculationUsageInstance.Id } - }; - - dictionary.Add("aliasIds", calculationUsageInstance.AliasIds); - dictionary.Add("declaredName", calculationUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", calculationUsageInstance.DeclaredShortName); - dictionary.Add("direction", calculationUsageInstance.Direction); - dictionary.Add("elementId", calculationUsageInstance.ElementId); - dictionary.Add("isAbstract", calculationUsageInstance.IsAbstract); - dictionary.Add("isComposite", calculationUsageInstance.IsComposite); - dictionary.Add("isConstant", calculationUsageInstance.IsConstant); - dictionary.Add("isDerived", calculationUsageInstance.IsDerived); - dictionary.Add("isEnd", calculationUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", calculationUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", calculationUsageInstance.IsIndividual); - dictionary.Add("isOrdered", calculationUsageInstance.IsOrdered); - dictionary.Add("isPortion", calculationUsageInstance.IsPortion); - dictionary.Add("isSufficient", calculationUsageInstance.IsSufficient); - dictionary.Add("isUnique", calculationUsageInstance.IsUnique); - dictionary.Add("isVariable", calculationUsageInstance.IsVariable); - dictionary.Add("isVariation", calculationUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", calculationUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", calculationUsageInstance.OwningRelationship); - dictionary.Add("portionKind", calculationUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ICalculationUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ICalculationUsage calculationUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type ICalculationUsage", "dataItem"); - } - - return calculationUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CaseDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CaseDefinitionDictionaryWriter.cs deleted file mode 100644 index 90c122afb..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CaseDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class CaseDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var caseDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(caseDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(caseDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ICaseDefinition caseDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "CaseDefinition" }, - { "@id", caseDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", caseDefinitionInstance.AliasIds); - dictionary.Add("declaredName", caseDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", caseDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", caseDefinitionInstance.ElementId); - dictionary.Add("isAbstract", caseDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", caseDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", caseDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", caseDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", caseDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", caseDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", caseDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ICaseDefinition caseDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "CaseDefinition" }, - { "@id", caseDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", caseDefinitionInstance.AliasIds); - dictionary.Add("declaredName", caseDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", caseDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", caseDefinitionInstance.ElementId); - dictionary.Add("isAbstract", caseDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", caseDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", caseDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", caseDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", caseDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", caseDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", caseDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ICaseDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ICaseDefinition caseDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type ICaseDefinition", "dataItem"); - } - - return caseDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CaseUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CaseUsageDictionaryWriter.cs deleted file mode 100644 index e963a3a39..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CaseUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class CaseUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var caseUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(caseUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(caseUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ICaseUsage caseUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "CaseUsage" }, - { "@id", caseUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", caseUsageInstance.AliasIds); - dictionary.Add("declaredName", caseUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", caseUsageInstance.DeclaredShortName); - dictionary.Add("direction", caseUsageInstance.Direction); - dictionary.Add("elementId", caseUsageInstance.ElementId); - dictionary.Add("isAbstract", caseUsageInstance.IsAbstract); - dictionary.Add("isComposite", caseUsageInstance.IsComposite); - dictionary.Add("isConstant", caseUsageInstance.IsConstant); - dictionary.Add("isDerived", caseUsageInstance.IsDerived); - dictionary.Add("isEnd", caseUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", caseUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", caseUsageInstance.IsIndividual); - dictionary.Add("isOrdered", caseUsageInstance.IsOrdered); - dictionary.Add("isPortion", caseUsageInstance.IsPortion); - dictionary.Add("isSufficient", caseUsageInstance.IsSufficient); - dictionary.Add("isUnique", caseUsageInstance.IsUnique); - dictionary.Add("isVariable", caseUsageInstance.IsVariable); - dictionary.Add("isVariation", caseUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", caseUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", caseUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", caseUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ICaseUsage caseUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "CaseUsage" }, - { "@id", caseUsageInstance.Id } - }; - - dictionary.Add("aliasIds", caseUsageInstance.AliasIds); - dictionary.Add("declaredName", caseUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", caseUsageInstance.DeclaredShortName); - dictionary.Add("direction", caseUsageInstance.Direction); - dictionary.Add("elementId", caseUsageInstance.ElementId); - dictionary.Add("isAbstract", caseUsageInstance.IsAbstract); - dictionary.Add("isComposite", caseUsageInstance.IsComposite); - dictionary.Add("isConstant", caseUsageInstance.IsConstant); - dictionary.Add("isDerived", caseUsageInstance.IsDerived); - dictionary.Add("isEnd", caseUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", caseUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", caseUsageInstance.IsIndividual); - dictionary.Add("isOrdered", caseUsageInstance.IsOrdered); - dictionary.Add("isPortion", caseUsageInstance.IsPortion); - dictionary.Add("isSufficient", caseUsageInstance.IsSufficient); - dictionary.Add("isUnique", caseUsageInstance.IsUnique); - dictionary.Add("isVariable", caseUsageInstance.IsVariable); - dictionary.Add("isVariation", caseUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", caseUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", caseUsageInstance.OwningRelationship); - dictionary.Add("portionKind", caseUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ICaseUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ICaseUsage caseUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type ICaseUsage", "dataItem"); - } - - return caseUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ClassDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ClassDictionaryWriter.cs deleted file mode 100644 index b4fbc6efa..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ClassDictionaryWriter.cs +++ /dev/null @@ -1,193 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ClassDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var classInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(classInstance); - case DictionaryKind.Simplified: - return WriteSimplified(classInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IClass classInstance) - { - var dictionary = new Dictionary - { - { "@type", "Class" }, - { "@id", classInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", classInstance.AliasIds); - dictionary.Add("declaredName", classInstance.DeclaredName); - dictionary.Add("declaredShortName", classInstance.DeclaredShortName); - dictionary.Add("elementId", classInstance.ElementId); - dictionary.Add("isAbstract", classInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", classInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", classInstance.IsSufficient); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", classInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", classInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IClass classInstance) - { - var dictionary = new Dictionary - { - { "@type", "Class" }, - { "@id", classInstance.Id } - }; - - dictionary.Add("aliasIds", classInstance.AliasIds); - dictionary.Add("declaredName", classInstance.DeclaredName); - dictionary.Add("declaredShortName", classInstance.DeclaredShortName); - dictionary.Add("elementId", classInstance.ElementId); - dictionary.Add("isAbstract", classInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", classInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", classInstance.IsSufficient); - dictionary.Add("ownedRelationship", classInstance.OwnedRelationship); - dictionary.Add("owningRelationship", classInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IClass ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IClass classInstance)) - { - throw new ArgumentException("The dataItem must be of Type IClass", "dataItem"); - } - - return classInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ClassifierDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ClassifierDictionaryWriter.cs deleted file mode 100644 index c71d0aa59..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ClassifierDictionaryWriter.cs +++ /dev/null @@ -1,193 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ClassifierDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var classifierInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(classifierInstance); - case DictionaryKind.Simplified: - return WriteSimplified(classifierInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IClassifier classifierInstance) - { - var dictionary = new Dictionary - { - { "@type", "Classifier" }, - { "@id", classifierInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", classifierInstance.AliasIds); - dictionary.Add("declaredName", classifierInstance.DeclaredName); - dictionary.Add("declaredShortName", classifierInstance.DeclaredShortName); - dictionary.Add("elementId", classifierInstance.ElementId); - dictionary.Add("isAbstract", classifierInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", classifierInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", classifierInstance.IsSufficient); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", classifierInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", classifierInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IClassifier classifierInstance) - { - var dictionary = new Dictionary - { - { "@type", "Classifier" }, - { "@id", classifierInstance.Id } - }; - - dictionary.Add("aliasIds", classifierInstance.AliasIds); - dictionary.Add("declaredName", classifierInstance.DeclaredName); - dictionary.Add("declaredShortName", classifierInstance.DeclaredShortName); - dictionary.Add("elementId", classifierInstance.ElementId); - dictionary.Add("isAbstract", classifierInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", classifierInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", classifierInstance.IsSufficient); - dictionary.Add("ownedRelationship", classifierInstance.OwnedRelationship); - dictionary.Add("owningRelationship", classifierInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IClassifier ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IClassifier classifierInstance)) - { - throw new ArgumentException("The dataItem must be of Type IClassifier", "dataItem"); - } - - return classifierInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CollectExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CollectExpressionDictionaryWriter.cs deleted file mode 100644 index 6466c4872..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CollectExpressionDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class CollectExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var collectExpressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(collectExpressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(collectExpressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ICollectExpression collectExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "CollectExpression" }, - { "@id", collectExpressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", collectExpressionInstance.AliasIds); - dictionary.Add("declaredName", collectExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", collectExpressionInstance.DeclaredShortName); - dictionary.Add("direction", collectExpressionInstance.Direction); - dictionary.Add("elementId", collectExpressionInstance.ElementId); - dictionary.Add("isAbstract", collectExpressionInstance.IsAbstract); - dictionary.Add("isComposite", collectExpressionInstance.IsComposite); - dictionary.Add("isConstant", collectExpressionInstance.IsConstant); - dictionary.Add("isDerived", collectExpressionInstance.IsDerived); - dictionary.Add("isEnd", collectExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", collectExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", collectExpressionInstance.IsOrdered); - dictionary.Add("isPortion", collectExpressionInstance.IsPortion); - dictionary.Add("isSufficient", collectExpressionInstance.IsSufficient); - dictionary.Add("isUnique", collectExpressionInstance.IsUnique); - dictionary.Add("isVariable", collectExpressionInstance.IsVariable); - dictionary.Add("operator", collectExpressionInstance.Operator); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", collectExpressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", collectExpressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ICollectExpression collectExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "CollectExpression" }, - { "@id", collectExpressionInstance.Id } - }; - - dictionary.Add("aliasIds", collectExpressionInstance.AliasIds); - dictionary.Add("declaredName", collectExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", collectExpressionInstance.DeclaredShortName); - dictionary.Add("direction", collectExpressionInstance.Direction); - dictionary.Add("elementId", collectExpressionInstance.ElementId); - dictionary.Add("isAbstract", collectExpressionInstance.IsAbstract); - dictionary.Add("isComposite", collectExpressionInstance.IsComposite); - dictionary.Add("isConstant", collectExpressionInstance.IsConstant); - dictionary.Add("isDerived", collectExpressionInstance.IsDerived); - dictionary.Add("isEnd", collectExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", collectExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", collectExpressionInstance.IsOrdered); - dictionary.Add("isPortion", collectExpressionInstance.IsPortion); - dictionary.Add("isSufficient", collectExpressionInstance.IsSufficient); - dictionary.Add("isUnique", collectExpressionInstance.IsUnique); - dictionary.Add("isVariable", collectExpressionInstance.IsVariable); - dictionary.Add("operator", collectExpressionInstance.Operator); - dictionary.Add("ownedRelationship", collectExpressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", collectExpressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ICollectExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ICollectExpression collectExpressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type ICollectExpression", "dataItem"); - } - - return collectExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CommentDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CommentDictionaryWriter.cs deleted file mode 100644 index 7ee3bd705..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CommentDictionaryWriter.cs +++ /dev/null @@ -1,193 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class CommentDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var commentInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(commentInstance); - case DictionaryKind.Simplified: - return WriteSimplified(commentInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IComment commentInstance) - { - var dictionary = new Dictionary - { - { "@type", "Comment" }, - { "@id", commentInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", commentInstance.AliasIds); - dictionary.Add("body", commentInstance.Body); - dictionary.Add("declaredName", commentInstance.DeclaredName); - dictionary.Add("declaredShortName", commentInstance.DeclaredShortName); - dictionary.Add("elementId", commentInstance.ElementId); - dictionary.Add("isImpliedIncluded", commentInstance.IsImpliedIncluded); - dictionary.Add("locale", commentInstance.Locale); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", commentInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", commentInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IComment commentInstance) - { - var dictionary = new Dictionary - { - { "@type", "Comment" }, - { "@id", commentInstance.Id } - }; - - dictionary.Add("aliasIds", commentInstance.AliasIds); - dictionary.Add("body", commentInstance.Body); - dictionary.Add("declaredName", commentInstance.DeclaredName); - dictionary.Add("declaredShortName", commentInstance.DeclaredShortName); - dictionary.Add("elementId", commentInstance.ElementId); - dictionary.Add("isImpliedIncluded", commentInstance.IsImpliedIncluded); - dictionary.Add("locale", commentInstance.Locale); - dictionary.Add("ownedRelationship", commentInstance.OwnedRelationship); - dictionary.Add("owningRelationship", commentInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IComment ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IComment commentInstance)) - { - throw new ArgumentException("The dataItem must be of Type IComment", "dataItem"); - } - - return commentInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConcernDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConcernDefinitionDictionaryWriter.cs deleted file mode 100644 index c2a68e95b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConcernDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,199 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ConcernDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var concernDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(concernDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(concernDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IConcernDefinition concernDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConcernDefinition" }, - { "@id", concernDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", concernDefinitionInstance.AliasIds); - dictionary.Add("declaredName", concernDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", concernDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", concernDefinitionInstance.ElementId); - dictionary.Add("isAbstract", concernDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", concernDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", concernDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", concernDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", concernDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", concernDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", concernDefinitionInstance.OwningRelationship.ToString()); - dictionary.Add("reqId", concernDefinitionInstance.ReqId); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IConcernDefinition concernDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConcernDefinition" }, - { "@id", concernDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", concernDefinitionInstance.AliasIds); - dictionary.Add("declaredName", concernDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", concernDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", concernDefinitionInstance.ElementId); - dictionary.Add("isAbstract", concernDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", concernDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", concernDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", concernDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", concernDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", concernDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", concernDefinitionInstance.OwningRelationship); - dictionary.Add("reqId", concernDefinitionInstance.ReqId); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConcernDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IConcernDefinition concernDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IConcernDefinition", "dataItem"); - } - - return concernDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConcernUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConcernUsageDictionaryWriter.cs deleted file mode 100644 index 40c8f7032..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConcernUsageDictionaryWriter.cs +++ /dev/null @@ -1,219 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ConcernUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var concernUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(concernUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(concernUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IConcernUsage concernUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConcernUsage" }, - { "@id", concernUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", concernUsageInstance.AliasIds); - dictionary.Add("declaredName", concernUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", concernUsageInstance.DeclaredShortName); - dictionary.Add("direction", concernUsageInstance.Direction); - dictionary.Add("elementId", concernUsageInstance.ElementId); - dictionary.Add("isAbstract", concernUsageInstance.IsAbstract); - dictionary.Add("isComposite", concernUsageInstance.IsComposite); - dictionary.Add("isConstant", concernUsageInstance.IsConstant); - dictionary.Add("isDerived", concernUsageInstance.IsDerived); - dictionary.Add("isEnd", concernUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", concernUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", concernUsageInstance.IsIndividual); - dictionary.Add("isOrdered", concernUsageInstance.IsOrdered); - dictionary.Add("isPortion", concernUsageInstance.IsPortion); - dictionary.Add("isSufficient", concernUsageInstance.IsSufficient); - dictionary.Add("isUnique", concernUsageInstance.IsUnique); - dictionary.Add("isVariable", concernUsageInstance.IsVariable); - dictionary.Add("isVariation", concernUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", concernUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", concernUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", concernUsageInstance.PortionKind); - dictionary.Add("reqId", concernUsageInstance.ReqId); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IConcernUsage concernUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConcernUsage" }, - { "@id", concernUsageInstance.Id } - }; - - dictionary.Add("aliasIds", concernUsageInstance.AliasIds); - dictionary.Add("declaredName", concernUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", concernUsageInstance.DeclaredShortName); - dictionary.Add("direction", concernUsageInstance.Direction); - dictionary.Add("elementId", concernUsageInstance.ElementId); - dictionary.Add("isAbstract", concernUsageInstance.IsAbstract); - dictionary.Add("isComposite", concernUsageInstance.IsComposite); - dictionary.Add("isConstant", concernUsageInstance.IsConstant); - dictionary.Add("isDerived", concernUsageInstance.IsDerived); - dictionary.Add("isEnd", concernUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", concernUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", concernUsageInstance.IsIndividual); - dictionary.Add("isOrdered", concernUsageInstance.IsOrdered); - dictionary.Add("isPortion", concernUsageInstance.IsPortion); - dictionary.Add("isSufficient", concernUsageInstance.IsSufficient); - dictionary.Add("isUnique", concernUsageInstance.IsUnique); - dictionary.Add("isVariable", concernUsageInstance.IsVariable); - dictionary.Add("isVariation", concernUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", concernUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", concernUsageInstance.OwningRelationship); - dictionary.Add("portionKind", concernUsageInstance.PortionKind); - dictionary.Add("reqId", concernUsageInstance.ReqId); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConcernUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IConcernUsage concernUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IConcernUsage", "dataItem"); - } - - return concernUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConjugatedPortDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConjugatedPortDefinitionDictionaryWriter.cs deleted file mode 100644 index c6c3a430e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConjugatedPortDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ConjugatedPortDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var conjugatedPortDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(conjugatedPortDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(conjugatedPortDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IConjugatedPortDefinition conjugatedPortDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConjugatedPortDefinition" }, - { "@id", conjugatedPortDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", conjugatedPortDefinitionInstance.AliasIds); - dictionary.Add("declaredName", conjugatedPortDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", conjugatedPortDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", conjugatedPortDefinitionInstance.ElementId); - dictionary.Add("isAbstract", conjugatedPortDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", conjugatedPortDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", conjugatedPortDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", conjugatedPortDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", conjugatedPortDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", conjugatedPortDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", conjugatedPortDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IConjugatedPortDefinition conjugatedPortDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConjugatedPortDefinition" }, - { "@id", conjugatedPortDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", conjugatedPortDefinitionInstance.AliasIds); - dictionary.Add("declaredName", conjugatedPortDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", conjugatedPortDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", conjugatedPortDefinitionInstance.ElementId); - dictionary.Add("isAbstract", conjugatedPortDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", conjugatedPortDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", conjugatedPortDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", conjugatedPortDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", conjugatedPortDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", conjugatedPortDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", conjugatedPortDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConjugatedPortDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IConjugatedPortDefinition conjugatedPortDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IConjugatedPortDefinition", "dataItem"); - } - - return conjugatedPortDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConjugatedPortTypingDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConjugatedPortTypingDictionaryWriter.cs deleted file mode 100644 index afb2ac592..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConjugatedPortTypingDictionaryWriter.cs +++ /dev/null @@ -1,209 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ConjugatedPortTypingDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var conjugatedPortTypingInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(conjugatedPortTypingInstance); - case DictionaryKind.Simplified: - return WriteSimplified(conjugatedPortTypingInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IConjugatedPortTyping conjugatedPortTypingInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConjugatedPortTyping" }, - { "@id", conjugatedPortTypingInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", conjugatedPortTypingInstance.AliasIds); - dictionary.Add("conjugatedPortDefinition", conjugatedPortTypingInstance.ConjugatedPortDefinition.ToString()); - dictionary.Add("declaredName", conjugatedPortTypingInstance.DeclaredName); - dictionary.Add("declaredShortName", conjugatedPortTypingInstance.DeclaredShortName); - dictionary.Add("elementId", conjugatedPortTypingInstance.ElementId); - dictionary.Add("general", conjugatedPortTypingInstance.General.ToString()); - dictionary.Add("isImplied", conjugatedPortTypingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", conjugatedPortTypingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", conjugatedPortTypingInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", conjugatedPortTypingInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", conjugatedPortTypingInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", conjugatedPortTypingInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", conjugatedPortTypingInstance.Source)} ]"); - dictionary.Add("specific", conjugatedPortTypingInstance.Specific.ToString()); - dictionary.Add("target", $"[ {string.Join(",", conjugatedPortTypingInstance.Target)} ]"); - dictionary.Add("type", conjugatedPortTypingInstance.Type.ToString()); - dictionary.Add("typedFeature", conjugatedPortTypingInstance.TypedFeature.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IConjugatedPortTyping conjugatedPortTypingInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConjugatedPortTyping" }, - { "@id", conjugatedPortTypingInstance.Id } - }; - - dictionary.Add("aliasIds", conjugatedPortTypingInstance.AliasIds); - dictionary.Add("conjugatedPortDefinition", conjugatedPortTypingInstance.ConjugatedPortDefinition); - dictionary.Add("declaredName", conjugatedPortTypingInstance.DeclaredName); - dictionary.Add("declaredShortName", conjugatedPortTypingInstance.DeclaredShortName); - dictionary.Add("elementId", conjugatedPortTypingInstance.ElementId); - dictionary.Add("general", conjugatedPortTypingInstance.General); - dictionary.Add("isImplied", conjugatedPortTypingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", conjugatedPortTypingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", conjugatedPortTypingInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", conjugatedPortTypingInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", conjugatedPortTypingInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", conjugatedPortTypingInstance.OwningRelationship); - dictionary.Add("source", conjugatedPortTypingInstance.Source); - dictionary.Add("specific", conjugatedPortTypingInstance.Specific); - dictionary.Add("target", conjugatedPortTypingInstance.Target); - dictionary.Add("type", conjugatedPortTypingInstance.Type); - dictionary.Add("typedFeature", conjugatedPortTypingInstance.TypedFeature); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConjugatedPortTyping ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IConjugatedPortTyping conjugatedPortTypingInstance)) - { - throw new ArgumentException("The dataItem must be of Type IConjugatedPortTyping", "dataItem"); - } - - return conjugatedPortTypingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConjugationDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConjugationDictionaryWriter.cs deleted file mode 100644 index d8d7d3a83..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConjugationDictionaryWriter.cs +++ /dev/null @@ -1,203 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ConjugationDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var conjugationInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(conjugationInstance); - case DictionaryKind.Simplified: - return WriteSimplified(conjugationInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IConjugation conjugationInstance) - { - var dictionary = new Dictionary - { - { "@type", "Conjugation" }, - { "@id", conjugationInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", conjugationInstance.AliasIds); - dictionary.Add("conjugatedType", conjugationInstance.ConjugatedType.ToString()); - dictionary.Add("declaredName", conjugationInstance.DeclaredName); - dictionary.Add("declaredShortName", conjugationInstance.DeclaredShortName); - dictionary.Add("elementId", conjugationInstance.ElementId); - dictionary.Add("isImplied", conjugationInstance.IsImplied); - dictionary.Add("isImpliedIncluded", conjugationInstance.IsImpliedIncluded); - dictionary.Add("originalType", conjugationInstance.OriginalType.ToString()); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", conjugationInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", conjugationInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", conjugationInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", conjugationInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", conjugationInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", conjugationInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IConjugation conjugationInstance) - { - var dictionary = new Dictionary - { - { "@type", "Conjugation" }, - { "@id", conjugationInstance.Id } - }; - - dictionary.Add("aliasIds", conjugationInstance.AliasIds); - dictionary.Add("conjugatedType", conjugationInstance.ConjugatedType); - dictionary.Add("declaredName", conjugationInstance.DeclaredName); - dictionary.Add("declaredShortName", conjugationInstance.DeclaredShortName); - dictionary.Add("elementId", conjugationInstance.ElementId); - dictionary.Add("isImplied", conjugationInstance.IsImplied); - dictionary.Add("isImpliedIncluded", conjugationInstance.IsImpliedIncluded); - dictionary.Add("originalType", conjugationInstance.OriginalType); - dictionary.Add("ownedRelatedElement", conjugationInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", conjugationInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", conjugationInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", conjugationInstance.OwningRelationship); - dictionary.Add("source", conjugationInstance.Source); - dictionary.Add("target", conjugationInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConjugation ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IConjugation conjugationInstance)) - { - throw new ArgumentException("The dataItem must be of Type IConjugation", "dataItem"); - } - - return conjugationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConnectionDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConnectionDefinitionDictionaryWriter.cs deleted file mode 100644 index 995296a7e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConnectionDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ConnectionDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var connectionDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(connectionDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(connectionDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IConnectionDefinition connectionDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConnectionDefinition" }, - { "@id", connectionDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", connectionDefinitionInstance.AliasIds); - dictionary.Add("declaredName", connectionDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", connectionDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", connectionDefinitionInstance.ElementId); - dictionary.Add("isAbstract", connectionDefinitionInstance.IsAbstract); - dictionary.Add("isImplied", connectionDefinitionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", connectionDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", connectionDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", connectionDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", connectionDefinitionInstance.IsVariation); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", connectionDefinitionInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", connectionDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", connectionDefinitionInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", connectionDefinitionInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", connectionDefinitionInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", connectionDefinitionInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IConnectionDefinition connectionDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConnectionDefinition" }, - { "@id", connectionDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", connectionDefinitionInstance.AliasIds); - dictionary.Add("declaredName", connectionDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", connectionDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", connectionDefinitionInstance.ElementId); - dictionary.Add("isAbstract", connectionDefinitionInstance.IsAbstract); - dictionary.Add("isImplied", connectionDefinitionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", connectionDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", connectionDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", connectionDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", connectionDefinitionInstance.IsVariation); - dictionary.Add("ownedRelatedElement", connectionDefinitionInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", connectionDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", connectionDefinitionInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", connectionDefinitionInstance.OwningRelationship); - dictionary.Add("source", connectionDefinitionInstance.Source); - dictionary.Add("target", connectionDefinitionInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConnectionDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IConnectionDefinition connectionDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IConnectionDefinition", "dataItem"); - } - - return connectionDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConnectionUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConnectionUsageDictionaryWriter.cs deleted file mode 100644 index 89535bb42..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConnectionUsageDictionaryWriter.cs +++ /dev/null @@ -1,227 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ConnectionUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var connectionUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(connectionUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(connectionUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IConnectionUsage connectionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConnectionUsage" }, - { "@id", connectionUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", connectionUsageInstance.AliasIds); - dictionary.Add("declaredName", connectionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", connectionUsageInstance.DeclaredShortName); - dictionary.Add("direction", connectionUsageInstance.Direction); - dictionary.Add("elementId", connectionUsageInstance.ElementId); - dictionary.Add("isAbstract", connectionUsageInstance.IsAbstract); - dictionary.Add("isComposite", connectionUsageInstance.IsComposite); - dictionary.Add("isConstant", connectionUsageInstance.IsConstant); - dictionary.Add("isDerived", connectionUsageInstance.IsDerived); - dictionary.Add("isEnd", connectionUsageInstance.IsEnd); - dictionary.Add("isImplied", connectionUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", connectionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", connectionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", connectionUsageInstance.IsOrdered); - dictionary.Add("isPortion", connectionUsageInstance.IsPortion); - dictionary.Add("isSufficient", connectionUsageInstance.IsSufficient); - dictionary.Add("isUnique", connectionUsageInstance.IsUnique); - dictionary.Add("isVariable", connectionUsageInstance.IsVariable); - dictionary.Add("isVariation", connectionUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", connectionUsageInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", connectionUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", connectionUsageInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", connectionUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", connectionUsageInstance.PortionKind); - dictionary.Add("source", $"[ {string.Join(",", connectionUsageInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", connectionUsageInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IConnectionUsage connectionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConnectionUsage" }, - { "@id", connectionUsageInstance.Id } - }; - - dictionary.Add("aliasIds", connectionUsageInstance.AliasIds); - dictionary.Add("declaredName", connectionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", connectionUsageInstance.DeclaredShortName); - dictionary.Add("direction", connectionUsageInstance.Direction); - dictionary.Add("elementId", connectionUsageInstance.ElementId); - dictionary.Add("isAbstract", connectionUsageInstance.IsAbstract); - dictionary.Add("isComposite", connectionUsageInstance.IsComposite); - dictionary.Add("isConstant", connectionUsageInstance.IsConstant); - dictionary.Add("isDerived", connectionUsageInstance.IsDerived); - dictionary.Add("isEnd", connectionUsageInstance.IsEnd); - dictionary.Add("isImplied", connectionUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", connectionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", connectionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", connectionUsageInstance.IsOrdered); - dictionary.Add("isPortion", connectionUsageInstance.IsPortion); - dictionary.Add("isSufficient", connectionUsageInstance.IsSufficient); - dictionary.Add("isUnique", connectionUsageInstance.IsUnique); - dictionary.Add("isVariable", connectionUsageInstance.IsVariable); - dictionary.Add("isVariation", connectionUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", connectionUsageInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", connectionUsageInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", connectionUsageInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", connectionUsageInstance.OwningRelationship); - dictionary.Add("portionKind", connectionUsageInstance.PortionKind); - dictionary.Add("source", connectionUsageInstance.Source); - dictionary.Add("target", connectionUsageInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConnectionUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IConnectionUsage connectionUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IConnectionUsage", "dataItem"); - } - - return connectionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConnectorDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConnectorDictionaryWriter.cs deleted file mode 100644 index afe35ec64..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConnectorDictionaryWriter.cs +++ /dev/null @@ -1,221 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ConnectorDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var connectorInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(connectorInstance); - case DictionaryKind.Simplified: - return WriteSimplified(connectorInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IConnector connectorInstance) - { - var dictionary = new Dictionary - { - { "@type", "Connector" }, - { "@id", connectorInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", connectorInstance.AliasIds); - dictionary.Add("declaredName", connectorInstance.DeclaredName); - dictionary.Add("declaredShortName", connectorInstance.DeclaredShortName); - dictionary.Add("direction", connectorInstance.Direction); - dictionary.Add("elementId", connectorInstance.ElementId); - dictionary.Add("isAbstract", connectorInstance.IsAbstract); - dictionary.Add("isComposite", connectorInstance.IsComposite); - dictionary.Add("isConstant", connectorInstance.IsConstant); - dictionary.Add("isDerived", connectorInstance.IsDerived); - dictionary.Add("isEnd", connectorInstance.IsEnd); - dictionary.Add("isImplied", connectorInstance.IsImplied); - dictionary.Add("isImpliedIncluded", connectorInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", connectorInstance.IsOrdered); - dictionary.Add("isPortion", connectorInstance.IsPortion); - dictionary.Add("isSufficient", connectorInstance.IsSufficient); - dictionary.Add("isUnique", connectorInstance.IsUnique); - dictionary.Add("isVariable", connectorInstance.IsVariable); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", connectorInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", connectorInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", connectorInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", connectorInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", connectorInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", connectorInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IConnector connectorInstance) - { - var dictionary = new Dictionary - { - { "@type", "Connector" }, - { "@id", connectorInstance.Id } - }; - - dictionary.Add("aliasIds", connectorInstance.AliasIds); - dictionary.Add("declaredName", connectorInstance.DeclaredName); - dictionary.Add("declaredShortName", connectorInstance.DeclaredShortName); - dictionary.Add("direction", connectorInstance.Direction); - dictionary.Add("elementId", connectorInstance.ElementId); - dictionary.Add("isAbstract", connectorInstance.IsAbstract); - dictionary.Add("isComposite", connectorInstance.IsComposite); - dictionary.Add("isConstant", connectorInstance.IsConstant); - dictionary.Add("isDerived", connectorInstance.IsDerived); - dictionary.Add("isEnd", connectorInstance.IsEnd); - dictionary.Add("isImplied", connectorInstance.IsImplied); - dictionary.Add("isImpliedIncluded", connectorInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", connectorInstance.IsOrdered); - dictionary.Add("isPortion", connectorInstance.IsPortion); - dictionary.Add("isSufficient", connectorInstance.IsSufficient); - dictionary.Add("isUnique", connectorInstance.IsUnique); - dictionary.Add("isVariable", connectorInstance.IsVariable); - dictionary.Add("ownedRelatedElement", connectorInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", connectorInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", connectorInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", connectorInstance.OwningRelationship); - dictionary.Add("source", connectorInstance.Source); - dictionary.Add("target", connectorInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConnector ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IConnector connectorInstance)) - { - throw new ArgumentException("The dataItem must be of Type IConnector", "dataItem"); - } - - return connectorInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConstraintDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConstraintDefinitionDictionaryWriter.cs deleted file mode 100644 index 3317324fc..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConstraintDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ConstraintDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var constraintDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(constraintDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(constraintDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IConstraintDefinition constraintDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConstraintDefinition" }, - { "@id", constraintDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", constraintDefinitionInstance.AliasIds); - dictionary.Add("declaredName", constraintDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", constraintDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", constraintDefinitionInstance.ElementId); - dictionary.Add("isAbstract", constraintDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", constraintDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", constraintDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", constraintDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", constraintDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", constraintDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", constraintDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IConstraintDefinition constraintDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConstraintDefinition" }, - { "@id", constraintDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", constraintDefinitionInstance.AliasIds); - dictionary.Add("declaredName", constraintDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", constraintDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", constraintDefinitionInstance.ElementId); - dictionary.Add("isAbstract", constraintDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", constraintDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", constraintDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", constraintDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", constraintDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", constraintDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", constraintDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConstraintDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IConstraintDefinition constraintDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IConstraintDefinition", "dataItem"); - } - - return constraintDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConstraintUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConstraintUsageDictionaryWriter.cs deleted file mode 100644 index 4bf8ac7e7..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConstraintUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ConstraintUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var constraintUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(constraintUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(constraintUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IConstraintUsage constraintUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConstraintUsage" }, - { "@id", constraintUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", constraintUsageInstance.AliasIds); - dictionary.Add("declaredName", constraintUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", constraintUsageInstance.DeclaredShortName); - dictionary.Add("direction", constraintUsageInstance.Direction); - dictionary.Add("elementId", constraintUsageInstance.ElementId); - dictionary.Add("isAbstract", constraintUsageInstance.IsAbstract); - dictionary.Add("isComposite", constraintUsageInstance.IsComposite); - dictionary.Add("isConstant", constraintUsageInstance.IsConstant); - dictionary.Add("isDerived", constraintUsageInstance.IsDerived); - dictionary.Add("isEnd", constraintUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", constraintUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", constraintUsageInstance.IsIndividual); - dictionary.Add("isOrdered", constraintUsageInstance.IsOrdered); - dictionary.Add("isPortion", constraintUsageInstance.IsPortion); - dictionary.Add("isSufficient", constraintUsageInstance.IsSufficient); - dictionary.Add("isUnique", constraintUsageInstance.IsUnique); - dictionary.Add("isVariable", constraintUsageInstance.IsVariable); - dictionary.Add("isVariation", constraintUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", constraintUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", constraintUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", constraintUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IConstraintUsage constraintUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConstraintUsage" }, - { "@id", constraintUsageInstance.Id } - }; - - dictionary.Add("aliasIds", constraintUsageInstance.AliasIds); - dictionary.Add("declaredName", constraintUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", constraintUsageInstance.DeclaredShortName); - dictionary.Add("direction", constraintUsageInstance.Direction); - dictionary.Add("elementId", constraintUsageInstance.ElementId); - dictionary.Add("isAbstract", constraintUsageInstance.IsAbstract); - dictionary.Add("isComposite", constraintUsageInstance.IsComposite); - dictionary.Add("isConstant", constraintUsageInstance.IsConstant); - dictionary.Add("isDerived", constraintUsageInstance.IsDerived); - dictionary.Add("isEnd", constraintUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", constraintUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", constraintUsageInstance.IsIndividual); - dictionary.Add("isOrdered", constraintUsageInstance.IsOrdered); - dictionary.Add("isPortion", constraintUsageInstance.IsPortion); - dictionary.Add("isSufficient", constraintUsageInstance.IsSufficient); - dictionary.Add("isUnique", constraintUsageInstance.IsUnique); - dictionary.Add("isVariable", constraintUsageInstance.IsVariable); - dictionary.Add("isVariation", constraintUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", constraintUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", constraintUsageInstance.OwningRelationship); - dictionary.Add("portionKind", constraintUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConstraintUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IConstraintUsage constraintUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IConstraintUsage", "dataItem"); - } - - return constraintUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConstructorExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConstructorExpressionDictionaryWriter.cs deleted file mode 100644 index ea921e071..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ConstructorExpressionDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ConstructorExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var constructorExpressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(constructorExpressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(constructorExpressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IConstructorExpression constructorExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConstructorExpression" }, - { "@id", constructorExpressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", constructorExpressionInstance.AliasIds); - dictionary.Add("declaredName", constructorExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", constructorExpressionInstance.DeclaredShortName); - dictionary.Add("direction", constructorExpressionInstance.Direction); - dictionary.Add("elementId", constructorExpressionInstance.ElementId); - dictionary.Add("isAbstract", constructorExpressionInstance.IsAbstract); - dictionary.Add("isComposite", constructorExpressionInstance.IsComposite); - dictionary.Add("isConstant", constructorExpressionInstance.IsConstant); - dictionary.Add("isDerived", constructorExpressionInstance.IsDerived); - dictionary.Add("isEnd", constructorExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", constructorExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", constructorExpressionInstance.IsOrdered); - dictionary.Add("isPortion", constructorExpressionInstance.IsPortion); - dictionary.Add("isSufficient", constructorExpressionInstance.IsSufficient); - dictionary.Add("isUnique", constructorExpressionInstance.IsUnique); - dictionary.Add("isVariable", constructorExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", constructorExpressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", constructorExpressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IConstructorExpression constructorExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ConstructorExpression" }, - { "@id", constructorExpressionInstance.Id } - }; - - dictionary.Add("aliasIds", constructorExpressionInstance.AliasIds); - dictionary.Add("declaredName", constructorExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", constructorExpressionInstance.DeclaredShortName); - dictionary.Add("direction", constructorExpressionInstance.Direction); - dictionary.Add("elementId", constructorExpressionInstance.ElementId); - dictionary.Add("isAbstract", constructorExpressionInstance.IsAbstract); - dictionary.Add("isComposite", constructorExpressionInstance.IsComposite); - dictionary.Add("isConstant", constructorExpressionInstance.IsConstant); - dictionary.Add("isDerived", constructorExpressionInstance.IsDerived); - dictionary.Add("isEnd", constructorExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", constructorExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", constructorExpressionInstance.IsOrdered); - dictionary.Add("isPortion", constructorExpressionInstance.IsPortion); - dictionary.Add("isSufficient", constructorExpressionInstance.IsSufficient); - dictionary.Add("isUnique", constructorExpressionInstance.IsUnique); - dictionary.Add("isVariable", constructorExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", constructorExpressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", constructorExpressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IConstructorExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IConstructorExpression constructorExpressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IConstructorExpression", "dataItem"); - } - - return constructorExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CrossSubsettingDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CrossSubsettingDictionaryWriter.cs deleted file mode 100644 index b9ba9ee6e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/CrossSubsettingDictionaryWriter.cs +++ /dev/null @@ -1,209 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class CrossSubsettingDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var crossSubsettingInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(crossSubsettingInstance); - case DictionaryKind.Simplified: - return WriteSimplified(crossSubsettingInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ICrossSubsetting crossSubsettingInstance) - { - var dictionary = new Dictionary - { - { "@type", "CrossSubsetting" }, - { "@id", crossSubsettingInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", crossSubsettingInstance.AliasIds); - dictionary.Add("crossedFeature", crossSubsettingInstance.CrossedFeature.ToString()); - dictionary.Add("declaredName", crossSubsettingInstance.DeclaredName); - dictionary.Add("declaredShortName", crossSubsettingInstance.DeclaredShortName); - dictionary.Add("elementId", crossSubsettingInstance.ElementId); - dictionary.Add("general", crossSubsettingInstance.General.ToString()); - dictionary.Add("isImplied", crossSubsettingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", crossSubsettingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", crossSubsettingInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", crossSubsettingInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", crossSubsettingInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", crossSubsettingInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", crossSubsettingInstance.Source)} ]"); - dictionary.Add("specific", crossSubsettingInstance.Specific.ToString()); - dictionary.Add("subsettedFeature", crossSubsettingInstance.SubsettedFeature.ToString()); - dictionary.Add("subsettingFeature", crossSubsettingInstance.SubsettingFeature.ToString()); - dictionary.Add("target", $"[ {string.Join(",", crossSubsettingInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ICrossSubsetting crossSubsettingInstance) - { - var dictionary = new Dictionary - { - { "@type", "CrossSubsetting" }, - { "@id", crossSubsettingInstance.Id } - }; - - dictionary.Add("aliasIds", crossSubsettingInstance.AliasIds); - dictionary.Add("crossedFeature", crossSubsettingInstance.CrossedFeature); - dictionary.Add("declaredName", crossSubsettingInstance.DeclaredName); - dictionary.Add("declaredShortName", crossSubsettingInstance.DeclaredShortName); - dictionary.Add("elementId", crossSubsettingInstance.ElementId); - dictionary.Add("general", crossSubsettingInstance.General); - dictionary.Add("isImplied", crossSubsettingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", crossSubsettingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", crossSubsettingInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", crossSubsettingInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", crossSubsettingInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", crossSubsettingInstance.OwningRelationship); - dictionary.Add("source", crossSubsettingInstance.Source); - dictionary.Add("specific", crossSubsettingInstance.Specific); - dictionary.Add("subsettedFeature", crossSubsettingInstance.SubsettedFeature); - dictionary.Add("subsettingFeature", crossSubsettingInstance.SubsettingFeature); - dictionary.Add("target", crossSubsettingInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ICrossSubsetting ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ICrossSubsetting crossSubsettingInstance)) - { - throw new ArgumentException("The dataItem must be of Type ICrossSubsetting", "dataItem"); - } - - return crossSubsettingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DataTypeDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DataTypeDictionaryWriter.cs deleted file mode 100644 index 9099364fd..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DataTypeDictionaryWriter.cs +++ /dev/null @@ -1,193 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class DataTypeDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var dataTypeInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(dataTypeInstance); - case DictionaryKind.Simplified: - return WriteSimplified(dataTypeInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IDataType dataTypeInstance) - { - var dictionary = new Dictionary - { - { "@type", "DataType" }, - { "@id", dataTypeInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", dataTypeInstance.AliasIds); - dictionary.Add("declaredName", dataTypeInstance.DeclaredName); - dictionary.Add("declaredShortName", dataTypeInstance.DeclaredShortName); - dictionary.Add("elementId", dataTypeInstance.ElementId); - dictionary.Add("isAbstract", dataTypeInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", dataTypeInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", dataTypeInstance.IsSufficient); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", dataTypeInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", dataTypeInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IDataType dataTypeInstance) - { - var dictionary = new Dictionary - { - { "@type", "DataType" }, - { "@id", dataTypeInstance.Id } - }; - - dictionary.Add("aliasIds", dataTypeInstance.AliasIds); - dictionary.Add("declaredName", dataTypeInstance.DeclaredName); - dictionary.Add("declaredShortName", dataTypeInstance.DeclaredShortName); - dictionary.Add("elementId", dataTypeInstance.ElementId); - dictionary.Add("isAbstract", dataTypeInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", dataTypeInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", dataTypeInstance.IsSufficient); - dictionary.Add("ownedRelationship", dataTypeInstance.OwnedRelationship); - dictionary.Add("owningRelationship", dataTypeInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDataType ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IDataType dataTypeInstance)) - { - throw new ArgumentException("The dataItem must be of Type IDataType", "dataItem"); - } - - return dataTypeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DecisionNodeDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DecisionNodeDictionaryWriter.cs deleted file mode 100644 index dbd107e97..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DecisionNodeDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class DecisionNodeDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var decisionNodeInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(decisionNodeInstance); - case DictionaryKind.Simplified: - return WriteSimplified(decisionNodeInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IDecisionNode decisionNodeInstance) - { - var dictionary = new Dictionary - { - { "@type", "DecisionNode" }, - { "@id", decisionNodeInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", decisionNodeInstance.AliasIds); - dictionary.Add("declaredName", decisionNodeInstance.DeclaredName); - dictionary.Add("declaredShortName", decisionNodeInstance.DeclaredShortName); - dictionary.Add("direction", decisionNodeInstance.Direction); - dictionary.Add("elementId", decisionNodeInstance.ElementId); - dictionary.Add("isAbstract", decisionNodeInstance.IsAbstract); - dictionary.Add("isComposite", decisionNodeInstance.IsComposite); - dictionary.Add("isConstant", decisionNodeInstance.IsConstant); - dictionary.Add("isDerived", decisionNodeInstance.IsDerived); - dictionary.Add("isEnd", decisionNodeInstance.IsEnd); - dictionary.Add("isImpliedIncluded", decisionNodeInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", decisionNodeInstance.IsIndividual); - dictionary.Add("isOrdered", decisionNodeInstance.IsOrdered); - dictionary.Add("isPortion", decisionNodeInstance.IsPortion); - dictionary.Add("isSufficient", decisionNodeInstance.IsSufficient); - dictionary.Add("isUnique", decisionNodeInstance.IsUnique); - dictionary.Add("isVariable", decisionNodeInstance.IsVariable); - dictionary.Add("isVariation", decisionNodeInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", decisionNodeInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", decisionNodeInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", decisionNodeInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IDecisionNode decisionNodeInstance) - { - var dictionary = new Dictionary - { - { "@type", "DecisionNode" }, - { "@id", decisionNodeInstance.Id } - }; - - dictionary.Add("aliasIds", decisionNodeInstance.AliasIds); - dictionary.Add("declaredName", decisionNodeInstance.DeclaredName); - dictionary.Add("declaredShortName", decisionNodeInstance.DeclaredShortName); - dictionary.Add("direction", decisionNodeInstance.Direction); - dictionary.Add("elementId", decisionNodeInstance.ElementId); - dictionary.Add("isAbstract", decisionNodeInstance.IsAbstract); - dictionary.Add("isComposite", decisionNodeInstance.IsComposite); - dictionary.Add("isConstant", decisionNodeInstance.IsConstant); - dictionary.Add("isDerived", decisionNodeInstance.IsDerived); - dictionary.Add("isEnd", decisionNodeInstance.IsEnd); - dictionary.Add("isImpliedIncluded", decisionNodeInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", decisionNodeInstance.IsIndividual); - dictionary.Add("isOrdered", decisionNodeInstance.IsOrdered); - dictionary.Add("isPortion", decisionNodeInstance.IsPortion); - dictionary.Add("isSufficient", decisionNodeInstance.IsSufficient); - dictionary.Add("isUnique", decisionNodeInstance.IsUnique); - dictionary.Add("isVariable", decisionNodeInstance.IsVariable); - dictionary.Add("isVariation", decisionNodeInstance.IsVariation); - dictionary.Add("ownedRelationship", decisionNodeInstance.OwnedRelationship); - dictionary.Add("owningRelationship", decisionNodeInstance.OwningRelationship); - dictionary.Add("portionKind", decisionNodeInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDecisionNode ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IDecisionNode decisionNodeInstance)) - { - throw new ArgumentException("The dataItem must be of Type IDecisionNode", "dataItem"); - } - - return decisionNodeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DefinitionDictionaryWriter.cs deleted file mode 100644 index 3ee0d7afb..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DefinitionDictionaryWriter.cs +++ /dev/null @@ -1,195 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class DefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var definitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(definitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(definitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IDefinition definitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "Definition" }, - { "@id", definitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", definitionInstance.AliasIds); - dictionary.Add("declaredName", definitionInstance.DeclaredName); - dictionary.Add("declaredShortName", definitionInstance.DeclaredShortName); - dictionary.Add("elementId", definitionInstance.ElementId); - dictionary.Add("isAbstract", definitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", definitionInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", definitionInstance.IsSufficient); - dictionary.Add("isVariation", definitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", definitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", definitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IDefinition definitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "Definition" }, - { "@id", definitionInstance.Id } - }; - - dictionary.Add("aliasIds", definitionInstance.AliasIds); - dictionary.Add("declaredName", definitionInstance.DeclaredName); - dictionary.Add("declaredShortName", definitionInstance.DeclaredShortName); - dictionary.Add("elementId", definitionInstance.ElementId); - dictionary.Add("isAbstract", definitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", definitionInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", definitionInstance.IsSufficient); - dictionary.Add("isVariation", definitionInstance.IsVariation); - dictionary.Add("ownedRelationship", definitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", definitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IDefinition definitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IDefinition", "dataItem"); - } - - return definitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DependencyDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DependencyDictionaryWriter.cs deleted file mode 100644 index 6eebbfc7a..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DependencyDictionaryWriter.cs +++ /dev/null @@ -1,203 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class DependencyDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var dependencyInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(dependencyInstance); - case DictionaryKind.Simplified: - return WriteSimplified(dependencyInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IDependency dependencyInstance) - { - var dictionary = new Dictionary - { - { "@type", "Dependency" }, - { "@id", dependencyInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", dependencyInstance.AliasIds); - dictionary.Add("client", $"[ {string.Join(",", dependencyInstance.Client)} ]"); - dictionary.Add("declaredName", dependencyInstance.DeclaredName); - dictionary.Add("declaredShortName", dependencyInstance.DeclaredShortName); - dictionary.Add("elementId", dependencyInstance.ElementId); - dictionary.Add("isImplied", dependencyInstance.IsImplied); - dictionary.Add("isImpliedIncluded", dependencyInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", dependencyInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", dependencyInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", dependencyInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", dependencyInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", dependencyInstance.Source)} ]"); - dictionary.Add("supplier", $"[ {string.Join(",", dependencyInstance.Supplier)} ]"); - dictionary.Add("target", $"[ {string.Join(",", dependencyInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IDependency dependencyInstance) - { - var dictionary = new Dictionary - { - { "@type", "Dependency" }, - { "@id", dependencyInstance.Id } - }; - - dictionary.Add("aliasIds", dependencyInstance.AliasIds); - dictionary.Add("client", dependencyInstance.Client); - dictionary.Add("declaredName", dependencyInstance.DeclaredName); - dictionary.Add("declaredShortName", dependencyInstance.DeclaredShortName); - dictionary.Add("elementId", dependencyInstance.ElementId); - dictionary.Add("isImplied", dependencyInstance.IsImplied); - dictionary.Add("isImpliedIncluded", dependencyInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", dependencyInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", dependencyInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", dependencyInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", dependencyInstance.OwningRelationship); - dictionary.Add("source", dependencyInstance.Source); - dictionary.Add("supplier", dependencyInstance.Supplier); - dictionary.Add("target", dependencyInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDependency ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IDependency dependencyInstance)) - { - throw new ArgumentException("The dataItem must be of Type IDependency", "dataItem"); - } - - return dependencyInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DictionaryWriterProvider.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DictionaryWriterProvider.cs deleted file mode 100644 index 1c8260033..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DictionaryWriterProvider.cs +++ /dev/null @@ -1,248 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - - /// - /// Delegate provider for the appropriate Write method to convert a to - /// a Dictionary - /// - internal static class DictionaryWriterProvider - { - private static readonly Dictionary>> DictionaryWriterFuncMap = new Dictionary>> - { - { typeof(SysML2.NET.Core.DTO.AcceptActionUsage), AcceptActionUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ActionDefinition), ActionDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ActionUsage), ActionUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ActorMembership), ActorMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.AllocationDefinition), AllocationDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.AllocationUsage), AllocationUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.AnalysisCaseDefinition), AnalysisCaseDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.AnalysisCaseUsage), AnalysisCaseUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.AnnotatingElement), AnnotatingElementDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Annotation), AnnotationDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.AssertConstraintUsage), AssertConstraintUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.AssignmentActionUsage), AssignmentActionUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Association), AssociationDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.AssociationStructure), AssociationStructureDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.AttributeDefinition), AttributeDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.AttributeUsage), AttributeUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Behavior), BehaviorDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.BindingConnector), BindingConnectorDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.BindingConnectorAsUsage), BindingConnectorAsUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.BooleanExpression), BooleanExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.CalculationDefinition), CalculationDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.CalculationUsage), CalculationUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.CaseDefinition), CaseDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.CaseUsage), CaseUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Class), ClassDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Classifier), ClassifierDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.CollectExpression), CollectExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Comment), CommentDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ConcernDefinition), ConcernDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ConcernUsage), ConcernUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ConjugatedPortDefinition), ConjugatedPortDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ConjugatedPortTyping), ConjugatedPortTypingDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Conjugation), ConjugationDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ConnectionDefinition), ConnectionDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ConnectionUsage), ConnectionUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Connector), ConnectorDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ConstraintDefinition), ConstraintDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ConstraintUsage), ConstraintUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ConstructorExpression), ConstructorExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.CrossSubsetting), CrossSubsettingDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.DataType), DataTypeDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.DecisionNode), DecisionNodeDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Definition), DefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Dependency), DependencyDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Differencing), DifferencingDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Disjoining), DisjoiningDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Documentation), DocumentationDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ElementFilterMembership), ElementFilterMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.EndFeatureMembership), EndFeatureMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.EnumerationDefinition), EnumerationDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.EnumerationUsage), EnumerationUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.EventOccurrenceUsage), EventOccurrenceUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ExhibitStateUsage), ExhibitStateUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Expression), ExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Feature), FeatureDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.FeatureChainExpression), FeatureChainExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.FeatureChaining), FeatureChainingDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.FeatureInverting), FeatureInvertingDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.FeatureMembership), FeatureMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.FeatureReferenceExpression), FeatureReferenceExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.FeatureTyping), FeatureTypingDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.FeatureValue), FeatureValueDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Flow), FlowDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.FlowDefinition), FlowDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.FlowEnd), FlowEndDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.FlowUsage), FlowUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ForkNode), ForkNodeDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ForLoopActionUsage), ForLoopActionUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.FramedConcernMembership), FramedConcernMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Function), FunctionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.IfActionUsage), IfActionUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.IncludeUseCaseUsage), IncludeUseCaseUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.IndexExpression), IndexExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Interaction), InteractionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.InterfaceDefinition), InterfaceDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.InterfaceUsage), InterfaceUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Intersecting), IntersectingDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Invariant), InvariantDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.InvocationExpression), InvocationExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ItemDefinition), ItemDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ItemUsage), ItemUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.JoinNode), JoinNodeDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.LibraryPackage), LibraryPackageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.LiteralBoolean), LiteralBooleanDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.LiteralExpression), LiteralExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.LiteralInfinity), LiteralInfinityDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.LiteralInteger), LiteralIntegerDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.LiteralRational), LiteralRationalDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.LiteralString), LiteralStringDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Membership), MembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.MembershipExpose), MembershipExposeDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.MembershipImport), MembershipImportDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.MergeNode), MergeNodeDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Metaclass), MetaclassDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.MetadataAccessExpression), MetadataAccessExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.MetadataDefinition), MetadataDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.MetadataFeature), MetadataFeatureDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.MetadataUsage), MetadataUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Multiplicity), MultiplicityDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.MultiplicityRange), MultiplicityRangeDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Namespace), NamespaceDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.NamespaceExpose), NamespaceExposeDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.NamespaceImport), NamespaceImportDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.NullExpression), NullExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ObjectiveMembership), ObjectiveMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.OccurrenceDefinition), OccurrenceDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.OccurrenceUsage), OccurrenceUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.OperatorExpression), OperatorExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.OwningMembership), OwningMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Package), PackageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ParameterMembership), ParameterMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.PartDefinition), PartDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.PartUsage), PartUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.PayloadFeature), PayloadFeatureDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.PerformActionUsage), PerformActionUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.PortConjugation), PortConjugationDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.PortDefinition), PortDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.PortUsage), PortUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Predicate), PredicateDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Redefinition), RedefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ReferenceSubsetting), ReferenceSubsettingDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ReferenceUsage), ReferenceUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.RenderingDefinition), RenderingDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.RenderingUsage), RenderingUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.RequirementConstraintMembership), RequirementConstraintMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.RequirementDefinition), RequirementDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.RequirementUsage), RequirementUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.RequirementVerificationMembership), RequirementVerificationMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ResultExpressionMembership), ResultExpressionMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ReturnParameterMembership), ReturnParameterMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.SatisfyRequirementUsage), SatisfyRequirementUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.SelectExpression), SelectExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.SendActionUsage), SendActionUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Specialization), SpecializationDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.StakeholderMembership), StakeholderMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.StateDefinition), StateDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.StateSubactionMembership), StateSubactionMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.StateUsage), StateUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Step), StepDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Structure), StructureDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Subclassification), SubclassificationDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.SubjectMembership), SubjectMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Subsetting), SubsettingDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Succession), SuccessionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.SuccessionAsUsage), SuccessionAsUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.SuccessionFlow), SuccessionFlowDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.SuccessionFlowUsage), SuccessionFlowUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.TerminateActionUsage), TerminateActionUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.TextualRepresentation), TextualRepresentationDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.TransitionFeatureMembership), TransitionFeatureMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.TransitionUsage), TransitionUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.TriggerInvocationExpression), TriggerInvocationExpressionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Type), TypeDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.TypeFeaturing), TypeFeaturingDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Unioning), UnioningDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.Usage), UsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.UseCaseDefinition), UseCaseDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.UseCaseUsage), UseCaseUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.VariantMembership), VariantMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.VerificationCaseDefinition), VerificationCaseDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.VerificationCaseUsage), VerificationCaseUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ViewDefinition), ViewDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ViewpointDefinition), ViewpointDefinitionDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ViewpointUsage), ViewpointUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ViewRenderingMembership), ViewRenderingMembershipDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.ViewUsage), ViewUsageDictionaryWriter.Write }, - { typeof(SysML2.NET.Core.DTO.WhileLoopActionUsage), WhileLoopActionUsageDictionaryWriter.Write }, - }; - - /// - /// Provides the delegate for the - /// that is to be serialized - /// - /// - /// The subject that is to be serialized - /// - /// - /// A Delegate of - /// - /// - /// Thrown when the is not supported. - /// - internal static Func> Provide(System.Type type) - { - if (!DictionaryWriterFuncMap.TryGetValue(type, out var func)) - { - throw new NotSupportedException($"The {type.Name} is not supported by the DictionaryWriterProvider."); - } - - return func; - } - - /// - /// Asserts whether the is supported by the provider - /// - /// - /// The name of the subject for which support is asserted - /// - /// - internal static bool IsTypeSupported(System.Type type) - { - return DictionaryWriterFuncMap.ContainsKey(type); - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DifferencingDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DifferencingDictionaryWriter.cs deleted file mode 100644 index 88af0cb97..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DifferencingDictionaryWriter.cs +++ /dev/null @@ -1,201 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class DifferencingDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var differencingInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(differencingInstance); - case DictionaryKind.Simplified: - return WriteSimplified(differencingInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IDifferencing differencingInstance) - { - var dictionary = new Dictionary - { - { "@type", "Differencing" }, - { "@id", differencingInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", differencingInstance.AliasIds); - dictionary.Add("declaredName", differencingInstance.DeclaredName); - dictionary.Add("declaredShortName", differencingInstance.DeclaredShortName); - dictionary.Add("differencingType", differencingInstance.DifferencingType.ToString()); - dictionary.Add("elementId", differencingInstance.ElementId); - dictionary.Add("isImplied", differencingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", differencingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", differencingInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", differencingInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", differencingInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", differencingInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", differencingInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", differencingInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IDifferencing differencingInstance) - { - var dictionary = new Dictionary - { - { "@type", "Differencing" }, - { "@id", differencingInstance.Id } - }; - - dictionary.Add("aliasIds", differencingInstance.AliasIds); - dictionary.Add("declaredName", differencingInstance.DeclaredName); - dictionary.Add("declaredShortName", differencingInstance.DeclaredShortName); - dictionary.Add("differencingType", differencingInstance.DifferencingType); - dictionary.Add("elementId", differencingInstance.ElementId); - dictionary.Add("isImplied", differencingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", differencingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", differencingInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", differencingInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", differencingInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", differencingInstance.OwningRelationship); - dictionary.Add("source", differencingInstance.Source); - dictionary.Add("target", differencingInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDifferencing ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IDifferencing differencingInstance)) - { - throw new ArgumentException("The dataItem must be of Type IDifferencing", "dataItem"); - } - - return differencingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DisjoiningDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DisjoiningDictionaryWriter.cs deleted file mode 100644 index c9efd69ed..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DisjoiningDictionaryWriter.cs +++ /dev/null @@ -1,203 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class DisjoiningDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var disjoiningInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(disjoiningInstance); - case DictionaryKind.Simplified: - return WriteSimplified(disjoiningInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IDisjoining disjoiningInstance) - { - var dictionary = new Dictionary - { - { "@type", "Disjoining" }, - { "@id", disjoiningInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", disjoiningInstance.AliasIds); - dictionary.Add("declaredName", disjoiningInstance.DeclaredName); - dictionary.Add("declaredShortName", disjoiningInstance.DeclaredShortName); - dictionary.Add("disjoiningType", disjoiningInstance.DisjoiningType.ToString()); - dictionary.Add("elementId", disjoiningInstance.ElementId); - dictionary.Add("isImplied", disjoiningInstance.IsImplied); - dictionary.Add("isImpliedIncluded", disjoiningInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", disjoiningInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", disjoiningInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", disjoiningInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", disjoiningInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", disjoiningInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", disjoiningInstance.Target)} ]"); - dictionary.Add("typeDisjoined", disjoiningInstance.TypeDisjoined.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IDisjoining disjoiningInstance) - { - var dictionary = new Dictionary - { - { "@type", "Disjoining" }, - { "@id", disjoiningInstance.Id } - }; - - dictionary.Add("aliasIds", disjoiningInstance.AliasIds); - dictionary.Add("declaredName", disjoiningInstance.DeclaredName); - dictionary.Add("declaredShortName", disjoiningInstance.DeclaredShortName); - dictionary.Add("disjoiningType", disjoiningInstance.DisjoiningType); - dictionary.Add("elementId", disjoiningInstance.ElementId); - dictionary.Add("isImplied", disjoiningInstance.IsImplied); - dictionary.Add("isImpliedIncluded", disjoiningInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", disjoiningInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", disjoiningInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", disjoiningInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", disjoiningInstance.OwningRelationship); - dictionary.Add("source", disjoiningInstance.Source); - dictionary.Add("target", disjoiningInstance.Target); - dictionary.Add("typeDisjoined", disjoiningInstance.TypeDisjoined); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDisjoining ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IDisjoining disjoiningInstance)) - { - throw new ArgumentException("The dataItem must be of Type IDisjoining", "dataItem"); - } - - return disjoiningInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DocumentationDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DocumentationDictionaryWriter.cs deleted file mode 100644 index 1e598b46c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/DocumentationDictionaryWriter.cs +++ /dev/null @@ -1,193 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class DocumentationDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var documentationInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(documentationInstance); - case DictionaryKind.Simplified: - return WriteSimplified(documentationInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IDocumentation documentationInstance) - { - var dictionary = new Dictionary - { - { "@type", "Documentation" }, - { "@id", documentationInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", documentationInstance.AliasIds); - dictionary.Add("body", documentationInstance.Body); - dictionary.Add("declaredName", documentationInstance.DeclaredName); - dictionary.Add("declaredShortName", documentationInstance.DeclaredShortName); - dictionary.Add("elementId", documentationInstance.ElementId); - dictionary.Add("isImpliedIncluded", documentationInstance.IsImpliedIncluded); - dictionary.Add("locale", documentationInstance.Locale); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", documentationInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", documentationInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IDocumentation documentationInstance) - { - var dictionary = new Dictionary - { - { "@type", "Documentation" }, - { "@id", documentationInstance.Id } - }; - - dictionary.Add("aliasIds", documentationInstance.AliasIds); - dictionary.Add("body", documentationInstance.Body); - dictionary.Add("declaredName", documentationInstance.DeclaredName); - dictionary.Add("declaredShortName", documentationInstance.DeclaredShortName); - dictionary.Add("elementId", documentationInstance.ElementId); - dictionary.Add("isImpliedIncluded", documentationInstance.IsImpliedIncluded); - dictionary.Add("locale", documentationInstance.Locale); - dictionary.Add("ownedRelationship", documentationInstance.OwnedRelationship); - dictionary.Add("owningRelationship", documentationInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IDocumentation ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IDocumentation documentationInstance)) - { - throw new ArgumentException("The dataItem must be of Type IDocumentation", "dataItem"); - } - - return documentationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ElementFilterMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ElementFilterMembershipDictionaryWriter.cs deleted file mode 100644 index d331a25c4..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ElementFilterMembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ElementFilterMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var elementFilterMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(elementFilterMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(elementFilterMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IElementFilterMembership elementFilterMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ElementFilterMembership" }, - { "@id", elementFilterMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", elementFilterMembershipInstance.AliasIds); - dictionary.Add("declaredName", elementFilterMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", elementFilterMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", elementFilterMembershipInstance.ElementId); - dictionary.Add("isImplied", elementFilterMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", elementFilterMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", elementFilterMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", elementFilterMembershipInstance.MemberName); - dictionary.Add("memberShortName", elementFilterMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", elementFilterMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", elementFilterMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", elementFilterMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", elementFilterMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", elementFilterMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", elementFilterMembershipInstance.Target)} ]"); - dictionary.Add("visibility", elementFilterMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IElementFilterMembership elementFilterMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ElementFilterMembership" }, - { "@id", elementFilterMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", elementFilterMembershipInstance.AliasIds); - dictionary.Add("declaredName", elementFilterMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", elementFilterMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", elementFilterMembershipInstance.ElementId); - dictionary.Add("isImplied", elementFilterMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", elementFilterMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", elementFilterMembershipInstance.MemberElement); - dictionary.Add("memberName", elementFilterMembershipInstance.MemberName); - dictionary.Add("memberShortName", elementFilterMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", elementFilterMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", elementFilterMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", elementFilterMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", elementFilterMembershipInstance.OwningRelationship); - dictionary.Add("source", elementFilterMembershipInstance.Source); - dictionary.Add("target", elementFilterMembershipInstance.Target); - dictionary.Add("visibility", elementFilterMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IElementFilterMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IElementFilterMembership elementFilterMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IElementFilterMembership", "dataItem"); - } - - return elementFilterMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EndFeatureMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EndFeatureMembershipDictionaryWriter.cs deleted file mode 100644 index 34e4610bd..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EndFeatureMembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class EndFeatureMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var endFeatureMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(endFeatureMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(endFeatureMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IEndFeatureMembership endFeatureMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "EndFeatureMembership" }, - { "@id", endFeatureMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", endFeatureMembershipInstance.AliasIds); - dictionary.Add("declaredName", endFeatureMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", endFeatureMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", endFeatureMembershipInstance.ElementId); - dictionary.Add("isImplied", endFeatureMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", endFeatureMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", endFeatureMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", endFeatureMembershipInstance.MemberName); - dictionary.Add("memberShortName", endFeatureMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", endFeatureMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", endFeatureMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", endFeatureMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", endFeatureMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", endFeatureMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", endFeatureMembershipInstance.Target)} ]"); - dictionary.Add("visibility", endFeatureMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IEndFeatureMembership endFeatureMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "EndFeatureMembership" }, - { "@id", endFeatureMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", endFeatureMembershipInstance.AliasIds); - dictionary.Add("declaredName", endFeatureMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", endFeatureMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", endFeatureMembershipInstance.ElementId); - dictionary.Add("isImplied", endFeatureMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", endFeatureMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", endFeatureMembershipInstance.MemberElement); - dictionary.Add("memberName", endFeatureMembershipInstance.MemberName); - dictionary.Add("memberShortName", endFeatureMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", endFeatureMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", endFeatureMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", endFeatureMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", endFeatureMembershipInstance.OwningRelationship); - dictionary.Add("source", endFeatureMembershipInstance.Source); - dictionary.Add("target", endFeatureMembershipInstance.Target); - dictionary.Add("visibility", endFeatureMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IEndFeatureMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IEndFeatureMembership endFeatureMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IEndFeatureMembership", "dataItem"); - } - - return endFeatureMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EnumerationDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EnumerationDefinitionDictionaryWriter.cs deleted file mode 100644 index 0b309fdd6..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EnumerationDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,195 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class EnumerationDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var enumerationDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(enumerationDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(enumerationDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IEnumerationDefinition enumerationDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "EnumerationDefinition" }, - { "@id", enumerationDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", enumerationDefinitionInstance.AliasIds); - dictionary.Add("declaredName", enumerationDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", enumerationDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", enumerationDefinitionInstance.ElementId); - dictionary.Add("isAbstract", enumerationDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", enumerationDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", enumerationDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", enumerationDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", enumerationDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", enumerationDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IEnumerationDefinition enumerationDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "EnumerationDefinition" }, - { "@id", enumerationDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", enumerationDefinitionInstance.AliasIds); - dictionary.Add("declaredName", enumerationDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", enumerationDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", enumerationDefinitionInstance.ElementId); - dictionary.Add("isAbstract", enumerationDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", enumerationDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", enumerationDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", enumerationDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", enumerationDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", enumerationDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IEnumerationDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IEnumerationDefinition enumerationDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IEnumerationDefinition", "dataItem"); - } - - return enumerationDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EnumerationUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EnumerationUsageDictionaryWriter.cs deleted file mode 100644 index c8b57b625..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EnumerationUsageDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class EnumerationUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var enumerationUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(enumerationUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(enumerationUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IEnumerationUsage enumerationUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "EnumerationUsage" }, - { "@id", enumerationUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", enumerationUsageInstance.AliasIds); - dictionary.Add("declaredName", enumerationUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", enumerationUsageInstance.DeclaredShortName); - dictionary.Add("direction", enumerationUsageInstance.Direction); - dictionary.Add("elementId", enumerationUsageInstance.ElementId); - dictionary.Add("isAbstract", enumerationUsageInstance.IsAbstract); - dictionary.Add("isComposite", enumerationUsageInstance.IsComposite); - dictionary.Add("isConstant", enumerationUsageInstance.IsConstant); - dictionary.Add("isDerived", enumerationUsageInstance.IsDerived); - dictionary.Add("isEnd", enumerationUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", enumerationUsageInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", enumerationUsageInstance.IsOrdered); - dictionary.Add("isPortion", enumerationUsageInstance.IsPortion); - dictionary.Add("isSufficient", enumerationUsageInstance.IsSufficient); - dictionary.Add("isUnique", enumerationUsageInstance.IsUnique); - dictionary.Add("isVariable", enumerationUsageInstance.IsVariable); - dictionary.Add("isVariation", enumerationUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", enumerationUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", enumerationUsageInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IEnumerationUsage enumerationUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "EnumerationUsage" }, - { "@id", enumerationUsageInstance.Id } - }; - - dictionary.Add("aliasIds", enumerationUsageInstance.AliasIds); - dictionary.Add("declaredName", enumerationUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", enumerationUsageInstance.DeclaredShortName); - dictionary.Add("direction", enumerationUsageInstance.Direction); - dictionary.Add("elementId", enumerationUsageInstance.ElementId); - dictionary.Add("isAbstract", enumerationUsageInstance.IsAbstract); - dictionary.Add("isComposite", enumerationUsageInstance.IsComposite); - dictionary.Add("isConstant", enumerationUsageInstance.IsConstant); - dictionary.Add("isDerived", enumerationUsageInstance.IsDerived); - dictionary.Add("isEnd", enumerationUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", enumerationUsageInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", enumerationUsageInstance.IsOrdered); - dictionary.Add("isPortion", enumerationUsageInstance.IsPortion); - dictionary.Add("isSufficient", enumerationUsageInstance.IsSufficient); - dictionary.Add("isUnique", enumerationUsageInstance.IsUnique); - dictionary.Add("isVariable", enumerationUsageInstance.IsVariable); - dictionary.Add("isVariation", enumerationUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", enumerationUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", enumerationUsageInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IEnumerationUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IEnumerationUsage enumerationUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IEnumerationUsage", "dataItem"); - } - - return enumerationUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EventOccurrenceUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EventOccurrenceUsageDictionaryWriter.cs deleted file mode 100644 index a99177441..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/EventOccurrenceUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class EventOccurrenceUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var eventOccurrenceUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(eventOccurrenceUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(eventOccurrenceUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IEventOccurrenceUsage eventOccurrenceUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "EventOccurrenceUsage" }, - { "@id", eventOccurrenceUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", eventOccurrenceUsageInstance.AliasIds); - dictionary.Add("declaredName", eventOccurrenceUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", eventOccurrenceUsageInstance.DeclaredShortName); - dictionary.Add("direction", eventOccurrenceUsageInstance.Direction); - dictionary.Add("elementId", eventOccurrenceUsageInstance.ElementId); - dictionary.Add("isAbstract", eventOccurrenceUsageInstance.IsAbstract); - dictionary.Add("isComposite", eventOccurrenceUsageInstance.IsComposite); - dictionary.Add("isConstant", eventOccurrenceUsageInstance.IsConstant); - dictionary.Add("isDerived", eventOccurrenceUsageInstance.IsDerived); - dictionary.Add("isEnd", eventOccurrenceUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", eventOccurrenceUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", eventOccurrenceUsageInstance.IsIndividual); - dictionary.Add("isOrdered", eventOccurrenceUsageInstance.IsOrdered); - dictionary.Add("isPortion", eventOccurrenceUsageInstance.IsPortion); - dictionary.Add("isSufficient", eventOccurrenceUsageInstance.IsSufficient); - dictionary.Add("isUnique", eventOccurrenceUsageInstance.IsUnique); - dictionary.Add("isVariable", eventOccurrenceUsageInstance.IsVariable); - dictionary.Add("isVariation", eventOccurrenceUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", eventOccurrenceUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", eventOccurrenceUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", eventOccurrenceUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IEventOccurrenceUsage eventOccurrenceUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "EventOccurrenceUsage" }, - { "@id", eventOccurrenceUsageInstance.Id } - }; - - dictionary.Add("aliasIds", eventOccurrenceUsageInstance.AliasIds); - dictionary.Add("declaredName", eventOccurrenceUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", eventOccurrenceUsageInstance.DeclaredShortName); - dictionary.Add("direction", eventOccurrenceUsageInstance.Direction); - dictionary.Add("elementId", eventOccurrenceUsageInstance.ElementId); - dictionary.Add("isAbstract", eventOccurrenceUsageInstance.IsAbstract); - dictionary.Add("isComposite", eventOccurrenceUsageInstance.IsComposite); - dictionary.Add("isConstant", eventOccurrenceUsageInstance.IsConstant); - dictionary.Add("isDerived", eventOccurrenceUsageInstance.IsDerived); - dictionary.Add("isEnd", eventOccurrenceUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", eventOccurrenceUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", eventOccurrenceUsageInstance.IsIndividual); - dictionary.Add("isOrdered", eventOccurrenceUsageInstance.IsOrdered); - dictionary.Add("isPortion", eventOccurrenceUsageInstance.IsPortion); - dictionary.Add("isSufficient", eventOccurrenceUsageInstance.IsSufficient); - dictionary.Add("isUnique", eventOccurrenceUsageInstance.IsUnique); - dictionary.Add("isVariable", eventOccurrenceUsageInstance.IsVariable); - dictionary.Add("isVariation", eventOccurrenceUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", eventOccurrenceUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", eventOccurrenceUsageInstance.OwningRelationship); - dictionary.Add("portionKind", eventOccurrenceUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IEventOccurrenceUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IEventOccurrenceUsage eventOccurrenceUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IEventOccurrenceUsage", "dataItem"); - } - - return eventOccurrenceUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ExhibitStateUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ExhibitStateUsageDictionaryWriter.cs deleted file mode 100644 index 08f37a59b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ExhibitStateUsageDictionaryWriter.cs +++ /dev/null @@ -1,219 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ExhibitStateUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var exhibitStateUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(exhibitStateUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(exhibitStateUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IExhibitStateUsage exhibitStateUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ExhibitStateUsage" }, - { "@id", exhibitStateUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", exhibitStateUsageInstance.AliasIds); - dictionary.Add("declaredName", exhibitStateUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", exhibitStateUsageInstance.DeclaredShortName); - dictionary.Add("direction", exhibitStateUsageInstance.Direction); - dictionary.Add("elementId", exhibitStateUsageInstance.ElementId); - dictionary.Add("isAbstract", exhibitStateUsageInstance.IsAbstract); - dictionary.Add("isComposite", exhibitStateUsageInstance.IsComposite); - dictionary.Add("isConstant", exhibitStateUsageInstance.IsConstant); - dictionary.Add("isDerived", exhibitStateUsageInstance.IsDerived); - dictionary.Add("isEnd", exhibitStateUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", exhibitStateUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", exhibitStateUsageInstance.IsIndividual); - dictionary.Add("isOrdered", exhibitStateUsageInstance.IsOrdered); - dictionary.Add("isParallel", exhibitStateUsageInstance.IsParallel); - dictionary.Add("isPortion", exhibitStateUsageInstance.IsPortion); - dictionary.Add("isSufficient", exhibitStateUsageInstance.IsSufficient); - dictionary.Add("isUnique", exhibitStateUsageInstance.IsUnique); - dictionary.Add("isVariable", exhibitStateUsageInstance.IsVariable); - dictionary.Add("isVariation", exhibitStateUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", exhibitStateUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", exhibitStateUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", exhibitStateUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IExhibitStateUsage exhibitStateUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ExhibitStateUsage" }, - { "@id", exhibitStateUsageInstance.Id } - }; - - dictionary.Add("aliasIds", exhibitStateUsageInstance.AliasIds); - dictionary.Add("declaredName", exhibitStateUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", exhibitStateUsageInstance.DeclaredShortName); - dictionary.Add("direction", exhibitStateUsageInstance.Direction); - dictionary.Add("elementId", exhibitStateUsageInstance.ElementId); - dictionary.Add("isAbstract", exhibitStateUsageInstance.IsAbstract); - dictionary.Add("isComposite", exhibitStateUsageInstance.IsComposite); - dictionary.Add("isConstant", exhibitStateUsageInstance.IsConstant); - dictionary.Add("isDerived", exhibitStateUsageInstance.IsDerived); - dictionary.Add("isEnd", exhibitStateUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", exhibitStateUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", exhibitStateUsageInstance.IsIndividual); - dictionary.Add("isOrdered", exhibitStateUsageInstance.IsOrdered); - dictionary.Add("isParallel", exhibitStateUsageInstance.IsParallel); - dictionary.Add("isPortion", exhibitStateUsageInstance.IsPortion); - dictionary.Add("isSufficient", exhibitStateUsageInstance.IsSufficient); - dictionary.Add("isUnique", exhibitStateUsageInstance.IsUnique); - dictionary.Add("isVariable", exhibitStateUsageInstance.IsVariable); - dictionary.Add("isVariation", exhibitStateUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", exhibitStateUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", exhibitStateUsageInstance.OwningRelationship); - dictionary.Add("portionKind", exhibitStateUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IExhibitStateUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IExhibitStateUsage exhibitStateUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IExhibitStateUsage", "dataItem"); - } - - return exhibitStateUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ExpressionDictionaryWriter.cs deleted file mode 100644 index 8e7f3d1d5..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ExpressionDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var expressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(expressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(expressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IExpression expressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "Expression" }, - { "@id", expressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", expressionInstance.AliasIds); - dictionary.Add("declaredName", expressionInstance.DeclaredName); - dictionary.Add("declaredShortName", expressionInstance.DeclaredShortName); - dictionary.Add("direction", expressionInstance.Direction); - dictionary.Add("elementId", expressionInstance.ElementId); - dictionary.Add("isAbstract", expressionInstance.IsAbstract); - dictionary.Add("isComposite", expressionInstance.IsComposite); - dictionary.Add("isConstant", expressionInstance.IsConstant); - dictionary.Add("isDerived", expressionInstance.IsDerived); - dictionary.Add("isEnd", expressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", expressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", expressionInstance.IsOrdered); - dictionary.Add("isPortion", expressionInstance.IsPortion); - dictionary.Add("isSufficient", expressionInstance.IsSufficient); - dictionary.Add("isUnique", expressionInstance.IsUnique); - dictionary.Add("isVariable", expressionInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", expressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", expressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IExpression expressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "Expression" }, - { "@id", expressionInstance.Id } - }; - - dictionary.Add("aliasIds", expressionInstance.AliasIds); - dictionary.Add("declaredName", expressionInstance.DeclaredName); - dictionary.Add("declaredShortName", expressionInstance.DeclaredShortName); - dictionary.Add("direction", expressionInstance.Direction); - dictionary.Add("elementId", expressionInstance.ElementId); - dictionary.Add("isAbstract", expressionInstance.IsAbstract); - dictionary.Add("isComposite", expressionInstance.IsComposite); - dictionary.Add("isConstant", expressionInstance.IsConstant); - dictionary.Add("isDerived", expressionInstance.IsDerived); - dictionary.Add("isEnd", expressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", expressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", expressionInstance.IsOrdered); - dictionary.Add("isPortion", expressionInstance.IsPortion); - dictionary.Add("isSufficient", expressionInstance.IsSufficient); - dictionary.Add("isUnique", expressionInstance.IsUnique); - dictionary.Add("isVariable", expressionInstance.IsVariable); - dictionary.Add("ownedRelationship", expressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", expressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IExpression expressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IExpression", "dataItem"); - } - - return expressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureChainExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureChainExpressionDictionaryWriter.cs deleted file mode 100644 index f0f0e1032..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureChainExpressionDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FeatureChainExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var featureChainExpressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(featureChainExpressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(featureChainExpressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFeatureChainExpression featureChainExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureChainExpression" }, - { "@id", featureChainExpressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", featureChainExpressionInstance.AliasIds); - dictionary.Add("declaredName", featureChainExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", featureChainExpressionInstance.DeclaredShortName); - dictionary.Add("direction", featureChainExpressionInstance.Direction); - dictionary.Add("elementId", featureChainExpressionInstance.ElementId); - dictionary.Add("isAbstract", featureChainExpressionInstance.IsAbstract); - dictionary.Add("isComposite", featureChainExpressionInstance.IsComposite); - dictionary.Add("isConstant", featureChainExpressionInstance.IsConstant); - dictionary.Add("isDerived", featureChainExpressionInstance.IsDerived); - dictionary.Add("isEnd", featureChainExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", featureChainExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", featureChainExpressionInstance.IsOrdered); - dictionary.Add("isPortion", featureChainExpressionInstance.IsPortion); - dictionary.Add("isSufficient", featureChainExpressionInstance.IsSufficient); - dictionary.Add("isUnique", featureChainExpressionInstance.IsUnique); - dictionary.Add("isVariable", featureChainExpressionInstance.IsVariable); - dictionary.Add("operator", featureChainExpressionInstance.Operator); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", featureChainExpressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", featureChainExpressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFeatureChainExpression featureChainExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureChainExpression" }, - { "@id", featureChainExpressionInstance.Id } - }; - - dictionary.Add("aliasIds", featureChainExpressionInstance.AliasIds); - dictionary.Add("declaredName", featureChainExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", featureChainExpressionInstance.DeclaredShortName); - dictionary.Add("direction", featureChainExpressionInstance.Direction); - dictionary.Add("elementId", featureChainExpressionInstance.ElementId); - dictionary.Add("isAbstract", featureChainExpressionInstance.IsAbstract); - dictionary.Add("isComposite", featureChainExpressionInstance.IsComposite); - dictionary.Add("isConstant", featureChainExpressionInstance.IsConstant); - dictionary.Add("isDerived", featureChainExpressionInstance.IsDerived); - dictionary.Add("isEnd", featureChainExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", featureChainExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", featureChainExpressionInstance.IsOrdered); - dictionary.Add("isPortion", featureChainExpressionInstance.IsPortion); - dictionary.Add("isSufficient", featureChainExpressionInstance.IsSufficient); - dictionary.Add("isUnique", featureChainExpressionInstance.IsUnique); - dictionary.Add("isVariable", featureChainExpressionInstance.IsVariable); - dictionary.Add("operator", featureChainExpressionInstance.Operator); - dictionary.Add("ownedRelationship", featureChainExpressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", featureChainExpressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureChainExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFeatureChainExpression featureChainExpressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFeatureChainExpression", "dataItem"); - } - - return featureChainExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureChainingDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureChainingDictionaryWriter.cs deleted file mode 100644 index edf0f26ba..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureChainingDictionaryWriter.cs +++ /dev/null @@ -1,201 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FeatureChainingDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var featureChainingInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(featureChainingInstance); - case DictionaryKind.Simplified: - return WriteSimplified(featureChainingInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFeatureChaining featureChainingInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureChaining" }, - { "@id", featureChainingInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", featureChainingInstance.AliasIds); - dictionary.Add("chainingFeature", featureChainingInstance.ChainingFeature.ToString()); - dictionary.Add("declaredName", featureChainingInstance.DeclaredName); - dictionary.Add("declaredShortName", featureChainingInstance.DeclaredShortName); - dictionary.Add("elementId", featureChainingInstance.ElementId); - dictionary.Add("isImplied", featureChainingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", featureChainingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", featureChainingInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", featureChainingInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", featureChainingInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", featureChainingInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", featureChainingInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", featureChainingInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFeatureChaining featureChainingInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureChaining" }, - { "@id", featureChainingInstance.Id } - }; - - dictionary.Add("aliasIds", featureChainingInstance.AliasIds); - dictionary.Add("chainingFeature", featureChainingInstance.ChainingFeature); - dictionary.Add("declaredName", featureChainingInstance.DeclaredName); - dictionary.Add("declaredShortName", featureChainingInstance.DeclaredShortName); - dictionary.Add("elementId", featureChainingInstance.ElementId); - dictionary.Add("isImplied", featureChainingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", featureChainingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", featureChainingInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", featureChainingInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", featureChainingInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", featureChainingInstance.OwningRelationship); - dictionary.Add("source", featureChainingInstance.Source); - dictionary.Add("target", featureChainingInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureChaining ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFeatureChaining featureChainingInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFeatureChaining", "dataItem"); - } - - return featureChainingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureDictionaryWriter.cs deleted file mode 100644 index fef44bec1..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FeatureDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var featureInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(featureInstance); - case DictionaryKind.Simplified: - return WriteSimplified(featureInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFeature featureInstance) - { - var dictionary = new Dictionary - { - { "@type", "Feature" }, - { "@id", featureInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", featureInstance.AliasIds); - dictionary.Add("declaredName", featureInstance.DeclaredName); - dictionary.Add("declaredShortName", featureInstance.DeclaredShortName); - dictionary.Add("direction", featureInstance.Direction); - dictionary.Add("elementId", featureInstance.ElementId); - dictionary.Add("isAbstract", featureInstance.IsAbstract); - dictionary.Add("isComposite", featureInstance.IsComposite); - dictionary.Add("isConstant", featureInstance.IsConstant); - dictionary.Add("isDerived", featureInstance.IsDerived); - dictionary.Add("isEnd", featureInstance.IsEnd); - dictionary.Add("isImpliedIncluded", featureInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", featureInstance.IsOrdered); - dictionary.Add("isPortion", featureInstance.IsPortion); - dictionary.Add("isSufficient", featureInstance.IsSufficient); - dictionary.Add("isUnique", featureInstance.IsUnique); - dictionary.Add("isVariable", featureInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", featureInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", featureInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFeature featureInstance) - { - var dictionary = new Dictionary - { - { "@type", "Feature" }, - { "@id", featureInstance.Id } - }; - - dictionary.Add("aliasIds", featureInstance.AliasIds); - dictionary.Add("declaredName", featureInstance.DeclaredName); - dictionary.Add("declaredShortName", featureInstance.DeclaredShortName); - dictionary.Add("direction", featureInstance.Direction); - dictionary.Add("elementId", featureInstance.ElementId); - dictionary.Add("isAbstract", featureInstance.IsAbstract); - dictionary.Add("isComposite", featureInstance.IsComposite); - dictionary.Add("isConstant", featureInstance.IsConstant); - dictionary.Add("isDerived", featureInstance.IsDerived); - dictionary.Add("isEnd", featureInstance.IsEnd); - dictionary.Add("isImpliedIncluded", featureInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", featureInstance.IsOrdered); - dictionary.Add("isPortion", featureInstance.IsPortion); - dictionary.Add("isSufficient", featureInstance.IsSufficient); - dictionary.Add("isUnique", featureInstance.IsUnique); - dictionary.Add("isVariable", featureInstance.IsVariable); - dictionary.Add("ownedRelationship", featureInstance.OwnedRelationship); - dictionary.Add("owningRelationship", featureInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeature ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFeature featureInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFeature", "dataItem"); - } - - return featureInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureInvertingDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureInvertingDictionaryWriter.cs deleted file mode 100644 index b97749895..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureInvertingDictionaryWriter.cs +++ /dev/null @@ -1,203 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FeatureInvertingDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var featureInvertingInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(featureInvertingInstance); - case DictionaryKind.Simplified: - return WriteSimplified(featureInvertingInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFeatureInverting featureInvertingInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureInverting" }, - { "@id", featureInvertingInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", featureInvertingInstance.AliasIds); - dictionary.Add("declaredName", featureInvertingInstance.DeclaredName); - dictionary.Add("declaredShortName", featureInvertingInstance.DeclaredShortName); - dictionary.Add("elementId", featureInvertingInstance.ElementId); - dictionary.Add("featureInverted", featureInvertingInstance.FeatureInverted.ToString()); - dictionary.Add("invertingFeature", featureInvertingInstance.InvertingFeature.ToString()); - dictionary.Add("isImplied", featureInvertingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", featureInvertingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", featureInvertingInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", featureInvertingInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", featureInvertingInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", featureInvertingInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", featureInvertingInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", featureInvertingInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFeatureInverting featureInvertingInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureInverting" }, - { "@id", featureInvertingInstance.Id } - }; - - dictionary.Add("aliasIds", featureInvertingInstance.AliasIds); - dictionary.Add("declaredName", featureInvertingInstance.DeclaredName); - dictionary.Add("declaredShortName", featureInvertingInstance.DeclaredShortName); - dictionary.Add("elementId", featureInvertingInstance.ElementId); - dictionary.Add("featureInverted", featureInvertingInstance.FeatureInverted); - dictionary.Add("invertingFeature", featureInvertingInstance.InvertingFeature); - dictionary.Add("isImplied", featureInvertingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", featureInvertingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", featureInvertingInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", featureInvertingInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", featureInvertingInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", featureInvertingInstance.OwningRelationship); - dictionary.Add("source", featureInvertingInstance.Source); - dictionary.Add("target", featureInvertingInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureInverting ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFeatureInverting featureInvertingInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFeatureInverting", "dataItem"); - } - - return featureInvertingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureMembershipDictionaryWriter.cs deleted file mode 100644 index 39fd5b929..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureMembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FeatureMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var featureMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(featureMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(featureMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFeatureMembership featureMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureMembership" }, - { "@id", featureMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", featureMembershipInstance.AliasIds); - dictionary.Add("declaredName", featureMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", featureMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", featureMembershipInstance.ElementId); - dictionary.Add("isImplied", featureMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", featureMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", featureMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", featureMembershipInstance.MemberName); - dictionary.Add("memberShortName", featureMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", featureMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", featureMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", featureMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", featureMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", featureMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", featureMembershipInstance.Target)} ]"); - dictionary.Add("visibility", featureMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFeatureMembership featureMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureMembership" }, - { "@id", featureMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", featureMembershipInstance.AliasIds); - dictionary.Add("declaredName", featureMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", featureMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", featureMembershipInstance.ElementId); - dictionary.Add("isImplied", featureMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", featureMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", featureMembershipInstance.MemberElement); - dictionary.Add("memberName", featureMembershipInstance.MemberName); - dictionary.Add("memberShortName", featureMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", featureMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", featureMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", featureMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", featureMembershipInstance.OwningRelationship); - dictionary.Add("source", featureMembershipInstance.Source); - dictionary.Add("target", featureMembershipInstance.Target); - dictionary.Add("visibility", featureMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFeatureMembership featureMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFeatureMembership", "dataItem"); - } - - return featureMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureReferenceExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureReferenceExpressionDictionaryWriter.cs deleted file mode 100644 index 25eb404ab..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureReferenceExpressionDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FeatureReferenceExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var featureReferenceExpressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(featureReferenceExpressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(featureReferenceExpressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFeatureReferenceExpression featureReferenceExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureReferenceExpression" }, - { "@id", featureReferenceExpressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", featureReferenceExpressionInstance.AliasIds); - dictionary.Add("declaredName", featureReferenceExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", featureReferenceExpressionInstance.DeclaredShortName); - dictionary.Add("direction", featureReferenceExpressionInstance.Direction); - dictionary.Add("elementId", featureReferenceExpressionInstance.ElementId); - dictionary.Add("isAbstract", featureReferenceExpressionInstance.IsAbstract); - dictionary.Add("isComposite", featureReferenceExpressionInstance.IsComposite); - dictionary.Add("isConstant", featureReferenceExpressionInstance.IsConstant); - dictionary.Add("isDerived", featureReferenceExpressionInstance.IsDerived); - dictionary.Add("isEnd", featureReferenceExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", featureReferenceExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", featureReferenceExpressionInstance.IsOrdered); - dictionary.Add("isPortion", featureReferenceExpressionInstance.IsPortion); - dictionary.Add("isSufficient", featureReferenceExpressionInstance.IsSufficient); - dictionary.Add("isUnique", featureReferenceExpressionInstance.IsUnique); - dictionary.Add("isVariable", featureReferenceExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", featureReferenceExpressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", featureReferenceExpressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFeatureReferenceExpression featureReferenceExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureReferenceExpression" }, - { "@id", featureReferenceExpressionInstance.Id } - }; - - dictionary.Add("aliasIds", featureReferenceExpressionInstance.AliasIds); - dictionary.Add("declaredName", featureReferenceExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", featureReferenceExpressionInstance.DeclaredShortName); - dictionary.Add("direction", featureReferenceExpressionInstance.Direction); - dictionary.Add("elementId", featureReferenceExpressionInstance.ElementId); - dictionary.Add("isAbstract", featureReferenceExpressionInstance.IsAbstract); - dictionary.Add("isComposite", featureReferenceExpressionInstance.IsComposite); - dictionary.Add("isConstant", featureReferenceExpressionInstance.IsConstant); - dictionary.Add("isDerived", featureReferenceExpressionInstance.IsDerived); - dictionary.Add("isEnd", featureReferenceExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", featureReferenceExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", featureReferenceExpressionInstance.IsOrdered); - dictionary.Add("isPortion", featureReferenceExpressionInstance.IsPortion); - dictionary.Add("isSufficient", featureReferenceExpressionInstance.IsSufficient); - dictionary.Add("isUnique", featureReferenceExpressionInstance.IsUnique); - dictionary.Add("isVariable", featureReferenceExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", featureReferenceExpressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", featureReferenceExpressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureReferenceExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFeatureReferenceExpression featureReferenceExpressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFeatureReferenceExpression", "dataItem"); - } - - return featureReferenceExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureTypingDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureTypingDictionaryWriter.cs deleted file mode 100644 index c34b5dbec..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureTypingDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FeatureTypingDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var featureTypingInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(featureTypingInstance); - case DictionaryKind.Simplified: - return WriteSimplified(featureTypingInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFeatureTyping featureTypingInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureTyping" }, - { "@id", featureTypingInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", featureTypingInstance.AliasIds); - dictionary.Add("declaredName", featureTypingInstance.DeclaredName); - dictionary.Add("declaredShortName", featureTypingInstance.DeclaredShortName); - dictionary.Add("elementId", featureTypingInstance.ElementId); - dictionary.Add("general", featureTypingInstance.General.ToString()); - dictionary.Add("isImplied", featureTypingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", featureTypingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", featureTypingInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", featureTypingInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", featureTypingInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", featureTypingInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", featureTypingInstance.Source)} ]"); - dictionary.Add("specific", featureTypingInstance.Specific.ToString()); - dictionary.Add("target", $"[ {string.Join(",", featureTypingInstance.Target)} ]"); - dictionary.Add("type", featureTypingInstance.Type.ToString()); - dictionary.Add("typedFeature", featureTypingInstance.TypedFeature.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFeatureTyping featureTypingInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureTyping" }, - { "@id", featureTypingInstance.Id } - }; - - dictionary.Add("aliasIds", featureTypingInstance.AliasIds); - dictionary.Add("declaredName", featureTypingInstance.DeclaredName); - dictionary.Add("declaredShortName", featureTypingInstance.DeclaredShortName); - dictionary.Add("elementId", featureTypingInstance.ElementId); - dictionary.Add("general", featureTypingInstance.General); - dictionary.Add("isImplied", featureTypingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", featureTypingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", featureTypingInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", featureTypingInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", featureTypingInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", featureTypingInstance.OwningRelationship); - dictionary.Add("source", featureTypingInstance.Source); - dictionary.Add("specific", featureTypingInstance.Specific); - dictionary.Add("target", featureTypingInstance.Target); - dictionary.Add("type", featureTypingInstance.Type); - dictionary.Add("typedFeature", featureTypingInstance.TypedFeature); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureTyping ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFeatureTyping featureTypingInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFeatureTyping", "dataItem"); - } - - return featureTypingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureValueDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureValueDictionaryWriter.cs deleted file mode 100644 index ea63963f7..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FeatureValueDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FeatureValueDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var featureValueInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(featureValueInstance); - case DictionaryKind.Simplified: - return WriteSimplified(featureValueInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFeatureValue featureValueInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureValue" }, - { "@id", featureValueInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", featureValueInstance.AliasIds); - dictionary.Add("declaredName", featureValueInstance.DeclaredName); - dictionary.Add("declaredShortName", featureValueInstance.DeclaredShortName); - dictionary.Add("elementId", featureValueInstance.ElementId); - dictionary.Add("isDefault", featureValueInstance.IsDefault); - dictionary.Add("isImplied", featureValueInstance.IsImplied); - dictionary.Add("isImpliedIncluded", featureValueInstance.IsImpliedIncluded); - dictionary.Add("isInitial", featureValueInstance.IsInitial); - dictionary.Add("memberElement", featureValueInstance.MemberElement.ToString()); - dictionary.Add("memberName", featureValueInstance.MemberName); - dictionary.Add("memberShortName", featureValueInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", featureValueInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", featureValueInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", featureValueInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", featureValueInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", featureValueInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", featureValueInstance.Target)} ]"); - dictionary.Add("visibility", featureValueInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFeatureValue featureValueInstance) - { - var dictionary = new Dictionary - { - { "@type", "FeatureValue" }, - { "@id", featureValueInstance.Id } - }; - - dictionary.Add("aliasIds", featureValueInstance.AliasIds); - dictionary.Add("declaredName", featureValueInstance.DeclaredName); - dictionary.Add("declaredShortName", featureValueInstance.DeclaredShortName); - dictionary.Add("elementId", featureValueInstance.ElementId); - dictionary.Add("isDefault", featureValueInstance.IsDefault); - dictionary.Add("isImplied", featureValueInstance.IsImplied); - dictionary.Add("isImpliedIncluded", featureValueInstance.IsImpliedIncluded); - dictionary.Add("isInitial", featureValueInstance.IsInitial); - dictionary.Add("memberElement", featureValueInstance.MemberElement); - dictionary.Add("memberName", featureValueInstance.MemberName); - dictionary.Add("memberShortName", featureValueInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", featureValueInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", featureValueInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", featureValueInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", featureValueInstance.OwningRelationship); - dictionary.Add("source", featureValueInstance.Source); - dictionary.Add("target", featureValueInstance.Target); - dictionary.Add("visibility", featureValueInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFeatureValue ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFeatureValue featureValueInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFeatureValue", "dataItem"); - } - - return featureValueInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowDefinitionDictionaryWriter.cs deleted file mode 100644 index 754e76471..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FlowDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var flowDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(flowDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(flowDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFlowDefinition flowDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "FlowDefinition" }, - { "@id", flowDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", flowDefinitionInstance.AliasIds); - dictionary.Add("declaredName", flowDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", flowDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", flowDefinitionInstance.ElementId); - dictionary.Add("isAbstract", flowDefinitionInstance.IsAbstract); - dictionary.Add("isImplied", flowDefinitionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", flowDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", flowDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", flowDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", flowDefinitionInstance.IsVariation); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", flowDefinitionInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", flowDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", flowDefinitionInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", flowDefinitionInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", flowDefinitionInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", flowDefinitionInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFlowDefinition flowDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "FlowDefinition" }, - { "@id", flowDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", flowDefinitionInstance.AliasIds); - dictionary.Add("declaredName", flowDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", flowDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", flowDefinitionInstance.ElementId); - dictionary.Add("isAbstract", flowDefinitionInstance.IsAbstract); - dictionary.Add("isImplied", flowDefinitionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", flowDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", flowDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", flowDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", flowDefinitionInstance.IsVariation); - dictionary.Add("ownedRelatedElement", flowDefinitionInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", flowDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", flowDefinitionInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", flowDefinitionInstance.OwningRelationship); - dictionary.Add("source", flowDefinitionInstance.Source); - dictionary.Add("target", flowDefinitionInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFlowDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFlowDefinition flowDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFlowDefinition", "dataItem"); - } - - return flowDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowDictionaryWriter.cs deleted file mode 100644 index 9c52fbad2..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowDictionaryWriter.cs +++ /dev/null @@ -1,221 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FlowDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var flowInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(flowInstance); - case DictionaryKind.Simplified: - return WriteSimplified(flowInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFlow flowInstance) - { - var dictionary = new Dictionary - { - { "@type", "Flow" }, - { "@id", flowInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", flowInstance.AliasIds); - dictionary.Add("declaredName", flowInstance.DeclaredName); - dictionary.Add("declaredShortName", flowInstance.DeclaredShortName); - dictionary.Add("direction", flowInstance.Direction); - dictionary.Add("elementId", flowInstance.ElementId); - dictionary.Add("isAbstract", flowInstance.IsAbstract); - dictionary.Add("isComposite", flowInstance.IsComposite); - dictionary.Add("isConstant", flowInstance.IsConstant); - dictionary.Add("isDerived", flowInstance.IsDerived); - dictionary.Add("isEnd", flowInstance.IsEnd); - dictionary.Add("isImplied", flowInstance.IsImplied); - dictionary.Add("isImpliedIncluded", flowInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", flowInstance.IsOrdered); - dictionary.Add("isPortion", flowInstance.IsPortion); - dictionary.Add("isSufficient", flowInstance.IsSufficient); - dictionary.Add("isUnique", flowInstance.IsUnique); - dictionary.Add("isVariable", flowInstance.IsVariable); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", flowInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", flowInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", flowInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", flowInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", flowInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", flowInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFlow flowInstance) - { - var dictionary = new Dictionary - { - { "@type", "Flow" }, - { "@id", flowInstance.Id } - }; - - dictionary.Add("aliasIds", flowInstance.AliasIds); - dictionary.Add("declaredName", flowInstance.DeclaredName); - dictionary.Add("declaredShortName", flowInstance.DeclaredShortName); - dictionary.Add("direction", flowInstance.Direction); - dictionary.Add("elementId", flowInstance.ElementId); - dictionary.Add("isAbstract", flowInstance.IsAbstract); - dictionary.Add("isComposite", flowInstance.IsComposite); - dictionary.Add("isConstant", flowInstance.IsConstant); - dictionary.Add("isDerived", flowInstance.IsDerived); - dictionary.Add("isEnd", flowInstance.IsEnd); - dictionary.Add("isImplied", flowInstance.IsImplied); - dictionary.Add("isImpliedIncluded", flowInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", flowInstance.IsOrdered); - dictionary.Add("isPortion", flowInstance.IsPortion); - dictionary.Add("isSufficient", flowInstance.IsSufficient); - dictionary.Add("isUnique", flowInstance.IsUnique); - dictionary.Add("isVariable", flowInstance.IsVariable); - dictionary.Add("ownedRelatedElement", flowInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", flowInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", flowInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", flowInstance.OwningRelationship); - dictionary.Add("source", flowInstance.Source); - dictionary.Add("target", flowInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFlow ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFlow flowInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFlow", "dataItem"); - } - - return flowInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowEndDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowEndDictionaryWriter.cs deleted file mode 100644 index cbeb81152..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowEndDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FlowEndDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var flowEndInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(flowEndInstance); - case DictionaryKind.Simplified: - return WriteSimplified(flowEndInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFlowEnd flowEndInstance) - { - var dictionary = new Dictionary - { - { "@type", "FlowEnd" }, - { "@id", flowEndInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", flowEndInstance.AliasIds); - dictionary.Add("declaredName", flowEndInstance.DeclaredName); - dictionary.Add("declaredShortName", flowEndInstance.DeclaredShortName); - dictionary.Add("direction", flowEndInstance.Direction); - dictionary.Add("elementId", flowEndInstance.ElementId); - dictionary.Add("isAbstract", flowEndInstance.IsAbstract); - dictionary.Add("isComposite", flowEndInstance.IsComposite); - dictionary.Add("isConstant", flowEndInstance.IsConstant); - dictionary.Add("isDerived", flowEndInstance.IsDerived); - dictionary.Add("isEnd", flowEndInstance.IsEnd); - dictionary.Add("isImpliedIncluded", flowEndInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", flowEndInstance.IsOrdered); - dictionary.Add("isPortion", flowEndInstance.IsPortion); - dictionary.Add("isSufficient", flowEndInstance.IsSufficient); - dictionary.Add("isUnique", flowEndInstance.IsUnique); - dictionary.Add("isVariable", flowEndInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", flowEndInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", flowEndInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFlowEnd flowEndInstance) - { - var dictionary = new Dictionary - { - { "@type", "FlowEnd" }, - { "@id", flowEndInstance.Id } - }; - - dictionary.Add("aliasIds", flowEndInstance.AliasIds); - dictionary.Add("declaredName", flowEndInstance.DeclaredName); - dictionary.Add("declaredShortName", flowEndInstance.DeclaredShortName); - dictionary.Add("direction", flowEndInstance.Direction); - dictionary.Add("elementId", flowEndInstance.ElementId); - dictionary.Add("isAbstract", flowEndInstance.IsAbstract); - dictionary.Add("isComposite", flowEndInstance.IsComposite); - dictionary.Add("isConstant", flowEndInstance.IsConstant); - dictionary.Add("isDerived", flowEndInstance.IsDerived); - dictionary.Add("isEnd", flowEndInstance.IsEnd); - dictionary.Add("isImpliedIncluded", flowEndInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", flowEndInstance.IsOrdered); - dictionary.Add("isPortion", flowEndInstance.IsPortion); - dictionary.Add("isSufficient", flowEndInstance.IsSufficient); - dictionary.Add("isUnique", flowEndInstance.IsUnique); - dictionary.Add("isVariable", flowEndInstance.IsVariable); - dictionary.Add("ownedRelationship", flowEndInstance.OwnedRelationship); - dictionary.Add("owningRelationship", flowEndInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFlowEnd ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFlowEnd flowEndInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFlowEnd", "dataItem"); - } - - return flowEndInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowUsageDictionaryWriter.cs deleted file mode 100644 index 2c9046892..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FlowUsageDictionaryWriter.cs +++ /dev/null @@ -1,227 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FlowUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var flowUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(flowUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(flowUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFlowUsage flowUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "FlowUsage" }, - { "@id", flowUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", flowUsageInstance.AliasIds); - dictionary.Add("declaredName", flowUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", flowUsageInstance.DeclaredShortName); - dictionary.Add("direction", flowUsageInstance.Direction); - dictionary.Add("elementId", flowUsageInstance.ElementId); - dictionary.Add("isAbstract", flowUsageInstance.IsAbstract); - dictionary.Add("isComposite", flowUsageInstance.IsComposite); - dictionary.Add("isConstant", flowUsageInstance.IsConstant); - dictionary.Add("isDerived", flowUsageInstance.IsDerived); - dictionary.Add("isEnd", flowUsageInstance.IsEnd); - dictionary.Add("isImplied", flowUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", flowUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", flowUsageInstance.IsIndividual); - dictionary.Add("isOrdered", flowUsageInstance.IsOrdered); - dictionary.Add("isPortion", flowUsageInstance.IsPortion); - dictionary.Add("isSufficient", flowUsageInstance.IsSufficient); - dictionary.Add("isUnique", flowUsageInstance.IsUnique); - dictionary.Add("isVariable", flowUsageInstance.IsVariable); - dictionary.Add("isVariation", flowUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", flowUsageInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", flowUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", flowUsageInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", flowUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", flowUsageInstance.PortionKind); - dictionary.Add("source", $"[ {string.Join(",", flowUsageInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", flowUsageInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFlowUsage flowUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "FlowUsage" }, - { "@id", flowUsageInstance.Id } - }; - - dictionary.Add("aliasIds", flowUsageInstance.AliasIds); - dictionary.Add("declaredName", flowUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", flowUsageInstance.DeclaredShortName); - dictionary.Add("direction", flowUsageInstance.Direction); - dictionary.Add("elementId", flowUsageInstance.ElementId); - dictionary.Add("isAbstract", flowUsageInstance.IsAbstract); - dictionary.Add("isComposite", flowUsageInstance.IsComposite); - dictionary.Add("isConstant", flowUsageInstance.IsConstant); - dictionary.Add("isDerived", flowUsageInstance.IsDerived); - dictionary.Add("isEnd", flowUsageInstance.IsEnd); - dictionary.Add("isImplied", flowUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", flowUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", flowUsageInstance.IsIndividual); - dictionary.Add("isOrdered", flowUsageInstance.IsOrdered); - dictionary.Add("isPortion", flowUsageInstance.IsPortion); - dictionary.Add("isSufficient", flowUsageInstance.IsSufficient); - dictionary.Add("isUnique", flowUsageInstance.IsUnique); - dictionary.Add("isVariable", flowUsageInstance.IsVariable); - dictionary.Add("isVariation", flowUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", flowUsageInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", flowUsageInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", flowUsageInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", flowUsageInstance.OwningRelationship); - dictionary.Add("portionKind", flowUsageInstance.PortionKind); - dictionary.Add("source", flowUsageInstance.Source); - dictionary.Add("target", flowUsageInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFlowUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFlowUsage flowUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFlowUsage", "dataItem"); - } - - return flowUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ForLoopActionUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ForLoopActionUsageDictionaryWriter.cs deleted file mode 100644 index 1561f9b18..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ForLoopActionUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ForLoopActionUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var forLoopActionUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(forLoopActionUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(forLoopActionUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IForLoopActionUsage forLoopActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ForLoopActionUsage" }, - { "@id", forLoopActionUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", forLoopActionUsageInstance.AliasIds); - dictionary.Add("declaredName", forLoopActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", forLoopActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", forLoopActionUsageInstance.Direction); - dictionary.Add("elementId", forLoopActionUsageInstance.ElementId); - dictionary.Add("isAbstract", forLoopActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", forLoopActionUsageInstance.IsComposite); - dictionary.Add("isConstant", forLoopActionUsageInstance.IsConstant); - dictionary.Add("isDerived", forLoopActionUsageInstance.IsDerived); - dictionary.Add("isEnd", forLoopActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", forLoopActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", forLoopActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", forLoopActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", forLoopActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", forLoopActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", forLoopActionUsageInstance.IsUnique); - dictionary.Add("isVariable", forLoopActionUsageInstance.IsVariable); - dictionary.Add("isVariation", forLoopActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", forLoopActionUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", forLoopActionUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", forLoopActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IForLoopActionUsage forLoopActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ForLoopActionUsage" }, - { "@id", forLoopActionUsageInstance.Id } - }; - - dictionary.Add("aliasIds", forLoopActionUsageInstance.AliasIds); - dictionary.Add("declaredName", forLoopActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", forLoopActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", forLoopActionUsageInstance.Direction); - dictionary.Add("elementId", forLoopActionUsageInstance.ElementId); - dictionary.Add("isAbstract", forLoopActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", forLoopActionUsageInstance.IsComposite); - dictionary.Add("isConstant", forLoopActionUsageInstance.IsConstant); - dictionary.Add("isDerived", forLoopActionUsageInstance.IsDerived); - dictionary.Add("isEnd", forLoopActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", forLoopActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", forLoopActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", forLoopActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", forLoopActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", forLoopActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", forLoopActionUsageInstance.IsUnique); - dictionary.Add("isVariable", forLoopActionUsageInstance.IsVariable); - dictionary.Add("isVariation", forLoopActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", forLoopActionUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", forLoopActionUsageInstance.OwningRelationship); - dictionary.Add("portionKind", forLoopActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IForLoopActionUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IForLoopActionUsage forLoopActionUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IForLoopActionUsage", "dataItem"); - } - - return forLoopActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ForkNodeDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ForkNodeDictionaryWriter.cs deleted file mode 100644 index a44309078..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ForkNodeDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ForkNodeDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var forkNodeInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(forkNodeInstance); - case DictionaryKind.Simplified: - return WriteSimplified(forkNodeInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IForkNode forkNodeInstance) - { - var dictionary = new Dictionary - { - { "@type", "ForkNode" }, - { "@id", forkNodeInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", forkNodeInstance.AliasIds); - dictionary.Add("declaredName", forkNodeInstance.DeclaredName); - dictionary.Add("declaredShortName", forkNodeInstance.DeclaredShortName); - dictionary.Add("direction", forkNodeInstance.Direction); - dictionary.Add("elementId", forkNodeInstance.ElementId); - dictionary.Add("isAbstract", forkNodeInstance.IsAbstract); - dictionary.Add("isComposite", forkNodeInstance.IsComposite); - dictionary.Add("isConstant", forkNodeInstance.IsConstant); - dictionary.Add("isDerived", forkNodeInstance.IsDerived); - dictionary.Add("isEnd", forkNodeInstance.IsEnd); - dictionary.Add("isImpliedIncluded", forkNodeInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", forkNodeInstance.IsIndividual); - dictionary.Add("isOrdered", forkNodeInstance.IsOrdered); - dictionary.Add("isPortion", forkNodeInstance.IsPortion); - dictionary.Add("isSufficient", forkNodeInstance.IsSufficient); - dictionary.Add("isUnique", forkNodeInstance.IsUnique); - dictionary.Add("isVariable", forkNodeInstance.IsVariable); - dictionary.Add("isVariation", forkNodeInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", forkNodeInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", forkNodeInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", forkNodeInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IForkNode forkNodeInstance) - { - var dictionary = new Dictionary - { - { "@type", "ForkNode" }, - { "@id", forkNodeInstance.Id } - }; - - dictionary.Add("aliasIds", forkNodeInstance.AliasIds); - dictionary.Add("declaredName", forkNodeInstance.DeclaredName); - dictionary.Add("declaredShortName", forkNodeInstance.DeclaredShortName); - dictionary.Add("direction", forkNodeInstance.Direction); - dictionary.Add("elementId", forkNodeInstance.ElementId); - dictionary.Add("isAbstract", forkNodeInstance.IsAbstract); - dictionary.Add("isComposite", forkNodeInstance.IsComposite); - dictionary.Add("isConstant", forkNodeInstance.IsConstant); - dictionary.Add("isDerived", forkNodeInstance.IsDerived); - dictionary.Add("isEnd", forkNodeInstance.IsEnd); - dictionary.Add("isImpliedIncluded", forkNodeInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", forkNodeInstance.IsIndividual); - dictionary.Add("isOrdered", forkNodeInstance.IsOrdered); - dictionary.Add("isPortion", forkNodeInstance.IsPortion); - dictionary.Add("isSufficient", forkNodeInstance.IsSufficient); - dictionary.Add("isUnique", forkNodeInstance.IsUnique); - dictionary.Add("isVariable", forkNodeInstance.IsVariable); - dictionary.Add("isVariation", forkNodeInstance.IsVariation); - dictionary.Add("ownedRelationship", forkNodeInstance.OwnedRelationship); - dictionary.Add("owningRelationship", forkNodeInstance.OwningRelationship); - dictionary.Add("portionKind", forkNodeInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IForkNode ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IForkNode forkNodeInstance)) - { - throw new ArgumentException("The dataItem must be of Type IForkNode", "dataItem"); - } - - return forkNodeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FramedConcernMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FramedConcernMembershipDictionaryWriter.cs deleted file mode 100644 index a44ce718e..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FramedConcernMembershipDictionaryWriter.cs +++ /dev/null @@ -1,209 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FramedConcernMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var framedConcernMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(framedConcernMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(framedConcernMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFramedConcernMembership framedConcernMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "FramedConcernMembership" }, - { "@id", framedConcernMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", framedConcernMembershipInstance.AliasIds); - dictionary.Add("declaredName", framedConcernMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", framedConcernMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", framedConcernMembershipInstance.ElementId); - dictionary.Add("isImplied", framedConcernMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", framedConcernMembershipInstance.IsImpliedIncluded); - dictionary.Add("kind", framedConcernMembershipInstance.Kind); - dictionary.Add("memberElement", framedConcernMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", framedConcernMembershipInstance.MemberName); - dictionary.Add("memberShortName", framedConcernMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", framedConcernMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", framedConcernMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", framedConcernMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", framedConcernMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", framedConcernMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", framedConcernMembershipInstance.Target)} ]"); - dictionary.Add("visibility", framedConcernMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFramedConcernMembership framedConcernMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "FramedConcernMembership" }, - { "@id", framedConcernMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", framedConcernMembershipInstance.AliasIds); - dictionary.Add("declaredName", framedConcernMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", framedConcernMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", framedConcernMembershipInstance.ElementId); - dictionary.Add("isImplied", framedConcernMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", framedConcernMembershipInstance.IsImpliedIncluded); - dictionary.Add("kind", framedConcernMembershipInstance.Kind); - dictionary.Add("memberElement", framedConcernMembershipInstance.MemberElement); - dictionary.Add("memberName", framedConcernMembershipInstance.MemberName); - dictionary.Add("memberShortName", framedConcernMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", framedConcernMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", framedConcernMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", framedConcernMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", framedConcernMembershipInstance.OwningRelationship); - dictionary.Add("source", framedConcernMembershipInstance.Source); - dictionary.Add("target", framedConcernMembershipInstance.Target); - dictionary.Add("visibility", framedConcernMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFramedConcernMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFramedConcernMembership framedConcernMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFramedConcernMembership", "dataItem"); - } - - return framedConcernMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FunctionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FunctionDictionaryWriter.cs deleted file mode 100644 index 571a269e9..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/FunctionDictionaryWriter.cs +++ /dev/null @@ -1,193 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class FunctionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var functionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(functionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(functionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IFunction functionInstance) - { - var dictionary = new Dictionary - { - { "@type", "Function" }, - { "@id", functionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", functionInstance.AliasIds); - dictionary.Add("declaredName", functionInstance.DeclaredName); - dictionary.Add("declaredShortName", functionInstance.DeclaredShortName); - dictionary.Add("elementId", functionInstance.ElementId); - dictionary.Add("isAbstract", functionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", functionInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", functionInstance.IsSufficient); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", functionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", functionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IFunction functionInstance) - { - var dictionary = new Dictionary - { - { "@type", "Function" }, - { "@id", functionInstance.Id } - }; - - dictionary.Add("aliasIds", functionInstance.AliasIds); - dictionary.Add("declaredName", functionInstance.DeclaredName); - dictionary.Add("declaredShortName", functionInstance.DeclaredShortName); - dictionary.Add("elementId", functionInstance.ElementId); - dictionary.Add("isAbstract", functionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", functionInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", functionInstance.IsSufficient); - dictionary.Add("ownedRelationship", functionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", functionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IFunction ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IFunction functionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IFunction", "dataItem"); - } - - return functionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IfActionUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IfActionUsageDictionaryWriter.cs deleted file mode 100644 index 76c05e2b7..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IfActionUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class IfActionUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var ifActionUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(ifActionUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(ifActionUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IIfActionUsage ifActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "IfActionUsage" }, - { "@id", ifActionUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", ifActionUsageInstance.AliasIds); - dictionary.Add("declaredName", ifActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", ifActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", ifActionUsageInstance.Direction); - dictionary.Add("elementId", ifActionUsageInstance.ElementId); - dictionary.Add("isAbstract", ifActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", ifActionUsageInstance.IsComposite); - dictionary.Add("isConstant", ifActionUsageInstance.IsConstant); - dictionary.Add("isDerived", ifActionUsageInstance.IsDerived); - dictionary.Add("isEnd", ifActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", ifActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", ifActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", ifActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", ifActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", ifActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", ifActionUsageInstance.IsUnique); - dictionary.Add("isVariable", ifActionUsageInstance.IsVariable); - dictionary.Add("isVariation", ifActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", ifActionUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", ifActionUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", ifActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IIfActionUsage ifActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "IfActionUsage" }, - { "@id", ifActionUsageInstance.Id } - }; - - dictionary.Add("aliasIds", ifActionUsageInstance.AliasIds); - dictionary.Add("declaredName", ifActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", ifActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", ifActionUsageInstance.Direction); - dictionary.Add("elementId", ifActionUsageInstance.ElementId); - dictionary.Add("isAbstract", ifActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", ifActionUsageInstance.IsComposite); - dictionary.Add("isConstant", ifActionUsageInstance.IsConstant); - dictionary.Add("isDerived", ifActionUsageInstance.IsDerived); - dictionary.Add("isEnd", ifActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", ifActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", ifActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", ifActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", ifActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", ifActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", ifActionUsageInstance.IsUnique); - dictionary.Add("isVariable", ifActionUsageInstance.IsVariable); - dictionary.Add("isVariation", ifActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", ifActionUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", ifActionUsageInstance.OwningRelationship); - dictionary.Add("portionKind", ifActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IIfActionUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IIfActionUsage ifActionUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IIfActionUsage", "dataItem"); - } - - return ifActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IncludeUseCaseUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IncludeUseCaseUsageDictionaryWriter.cs deleted file mode 100644 index b8508789a..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IncludeUseCaseUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class IncludeUseCaseUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var includeUseCaseUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(includeUseCaseUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(includeUseCaseUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IIncludeUseCaseUsage includeUseCaseUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "IncludeUseCaseUsage" }, - { "@id", includeUseCaseUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", includeUseCaseUsageInstance.AliasIds); - dictionary.Add("declaredName", includeUseCaseUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", includeUseCaseUsageInstance.DeclaredShortName); - dictionary.Add("direction", includeUseCaseUsageInstance.Direction); - dictionary.Add("elementId", includeUseCaseUsageInstance.ElementId); - dictionary.Add("isAbstract", includeUseCaseUsageInstance.IsAbstract); - dictionary.Add("isComposite", includeUseCaseUsageInstance.IsComposite); - dictionary.Add("isConstant", includeUseCaseUsageInstance.IsConstant); - dictionary.Add("isDerived", includeUseCaseUsageInstance.IsDerived); - dictionary.Add("isEnd", includeUseCaseUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", includeUseCaseUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", includeUseCaseUsageInstance.IsIndividual); - dictionary.Add("isOrdered", includeUseCaseUsageInstance.IsOrdered); - dictionary.Add("isPortion", includeUseCaseUsageInstance.IsPortion); - dictionary.Add("isSufficient", includeUseCaseUsageInstance.IsSufficient); - dictionary.Add("isUnique", includeUseCaseUsageInstance.IsUnique); - dictionary.Add("isVariable", includeUseCaseUsageInstance.IsVariable); - dictionary.Add("isVariation", includeUseCaseUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", includeUseCaseUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", includeUseCaseUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", includeUseCaseUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IIncludeUseCaseUsage includeUseCaseUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "IncludeUseCaseUsage" }, - { "@id", includeUseCaseUsageInstance.Id } - }; - - dictionary.Add("aliasIds", includeUseCaseUsageInstance.AliasIds); - dictionary.Add("declaredName", includeUseCaseUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", includeUseCaseUsageInstance.DeclaredShortName); - dictionary.Add("direction", includeUseCaseUsageInstance.Direction); - dictionary.Add("elementId", includeUseCaseUsageInstance.ElementId); - dictionary.Add("isAbstract", includeUseCaseUsageInstance.IsAbstract); - dictionary.Add("isComposite", includeUseCaseUsageInstance.IsComposite); - dictionary.Add("isConstant", includeUseCaseUsageInstance.IsConstant); - dictionary.Add("isDerived", includeUseCaseUsageInstance.IsDerived); - dictionary.Add("isEnd", includeUseCaseUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", includeUseCaseUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", includeUseCaseUsageInstance.IsIndividual); - dictionary.Add("isOrdered", includeUseCaseUsageInstance.IsOrdered); - dictionary.Add("isPortion", includeUseCaseUsageInstance.IsPortion); - dictionary.Add("isSufficient", includeUseCaseUsageInstance.IsSufficient); - dictionary.Add("isUnique", includeUseCaseUsageInstance.IsUnique); - dictionary.Add("isVariable", includeUseCaseUsageInstance.IsVariable); - dictionary.Add("isVariation", includeUseCaseUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", includeUseCaseUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", includeUseCaseUsageInstance.OwningRelationship); - dictionary.Add("portionKind", includeUseCaseUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IIncludeUseCaseUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IIncludeUseCaseUsage includeUseCaseUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IIncludeUseCaseUsage", "dataItem"); - } - - return includeUseCaseUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IndexExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IndexExpressionDictionaryWriter.cs deleted file mode 100644 index 1013e45a7..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IndexExpressionDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class IndexExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var indexExpressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(indexExpressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(indexExpressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IIndexExpression indexExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "IndexExpression" }, - { "@id", indexExpressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", indexExpressionInstance.AliasIds); - dictionary.Add("declaredName", indexExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", indexExpressionInstance.DeclaredShortName); - dictionary.Add("direction", indexExpressionInstance.Direction); - dictionary.Add("elementId", indexExpressionInstance.ElementId); - dictionary.Add("isAbstract", indexExpressionInstance.IsAbstract); - dictionary.Add("isComposite", indexExpressionInstance.IsComposite); - dictionary.Add("isConstant", indexExpressionInstance.IsConstant); - dictionary.Add("isDerived", indexExpressionInstance.IsDerived); - dictionary.Add("isEnd", indexExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", indexExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", indexExpressionInstance.IsOrdered); - dictionary.Add("isPortion", indexExpressionInstance.IsPortion); - dictionary.Add("isSufficient", indexExpressionInstance.IsSufficient); - dictionary.Add("isUnique", indexExpressionInstance.IsUnique); - dictionary.Add("isVariable", indexExpressionInstance.IsVariable); - dictionary.Add("operator", indexExpressionInstance.Operator); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", indexExpressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", indexExpressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IIndexExpression indexExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "IndexExpression" }, - { "@id", indexExpressionInstance.Id } - }; - - dictionary.Add("aliasIds", indexExpressionInstance.AliasIds); - dictionary.Add("declaredName", indexExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", indexExpressionInstance.DeclaredShortName); - dictionary.Add("direction", indexExpressionInstance.Direction); - dictionary.Add("elementId", indexExpressionInstance.ElementId); - dictionary.Add("isAbstract", indexExpressionInstance.IsAbstract); - dictionary.Add("isComposite", indexExpressionInstance.IsComposite); - dictionary.Add("isConstant", indexExpressionInstance.IsConstant); - dictionary.Add("isDerived", indexExpressionInstance.IsDerived); - dictionary.Add("isEnd", indexExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", indexExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", indexExpressionInstance.IsOrdered); - dictionary.Add("isPortion", indexExpressionInstance.IsPortion); - dictionary.Add("isSufficient", indexExpressionInstance.IsSufficient); - dictionary.Add("isUnique", indexExpressionInstance.IsUnique); - dictionary.Add("isVariable", indexExpressionInstance.IsVariable); - dictionary.Add("operator", indexExpressionInstance.Operator); - dictionary.Add("ownedRelationship", indexExpressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", indexExpressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IIndexExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IIndexExpression indexExpressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IIndexExpression", "dataItem"); - } - - return indexExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InteractionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InteractionDictionaryWriter.cs deleted file mode 100644 index 83e72700b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InteractionDictionaryWriter.cs +++ /dev/null @@ -1,203 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class InteractionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var interactionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(interactionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(interactionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IInteraction interactionInstance) - { - var dictionary = new Dictionary - { - { "@type", "Interaction" }, - { "@id", interactionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", interactionInstance.AliasIds); - dictionary.Add("declaredName", interactionInstance.DeclaredName); - dictionary.Add("declaredShortName", interactionInstance.DeclaredShortName); - dictionary.Add("elementId", interactionInstance.ElementId); - dictionary.Add("isAbstract", interactionInstance.IsAbstract); - dictionary.Add("isImplied", interactionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", interactionInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", interactionInstance.IsSufficient); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", interactionInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", interactionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", interactionInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", interactionInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", interactionInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", interactionInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IInteraction interactionInstance) - { - var dictionary = new Dictionary - { - { "@type", "Interaction" }, - { "@id", interactionInstance.Id } - }; - - dictionary.Add("aliasIds", interactionInstance.AliasIds); - dictionary.Add("declaredName", interactionInstance.DeclaredName); - dictionary.Add("declaredShortName", interactionInstance.DeclaredShortName); - dictionary.Add("elementId", interactionInstance.ElementId); - dictionary.Add("isAbstract", interactionInstance.IsAbstract); - dictionary.Add("isImplied", interactionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", interactionInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", interactionInstance.IsSufficient); - dictionary.Add("ownedRelatedElement", interactionInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", interactionInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", interactionInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", interactionInstance.OwningRelationship); - dictionary.Add("source", interactionInstance.Source); - dictionary.Add("target", interactionInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IInteraction ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IInteraction interactionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IInteraction", "dataItem"); - } - - return interactionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InterfaceDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InterfaceDefinitionDictionaryWriter.cs deleted file mode 100644 index e9887da0a..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InterfaceDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class InterfaceDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var interfaceDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(interfaceDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(interfaceDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IInterfaceDefinition interfaceDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "InterfaceDefinition" }, - { "@id", interfaceDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", interfaceDefinitionInstance.AliasIds); - dictionary.Add("declaredName", interfaceDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", interfaceDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", interfaceDefinitionInstance.ElementId); - dictionary.Add("isAbstract", interfaceDefinitionInstance.IsAbstract); - dictionary.Add("isImplied", interfaceDefinitionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", interfaceDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", interfaceDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", interfaceDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", interfaceDefinitionInstance.IsVariation); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", interfaceDefinitionInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", interfaceDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", interfaceDefinitionInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", interfaceDefinitionInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", interfaceDefinitionInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", interfaceDefinitionInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IInterfaceDefinition interfaceDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "InterfaceDefinition" }, - { "@id", interfaceDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", interfaceDefinitionInstance.AliasIds); - dictionary.Add("declaredName", interfaceDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", interfaceDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", interfaceDefinitionInstance.ElementId); - dictionary.Add("isAbstract", interfaceDefinitionInstance.IsAbstract); - dictionary.Add("isImplied", interfaceDefinitionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", interfaceDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", interfaceDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", interfaceDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", interfaceDefinitionInstance.IsVariation); - dictionary.Add("ownedRelatedElement", interfaceDefinitionInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", interfaceDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", interfaceDefinitionInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", interfaceDefinitionInstance.OwningRelationship); - dictionary.Add("source", interfaceDefinitionInstance.Source); - dictionary.Add("target", interfaceDefinitionInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IInterfaceDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IInterfaceDefinition interfaceDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IInterfaceDefinition", "dataItem"); - } - - return interfaceDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InterfaceUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InterfaceUsageDictionaryWriter.cs deleted file mode 100644 index aec74a734..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InterfaceUsageDictionaryWriter.cs +++ /dev/null @@ -1,227 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class InterfaceUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var interfaceUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(interfaceUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(interfaceUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IInterfaceUsage interfaceUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "InterfaceUsage" }, - { "@id", interfaceUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", interfaceUsageInstance.AliasIds); - dictionary.Add("declaredName", interfaceUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", interfaceUsageInstance.DeclaredShortName); - dictionary.Add("direction", interfaceUsageInstance.Direction); - dictionary.Add("elementId", interfaceUsageInstance.ElementId); - dictionary.Add("isAbstract", interfaceUsageInstance.IsAbstract); - dictionary.Add("isComposite", interfaceUsageInstance.IsComposite); - dictionary.Add("isConstant", interfaceUsageInstance.IsConstant); - dictionary.Add("isDerived", interfaceUsageInstance.IsDerived); - dictionary.Add("isEnd", interfaceUsageInstance.IsEnd); - dictionary.Add("isImplied", interfaceUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", interfaceUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", interfaceUsageInstance.IsIndividual); - dictionary.Add("isOrdered", interfaceUsageInstance.IsOrdered); - dictionary.Add("isPortion", interfaceUsageInstance.IsPortion); - dictionary.Add("isSufficient", interfaceUsageInstance.IsSufficient); - dictionary.Add("isUnique", interfaceUsageInstance.IsUnique); - dictionary.Add("isVariable", interfaceUsageInstance.IsVariable); - dictionary.Add("isVariation", interfaceUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", interfaceUsageInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", interfaceUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", interfaceUsageInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", interfaceUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", interfaceUsageInstance.PortionKind); - dictionary.Add("source", $"[ {string.Join(",", interfaceUsageInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", interfaceUsageInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IInterfaceUsage interfaceUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "InterfaceUsage" }, - { "@id", interfaceUsageInstance.Id } - }; - - dictionary.Add("aliasIds", interfaceUsageInstance.AliasIds); - dictionary.Add("declaredName", interfaceUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", interfaceUsageInstance.DeclaredShortName); - dictionary.Add("direction", interfaceUsageInstance.Direction); - dictionary.Add("elementId", interfaceUsageInstance.ElementId); - dictionary.Add("isAbstract", interfaceUsageInstance.IsAbstract); - dictionary.Add("isComposite", interfaceUsageInstance.IsComposite); - dictionary.Add("isConstant", interfaceUsageInstance.IsConstant); - dictionary.Add("isDerived", interfaceUsageInstance.IsDerived); - dictionary.Add("isEnd", interfaceUsageInstance.IsEnd); - dictionary.Add("isImplied", interfaceUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", interfaceUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", interfaceUsageInstance.IsIndividual); - dictionary.Add("isOrdered", interfaceUsageInstance.IsOrdered); - dictionary.Add("isPortion", interfaceUsageInstance.IsPortion); - dictionary.Add("isSufficient", interfaceUsageInstance.IsSufficient); - dictionary.Add("isUnique", interfaceUsageInstance.IsUnique); - dictionary.Add("isVariable", interfaceUsageInstance.IsVariable); - dictionary.Add("isVariation", interfaceUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", interfaceUsageInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", interfaceUsageInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", interfaceUsageInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", interfaceUsageInstance.OwningRelationship); - dictionary.Add("portionKind", interfaceUsageInstance.PortionKind); - dictionary.Add("source", interfaceUsageInstance.Source); - dictionary.Add("target", interfaceUsageInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IInterfaceUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IInterfaceUsage interfaceUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IInterfaceUsage", "dataItem"); - } - - return interfaceUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IntersectingDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IntersectingDictionaryWriter.cs deleted file mode 100644 index 0d9594fbc..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/IntersectingDictionaryWriter.cs +++ /dev/null @@ -1,201 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class IntersectingDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var intersectingInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(intersectingInstance); - case DictionaryKind.Simplified: - return WriteSimplified(intersectingInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IIntersecting intersectingInstance) - { - var dictionary = new Dictionary - { - { "@type", "Intersecting" }, - { "@id", intersectingInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", intersectingInstance.AliasIds); - dictionary.Add("declaredName", intersectingInstance.DeclaredName); - dictionary.Add("declaredShortName", intersectingInstance.DeclaredShortName); - dictionary.Add("elementId", intersectingInstance.ElementId); - dictionary.Add("intersectingType", intersectingInstance.IntersectingType.ToString()); - dictionary.Add("isImplied", intersectingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", intersectingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", intersectingInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", intersectingInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", intersectingInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", intersectingInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", intersectingInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", intersectingInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IIntersecting intersectingInstance) - { - var dictionary = new Dictionary - { - { "@type", "Intersecting" }, - { "@id", intersectingInstance.Id } - }; - - dictionary.Add("aliasIds", intersectingInstance.AliasIds); - dictionary.Add("declaredName", intersectingInstance.DeclaredName); - dictionary.Add("declaredShortName", intersectingInstance.DeclaredShortName); - dictionary.Add("elementId", intersectingInstance.ElementId); - dictionary.Add("intersectingType", intersectingInstance.IntersectingType); - dictionary.Add("isImplied", intersectingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", intersectingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", intersectingInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", intersectingInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", intersectingInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", intersectingInstance.OwningRelationship); - dictionary.Add("source", intersectingInstance.Source); - dictionary.Add("target", intersectingInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IIntersecting ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IIntersecting intersectingInstance)) - { - throw new ArgumentException("The dataItem must be of Type IIntersecting", "dataItem"); - } - - return intersectingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InvariantDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InvariantDictionaryWriter.cs deleted file mode 100644 index 5a014132c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InvariantDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class InvariantDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var invariantInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(invariantInstance); - case DictionaryKind.Simplified: - return WriteSimplified(invariantInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IInvariant invariantInstance) - { - var dictionary = new Dictionary - { - { "@type", "Invariant" }, - { "@id", invariantInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", invariantInstance.AliasIds); - dictionary.Add("declaredName", invariantInstance.DeclaredName); - dictionary.Add("declaredShortName", invariantInstance.DeclaredShortName); - dictionary.Add("direction", invariantInstance.Direction); - dictionary.Add("elementId", invariantInstance.ElementId); - dictionary.Add("isAbstract", invariantInstance.IsAbstract); - dictionary.Add("isComposite", invariantInstance.IsComposite); - dictionary.Add("isConstant", invariantInstance.IsConstant); - dictionary.Add("isDerived", invariantInstance.IsDerived); - dictionary.Add("isEnd", invariantInstance.IsEnd); - dictionary.Add("isImpliedIncluded", invariantInstance.IsImpliedIncluded); - dictionary.Add("isNegated", invariantInstance.IsNegated); - dictionary.Add("isOrdered", invariantInstance.IsOrdered); - dictionary.Add("isPortion", invariantInstance.IsPortion); - dictionary.Add("isSufficient", invariantInstance.IsSufficient); - dictionary.Add("isUnique", invariantInstance.IsUnique); - dictionary.Add("isVariable", invariantInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", invariantInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", invariantInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IInvariant invariantInstance) - { - var dictionary = new Dictionary - { - { "@type", "Invariant" }, - { "@id", invariantInstance.Id } - }; - - dictionary.Add("aliasIds", invariantInstance.AliasIds); - dictionary.Add("declaredName", invariantInstance.DeclaredName); - dictionary.Add("declaredShortName", invariantInstance.DeclaredShortName); - dictionary.Add("direction", invariantInstance.Direction); - dictionary.Add("elementId", invariantInstance.ElementId); - dictionary.Add("isAbstract", invariantInstance.IsAbstract); - dictionary.Add("isComposite", invariantInstance.IsComposite); - dictionary.Add("isConstant", invariantInstance.IsConstant); - dictionary.Add("isDerived", invariantInstance.IsDerived); - dictionary.Add("isEnd", invariantInstance.IsEnd); - dictionary.Add("isImpliedIncluded", invariantInstance.IsImpliedIncluded); - dictionary.Add("isNegated", invariantInstance.IsNegated); - dictionary.Add("isOrdered", invariantInstance.IsOrdered); - dictionary.Add("isPortion", invariantInstance.IsPortion); - dictionary.Add("isSufficient", invariantInstance.IsSufficient); - dictionary.Add("isUnique", invariantInstance.IsUnique); - dictionary.Add("isVariable", invariantInstance.IsVariable); - dictionary.Add("ownedRelationship", invariantInstance.OwnedRelationship); - dictionary.Add("owningRelationship", invariantInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IInvariant ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IInvariant invariantInstance)) - { - throw new ArgumentException("The dataItem must be of Type IInvariant", "dataItem"); - } - - return invariantInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InvocationExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InvocationExpressionDictionaryWriter.cs deleted file mode 100644 index 9decd68e8..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/InvocationExpressionDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class InvocationExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var invocationExpressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(invocationExpressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(invocationExpressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IInvocationExpression invocationExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "InvocationExpression" }, - { "@id", invocationExpressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", invocationExpressionInstance.AliasIds); - dictionary.Add("declaredName", invocationExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", invocationExpressionInstance.DeclaredShortName); - dictionary.Add("direction", invocationExpressionInstance.Direction); - dictionary.Add("elementId", invocationExpressionInstance.ElementId); - dictionary.Add("isAbstract", invocationExpressionInstance.IsAbstract); - dictionary.Add("isComposite", invocationExpressionInstance.IsComposite); - dictionary.Add("isConstant", invocationExpressionInstance.IsConstant); - dictionary.Add("isDerived", invocationExpressionInstance.IsDerived); - dictionary.Add("isEnd", invocationExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", invocationExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", invocationExpressionInstance.IsOrdered); - dictionary.Add("isPortion", invocationExpressionInstance.IsPortion); - dictionary.Add("isSufficient", invocationExpressionInstance.IsSufficient); - dictionary.Add("isUnique", invocationExpressionInstance.IsUnique); - dictionary.Add("isVariable", invocationExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", invocationExpressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", invocationExpressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IInvocationExpression invocationExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "InvocationExpression" }, - { "@id", invocationExpressionInstance.Id } - }; - - dictionary.Add("aliasIds", invocationExpressionInstance.AliasIds); - dictionary.Add("declaredName", invocationExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", invocationExpressionInstance.DeclaredShortName); - dictionary.Add("direction", invocationExpressionInstance.Direction); - dictionary.Add("elementId", invocationExpressionInstance.ElementId); - dictionary.Add("isAbstract", invocationExpressionInstance.IsAbstract); - dictionary.Add("isComposite", invocationExpressionInstance.IsComposite); - dictionary.Add("isConstant", invocationExpressionInstance.IsConstant); - dictionary.Add("isDerived", invocationExpressionInstance.IsDerived); - dictionary.Add("isEnd", invocationExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", invocationExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", invocationExpressionInstance.IsOrdered); - dictionary.Add("isPortion", invocationExpressionInstance.IsPortion); - dictionary.Add("isSufficient", invocationExpressionInstance.IsSufficient); - dictionary.Add("isUnique", invocationExpressionInstance.IsUnique); - dictionary.Add("isVariable", invocationExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", invocationExpressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", invocationExpressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IInvocationExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IInvocationExpression invocationExpressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IInvocationExpression", "dataItem"); - } - - return invocationExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ItemDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ItemDefinitionDictionaryWriter.cs deleted file mode 100644 index 979eb87f8..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ItemDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ItemDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var itemDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(itemDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(itemDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IItemDefinition itemDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ItemDefinition" }, - { "@id", itemDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", itemDefinitionInstance.AliasIds); - dictionary.Add("declaredName", itemDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", itemDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", itemDefinitionInstance.ElementId); - dictionary.Add("isAbstract", itemDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", itemDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", itemDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", itemDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", itemDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", itemDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", itemDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IItemDefinition itemDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ItemDefinition" }, - { "@id", itemDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", itemDefinitionInstance.AliasIds); - dictionary.Add("declaredName", itemDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", itemDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", itemDefinitionInstance.ElementId); - dictionary.Add("isAbstract", itemDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", itemDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", itemDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", itemDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", itemDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", itemDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", itemDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IItemDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IItemDefinition itemDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IItemDefinition", "dataItem"); - } - - return itemDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ItemUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ItemUsageDictionaryWriter.cs deleted file mode 100644 index 95cd37534..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ItemUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ItemUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var itemUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(itemUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(itemUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IItemUsage itemUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ItemUsage" }, - { "@id", itemUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", itemUsageInstance.AliasIds); - dictionary.Add("declaredName", itemUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", itemUsageInstance.DeclaredShortName); - dictionary.Add("direction", itemUsageInstance.Direction); - dictionary.Add("elementId", itemUsageInstance.ElementId); - dictionary.Add("isAbstract", itemUsageInstance.IsAbstract); - dictionary.Add("isComposite", itemUsageInstance.IsComposite); - dictionary.Add("isConstant", itemUsageInstance.IsConstant); - dictionary.Add("isDerived", itemUsageInstance.IsDerived); - dictionary.Add("isEnd", itemUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", itemUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", itemUsageInstance.IsIndividual); - dictionary.Add("isOrdered", itemUsageInstance.IsOrdered); - dictionary.Add("isPortion", itemUsageInstance.IsPortion); - dictionary.Add("isSufficient", itemUsageInstance.IsSufficient); - dictionary.Add("isUnique", itemUsageInstance.IsUnique); - dictionary.Add("isVariable", itemUsageInstance.IsVariable); - dictionary.Add("isVariation", itemUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", itemUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", itemUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", itemUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IItemUsage itemUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ItemUsage" }, - { "@id", itemUsageInstance.Id } - }; - - dictionary.Add("aliasIds", itemUsageInstance.AliasIds); - dictionary.Add("declaredName", itemUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", itemUsageInstance.DeclaredShortName); - dictionary.Add("direction", itemUsageInstance.Direction); - dictionary.Add("elementId", itemUsageInstance.ElementId); - dictionary.Add("isAbstract", itemUsageInstance.IsAbstract); - dictionary.Add("isComposite", itemUsageInstance.IsComposite); - dictionary.Add("isConstant", itemUsageInstance.IsConstant); - dictionary.Add("isDerived", itemUsageInstance.IsDerived); - dictionary.Add("isEnd", itemUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", itemUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", itemUsageInstance.IsIndividual); - dictionary.Add("isOrdered", itemUsageInstance.IsOrdered); - dictionary.Add("isPortion", itemUsageInstance.IsPortion); - dictionary.Add("isSufficient", itemUsageInstance.IsSufficient); - dictionary.Add("isUnique", itemUsageInstance.IsUnique); - dictionary.Add("isVariable", itemUsageInstance.IsVariable); - dictionary.Add("isVariation", itemUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", itemUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", itemUsageInstance.OwningRelationship); - dictionary.Add("portionKind", itemUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IItemUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IItemUsage itemUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IItemUsage", "dataItem"); - } - - return itemUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/JoinNodeDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/JoinNodeDictionaryWriter.cs deleted file mode 100644 index 3cf8a6c9b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/JoinNodeDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class JoinNodeDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var joinNodeInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(joinNodeInstance); - case DictionaryKind.Simplified: - return WriteSimplified(joinNodeInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IJoinNode joinNodeInstance) - { - var dictionary = new Dictionary - { - { "@type", "JoinNode" }, - { "@id", joinNodeInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", joinNodeInstance.AliasIds); - dictionary.Add("declaredName", joinNodeInstance.DeclaredName); - dictionary.Add("declaredShortName", joinNodeInstance.DeclaredShortName); - dictionary.Add("direction", joinNodeInstance.Direction); - dictionary.Add("elementId", joinNodeInstance.ElementId); - dictionary.Add("isAbstract", joinNodeInstance.IsAbstract); - dictionary.Add("isComposite", joinNodeInstance.IsComposite); - dictionary.Add("isConstant", joinNodeInstance.IsConstant); - dictionary.Add("isDerived", joinNodeInstance.IsDerived); - dictionary.Add("isEnd", joinNodeInstance.IsEnd); - dictionary.Add("isImpliedIncluded", joinNodeInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", joinNodeInstance.IsIndividual); - dictionary.Add("isOrdered", joinNodeInstance.IsOrdered); - dictionary.Add("isPortion", joinNodeInstance.IsPortion); - dictionary.Add("isSufficient", joinNodeInstance.IsSufficient); - dictionary.Add("isUnique", joinNodeInstance.IsUnique); - dictionary.Add("isVariable", joinNodeInstance.IsVariable); - dictionary.Add("isVariation", joinNodeInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", joinNodeInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", joinNodeInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", joinNodeInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IJoinNode joinNodeInstance) - { - var dictionary = new Dictionary - { - { "@type", "JoinNode" }, - { "@id", joinNodeInstance.Id } - }; - - dictionary.Add("aliasIds", joinNodeInstance.AliasIds); - dictionary.Add("declaredName", joinNodeInstance.DeclaredName); - dictionary.Add("declaredShortName", joinNodeInstance.DeclaredShortName); - dictionary.Add("direction", joinNodeInstance.Direction); - dictionary.Add("elementId", joinNodeInstance.ElementId); - dictionary.Add("isAbstract", joinNodeInstance.IsAbstract); - dictionary.Add("isComposite", joinNodeInstance.IsComposite); - dictionary.Add("isConstant", joinNodeInstance.IsConstant); - dictionary.Add("isDerived", joinNodeInstance.IsDerived); - dictionary.Add("isEnd", joinNodeInstance.IsEnd); - dictionary.Add("isImpliedIncluded", joinNodeInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", joinNodeInstance.IsIndividual); - dictionary.Add("isOrdered", joinNodeInstance.IsOrdered); - dictionary.Add("isPortion", joinNodeInstance.IsPortion); - dictionary.Add("isSufficient", joinNodeInstance.IsSufficient); - dictionary.Add("isUnique", joinNodeInstance.IsUnique); - dictionary.Add("isVariable", joinNodeInstance.IsVariable); - dictionary.Add("isVariation", joinNodeInstance.IsVariation); - dictionary.Add("ownedRelationship", joinNodeInstance.OwnedRelationship); - dictionary.Add("owningRelationship", joinNodeInstance.OwningRelationship); - dictionary.Add("portionKind", joinNodeInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IJoinNode ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IJoinNode joinNodeInstance)) - { - throw new ArgumentException("The dataItem must be of Type IJoinNode", "dataItem"); - } - - return joinNodeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LibraryPackageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LibraryPackageDictionaryWriter.cs deleted file mode 100644 index f03aa89a2..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LibraryPackageDictionaryWriter.cs +++ /dev/null @@ -1,191 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class LibraryPackageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var libraryPackageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(libraryPackageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(libraryPackageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ILibraryPackage libraryPackageInstance) - { - var dictionary = new Dictionary - { - { "@type", "LibraryPackage" }, - { "@id", libraryPackageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", libraryPackageInstance.AliasIds); - dictionary.Add("declaredName", libraryPackageInstance.DeclaredName); - dictionary.Add("declaredShortName", libraryPackageInstance.DeclaredShortName); - dictionary.Add("elementId", libraryPackageInstance.ElementId); - dictionary.Add("isImpliedIncluded", libraryPackageInstance.IsImpliedIncluded); - dictionary.Add("isStandard", libraryPackageInstance.IsStandard); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", libraryPackageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", libraryPackageInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ILibraryPackage libraryPackageInstance) - { - var dictionary = new Dictionary - { - { "@type", "LibraryPackage" }, - { "@id", libraryPackageInstance.Id } - }; - - dictionary.Add("aliasIds", libraryPackageInstance.AliasIds); - dictionary.Add("declaredName", libraryPackageInstance.DeclaredName); - dictionary.Add("declaredShortName", libraryPackageInstance.DeclaredShortName); - dictionary.Add("elementId", libraryPackageInstance.ElementId); - dictionary.Add("isImpliedIncluded", libraryPackageInstance.IsImpliedIncluded); - dictionary.Add("isStandard", libraryPackageInstance.IsStandard); - dictionary.Add("ownedRelationship", libraryPackageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", libraryPackageInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILibraryPackage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ILibraryPackage libraryPackageInstance)) - { - throw new ArgumentException("The dataItem must be of Type ILibraryPackage", "dataItem"); - } - - return libraryPackageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralBooleanDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralBooleanDictionaryWriter.cs deleted file mode 100644 index 72764e6a9..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralBooleanDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class LiteralBooleanDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var literalBooleanInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(literalBooleanInstance); - case DictionaryKind.Simplified: - return WriteSimplified(literalBooleanInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ILiteralBoolean literalBooleanInstance) - { - var dictionary = new Dictionary - { - { "@type", "LiteralBoolean" }, - { "@id", literalBooleanInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", literalBooleanInstance.AliasIds); - dictionary.Add("declaredName", literalBooleanInstance.DeclaredName); - dictionary.Add("declaredShortName", literalBooleanInstance.DeclaredShortName); - dictionary.Add("direction", literalBooleanInstance.Direction); - dictionary.Add("elementId", literalBooleanInstance.ElementId); - dictionary.Add("isAbstract", literalBooleanInstance.IsAbstract); - dictionary.Add("isComposite", literalBooleanInstance.IsComposite); - dictionary.Add("isConstant", literalBooleanInstance.IsConstant); - dictionary.Add("isDerived", literalBooleanInstance.IsDerived); - dictionary.Add("isEnd", literalBooleanInstance.IsEnd); - dictionary.Add("isImpliedIncluded", literalBooleanInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", literalBooleanInstance.IsOrdered); - dictionary.Add("isPortion", literalBooleanInstance.IsPortion); - dictionary.Add("isSufficient", literalBooleanInstance.IsSufficient); - dictionary.Add("isUnique", literalBooleanInstance.IsUnique); - dictionary.Add("isVariable", literalBooleanInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", literalBooleanInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", literalBooleanInstance.OwningRelationship.ToString()); - dictionary.Add("value", literalBooleanInstance.Value); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ILiteralBoolean literalBooleanInstance) - { - var dictionary = new Dictionary - { - { "@type", "LiteralBoolean" }, - { "@id", literalBooleanInstance.Id } - }; - - dictionary.Add("aliasIds", literalBooleanInstance.AliasIds); - dictionary.Add("declaredName", literalBooleanInstance.DeclaredName); - dictionary.Add("declaredShortName", literalBooleanInstance.DeclaredShortName); - dictionary.Add("direction", literalBooleanInstance.Direction); - dictionary.Add("elementId", literalBooleanInstance.ElementId); - dictionary.Add("isAbstract", literalBooleanInstance.IsAbstract); - dictionary.Add("isComposite", literalBooleanInstance.IsComposite); - dictionary.Add("isConstant", literalBooleanInstance.IsConstant); - dictionary.Add("isDerived", literalBooleanInstance.IsDerived); - dictionary.Add("isEnd", literalBooleanInstance.IsEnd); - dictionary.Add("isImpliedIncluded", literalBooleanInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", literalBooleanInstance.IsOrdered); - dictionary.Add("isPortion", literalBooleanInstance.IsPortion); - dictionary.Add("isSufficient", literalBooleanInstance.IsSufficient); - dictionary.Add("isUnique", literalBooleanInstance.IsUnique); - dictionary.Add("isVariable", literalBooleanInstance.IsVariable); - dictionary.Add("ownedRelationship", literalBooleanInstance.OwnedRelationship); - dictionary.Add("owningRelationship", literalBooleanInstance.OwningRelationship); - dictionary.Add("value", literalBooleanInstance.Value); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILiteralBoolean ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ILiteralBoolean literalBooleanInstance)) - { - throw new ArgumentException("The dataItem must be of Type ILiteralBoolean", "dataItem"); - } - - return literalBooleanInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralExpressionDictionaryWriter.cs deleted file mode 100644 index ea7b118b2..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralExpressionDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class LiteralExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var literalExpressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(literalExpressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(literalExpressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ILiteralExpression literalExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "LiteralExpression" }, - { "@id", literalExpressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", literalExpressionInstance.AliasIds); - dictionary.Add("declaredName", literalExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", literalExpressionInstance.DeclaredShortName); - dictionary.Add("direction", literalExpressionInstance.Direction); - dictionary.Add("elementId", literalExpressionInstance.ElementId); - dictionary.Add("isAbstract", literalExpressionInstance.IsAbstract); - dictionary.Add("isComposite", literalExpressionInstance.IsComposite); - dictionary.Add("isConstant", literalExpressionInstance.IsConstant); - dictionary.Add("isDerived", literalExpressionInstance.IsDerived); - dictionary.Add("isEnd", literalExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", literalExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", literalExpressionInstance.IsOrdered); - dictionary.Add("isPortion", literalExpressionInstance.IsPortion); - dictionary.Add("isSufficient", literalExpressionInstance.IsSufficient); - dictionary.Add("isUnique", literalExpressionInstance.IsUnique); - dictionary.Add("isVariable", literalExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", literalExpressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", literalExpressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ILiteralExpression literalExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "LiteralExpression" }, - { "@id", literalExpressionInstance.Id } - }; - - dictionary.Add("aliasIds", literalExpressionInstance.AliasIds); - dictionary.Add("declaredName", literalExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", literalExpressionInstance.DeclaredShortName); - dictionary.Add("direction", literalExpressionInstance.Direction); - dictionary.Add("elementId", literalExpressionInstance.ElementId); - dictionary.Add("isAbstract", literalExpressionInstance.IsAbstract); - dictionary.Add("isComposite", literalExpressionInstance.IsComposite); - dictionary.Add("isConstant", literalExpressionInstance.IsConstant); - dictionary.Add("isDerived", literalExpressionInstance.IsDerived); - dictionary.Add("isEnd", literalExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", literalExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", literalExpressionInstance.IsOrdered); - dictionary.Add("isPortion", literalExpressionInstance.IsPortion); - dictionary.Add("isSufficient", literalExpressionInstance.IsSufficient); - dictionary.Add("isUnique", literalExpressionInstance.IsUnique); - dictionary.Add("isVariable", literalExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", literalExpressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", literalExpressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILiteralExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ILiteralExpression literalExpressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type ILiteralExpression", "dataItem"); - } - - return literalExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralInfinityDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralInfinityDictionaryWriter.cs deleted file mode 100644 index 57c18f108..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralInfinityDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class LiteralInfinityDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var literalInfinityInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(literalInfinityInstance); - case DictionaryKind.Simplified: - return WriteSimplified(literalInfinityInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ILiteralInfinity literalInfinityInstance) - { - var dictionary = new Dictionary - { - { "@type", "LiteralInfinity" }, - { "@id", literalInfinityInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", literalInfinityInstance.AliasIds); - dictionary.Add("declaredName", literalInfinityInstance.DeclaredName); - dictionary.Add("declaredShortName", literalInfinityInstance.DeclaredShortName); - dictionary.Add("direction", literalInfinityInstance.Direction); - dictionary.Add("elementId", literalInfinityInstance.ElementId); - dictionary.Add("isAbstract", literalInfinityInstance.IsAbstract); - dictionary.Add("isComposite", literalInfinityInstance.IsComposite); - dictionary.Add("isConstant", literalInfinityInstance.IsConstant); - dictionary.Add("isDerived", literalInfinityInstance.IsDerived); - dictionary.Add("isEnd", literalInfinityInstance.IsEnd); - dictionary.Add("isImpliedIncluded", literalInfinityInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", literalInfinityInstance.IsOrdered); - dictionary.Add("isPortion", literalInfinityInstance.IsPortion); - dictionary.Add("isSufficient", literalInfinityInstance.IsSufficient); - dictionary.Add("isUnique", literalInfinityInstance.IsUnique); - dictionary.Add("isVariable", literalInfinityInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", literalInfinityInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", literalInfinityInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ILiteralInfinity literalInfinityInstance) - { - var dictionary = new Dictionary - { - { "@type", "LiteralInfinity" }, - { "@id", literalInfinityInstance.Id } - }; - - dictionary.Add("aliasIds", literalInfinityInstance.AliasIds); - dictionary.Add("declaredName", literalInfinityInstance.DeclaredName); - dictionary.Add("declaredShortName", literalInfinityInstance.DeclaredShortName); - dictionary.Add("direction", literalInfinityInstance.Direction); - dictionary.Add("elementId", literalInfinityInstance.ElementId); - dictionary.Add("isAbstract", literalInfinityInstance.IsAbstract); - dictionary.Add("isComposite", literalInfinityInstance.IsComposite); - dictionary.Add("isConstant", literalInfinityInstance.IsConstant); - dictionary.Add("isDerived", literalInfinityInstance.IsDerived); - dictionary.Add("isEnd", literalInfinityInstance.IsEnd); - dictionary.Add("isImpliedIncluded", literalInfinityInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", literalInfinityInstance.IsOrdered); - dictionary.Add("isPortion", literalInfinityInstance.IsPortion); - dictionary.Add("isSufficient", literalInfinityInstance.IsSufficient); - dictionary.Add("isUnique", literalInfinityInstance.IsUnique); - dictionary.Add("isVariable", literalInfinityInstance.IsVariable); - dictionary.Add("ownedRelationship", literalInfinityInstance.OwnedRelationship); - dictionary.Add("owningRelationship", literalInfinityInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILiteralInfinity ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ILiteralInfinity literalInfinityInstance)) - { - throw new ArgumentException("The dataItem must be of Type ILiteralInfinity", "dataItem"); - } - - return literalInfinityInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralIntegerDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralIntegerDictionaryWriter.cs deleted file mode 100644 index 395fc8e5b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralIntegerDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class LiteralIntegerDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var literalIntegerInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(literalIntegerInstance); - case DictionaryKind.Simplified: - return WriteSimplified(literalIntegerInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ILiteralInteger literalIntegerInstance) - { - var dictionary = new Dictionary - { - { "@type", "LiteralInteger" }, - { "@id", literalIntegerInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", literalIntegerInstance.AliasIds); - dictionary.Add("declaredName", literalIntegerInstance.DeclaredName); - dictionary.Add("declaredShortName", literalIntegerInstance.DeclaredShortName); - dictionary.Add("direction", literalIntegerInstance.Direction); - dictionary.Add("elementId", literalIntegerInstance.ElementId); - dictionary.Add("isAbstract", literalIntegerInstance.IsAbstract); - dictionary.Add("isComposite", literalIntegerInstance.IsComposite); - dictionary.Add("isConstant", literalIntegerInstance.IsConstant); - dictionary.Add("isDerived", literalIntegerInstance.IsDerived); - dictionary.Add("isEnd", literalIntegerInstance.IsEnd); - dictionary.Add("isImpliedIncluded", literalIntegerInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", literalIntegerInstance.IsOrdered); - dictionary.Add("isPortion", literalIntegerInstance.IsPortion); - dictionary.Add("isSufficient", literalIntegerInstance.IsSufficient); - dictionary.Add("isUnique", literalIntegerInstance.IsUnique); - dictionary.Add("isVariable", literalIntegerInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", literalIntegerInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", literalIntegerInstance.OwningRelationship.ToString()); - dictionary.Add("value", literalIntegerInstance.Value); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ILiteralInteger literalIntegerInstance) - { - var dictionary = new Dictionary - { - { "@type", "LiteralInteger" }, - { "@id", literalIntegerInstance.Id } - }; - - dictionary.Add("aliasIds", literalIntegerInstance.AliasIds); - dictionary.Add("declaredName", literalIntegerInstance.DeclaredName); - dictionary.Add("declaredShortName", literalIntegerInstance.DeclaredShortName); - dictionary.Add("direction", literalIntegerInstance.Direction); - dictionary.Add("elementId", literalIntegerInstance.ElementId); - dictionary.Add("isAbstract", literalIntegerInstance.IsAbstract); - dictionary.Add("isComposite", literalIntegerInstance.IsComposite); - dictionary.Add("isConstant", literalIntegerInstance.IsConstant); - dictionary.Add("isDerived", literalIntegerInstance.IsDerived); - dictionary.Add("isEnd", literalIntegerInstance.IsEnd); - dictionary.Add("isImpliedIncluded", literalIntegerInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", literalIntegerInstance.IsOrdered); - dictionary.Add("isPortion", literalIntegerInstance.IsPortion); - dictionary.Add("isSufficient", literalIntegerInstance.IsSufficient); - dictionary.Add("isUnique", literalIntegerInstance.IsUnique); - dictionary.Add("isVariable", literalIntegerInstance.IsVariable); - dictionary.Add("ownedRelationship", literalIntegerInstance.OwnedRelationship); - dictionary.Add("owningRelationship", literalIntegerInstance.OwningRelationship); - dictionary.Add("value", literalIntegerInstance.Value); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILiteralInteger ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ILiteralInteger literalIntegerInstance)) - { - throw new ArgumentException("The dataItem must be of Type ILiteralInteger", "dataItem"); - } - - return literalIntegerInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralRationalDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralRationalDictionaryWriter.cs deleted file mode 100644 index 5258a81af..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralRationalDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class LiteralRationalDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var literalRationalInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(literalRationalInstance); - case DictionaryKind.Simplified: - return WriteSimplified(literalRationalInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ILiteralRational literalRationalInstance) - { - var dictionary = new Dictionary - { - { "@type", "LiteralRational" }, - { "@id", literalRationalInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", literalRationalInstance.AliasIds); - dictionary.Add("declaredName", literalRationalInstance.DeclaredName); - dictionary.Add("declaredShortName", literalRationalInstance.DeclaredShortName); - dictionary.Add("direction", literalRationalInstance.Direction); - dictionary.Add("elementId", literalRationalInstance.ElementId); - dictionary.Add("isAbstract", literalRationalInstance.IsAbstract); - dictionary.Add("isComposite", literalRationalInstance.IsComposite); - dictionary.Add("isConstant", literalRationalInstance.IsConstant); - dictionary.Add("isDerived", literalRationalInstance.IsDerived); - dictionary.Add("isEnd", literalRationalInstance.IsEnd); - dictionary.Add("isImpliedIncluded", literalRationalInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", literalRationalInstance.IsOrdered); - dictionary.Add("isPortion", literalRationalInstance.IsPortion); - dictionary.Add("isSufficient", literalRationalInstance.IsSufficient); - dictionary.Add("isUnique", literalRationalInstance.IsUnique); - dictionary.Add("isVariable", literalRationalInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", literalRationalInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", literalRationalInstance.OwningRelationship.ToString()); - dictionary.Add("value", literalRationalInstance.Value); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ILiteralRational literalRationalInstance) - { - var dictionary = new Dictionary - { - { "@type", "LiteralRational" }, - { "@id", literalRationalInstance.Id } - }; - - dictionary.Add("aliasIds", literalRationalInstance.AliasIds); - dictionary.Add("declaredName", literalRationalInstance.DeclaredName); - dictionary.Add("declaredShortName", literalRationalInstance.DeclaredShortName); - dictionary.Add("direction", literalRationalInstance.Direction); - dictionary.Add("elementId", literalRationalInstance.ElementId); - dictionary.Add("isAbstract", literalRationalInstance.IsAbstract); - dictionary.Add("isComposite", literalRationalInstance.IsComposite); - dictionary.Add("isConstant", literalRationalInstance.IsConstant); - dictionary.Add("isDerived", literalRationalInstance.IsDerived); - dictionary.Add("isEnd", literalRationalInstance.IsEnd); - dictionary.Add("isImpliedIncluded", literalRationalInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", literalRationalInstance.IsOrdered); - dictionary.Add("isPortion", literalRationalInstance.IsPortion); - dictionary.Add("isSufficient", literalRationalInstance.IsSufficient); - dictionary.Add("isUnique", literalRationalInstance.IsUnique); - dictionary.Add("isVariable", literalRationalInstance.IsVariable); - dictionary.Add("ownedRelationship", literalRationalInstance.OwnedRelationship); - dictionary.Add("owningRelationship", literalRationalInstance.OwningRelationship); - dictionary.Add("value", literalRationalInstance.Value); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILiteralRational ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ILiteralRational literalRationalInstance)) - { - throw new ArgumentException("The dataItem must be of Type ILiteralRational", "dataItem"); - } - - return literalRationalInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralStringDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralStringDictionaryWriter.cs deleted file mode 100644 index 12fcdac4b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/LiteralStringDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class LiteralStringDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var literalStringInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(literalStringInstance); - case DictionaryKind.Simplified: - return WriteSimplified(literalStringInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ILiteralString literalStringInstance) - { - var dictionary = new Dictionary - { - { "@type", "LiteralString" }, - { "@id", literalStringInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", literalStringInstance.AliasIds); - dictionary.Add("declaredName", literalStringInstance.DeclaredName); - dictionary.Add("declaredShortName", literalStringInstance.DeclaredShortName); - dictionary.Add("direction", literalStringInstance.Direction); - dictionary.Add("elementId", literalStringInstance.ElementId); - dictionary.Add("isAbstract", literalStringInstance.IsAbstract); - dictionary.Add("isComposite", literalStringInstance.IsComposite); - dictionary.Add("isConstant", literalStringInstance.IsConstant); - dictionary.Add("isDerived", literalStringInstance.IsDerived); - dictionary.Add("isEnd", literalStringInstance.IsEnd); - dictionary.Add("isImpliedIncluded", literalStringInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", literalStringInstance.IsOrdered); - dictionary.Add("isPortion", literalStringInstance.IsPortion); - dictionary.Add("isSufficient", literalStringInstance.IsSufficient); - dictionary.Add("isUnique", literalStringInstance.IsUnique); - dictionary.Add("isVariable", literalStringInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", literalStringInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", literalStringInstance.OwningRelationship.ToString()); - dictionary.Add("value", literalStringInstance.Value); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ILiteralString literalStringInstance) - { - var dictionary = new Dictionary - { - { "@type", "LiteralString" }, - { "@id", literalStringInstance.Id } - }; - - dictionary.Add("aliasIds", literalStringInstance.AliasIds); - dictionary.Add("declaredName", literalStringInstance.DeclaredName); - dictionary.Add("declaredShortName", literalStringInstance.DeclaredShortName); - dictionary.Add("direction", literalStringInstance.Direction); - dictionary.Add("elementId", literalStringInstance.ElementId); - dictionary.Add("isAbstract", literalStringInstance.IsAbstract); - dictionary.Add("isComposite", literalStringInstance.IsComposite); - dictionary.Add("isConstant", literalStringInstance.IsConstant); - dictionary.Add("isDerived", literalStringInstance.IsDerived); - dictionary.Add("isEnd", literalStringInstance.IsEnd); - dictionary.Add("isImpliedIncluded", literalStringInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", literalStringInstance.IsOrdered); - dictionary.Add("isPortion", literalStringInstance.IsPortion); - dictionary.Add("isSufficient", literalStringInstance.IsSufficient); - dictionary.Add("isUnique", literalStringInstance.IsUnique); - dictionary.Add("isVariable", literalStringInstance.IsVariable); - dictionary.Add("ownedRelationship", literalStringInstance.OwnedRelationship); - dictionary.Add("owningRelationship", literalStringInstance.OwningRelationship); - dictionary.Add("value", literalStringInstance.Value); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ILiteralString ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ILiteralString literalStringInstance)) - { - throw new ArgumentException("The dataItem must be of Type ILiteralString", "dataItem"); - } - - return literalStringInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MembershipDictionaryWriter.cs deleted file mode 100644 index 9b8593831..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class MembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var membershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(membershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(membershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IMembership membershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "Membership" }, - { "@id", membershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", membershipInstance.AliasIds); - dictionary.Add("declaredName", membershipInstance.DeclaredName); - dictionary.Add("declaredShortName", membershipInstance.DeclaredShortName); - dictionary.Add("elementId", membershipInstance.ElementId); - dictionary.Add("isImplied", membershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", membershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", membershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", membershipInstance.MemberName); - dictionary.Add("memberShortName", membershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", membershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", membershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", membershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", membershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", membershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", membershipInstance.Target)} ]"); - dictionary.Add("visibility", membershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IMembership membershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "Membership" }, - { "@id", membershipInstance.Id } - }; - - dictionary.Add("aliasIds", membershipInstance.AliasIds); - dictionary.Add("declaredName", membershipInstance.DeclaredName); - dictionary.Add("declaredShortName", membershipInstance.DeclaredShortName); - dictionary.Add("elementId", membershipInstance.ElementId); - dictionary.Add("isImplied", membershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", membershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", membershipInstance.MemberElement); - dictionary.Add("memberName", membershipInstance.MemberName); - dictionary.Add("memberShortName", membershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", membershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", membershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", membershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", membershipInstance.OwningRelationship); - dictionary.Add("source", membershipInstance.Source); - dictionary.Add("target", membershipInstance.Target); - dictionary.Add("visibility", membershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IMembership membershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IMembership", "dataItem"); - } - - return membershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MembershipExposeDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MembershipExposeDictionaryWriter.cs deleted file mode 100644 index a92f7bf07..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MembershipExposeDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class MembershipExposeDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var membershipExposeInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(membershipExposeInstance); - case DictionaryKind.Simplified: - return WriteSimplified(membershipExposeInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IMembershipExpose membershipExposeInstance) - { - var dictionary = new Dictionary - { - { "@type", "MembershipExpose" }, - { "@id", membershipExposeInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", membershipExposeInstance.AliasIds); - dictionary.Add("declaredName", membershipExposeInstance.DeclaredName); - dictionary.Add("declaredShortName", membershipExposeInstance.DeclaredShortName); - dictionary.Add("elementId", membershipExposeInstance.ElementId); - dictionary.Add("importedMembership", membershipExposeInstance.ImportedMembership.ToString()); - dictionary.Add("isImplied", membershipExposeInstance.IsImplied); - dictionary.Add("isImpliedIncluded", membershipExposeInstance.IsImpliedIncluded); - dictionary.Add("isImportAll", membershipExposeInstance.IsImportAll); - dictionary.Add("isRecursive", membershipExposeInstance.IsRecursive); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", membershipExposeInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", membershipExposeInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", membershipExposeInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", membershipExposeInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", membershipExposeInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", membershipExposeInstance.Target)} ]"); - dictionary.Add("visibility", membershipExposeInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IMembershipExpose membershipExposeInstance) - { - var dictionary = new Dictionary - { - { "@type", "MembershipExpose" }, - { "@id", membershipExposeInstance.Id } - }; - - dictionary.Add("aliasIds", membershipExposeInstance.AliasIds); - dictionary.Add("declaredName", membershipExposeInstance.DeclaredName); - dictionary.Add("declaredShortName", membershipExposeInstance.DeclaredShortName); - dictionary.Add("elementId", membershipExposeInstance.ElementId); - dictionary.Add("importedMembership", membershipExposeInstance.ImportedMembership); - dictionary.Add("isImplied", membershipExposeInstance.IsImplied); - dictionary.Add("isImpliedIncluded", membershipExposeInstance.IsImpliedIncluded); - dictionary.Add("isImportAll", membershipExposeInstance.IsImportAll); - dictionary.Add("isRecursive", membershipExposeInstance.IsRecursive); - dictionary.Add("ownedRelatedElement", membershipExposeInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", membershipExposeInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", membershipExposeInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", membershipExposeInstance.OwningRelationship); - dictionary.Add("source", membershipExposeInstance.Source); - dictionary.Add("target", membershipExposeInstance.Target); - dictionary.Add("visibility", membershipExposeInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMembershipExpose ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IMembershipExpose membershipExposeInstance)) - { - throw new ArgumentException("The dataItem must be of Type IMembershipExpose", "dataItem"); - } - - return membershipExposeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MembershipImportDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MembershipImportDictionaryWriter.cs deleted file mode 100644 index d97d65ba8..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MembershipImportDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class MembershipImportDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var membershipImportInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(membershipImportInstance); - case DictionaryKind.Simplified: - return WriteSimplified(membershipImportInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IMembershipImport membershipImportInstance) - { - var dictionary = new Dictionary - { - { "@type", "MembershipImport" }, - { "@id", membershipImportInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", membershipImportInstance.AliasIds); - dictionary.Add("declaredName", membershipImportInstance.DeclaredName); - dictionary.Add("declaredShortName", membershipImportInstance.DeclaredShortName); - dictionary.Add("elementId", membershipImportInstance.ElementId); - dictionary.Add("importedMembership", membershipImportInstance.ImportedMembership.ToString()); - dictionary.Add("isImplied", membershipImportInstance.IsImplied); - dictionary.Add("isImpliedIncluded", membershipImportInstance.IsImpliedIncluded); - dictionary.Add("isImportAll", membershipImportInstance.IsImportAll); - dictionary.Add("isRecursive", membershipImportInstance.IsRecursive); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", membershipImportInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", membershipImportInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", membershipImportInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", membershipImportInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", membershipImportInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", membershipImportInstance.Target)} ]"); - dictionary.Add("visibility", membershipImportInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IMembershipImport membershipImportInstance) - { - var dictionary = new Dictionary - { - { "@type", "MembershipImport" }, - { "@id", membershipImportInstance.Id } - }; - - dictionary.Add("aliasIds", membershipImportInstance.AliasIds); - dictionary.Add("declaredName", membershipImportInstance.DeclaredName); - dictionary.Add("declaredShortName", membershipImportInstance.DeclaredShortName); - dictionary.Add("elementId", membershipImportInstance.ElementId); - dictionary.Add("importedMembership", membershipImportInstance.ImportedMembership); - dictionary.Add("isImplied", membershipImportInstance.IsImplied); - dictionary.Add("isImpliedIncluded", membershipImportInstance.IsImpliedIncluded); - dictionary.Add("isImportAll", membershipImportInstance.IsImportAll); - dictionary.Add("isRecursive", membershipImportInstance.IsRecursive); - dictionary.Add("ownedRelatedElement", membershipImportInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", membershipImportInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", membershipImportInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", membershipImportInstance.OwningRelationship); - dictionary.Add("source", membershipImportInstance.Source); - dictionary.Add("target", membershipImportInstance.Target); - dictionary.Add("visibility", membershipImportInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMembershipImport ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IMembershipImport membershipImportInstance)) - { - throw new ArgumentException("The dataItem must be of Type IMembershipImport", "dataItem"); - } - - return membershipImportInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MergeNodeDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MergeNodeDictionaryWriter.cs deleted file mode 100644 index f8382bdaf..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MergeNodeDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class MergeNodeDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var mergeNodeInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(mergeNodeInstance); - case DictionaryKind.Simplified: - return WriteSimplified(mergeNodeInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IMergeNode mergeNodeInstance) - { - var dictionary = new Dictionary - { - { "@type", "MergeNode" }, - { "@id", mergeNodeInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", mergeNodeInstance.AliasIds); - dictionary.Add("declaredName", mergeNodeInstance.DeclaredName); - dictionary.Add("declaredShortName", mergeNodeInstance.DeclaredShortName); - dictionary.Add("direction", mergeNodeInstance.Direction); - dictionary.Add("elementId", mergeNodeInstance.ElementId); - dictionary.Add("isAbstract", mergeNodeInstance.IsAbstract); - dictionary.Add("isComposite", mergeNodeInstance.IsComposite); - dictionary.Add("isConstant", mergeNodeInstance.IsConstant); - dictionary.Add("isDerived", mergeNodeInstance.IsDerived); - dictionary.Add("isEnd", mergeNodeInstance.IsEnd); - dictionary.Add("isImpliedIncluded", mergeNodeInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", mergeNodeInstance.IsIndividual); - dictionary.Add("isOrdered", mergeNodeInstance.IsOrdered); - dictionary.Add("isPortion", mergeNodeInstance.IsPortion); - dictionary.Add("isSufficient", mergeNodeInstance.IsSufficient); - dictionary.Add("isUnique", mergeNodeInstance.IsUnique); - dictionary.Add("isVariable", mergeNodeInstance.IsVariable); - dictionary.Add("isVariation", mergeNodeInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", mergeNodeInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", mergeNodeInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", mergeNodeInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IMergeNode mergeNodeInstance) - { - var dictionary = new Dictionary - { - { "@type", "MergeNode" }, - { "@id", mergeNodeInstance.Id } - }; - - dictionary.Add("aliasIds", mergeNodeInstance.AliasIds); - dictionary.Add("declaredName", mergeNodeInstance.DeclaredName); - dictionary.Add("declaredShortName", mergeNodeInstance.DeclaredShortName); - dictionary.Add("direction", mergeNodeInstance.Direction); - dictionary.Add("elementId", mergeNodeInstance.ElementId); - dictionary.Add("isAbstract", mergeNodeInstance.IsAbstract); - dictionary.Add("isComposite", mergeNodeInstance.IsComposite); - dictionary.Add("isConstant", mergeNodeInstance.IsConstant); - dictionary.Add("isDerived", mergeNodeInstance.IsDerived); - dictionary.Add("isEnd", mergeNodeInstance.IsEnd); - dictionary.Add("isImpliedIncluded", mergeNodeInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", mergeNodeInstance.IsIndividual); - dictionary.Add("isOrdered", mergeNodeInstance.IsOrdered); - dictionary.Add("isPortion", mergeNodeInstance.IsPortion); - dictionary.Add("isSufficient", mergeNodeInstance.IsSufficient); - dictionary.Add("isUnique", mergeNodeInstance.IsUnique); - dictionary.Add("isVariable", mergeNodeInstance.IsVariable); - dictionary.Add("isVariation", mergeNodeInstance.IsVariation); - dictionary.Add("ownedRelationship", mergeNodeInstance.OwnedRelationship); - dictionary.Add("owningRelationship", mergeNodeInstance.OwningRelationship); - dictionary.Add("portionKind", mergeNodeInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMergeNode ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IMergeNode mergeNodeInstance)) - { - throw new ArgumentException("The dataItem must be of Type IMergeNode", "dataItem"); - } - - return mergeNodeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetaclassDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetaclassDictionaryWriter.cs deleted file mode 100644 index c5c5b5532..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetaclassDictionaryWriter.cs +++ /dev/null @@ -1,193 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class MetaclassDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var metaclassInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(metaclassInstance); - case DictionaryKind.Simplified: - return WriteSimplified(metaclassInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IMetaclass metaclassInstance) - { - var dictionary = new Dictionary - { - { "@type", "Metaclass" }, - { "@id", metaclassInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", metaclassInstance.AliasIds); - dictionary.Add("declaredName", metaclassInstance.DeclaredName); - dictionary.Add("declaredShortName", metaclassInstance.DeclaredShortName); - dictionary.Add("elementId", metaclassInstance.ElementId); - dictionary.Add("isAbstract", metaclassInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", metaclassInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", metaclassInstance.IsSufficient); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", metaclassInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", metaclassInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IMetaclass metaclassInstance) - { - var dictionary = new Dictionary - { - { "@type", "Metaclass" }, - { "@id", metaclassInstance.Id } - }; - - dictionary.Add("aliasIds", metaclassInstance.AliasIds); - dictionary.Add("declaredName", metaclassInstance.DeclaredName); - dictionary.Add("declaredShortName", metaclassInstance.DeclaredShortName); - dictionary.Add("elementId", metaclassInstance.ElementId); - dictionary.Add("isAbstract", metaclassInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", metaclassInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", metaclassInstance.IsSufficient); - dictionary.Add("ownedRelationship", metaclassInstance.OwnedRelationship); - dictionary.Add("owningRelationship", metaclassInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMetaclass ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IMetaclass metaclassInstance)) - { - throw new ArgumentException("The dataItem must be of Type IMetaclass", "dataItem"); - } - - return metaclassInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataAccessExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataAccessExpressionDictionaryWriter.cs deleted file mode 100644 index af741d2b2..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataAccessExpressionDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class MetadataAccessExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var metadataAccessExpressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(metadataAccessExpressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(metadataAccessExpressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IMetadataAccessExpression metadataAccessExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "MetadataAccessExpression" }, - { "@id", metadataAccessExpressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", metadataAccessExpressionInstance.AliasIds); - dictionary.Add("declaredName", metadataAccessExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", metadataAccessExpressionInstance.DeclaredShortName); - dictionary.Add("direction", metadataAccessExpressionInstance.Direction); - dictionary.Add("elementId", metadataAccessExpressionInstance.ElementId); - dictionary.Add("isAbstract", metadataAccessExpressionInstance.IsAbstract); - dictionary.Add("isComposite", metadataAccessExpressionInstance.IsComposite); - dictionary.Add("isConstant", metadataAccessExpressionInstance.IsConstant); - dictionary.Add("isDerived", metadataAccessExpressionInstance.IsDerived); - dictionary.Add("isEnd", metadataAccessExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", metadataAccessExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", metadataAccessExpressionInstance.IsOrdered); - dictionary.Add("isPortion", metadataAccessExpressionInstance.IsPortion); - dictionary.Add("isSufficient", metadataAccessExpressionInstance.IsSufficient); - dictionary.Add("isUnique", metadataAccessExpressionInstance.IsUnique); - dictionary.Add("isVariable", metadataAccessExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", metadataAccessExpressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", metadataAccessExpressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IMetadataAccessExpression metadataAccessExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "MetadataAccessExpression" }, - { "@id", metadataAccessExpressionInstance.Id } - }; - - dictionary.Add("aliasIds", metadataAccessExpressionInstance.AliasIds); - dictionary.Add("declaredName", metadataAccessExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", metadataAccessExpressionInstance.DeclaredShortName); - dictionary.Add("direction", metadataAccessExpressionInstance.Direction); - dictionary.Add("elementId", metadataAccessExpressionInstance.ElementId); - dictionary.Add("isAbstract", metadataAccessExpressionInstance.IsAbstract); - dictionary.Add("isComposite", metadataAccessExpressionInstance.IsComposite); - dictionary.Add("isConstant", metadataAccessExpressionInstance.IsConstant); - dictionary.Add("isDerived", metadataAccessExpressionInstance.IsDerived); - dictionary.Add("isEnd", metadataAccessExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", metadataAccessExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", metadataAccessExpressionInstance.IsOrdered); - dictionary.Add("isPortion", metadataAccessExpressionInstance.IsPortion); - dictionary.Add("isSufficient", metadataAccessExpressionInstance.IsSufficient); - dictionary.Add("isUnique", metadataAccessExpressionInstance.IsUnique); - dictionary.Add("isVariable", metadataAccessExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", metadataAccessExpressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", metadataAccessExpressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMetadataAccessExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IMetadataAccessExpression metadataAccessExpressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IMetadataAccessExpression", "dataItem"); - } - - return metadataAccessExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataDefinitionDictionaryWriter.cs deleted file mode 100644 index 8f872b72d..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class MetadataDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var metadataDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(metadataDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(metadataDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IMetadataDefinition metadataDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "MetadataDefinition" }, - { "@id", metadataDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", metadataDefinitionInstance.AliasIds); - dictionary.Add("declaredName", metadataDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", metadataDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", metadataDefinitionInstance.ElementId); - dictionary.Add("isAbstract", metadataDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", metadataDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", metadataDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", metadataDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", metadataDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", metadataDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", metadataDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IMetadataDefinition metadataDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "MetadataDefinition" }, - { "@id", metadataDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", metadataDefinitionInstance.AliasIds); - dictionary.Add("declaredName", metadataDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", metadataDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", metadataDefinitionInstance.ElementId); - dictionary.Add("isAbstract", metadataDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", metadataDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", metadataDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", metadataDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", metadataDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", metadataDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", metadataDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMetadataDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IMetadataDefinition metadataDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IMetadataDefinition", "dataItem"); - } - - return metadataDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataFeatureDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataFeatureDictionaryWriter.cs deleted file mode 100644 index 6f9333978..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataFeatureDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class MetadataFeatureDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var metadataFeatureInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(metadataFeatureInstance); - case DictionaryKind.Simplified: - return WriteSimplified(metadataFeatureInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IMetadataFeature metadataFeatureInstance) - { - var dictionary = new Dictionary - { - { "@type", "MetadataFeature" }, - { "@id", metadataFeatureInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", metadataFeatureInstance.AliasIds); - dictionary.Add("declaredName", metadataFeatureInstance.DeclaredName); - dictionary.Add("declaredShortName", metadataFeatureInstance.DeclaredShortName); - dictionary.Add("direction", metadataFeatureInstance.Direction); - dictionary.Add("elementId", metadataFeatureInstance.ElementId); - dictionary.Add("isAbstract", metadataFeatureInstance.IsAbstract); - dictionary.Add("isComposite", metadataFeatureInstance.IsComposite); - dictionary.Add("isConstant", metadataFeatureInstance.IsConstant); - dictionary.Add("isDerived", metadataFeatureInstance.IsDerived); - dictionary.Add("isEnd", metadataFeatureInstance.IsEnd); - dictionary.Add("isImpliedIncluded", metadataFeatureInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", metadataFeatureInstance.IsOrdered); - dictionary.Add("isPortion", metadataFeatureInstance.IsPortion); - dictionary.Add("isSufficient", metadataFeatureInstance.IsSufficient); - dictionary.Add("isUnique", metadataFeatureInstance.IsUnique); - dictionary.Add("isVariable", metadataFeatureInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", metadataFeatureInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", metadataFeatureInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IMetadataFeature metadataFeatureInstance) - { - var dictionary = new Dictionary - { - { "@type", "MetadataFeature" }, - { "@id", metadataFeatureInstance.Id } - }; - - dictionary.Add("aliasIds", metadataFeatureInstance.AliasIds); - dictionary.Add("declaredName", metadataFeatureInstance.DeclaredName); - dictionary.Add("declaredShortName", metadataFeatureInstance.DeclaredShortName); - dictionary.Add("direction", metadataFeatureInstance.Direction); - dictionary.Add("elementId", metadataFeatureInstance.ElementId); - dictionary.Add("isAbstract", metadataFeatureInstance.IsAbstract); - dictionary.Add("isComposite", metadataFeatureInstance.IsComposite); - dictionary.Add("isConstant", metadataFeatureInstance.IsConstant); - dictionary.Add("isDerived", metadataFeatureInstance.IsDerived); - dictionary.Add("isEnd", metadataFeatureInstance.IsEnd); - dictionary.Add("isImpliedIncluded", metadataFeatureInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", metadataFeatureInstance.IsOrdered); - dictionary.Add("isPortion", metadataFeatureInstance.IsPortion); - dictionary.Add("isSufficient", metadataFeatureInstance.IsSufficient); - dictionary.Add("isUnique", metadataFeatureInstance.IsUnique); - dictionary.Add("isVariable", metadataFeatureInstance.IsVariable); - dictionary.Add("ownedRelationship", metadataFeatureInstance.OwnedRelationship); - dictionary.Add("owningRelationship", metadataFeatureInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMetadataFeature ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IMetadataFeature metadataFeatureInstance)) - { - throw new ArgumentException("The dataItem must be of Type IMetadataFeature", "dataItem"); - } - - return metadataFeatureInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataUsageDictionaryWriter.cs deleted file mode 100644 index cb052ce55..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MetadataUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class MetadataUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var metadataUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(metadataUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(metadataUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IMetadataUsage metadataUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "MetadataUsage" }, - { "@id", metadataUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", metadataUsageInstance.AliasIds); - dictionary.Add("declaredName", metadataUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", metadataUsageInstance.DeclaredShortName); - dictionary.Add("direction", metadataUsageInstance.Direction); - dictionary.Add("elementId", metadataUsageInstance.ElementId); - dictionary.Add("isAbstract", metadataUsageInstance.IsAbstract); - dictionary.Add("isComposite", metadataUsageInstance.IsComposite); - dictionary.Add("isConstant", metadataUsageInstance.IsConstant); - dictionary.Add("isDerived", metadataUsageInstance.IsDerived); - dictionary.Add("isEnd", metadataUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", metadataUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", metadataUsageInstance.IsIndividual); - dictionary.Add("isOrdered", metadataUsageInstance.IsOrdered); - dictionary.Add("isPortion", metadataUsageInstance.IsPortion); - dictionary.Add("isSufficient", metadataUsageInstance.IsSufficient); - dictionary.Add("isUnique", metadataUsageInstance.IsUnique); - dictionary.Add("isVariable", metadataUsageInstance.IsVariable); - dictionary.Add("isVariation", metadataUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", metadataUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", metadataUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", metadataUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IMetadataUsage metadataUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "MetadataUsage" }, - { "@id", metadataUsageInstance.Id } - }; - - dictionary.Add("aliasIds", metadataUsageInstance.AliasIds); - dictionary.Add("declaredName", metadataUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", metadataUsageInstance.DeclaredShortName); - dictionary.Add("direction", metadataUsageInstance.Direction); - dictionary.Add("elementId", metadataUsageInstance.ElementId); - dictionary.Add("isAbstract", metadataUsageInstance.IsAbstract); - dictionary.Add("isComposite", metadataUsageInstance.IsComposite); - dictionary.Add("isConstant", metadataUsageInstance.IsConstant); - dictionary.Add("isDerived", metadataUsageInstance.IsDerived); - dictionary.Add("isEnd", metadataUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", metadataUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", metadataUsageInstance.IsIndividual); - dictionary.Add("isOrdered", metadataUsageInstance.IsOrdered); - dictionary.Add("isPortion", metadataUsageInstance.IsPortion); - dictionary.Add("isSufficient", metadataUsageInstance.IsSufficient); - dictionary.Add("isUnique", metadataUsageInstance.IsUnique); - dictionary.Add("isVariable", metadataUsageInstance.IsVariable); - dictionary.Add("isVariation", metadataUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", metadataUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", metadataUsageInstance.OwningRelationship); - dictionary.Add("portionKind", metadataUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMetadataUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IMetadataUsage metadataUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IMetadataUsage", "dataItem"); - } - - return metadataUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MultiplicityDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MultiplicityDictionaryWriter.cs deleted file mode 100644 index fd80a5b6d..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MultiplicityDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class MultiplicityDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var multiplicityInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(multiplicityInstance); - case DictionaryKind.Simplified: - return WriteSimplified(multiplicityInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IMultiplicity multiplicityInstance) - { - var dictionary = new Dictionary - { - { "@type", "Multiplicity" }, - { "@id", multiplicityInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", multiplicityInstance.AliasIds); - dictionary.Add("declaredName", multiplicityInstance.DeclaredName); - dictionary.Add("declaredShortName", multiplicityInstance.DeclaredShortName); - dictionary.Add("direction", multiplicityInstance.Direction); - dictionary.Add("elementId", multiplicityInstance.ElementId); - dictionary.Add("isAbstract", multiplicityInstance.IsAbstract); - dictionary.Add("isComposite", multiplicityInstance.IsComposite); - dictionary.Add("isConstant", multiplicityInstance.IsConstant); - dictionary.Add("isDerived", multiplicityInstance.IsDerived); - dictionary.Add("isEnd", multiplicityInstance.IsEnd); - dictionary.Add("isImpliedIncluded", multiplicityInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", multiplicityInstance.IsOrdered); - dictionary.Add("isPortion", multiplicityInstance.IsPortion); - dictionary.Add("isSufficient", multiplicityInstance.IsSufficient); - dictionary.Add("isUnique", multiplicityInstance.IsUnique); - dictionary.Add("isVariable", multiplicityInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", multiplicityInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", multiplicityInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IMultiplicity multiplicityInstance) - { - var dictionary = new Dictionary - { - { "@type", "Multiplicity" }, - { "@id", multiplicityInstance.Id } - }; - - dictionary.Add("aliasIds", multiplicityInstance.AliasIds); - dictionary.Add("declaredName", multiplicityInstance.DeclaredName); - dictionary.Add("declaredShortName", multiplicityInstance.DeclaredShortName); - dictionary.Add("direction", multiplicityInstance.Direction); - dictionary.Add("elementId", multiplicityInstance.ElementId); - dictionary.Add("isAbstract", multiplicityInstance.IsAbstract); - dictionary.Add("isComposite", multiplicityInstance.IsComposite); - dictionary.Add("isConstant", multiplicityInstance.IsConstant); - dictionary.Add("isDerived", multiplicityInstance.IsDerived); - dictionary.Add("isEnd", multiplicityInstance.IsEnd); - dictionary.Add("isImpliedIncluded", multiplicityInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", multiplicityInstance.IsOrdered); - dictionary.Add("isPortion", multiplicityInstance.IsPortion); - dictionary.Add("isSufficient", multiplicityInstance.IsSufficient); - dictionary.Add("isUnique", multiplicityInstance.IsUnique); - dictionary.Add("isVariable", multiplicityInstance.IsVariable); - dictionary.Add("ownedRelationship", multiplicityInstance.OwnedRelationship); - dictionary.Add("owningRelationship", multiplicityInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMultiplicity ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IMultiplicity multiplicityInstance)) - { - throw new ArgumentException("The dataItem must be of Type IMultiplicity", "dataItem"); - } - - return multiplicityInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MultiplicityRangeDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MultiplicityRangeDictionaryWriter.cs deleted file mode 100644 index 75a4847c2..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/MultiplicityRangeDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class MultiplicityRangeDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var multiplicityRangeInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(multiplicityRangeInstance); - case DictionaryKind.Simplified: - return WriteSimplified(multiplicityRangeInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IMultiplicityRange multiplicityRangeInstance) - { - var dictionary = new Dictionary - { - { "@type", "MultiplicityRange" }, - { "@id", multiplicityRangeInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", multiplicityRangeInstance.AliasIds); - dictionary.Add("declaredName", multiplicityRangeInstance.DeclaredName); - dictionary.Add("declaredShortName", multiplicityRangeInstance.DeclaredShortName); - dictionary.Add("direction", multiplicityRangeInstance.Direction); - dictionary.Add("elementId", multiplicityRangeInstance.ElementId); - dictionary.Add("isAbstract", multiplicityRangeInstance.IsAbstract); - dictionary.Add("isComposite", multiplicityRangeInstance.IsComposite); - dictionary.Add("isConstant", multiplicityRangeInstance.IsConstant); - dictionary.Add("isDerived", multiplicityRangeInstance.IsDerived); - dictionary.Add("isEnd", multiplicityRangeInstance.IsEnd); - dictionary.Add("isImpliedIncluded", multiplicityRangeInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", multiplicityRangeInstance.IsOrdered); - dictionary.Add("isPortion", multiplicityRangeInstance.IsPortion); - dictionary.Add("isSufficient", multiplicityRangeInstance.IsSufficient); - dictionary.Add("isUnique", multiplicityRangeInstance.IsUnique); - dictionary.Add("isVariable", multiplicityRangeInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", multiplicityRangeInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", multiplicityRangeInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IMultiplicityRange multiplicityRangeInstance) - { - var dictionary = new Dictionary - { - { "@type", "MultiplicityRange" }, - { "@id", multiplicityRangeInstance.Id } - }; - - dictionary.Add("aliasIds", multiplicityRangeInstance.AliasIds); - dictionary.Add("declaredName", multiplicityRangeInstance.DeclaredName); - dictionary.Add("declaredShortName", multiplicityRangeInstance.DeclaredShortName); - dictionary.Add("direction", multiplicityRangeInstance.Direction); - dictionary.Add("elementId", multiplicityRangeInstance.ElementId); - dictionary.Add("isAbstract", multiplicityRangeInstance.IsAbstract); - dictionary.Add("isComposite", multiplicityRangeInstance.IsComposite); - dictionary.Add("isConstant", multiplicityRangeInstance.IsConstant); - dictionary.Add("isDerived", multiplicityRangeInstance.IsDerived); - dictionary.Add("isEnd", multiplicityRangeInstance.IsEnd); - dictionary.Add("isImpliedIncluded", multiplicityRangeInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", multiplicityRangeInstance.IsOrdered); - dictionary.Add("isPortion", multiplicityRangeInstance.IsPortion); - dictionary.Add("isSufficient", multiplicityRangeInstance.IsSufficient); - dictionary.Add("isUnique", multiplicityRangeInstance.IsUnique); - dictionary.Add("isVariable", multiplicityRangeInstance.IsVariable); - dictionary.Add("ownedRelationship", multiplicityRangeInstance.OwnedRelationship); - dictionary.Add("owningRelationship", multiplicityRangeInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IMultiplicityRange ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IMultiplicityRange multiplicityRangeInstance)) - { - throw new ArgumentException("The dataItem must be of Type IMultiplicityRange", "dataItem"); - } - - return multiplicityRangeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NamespaceDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NamespaceDictionaryWriter.cs deleted file mode 100644 index 036b1d0e4..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NamespaceDictionaryWriter.cs +++ /dev/null @@ -1,189 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class NamespaceDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var namespaceInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(namespaceInstance); - case DictionaryKind.Simplified: - return WriteSimplified(namespaceInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(INamespace namespaceInstance) - { - var dictionary = new Dictionary - { - { "@type", "Namespace" }, - { "@id", namespaceInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", namespaceInstance.AliasIds); - dictionary.Add("declaredName", namespaceInstance.DeclaredName); - dictionary.Add("declaredShortName", namespaceInstance.DeclaredShortName); - dictionary.Add("elementId", namespaceInstance.ElementId); - dictionary.Add("isImpliedIncluded", namespaceInstance.IsImpliedIncluded); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", namespaceInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", namespaceInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(INamespace namespaceInstance) - { - var dictionary = new Dictionary - { - { "@type", "Namespace" }, - { "@id", namespaceInstance.Id } - }; - - dictionary.Add("aliasIds", namespaceInstance.AliasIds); - dictionary.Add("declaredName", namespaceInstance.DeclaredName); - dictionary.Add("declaredShortName", namespaceInstance.DeclaredShortName); - dictionary.Add("elementId", namespaceInstance.ElementId); - dictionary.Add("isImpliedIncluded", namespaceInstance.IsImpliedIncluded); - dictionary.Add("ownedRelationship", namespaceInstance.OwnedRelationship); - dictionary.Add("owningRelationship", namespaceInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static INamespace ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is INamespace namespaceInstance)) - { - throw new ArgumentException("The dataItem must be of Type INamespace", "dataItem"); - } - - return namespaceInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NamespaceExposeDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NamespaceExposeDictionaryWriter.cs deleted file mode 100644 index 56ba731e2..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NamespaceExposeDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class NamespaceExposeDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var namespaceExposeInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(namespaceExposeInstance); - case DictionaryKind.Simplified: - return WriteSimplified(namespaceExposeInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(INamespaceExpose namespaceExposeInstance) - { - var dictionary = new Dictionary - { - { "@type", "NamespaceExpose" }, - { "@id", namespaceExposeInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", namespaceExposeInstance.AliasIds); - dictionary.Add("declaredName", namespaceExposeInstance.DeclaredName); - dictionary.Add("declaredShortName", namespaceExposeInstance.DeclaredShortName); - dictionary.Add("elementId", namespaceExposeInstance.ElementId); - dictionary.Add("importedNamespace", namespaceExposeInstance.ImportedNamespace.ToString()); - dictionary.Add("isImplied", namespaceExposeInstance.IsImplied); - dictionary.Add("isImpliedIncluded", namespaceExposeInstance.IsImpliedIncluded); - dictionary.Add("isImportAll", namespaceExposeInstance.IsImportAll); - dictionary.Add("isRecursive", namespaceExposeInstance.IsRecursive); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", namespaceExposeInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", namespaceExposeInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", namespaceExposeInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", namespaceExposeInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", namespaceExposeInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", namespaceExposeInstance.Target)} ]"); - dictionary.Add("visibility", namespaceExposeInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(INamespaceExpose namespaceExposeInstance) - { - var dictionary = new Dictionary - { - { "@type", "NamespaceExpose" }, - { "@id", namespaceExposeInstance.Id } - }; - - dictionary.Add("aliasIds", namespaceExposeInstance.AliasIds); - dictionary.Add("declaredName", namespaceExposeInstance.DeclaredName); - dictionary.Add("declaredShortName", namespaceExposeInstance.DeclaredShortName); - dictionary.Add("elementId", namespaceExposeInstance.ElementId); - dictionary.Add("importedNamespace", namespaceExposeInstance.ImportedNamespace); - dictionary.Add("isImplied", namespaceExposeInstance.IsImplied); - dictionary.Add("isImpliedIncluded", namespaceExposeInstance.IsImpliedIncluded); - dictionary.Add("isImportAll", namespaceExposeInstance.IsImportAll); - dictionary.Add("isRecursive", namespaceExposeInstance.IsRecursive); - dictionary.Add("ownedRelatedElement", namespaceExposeInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", namespaceExposeInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", namespaceExposeInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", namespaceExposeInstance.OwningRelationship); - dictionary.Add("source", namespaceExposeInstance.Source); - dictionary.Add("target", namespaceExposeInstance.Target); - dictionary.Add("visibility", namespaceExposeInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static INamespaceExpose ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is INamespaceExpose namespaceExposeInstance)) - { - throw new ArgumentException("The dataItem must be of Type INamespaceExpose", "dataItem"); - } - - return namespaceExposeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NamespaceImportDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NamespaceImportDictionaryWriter.cs deleted file mode 100644 index 44be9c8f5..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NamespaceImportDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class NamespaceImportDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var namespaceImportInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(namespaceImportInstance); - case DictionaryKind.Simplified: - return WriteSimplified(namespaceImportInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(INamespaceImport namespaceImportInstance) - { - var dictionary = new Dictionary - { - { "@type", "NamespaceImport" }, - { "@id", namespaceImportInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", namespaceImportInstance.AliasIds); - dictionary.Add("declaredName", namespaceImportInstance.DeclaredName); - dictionary.Add("declaredShortName", namespaceImportInstance.DeclaredShortName); - dictionary.Add("elementId", namespaceImportInstance.ElementId); - dictionary.Add("importedNamespace", namespaceImportInstance.ImportedNamespace.ToString()); - dictionary.Add("isImplied", namespaceImportInstance.IsImplied); - dictionary.Add("isImpliedIncluded", namespaceImportInstance.IsImpliedIncluded); - dictionary.Add("isImportAll", namespaceImportInstance.IsImportAll); - dictionary.Add("isRecursive", namespaceImportInstance.IsRecursive); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", namespaceImportInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", namespaceImportInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", namespaceImportInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", namespaceImportInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", namespaceImportInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", namespaceImportInstance.Target)} ]"); - dictionary.Add("visibility", namespaceImportInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(INamespaceImport namespaceImportInstance) - { - var dictionary = new Dictionary - { - { "@type", "NamespaceImport" }, - { "@id", namespaceImportInstance.Id } - }; - - dictionary.Add("aliasIds", namespaceImportInstance.AliasIds); - dictionary.Add("declaredName", namespaceImportInstance.DeclaredName); - dictionary.Add("declaredShortName", namespaceImportInstance.DeclaredShortName); - dictionary.Add("elementId", namespaceImportInstance.ElementId); - dictionary.Add("importedNamespace", namespaceImportInstance.ImportedNamespace); - dictionary.Add("isImplied", namespaceImportInstance.IsImplied); - dictionary.Add("isImpliedIncluded", namespaceImportInstance.IsImpliedIncluded); - dictionary.Add("isImportAll", namespaceImportInstance.IsImportAll); - dictionary.Add("isRecursive", namespaceImportInstance.IsRecursive); - dictionary.Add("ownedRelatedElement", namespaceImportInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", namespaceImportInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", namespaceImportInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", namespaceImportInstance.OwningRelationship); - dictionary.Add("source", namespaceImportInstance.Source); - dictionary.Add("target", namespaceImportInstance.Target); - dictionary.Add("visibility", namespaceImportInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static INamespaceImport ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is INamespaceImport namespaceImportInstance)) - { - throw new ArgumentException("The dataItem must be of Type INamespaceImport", "dataItem"); - } - - return namespaceImportInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NullExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NullExpressionDictionaryWriter.cs deleted file mode 100644 index 34d8b5c3c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/NullExpressionDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class NullExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var nullExpressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(nullExpressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(nullExpressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(INullExpression nullExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "NullExpression" }, - { "@id", nullExpressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", nullExpressionInstance.AliasIds); - dictionary.Add("declaredName", nullExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", nullExpressionInstance.DeclaredShortName); - dictionary.Add("direction", nullExpressionInstance.Direction); - dictionary.Add("elementId", nullExpressionInstance.ElementId); - dictionary.Add("isAbstract", nullExpressionInstance.IsAbstract); - dictionary.Add("isComposite", nullExpressionInstance.IsComposite); - dictionary.Add("isConstant", nullExpressionInstance.IsConstant); - dictionary.Add("isDerived", nullExpressionInstance.IsDerived); - dictionary.Add("isEnd", nullExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", nullExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", nullExpressionInstance.IsOrdered); - dictionary.Add("isPortion", nullExpressionInstance.IsPortion); - dictionary.Add("isSufficient", nullExpressionInstance.IsSufficient); - dictionary.Add("isUnique", nullExpressionInstance.IsUnique); - dictionary.Add("isVariable", nullExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", nullExpressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", nullExpressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(INullExpression nullExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "NullExpression" }, - { "@id", nullExpressionInstance.Id } - }; - - dictionary.Add("aliasIds", nullExpressionInstance.AliasIds); - dictionary.Add("declaredName", nullExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", nullExpressionInstance.DeclaredShortName); - dictionary.Add("direction", nullExpressionInstance.Direction); - dictionary.Add("elementId", nullExpressionInstance.ElementId); - dictionary.Add("isAbstract", nullExpressionInstance.IsAbstract); - dictionary.Add("isComposite", nullExpressionInstance.IsComposite); - dictionary.Add("isConstant", nullExpressionInstance.IsConstant); - dictionary.Add("isDerived", nullExpressionInstance.IsDerived); - dictionary.Add("isEnd", nullExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", nullExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", nullExpressionInstance.IsOrdered); - dictionary.Add("isPortion", nullExpressionInstance.IsPortion); - dictionary.Add("isSufficient", nullExpressionInstance.IsSufficient); - dictionary.Add("isUnique", nullExpressionInstance.IsUnique); - dictionary.Add("isVariable", nullExpressionInstance.IsVariable); - dictionary.Add("ownedRelationship", nullExpressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", nullExpressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static INullExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is INullExpression nullExpressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type INullExpression", "dataItem"); - } - - return nullExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ObjectiveMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ObjectiveMembershipDictionaryWriter.cs deleted file mode 100644 index 774761214..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ObjectiveMembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ObjectiveMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var objectiveMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(objectiveMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(objectiveMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IObjectiveMembership objectiveMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ObjectiveMembership" }, - { "@id", objectiveMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", objectiveMembershipInstance.AliasIds); - dictionary.Add("declaredName", objectiveMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", objectiveMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", objectiveMembershipInstance.ElementId); - dictionary.Add("isImplied", objectiveMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", objectiveMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", objectiveMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", objectiveMembershipInstance.MemberName); - dictionary.Add("memberShortName", objectiveMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", objectiveMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", objectiveMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", objectiveMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", objectiveMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", objectiveMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", objectiveMembershipInstance.Target)} ]"); - dictionary.Add("visibility", objectiveMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IObjectiveMembership objectiveMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ObjectiveMembership" }, - { "@id", objectiveMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", objectiveMembershipInstance.AliasIds); - dictionary.Add("declaredName", objectiveMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", objectiveMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", objectiveMembershipInstance.ElementId); - dictionary.Add("isImplied", objectiveMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", objectiveMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", objectiveMembershipInstance.MemberElement); - dictionary.Add("memberName", objectiveMembershipInstance.MemberName); - dictionary.Add("memberShortName", objectiveMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", objectiveMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", objectiveMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", objectiveMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", objectiveMembershipInstance.OwningRelationship); - dictionary.Add("source", objectiveMembershipInstance.Source); - dictionary.Add("target", objectiveMembershipInstance.Target); - dictionary.Add("visibility", objectiveMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IObjectiveMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IObjectiveMembership objectiveMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IObjectiveMembership", "dataItem"); - } - - return objectiveMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OccurrenceDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OccurrenceDefinitionDictionaryWriter.cs deleted file mode 100644 index 50043a150..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OccurrenceDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class OccurrenceDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var occurrenceDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(occurrenceDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(occurrenceDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IOccurrenceDefinition occurrenceDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "OccurrenceDefinition" }, - { "@id", occurrenceDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", occurrenceDefinitionInstance.AliasIds); - dictionary.Add("declaredName", occurrenceDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", occurrenceDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", occurrenceDefinitionInstance.ElementId); - dictionary.Add("isAbstract", occurrenceDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", occurrenceDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", occurrenceDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", occurrenceDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", occurrenceDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", occurrenceDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", occurrenceDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IOccurrenceDefinition occurrenceDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "OccurrenceDefinition" }, - { "@id", occurrenceDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", occurrenceDefinitionInstance.AliasIds); - dictionary.Add("declaredName", occurrenceDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", occurrenceDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", occurrenceDefinitionInstance.ElementId); - dictionary.Add("isAbstract", occurrenceDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", occurrenceDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", occurrenceDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", occurrenceDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", occurrenceDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", occurrenceDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", occurrenceDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IOccurrenceDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IOccurrenceDefinition occurrenceDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IOccurrenceDefinition", "dataItem"); - } - - return occurrenceDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OccurrenceUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OccurrenceUsageDictionaryWriter.cs deleted file mode 100644 index bed423ace..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OccurrenceUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class OccurrenceUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var occurrenceUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(occurrenceUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(occurrenceUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IOccurrenceUsage occurrenceUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "OccurrenceUsage" }, - { "@id", occurrenceUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", occurrenceUsageInstance.AliasIds); - dictionary.Add("declaredName", occurrenceUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", occurrenceUsageInstance.DeclaredShortName); - dictionary.Add("direction", occurrenceUsageInstance.Direction); - dictionary.Add("elementId", occurrenceUsageInstance.ElementId); - dictionary.Add("isAbstract", occurrenceUsageInstance.IsAbstract); - dictionary.Add("isComposite", occurrenceUsageInstance.IsComposite); - dictionary.Add("isConstant", occurrenceUsageInstance.IsConstant); - dictionary.Add("isDerived", occurrenceUsageInstance.IsDerived); - dictionary.Add("isEnd", occurrenceUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", occurrenceUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", occurrenceUsageInstance.IsIndividual); - dictionary.Add("isOrdered", occurrenceUsageInstance.IsOrdered); - dictionary.Add("isPortion", occurrenceUsageInstance.IsPortion); - dictionary.Add("isSufficient", occurrenceUsageInstance.IsSufficient); - dictionary.Add("isUnique", occurrenceUsageInstance.IsUnique); - dictionary.Add("isVariable", occurrenceUsageInstance.IsVariable); - dictionary.Add("isVariation", occurrenceUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", occurrenceUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", occurrenceUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", occurrenceUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IOccurrenceUsage occurrenceUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "OccurrenceUsage" }, - { "@id", occurrenceUsageInstance.Id } - }; - - dictionary.Add("aliasIds", occurrenceUsageInstance.AliasIds); - dictionary.Add("declaredName", occurrenceUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", occurrenceUsageInstance.DeclaredShortName); - dictionary.Add("direction", occurrenceUsageInstance.Direction); - dictionary.Add("elementId", occurrenceUsageInstance.ElementId); - dictionary.Add("isAbstract", occurrenceUsageInstance.IsAbstract); - dictionary.Add("isComposite", occurrenceUsageInstance.IsComposite); - dictionary.Add("isConstant", occurrenceUsageInstance.IsConstant); - dictionary.Add("isDerived", occurrenceUsageInstance.IsDerived); - dictionary.Add("isEnd", occurrenceUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", occurrenceUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", occurrenceUsageInstance.IsIndividual); - dictionary.Add("isOrdered", occurrenceUsageInstance.IsOrdered); - dictionary.Add("isPortion", occurrenceUsageInstance.IsPortion); - dictionary.Add("isSufficient", occurrenceUsageInstance.IsSufficient); - dictionary.Add("isUnique", occurrenceUsageInstance.IsUnique); - dictionary.Add("isVariable", occurrenceUsageInstance.IsVariable); - dictionary.Add("isVariation", occurrenceUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", occurrenceUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", occurrenceUsageInstance.OwningRelationship); - dictionary.Add("portionKind", occurrenceUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IOccurrenceUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IOccurrenceUsage occurrenceUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IOccurrenceUsage", "dataItem"); - } - - return occurrenceUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OperatorExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OperatorExpressionDictionaryWriter.cs deleted file mode 100644 index d78855dd5..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OperatorExpressionDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class OperatorExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var operatorExpressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(operatorExpressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(operatorExpressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IOperatorExpression operatorExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "OperatorExpression" }, - { "@id", operatorExpressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", operatorExpressionInstance.AliasIds); - dictionary.Add("declaredName", operatorExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", operatorExpressionInstance.DeclaredShortName); - dictionary.Add("direction", operatorExpressionInstance.Direction); - dictionary.Add("elementId", operatorExpressionInstance.ElementId); - dictionary.Add("isAbstract", operatorExpressionInstance.IsAbstract); - dictionary.Add("isComposite", operatorExpressionInstance.IsComposite); - dictionary.Add("isConstant", operatorExpressionInstance.IsConstant); - dictionary.Add("isDerived", operatorExpressionInstance.IsDerived); - dictionary.Add("isEnd", operatorExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", operatorExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", operatorExpressionInstance.IsOrdered); - dictionary.Add("isPortion", operatorExpressionInstance.IsPortion); - dictionary.Add("isSufficient", operatorExpressionInstance.IsSufficient); - dictionary.Add("isUnique", operatorExpressionInstance.IsUnique); - dictionary.Add("isVariable", operatorExpressionInstance.IsVariable); - dictionary.Add("operator", operatorExpressionInstance.Operator); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", operatorExpressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", operatorExpressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IOperatorExpression operatorExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "OperatorExpression" }, - { "@id", operatorExpressionInstance.Id } - }; - - dictionary.Add("aliasIds", operatorExpressionInstance.AliasIds); - dictionary.Add("declaredName", operatorExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", operatorExpressionInstance.DeclaredShortName); - dictionary.Add("direction", operatorExpressionInstance.Direction); - dictionary.Add("elementId", operatorExpressionInstance.ElementId); - dictionary.Add("isAbstract", operatorExpressionInstance.IsAbstract); - dictionary.Add("isComposite", operatorExpressionInstance.IsComposite); - dictionary.Add("isConstant", operatorExpressionInstance.IsConstant); - dictionary.Add("isDerived", operatorExpressionInstance.IsDerived); - dictionary.Add("isEnd", operatorExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", operatorExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", operatorExpressionInstance.IsOrdered); - dictionary.Add("isPortion", operatorExpressionInstance.IsPortion); - dictionary.Add("isSufficient", operatorExpressionInstance.IsSufficient); - dictionary.Add("isUnique", operatorExpressionInstance.IsUnique); - dictionary.Add("isVariable", operatorExpressionInstance.IsVariable); - dictionary.Add("operator", operatorExpressionInstance.Operator); - dictionary.Add("ownedRelationship", operatorExpressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", operatorExpressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IOperatorExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IOperatorExpression operatorExpressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IOperatorExpression", "dataItem"); - } - - return operatorExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OwningMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OwningMembershipDictionaryWriter.cs deleted file mode 100644 index 84608ca87..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/OwningMembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class OwningMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var owningMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(owningMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(owningMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IOwningMembership owningMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "OwningMembership" }, - { "@id", owningMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", owningMembershipInstance.AliasIds); - dictionary.Add("declaredName", owningMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", owningMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", owningMembershipInstance.ElementId); - dictionary.Add("isImplied", owningMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", owningMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", owningMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", owningMembershipInstance.MemberName); - dictionary.Add("memberShortName", owningMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", owningMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", owningMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", owningMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", owningMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", owningMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", owningMembershipInstance.Target)} ]"); - dictionary.Add("visibility", owningMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IOwningMembership owningMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "OwningMembership" }, - { "@id", owningMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", owningMembershipInstance.AliasIds); - dictionary.Add("declaredName", owningMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", owningMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", owningMembershipInstance.ElementId); - dictionary.Add("isImplied", owningMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", owningMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", owningMembershipInstance.MemberElement); - dictionary.Add("memberName", owningMembershipInstance.MemberName); - dictionary.Add("memberShortName", owningMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", owningMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", owningMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", owningMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", owningMembershipInstance.OwningRelationship); - dictionary.Add("source", owningMembershipInstance.Source); - dictionary.Add("target", owningMembershipInstance.Target); - dictionary.Add("visibility", owningMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IOwningMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IOwningMembership owningMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IOwningMembership", "dataItem"); - } - - return owningMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PackageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PackageDictionaryWriter.cs deleted file mode 100644 index 6d5be1929..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PackageDictionaryWriter.cs +++ /dev/null @@ -1,189 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class PackageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var packageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(packageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(packageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IPackage packageInstance) - { - var dictionary = new Dictionary - { - { "@type", "Package" }, - { "@id", packageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", packageInstance.AliasIds); - dictionary.Add("declaredName", packageInstance.DeclaredName); - dictionary.Add("declaredShortName", packageInstance.DeclaredShortName); - dictionary.Add("elementId", packageInstance.ElementId); - dictionary.Add("isImpliedIncluded", packageInstance.IsImpliedIncluded); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", packageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", packageInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IPackage packageInstance) - { - var dictionary = new Dictionary - { - { "@type", "Package" }, - { "@id", packageInstance.Id } - }; - - dictionary.Add("aliasIds", packageInstance.AliasIds); - dictionary.Add("declaredName", packageInstance.DeclaredName); - dictionary.Add("declaredShortName", packageInstance.DeclaredShortName); - dictionary.Add("elementId", packageInstance.ElementId); - dictionary.Add("isImpliedIncluded", packageInstance.IsImpliedIncluded); - dictionary.Add("ownedRelationship", packageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", packageInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPackage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IPackage packageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IPackage", "dataItem"); - } - - return packageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ParameterMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ParameterMembershipDictionaryWriter.cs deleted file mode 100644 index 80037fba5..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ParameterMembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ParameterMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var parameterMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(parameterMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(parameterMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IParameterMembership parameterMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ParameterMembership" }, - { "@id", parameterMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", parameterMembershipInstance.AliasIds); - dictionary.Add("declaredName", parameterMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", parameterMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", parameterMembershipInstance.ElementId); - dictionary.Add("isImplied", parameterMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", parameterMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", parameterMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", parameterMembershipInstance.MemberName); - dictionary.Add("memberShortName", parameterMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", parameterMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", parameterMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", parameterMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", parameterMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", parameterMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", parameterMembershipInstance.Target)} ]"); - dictionary.Add("visibility", parameterMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IParameterMembership parameterMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ParameterMembership" }, - { "@id", parameterMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", parameterMembershipInstance.AliasIds); - dictionary.Add("declaredName", parameterMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", parameterMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", parameterMembershipInstance.ElementId); - dictionary.Add("isImplied", parameterMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", parameterMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", parameterMembershipInstance.MemberElement); - dictionary.Add("memberName", parameterMembershipInstance.MemberName); - dictionary.Add("memberShortName", parameterMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", parameterMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", parameterMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", parameterMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", parameterMembershipInstance.OwningRelationship); - dictionary.Add("source", parameterMembershipInstance.Source); - dictionary.Add("target", parameterMembershipInstance.Target); - dictionary.Add("visibility", parameterMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IParameterMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IParameterMembership parameterMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IParameterMembership", "dataItem"); - } - - return parameterMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PartDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PartDefinitionDictionaryWriter.cs deleted file mode 100644 index 3a9b9cb43..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PartDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class PartDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var partDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(partDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(partDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IPartDefinition partDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "PartDefinition" }, - { "@id", partDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", partDefinitionInstance.AliasIds); - dictionary.Add("declaredName", partDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", partDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", partDefinitionInstance.ElementId); - dictionary.Add("isAbstract", partDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", partDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", partDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", partDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", partDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", partDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", partDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IPartDefinition partDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "PartDefinition" }, - { "@id", partDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", partDefinitionInstance.AliasIds); - dictionary.Add("declaredName", partDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", partDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", partDefinitionInstance.ElementId); - dictionary.Add("isAbstract", partDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", partDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", partDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", partDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", partDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", partDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", partDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPartDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IPartDefinition partDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IPartDefinition", "dataItem"); - } - - return partDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PartUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PartUsageDictionaryWriter.cs deleted file mode 100644 index d5aa3889b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PartUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class PartUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var partUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(partUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(partUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IPartUsage partUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "PartUsage" }, - { "@id", partUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", partUsageInstance.AliasIds); - dictionary.Add("declaredName", partUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", partUsageInstance.DeclaredShortName); - dictionary.Add("direction", partUsageInstance.Direction); - dictionary.Add("elementId", partUsageInstance.ElementId); - dictionary.Add("isAbstract", partUsageInstance.IsAbstract); - dictionary.Add("isComposite", partUsageInstance.IsComposite); - dictionary.Add("isConstant", partUsageInstance.IsConstant); - dictionary.Add("isDerived", partUsageInstance.IsDerived); - dictionary.Add("isEnd", partUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", partUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", partUsageInstance.IsIndividual); - dictionary.Add("isOrdered", partUsageInstance.IsOrdered); - dictionary.Add("isPortion", partUsageInstance.IsPortion); - dictionary.Add("isSufficient", partUsageInstance.IsSufficient); - dictionary.Add("isUnique", partUsageInstance.IsUnique); - dictionary.Add("isVariable", partUsageInstance.IsVariable); - dictionary.Add("isVariation", partUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", partUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", partUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", partUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IPartUsage partUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "PartUsage" }, - { "@id", partUsageInstance.Id } - }; - - dictionary.Add("aliasIds", partUsageInstance.AliasIds); - dictionary.Add("declaredName", partUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", partUsageInstance.DeclaredShortName); - dictionary.Add("direction", partUsageInstance.Direction); - dictionary.Add("elementId", partUsageInstance.ElementId); - dictionary.Add("isAbstract", partUsageInstance.IsAbstract); - dictionary.Add("isComposite", partUsageInstance.IsComposite); - dictionary.Add("isConstant", partUsageInstance.IsConstant); - dictionary.Add("isDerived", partUsageInstance.IsDerived); - dictionary.Add("isEnd", partUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", partUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", partUsageInstance.IsIndividual); - dictionary.Add("isOrdered", partUsageInstance.IsOrdered); - dictionary.Add("isPortion", partUsageInstance.IsPortion); - dictionary.Add("isSufficient", partUsageInstance.IsSufficient); - dictionary.Add("isUnique", partUsageInstance.IsUnique); - dictionary.Add("isVariable", partUsageInstance.IsVariable); - dictionary.Add("isVariation", partUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", partUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", partUsageInstance.OwningRelationship); - dictionary.Add("portionKind", partUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPartUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IPartUsage partUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IPartUsage", "dataItem"); - } - - return partUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PayloadFeatureDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PayloadFeatureDictionaryWriter.cs deleted file mode 100644 index 603ce4f77..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PayloadFeatureDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class PayloadFeatureDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var payloadFeatureInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(payloadFeatureInstance); - case DictionaryKind.Simplified: - return WriteSimplified(payloadFeatureInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IPayloadFeature payloadFeatureInstance) - { - var dictionary = new Dictionary - { - { "@type", "PayloadFeature" }, - { "@id", payloadFeatureInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", payloadFeatureInstance.AliasIds); - dictionary.Add("declaredName", payloadFeatureInstance.DeclaredName); - dictionary.Add("declaredShortName", payloadFeatureInstance.DeclaredShortName); - dictionary.Add("direction", payloadFeatureInstance.Direction); - dictionary.Add("elementId", payloadFeatureInstance.ElementId); - dictionary.Add("isAbstract", payloadFeatureInstance.IsAbstract); - dictionary.Add("isComposite", payloadFeatureInstance.IsComposite); - dictionary.Add("isConstant", payloadFeatureInstance.IsConstant); - dictionary.Add("isDerived", payloadFeatureInstance.IsDerived); - dictionary.Add("isEnd", payloadFeatureInstance.IsEnd); - dictionary.Add("isImpliedIncluded", payloadFeatureInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", payloadFeatureInstance.IsOrdered); - dictionary.Add("isPortion", payloadFeatureInstance.IsPortion); - dictionary.Add("isSufficient", payloadFeatureInstance.IsSufficient); - dictionary.Add("isUnique", payloadFeatureInstance.IsUnique); - dictionary.Add("isVariable", payloadFeatureInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", payloadFeatureInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", payloadFeatureInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IPayloadFeature payloadFeatureInstance) - { - var dictionary = new Dictionary - { - { "@type", "PayloadFeature" }, - { "@id", payloadFeatureInstance.Id } - }; - - dictionary.Add("aliasIds", payloadFeatureInstance.AliasIds); - dictionary.Add("declaredName", payloadFeatureInstance.DeclaredName); - dictionary.Add("declaredShortName", payloadFeatureInstance.DeclaredShortName); - dictionary.Add("direction", payloadFeatureInstance.Direction); - dictionary.Add("elementId", payloadFeatureInstance.ElementId); - dictionary.Add("isAbstract", payloadFeatureInstance.IsAbstract); - dictionary.Add("isComposite", payloadFeatureInstance.IsComposite); - dictionary.Add("isConstant", payloadFeatureInstance.IsConstant); - dictionary.Add("isDerived", payloadFeatureInstance.IsDerived); - dictionary.Add("isEnd", payloadFeatureInstance.IsEnd); - dictionary.Add("isImpliedIncluded", payloadFeatureInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", payloadFeatureInstance.IsOrdered); - dictionary.Add("isPortion", payloadFeatureInstance.IsPortion); - dictionary.Add("isSufficient", payloadFeatureInstance.IsSufficient); - dictionary.Add("isUnique", payloadFeatureInstance.IsUnique); - dictionary.Add("isVariable", payloadFeatureInstance.IsVariable); - dictionary.Add("ownedRelationship", payloadFeatureInstance.OwnedRelationship); - dictionary.Add("owningRelationship", payloadFeatureInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPayloadFeature ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IPayloadFeature payloadFeatureInstance)) - { - throw new ArgumentException("The dataItem must be of Type IPayloadFeature", "dataItem"); - } - - return payloadFeatureInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PerformActionUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PerformActionUsageDictionaryWriter.cs deleted file mode 100644 index f1130b3de..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PerformActionUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class PerformActionUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var performActionUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(performActionUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(performActionUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IPerformActionUsage performActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "PerformActionUsage" }, - { "@id", performActionUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", performActionUsageInstance.AliasIds); - dictionary.Add("declaredName", performActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", performActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", performActionUsageInstance.Direction); - dictionary.Add("elementId", performActionUsageInstance.ElementId); - dictionary.Add("isAbstract", performActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", performActionUsageInstance.IsComposite); - dictionary.Add("isConstant", performActionUsageInstance.IsConstant); - dictionary.Add("isDerived", performActionUsageInstance.IsDerived); - dictionary.Add("isEnd", performActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", performActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", performActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", performActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", performActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", performActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", performActionUsageInstance.IsUnique); - dictionary.Add("isVariable", performActionUsageInstance.IsVariable); - dictionary.Add("isVariation", performActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", performActionUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", performActionUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", performActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IPerformActionUsage performActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "PerformActionUsage" }, - { "@id", performActionUsageInstance.Id } - }; - - dictionary.Add("aliasIds", performActionUsageInstance.AliasIds); - dictionary.Add("declaredName", performActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", performActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", performActionUsageInstance.Direction); - dictionary.Add("elementId", performActionUsageInstance.ElementId); - dictionary.Add("isAbstract", performActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", performActionUsageInstance.IsComposite); - dictionary.Add("isConstant", performActionUsageInstance.IsConstant); - dictionary.Add("isDerived", performActionUsageInstance.IsDerived); - dictionary.Add("isEnd", performActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", performActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", performActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", performActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", performActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", performActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", performActionUsageInstance.IsUnique); - dictionary.Add("isVariable", performActionUsageInstance.IsVariable); - dictionary.Add("isVariation", performActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", performActionUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", performActionUsageInstance.OwningRelationship); - dictionary.Add("portionKind", performActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPerformActionUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IPerformActionUsage performActionUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IPerformActionUsage", "dataItem"); - } - - return performActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PortConjugationDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PortConjugationDictionaryWriter.cs deleted file mode 100644 index 346957596..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PortConjugationDictionaryWriter.cs +++ /dev/null @@ -1,205 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class PortConjugationDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var portConjugationInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(portConjugationInstance); - case DictionaryKind.Simplified: - return WriteSimplified(portConjugationInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IPortConjugation portConjugationInstance) - { - var dictionary = new Dictionary - { - { "@type", "PortConjugation" }, - { "@id", portConjugationInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", portConjugationInstance.AliasIds); - dictionary.Add("conjugatedType", portConjugationInstance.ConjugatedType.ToString()); - dictionary.Add("declaredName", portConjugationInstance.DeclaredName); - dictionary.Add("declaredShortName", portConjugationInstance.DeclaredShortName); - dictionary.Add("elementId", portConjugationInstance.ElementId); - dictionary.Add("isImplied", portConjugationInstance.IsImplied); - dictionary.Add("isImpliedIncluded", portConjugationInstance.IsImpliedIncluded); - dictionary.Add("originalPortDefinition", portConjugationInstance.OriginalPortDefinition.ToString()); - dictionary.Add("originalType", portConjugationInstance.OriginalType.ToString()); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", portConjugationInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", portConjugationInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", portConjugationInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", portConjugationInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", portConjugationInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", portConjugationInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IPortConjugation portConjugationInstance) - { - var dictionary = new Dictionary - { - { "@type", "PortConjugation" }, - { "@id", portConjugationInstance.Id } - }; - - dictionary.Add("aliasIds", portConjugationInstance.AliasIds); - dictionary.Add("conjugatedType", portConjugationInstance.ConjugatedType); - dictionary.Add("declaredName", portConjugationInstance.DeclaredName); - dictionary.Add("declaredShortName", portConjugationInstance.DeclaredShortName); - dictionary.Add("elementId", portConjugationInstance.ElementId); - dictionary.Add("isImplied", portConjugationInstance.IsImplied); - dictionary.Add("isImpliedIncluded", portConjugationInstance.IsImpliedIncluded); - dictionary.Add("originalPortDefinition", portConjugationInstance.OriginalPortDefinition); - dictionary.Add("originalType", portConjugationInstance.OriginalType); - dictionary.Add("ownedRelatedElement", portConjugationInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", portConjugationInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", portConjugationInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", portConjugationInstance.OwningRelationship); - dictionary.Add("source", portConjugationInstance.Source); - dictionary.Add("target", portConjugationInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPortConjugation ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IPortConjugation portConjugationInstance)) - { - throw new ArgumentException("The dataItem must be of Type IPortConjugation", "dataItem"); - } - - return portConjugationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PortDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PortDefinitionDictionaryWriter.cs deleted file mode 100644 index 087701121..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PortDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class PortDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var portDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(portDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(portDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IPortDefinition portDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "PortDefinition" }, - { "@id", portDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", portDefinitionInstance.AliasIds); - dictionary.Add("declaredName", portDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", portDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", portDefinitionInstance.ElementId); - dictionary.Add("isAbstract", portDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", portDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", portDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", portDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", portDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", portDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", portDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IPortDefinition portDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "PortDefinition" }, - { "@id", portDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", portDefinitionInstance.AliasIds); - dictionary.Add("declaredName", portDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", portDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", portDefinitionInstance.ElementId); - dictionary.Add("isAbstract", portDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", portDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", portDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", portDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", portDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", portDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", portDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPortDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IPortDefinition portDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IPortDefinition", "dataItem"); - } - - return portDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PortUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PortUsageDictionaryWriter.cs deleted file mode 100644 index ad34d935a..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PortUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class PortUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var portUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(portUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(portUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IPortUsage portUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "PortUsage" }, - { "@id", portUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", portUsageInstance.AliasIds); - dictionary.Add("declaredName", portUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", portUsageInstance.DeclaredShortName); - dictionary.Add("direction", portUsageInstance.Direction); - dictionary.Add("elementId", portUsageInstance.ElementId); - dictionary.Add("isAbstract", portUsageInstance.IsAbstract); - dictionary.Add("isComposite", portUsageInstance.IsComposite); - dictionary.Add("isConstant", portUsageInstance.IsConstant); - dictionary.Add("isDerived", portUsageInstance.IsDerived); - dictionary.Add("isEnd", portUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", portUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", portUsageInstance.IsIndividual); - dictionary.Add("isOrdered", portUsageInstance.IsOrdered); - dictionary.Add("isPortion", portUsageInstance.IsPortion); - dictionary.Add("isSufficient", portUsageInstance.IsSufficient); - dictionary.Add("isUnique", portUsageInstance.IsUnique); - dictionary.Add("isVariable", portUsageInstance.IsVariable); - dictionary.Add("isVariation", portUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", portUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", portUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", portUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IPortUsage portUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "PortUsage" }, - { "@id", portUsageInstance.Id } - }; - - dictionary.Add("aliasIds", portUsageInstance.AliasIds); - dictionary.Add("declaredName", portUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", portUsageInstance.DeclaredShortName); - dictionary.Add("direction", portUsageInstance.Direction); - dictionary.Add("elementId", portUsageInstance.ElementId); - dictionary.Add("isAbstract", portUsageInstance.IsAbstract); - dictionary.Add("isComposite", portUsageInstance.IsComposite); - dictionary.Add("isConstant", portUsageInstance.IsConstant); - dictionary.Add("isDerived", portUsageInstance.IsDerived); - dictionary.Add("isEnd", portUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", portUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", portUsageInstance.IsIndividual); - dictionary.Add("isOrdered", portUsageInstance.IsOrdered); - dictionary.Add("isPortion", portUsageInstance.IsPortion); - dictionary.Add("isSufficient", portUsageInstance.IsSufficient); - dictionary.Add("isUnique", portUsageInstance.IsUnique); - dictionary.Add("isVariable", portUsageInstance.IsVariable); - dictionary.Add("isVariation", portUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", portUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", portUsageInstance.OwningRelationship); - dictionary.Add("portionKind", portUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPortUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IPortUsage portUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IPortUsage", "dataItem"); - } - - return portUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PredicateDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PredicateDictionaryWriter.cs deleted file mode 100644 index b8ca59e98..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/PredicateDictionaryWriter.cs +++ /dev/null @@ -1,193 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class PredicateDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var predicateInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(predicateInstance); - case DictionaryKind.Simplified: - return WriteSimplified(predicateInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IPredicate predicateInstance) - { - var dictionary = new Dictionary - { - { "@type", "Predicate" }, - { "@id", predicateInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", predicateInstance.AliasIds); - dictionary.Add("declaredName", predicateInstance.DeclaredName); - dictionary.Add("declaredShortName", predicateInstance.DeclaredShortName); - dictionary.Add("elementId", predicateInstance.ElementId); - dictionary.Add("isAbstract", predicateInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", predicateInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", predicateInstance.IsSufficient); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", predicateInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", predicateInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IPredicate predicateInstance) - { - var dictionary = new Dictionary - { - { "@type", "Predicate" }, - { "@id", predicateInstance.Id } - }; - - dictionary.Add("aliasIds", predicateInstance.AliasIds); - dictionary.Add("declaredName", predicateInstance.DeclaredName); - dictionary.Add("declaredShortName", predicateInstance.DeclaredShortName); - dictionary.Add("elementId", predicateInstance.ElementId); - dictionary.Add("isAbstract", predicateInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", predicateInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", predicateInstance.IsSufficient); - dictionary.Add("ownedRelationship", predicateInstance.OwnedRelationship); - dictionary.Add("owningRelationship", predicateInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IPredicate ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IPredicate predicateInstance)) - { - throw new ArgumentException("The dataItem must be of Type IPredicate", "dataItem"); - } - - return predicateInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RedefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RedefinitionDictionaryWriter.cs deleted file mode 100644 index 769c02168..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RedefinitionDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class RedefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var redefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(redefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(redefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IRedefinition redefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "Redefinition" }, - { "@id", redefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", redefinitionInstance.AliasIds); - dictionary.Add("declaredName", redefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", redefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", redefinitionInstance.ElementId); - dictionary.Add("general", redefinitionInstance.General.ToString()); - dictionary.Add("isImplied", redefinitionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", redefinitionInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", redefinitionInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", redefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", redefinitionInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", redefinitionInstance.OwningRelationship.ToString()); - dictionary.Add("redefinedFeature", redefinitionInstance.RedefinedFeature.ToString()); - dictionary.Add("redefiningFeature", redefinitionInstance.RedefiningFeature.ToString()); - dictionary.Add("source", $"[ {string.Join(",", redefinitionInstance.Source)} ]"); - dictionary.Add("specific", redefinitionInstance.Specific.ToString()); - dictionary.Add("subsettedFeature", redefinitionInstance.SubsettedFeature.ToString()); - dictionary.Add("subsettingFeature", redefinitionInstance.SubsettingFeature.ToString()); - dictionary.Add("target", $"[ {string.Join(",", redefinitionInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IRedefinition redefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "Redefinition" }, - { "@id", redefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", redefinitionInstance.AliasIds); - dictionary.Add("declaredName", redefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", redefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", redefinitionInstance.ElementId); - dictionary.Add("general", redefinitionInstance.General); - dictionary.Add("isImplied", redefinitionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", redefinitionInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", redefinitionInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", redefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", redefinitionInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", redefinitionInstance.OwningRelationship); - dictionary.Add("redefinedFeature", redefinitionInstance.RedefinedFeature); - dictionary.Add("redefiningFeature", redefinitionInstance.RedefiningFeature); - dictionary.Add("source", redefinitionInstance.Source); - dictionary.Add("specific", redefinitionInstance.Specific); - dictionary.Add("subsettedFeature", redefinitionInstance.SubsettedFeature); - dictionary.Add("subsettingFeature", redefinitionInstance.SubsettingFeature); - dictionary.Add("target", redefinitionInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRedefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IRedefinition redefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IRedefinition", "dataItem"); - } - - return redefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ReferenceSubsettingDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ReferenceSubsettingDictionaryWriter.cs deleted file mode 100644 index d9bdf63ab..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ReferenceSubsettingDictionaryWriter.cs +++ /dev/null @@ -1,209 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ReferenceSubsettingDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var referenceSubsettingInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(referenceSubsettingInstance); - case DictionaryKind.Simplified: - return WriteSimplified(referenceSubsettingInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IReferenceSubsetting referenceSubsettingInstance) - { - var dictionary = new Dictionary - { - { "@type", "ReferenceSubsetting" }, - { "@id", referenceSubsettingInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", referenceSubsettingInstance.AliasIds); - dictionary.Add("declaredName", referenceSubsettingInstance.DeclaredName); - dictionary.Add("declaredShortName", referenceSubsettingInstance.DeclaredShortName); - dictionary.Add("elementId", referenceSubsettingInstance.ElementId); - dictionary.Add("general", referenceSubsettingInstance.General.ToString()); - dictionary.Add("isImplied", referenceSubsettingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", referenceSubsettingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", referenceSubsettingInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", referenceSubsettingInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", referenceSubsettingInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", referenceSubsettingInstance.OwningRelationship.ToString()); - dictionary.Add("referencedFeature", referenceSubsettingInstance.ReferencedFeature.ToString()); - dictionary.Add("source", $"[ {string.Join(",", referenceSubsettingInstance.Source)} ]"); - dictionary.Add("specific", referenceSubsettingInstance.Specific.ToString()); - dictionary.Add("subsettedFeature", referenceSubsettingInstance.SubsettedFeature.ToString()); - dictionary.Add("subsettingFeature", referenceSubsettingInstance.SubsettingFeature.ToString()); - dictionary.Add("target", $"[ {string.Join(",", referenceSubsettingInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IReferenceSubsetting referenceSubsettingInstance) - { - var dictionary = new Dictionary - { - { "@type", "ReferenceSubsetting" }, - { "@id", referenceSubsettingInstance.Id } - }; - - dictionary.Add("aliasIds", referenceSubsettingInstance.AliasIds); - dictionary.Add("declaredName", referenceSubsettingInstance.DeclaredName); - dictionary.Add("declaredShortName", referenceSubsettingInstance.DeclaredShortName); - dictionary.Add("elementId", referenceSubsettingInstance.ElementId); - dictionary.Add("general", referenceSubsettingInstance.General); - dictionary.Add("isImplied", referenceSubsettingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", referenceSubsettingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", referenceSubsettingInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", referenceSubsettingInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", referenceSubsettingInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", referenceSubsettingInstance.OwningRelationship); - dictionary.Add("referencedFeature", referenceSubsettingInstance.ReferencedFeature); - dictionary.Add("source", referenceSubsettingInstance.Source); - dictionary.Add("specific", referenceSubsettingInstance.Specific); - dictionary.Add("subsettedFeature", referenceSubsettingInstance.SubsettedFeature); - dictionary.Add("subsettingFeature", referenceSubsettingInstance.SubsettingFeature); - dictionary.Add("target", referenceSubsettingInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IReferenceSubsetting ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IReferenceSubsetting referenceSubsettingInstance)) - { - throw new ArgumentException("The dataItem must be of Type IReferenceSubsetting", "dataItem"); - } - - return referenceSubsettingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ReferenceUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ReferenceUsageDictionaryWriter.cs deleted file mode 100644 index b6e5e1ac6..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ReferenceUsageDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ReferenceUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var referenceUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(referenceUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(referenceUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IReferenceUsage referenceUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ReferenceUsage" }, - { "@id", referenceUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", referenceUsageInstance.AliasIds); - dictionary.Add("declaredName", referenceUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", referenceUsageInstance.DeclaredShortName); - dictionary.Add("direction", referenceUsageInstance.Direction); - dictionary.Add("elementId", referenceUsageInstance.ElementId); - dictionary.Add("isAbstract", referenceUsageInstance.IsAbstract); - dictionary.Add("isComposite", referenceUsageInstance.IsComposite); - dictionary.Add("isConstant", referenceUsageInstance.IsConstant); - dictionary.Add("isDerived", referenceUsageInstance.IsDerived); - dictionary.Add("isEnd", referenceUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", referenceUsageInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", referenceUsageInstance.IsOrdered); - dictionary.Add("isPortion", referenceUsageInstance.IsPortion); - dictionary.Add("isSufficient", referenceUsageInstance.IsSufficient); - dictionary.Add("isUnique", referenceUsageInstance.IsUnique); - dictionary.Add("isVariable", referenceUsageInstance.IsVariable); - dictionary.Add("isVariation", referenceUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", referenceUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", referenceUsageInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IReferenceUsage referenceUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ReferenceUsage" }, - { "@id", referenceUsageInstance.Id } - }; - - dictionary.Add("aliasIds", referenceUsageInstance.AliasIds); - dictionary.Add("declaredName", referenceUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", referenceUsageInstance.DeclaredShortName); - dictionary.Add("direction", referenceUsageInstance.Direction); - dictionary.Add("elementId", referenceUsageInstance.ElementId); - dictionary.Add("isAbstract", referenceUsageInstance.IsAbstract); - dictionary.Add("isComposite", referenceUsageInstance.IsComposite); - dictionary.Add("isConstant", referenceUsageInstance.IsConstant); - dictionary.Add("isDerived", referenceUsageInstance.IsDerived); - dictionary.Add("isEnd", referenceUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", referenceUsageInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", referenceUsageInstance.IsOrdered); - dictionary.Add("isPortion", referenceUsageInstance.IsPortion); - dictionary.Add("isSufficient", referenceUsageInstance.IsSufficient); - dictionary.Add("isUnique", referenceUsageInstance.IsUnique); - dictionary.Add("isVariable", referenceUsageInstance.IsVariable); - dictionary.Add("isVariation", referenceUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", referenceUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", referenceUsageInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IReferenceUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IReferenceUsage referenceUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IReferenceUsage", "dataItem"); - } - - return referenceUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RenderingDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RenderingDefinitionDictionaryWriter.cs deleted file mode 100644 index 21bfccf56..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RenderingDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class RenderingDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var renderingDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(renderingDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(renderingDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IRenderingDefinition renderingDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "RenderingDefinition" }, - { "@id", renderingDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", renderingDefinitionInstance.AliasIds); - dictionary.Add("declaredName", renderingDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", renderingDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", renderingDefinitionInstance.ElementId); - dictionary.Add("isAbstract", renderingDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", renderingDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", renderingDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", renderingDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", renderingDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", renderingDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", renderingDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IRenderingDefinition renderingDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "RenderingDefinition" }, - { "@id", renderingDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", renderingDefinitionInstance.AliasIds); - dictionary.Add("declaredName", renderingDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", renderingDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", renderingDefinitionInstance.ElementId); - dictionary.Add("isAbstract", renderingDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", renderingDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", renderingDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", renderingDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", renderingDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", renderingDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", renderingDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRenderingDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IRenderingDefinition renderingDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IRenderingDefinition", "dataItem"); - } - - return renderingDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RenderingUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RenderingUsageDictionaryWriter.cs deleted file mode 100644 index 1e824d3b3..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RenderingUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class RenderingUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var renderingUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(renderingUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(renderingUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IRenderingUsage renderingUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "RenderingUsage" }, - { "@id", renderingUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", renderingUsageInstance.AliasIds); - dictionary.Add("declaredName", renderingUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", renderingUsageInstance.DeclaredShortName); - dictionary.Add("direction", renderingUsageInstance.Direction); - dictionary.Add("elementId", renderingUsageInstance.ElementId); - dictionary.Add("isAbstract", renderingUsageInstance.IsAbstract); - dictionary.Add("isComposite", renderingUsageInstance.IsComposite); - dictionary.Add("isConstant", renderingUsageInstance.IsConstant); - dictionary.Add("isDerived", renderingUsageInstance.IsDerived); - dictionary.Add("isEnd", renderingUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", renderingUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", renderingUsageInstance.IsIndividual); - dictionary.Add("isOrdered", renderingUsageInstance.IsOrdered); - dictionary.Add("isPortion", renderingUsageInstance.IsPortion); - dictionary.Add("isSufficient", renderingUsageInstance.IsSufficient); - dictionary.Add("isUnique", renderingUsageInstance.IsUnique); - dictionary.Add("isVariable", renderingUsageInstance.IsVariable); - dictionary.Add("isVariation", renderingUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", renderingUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", renderingUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", renderingUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IRenderingUsage renderingUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "RenderingUsage" }, - { "@id", renderingUsageInstance.Id } - }; - - dictionary.Add("aliasIds", renderingUsageInstance.AliasIds); - dictionary.Add("declaredName", renderingUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", renderingUsageInstance.DeclaredShortName); - dictionary.Add("direction", renderingUsageInstance.Direction); - dictionary.Add("elementId", renderingUsageInstance.ElementId); - dictionary.Add("isAbstract", renderingUsageInstance.IsAbstract); - dictionary.Add("isComposite", renderingUsageInstance.IsComposite); - dictionary.Add("isConstant", renderingUsageInstance.IsConstant); - dictionary.Add("isDerived", renderingUsageInstance.IsDerived); - dictionary.Add("isEnd", renderingUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", renderingUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", renderingUsageInstance.IsIndividual); - dictionary.Add("isOrdered", renderingUsageInstance.IsOrdered); - dictionary.Add("isPortion", renderingUsageInstance.IsPortion); - dictionary.Add("isSufficient", renderingUsageInstance.IsSufficient); - dictionary.Add("isUnique", renderingUsageInstance.IsUnique); - dictionary.Add("isVariable", renderingUsageInstance.IsVariable); - dictionary.Add("isVariation", renderingUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", renderingUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", renderingUsageInstance.OwningRelationship); - dictionary.Add("portionKind", renderingUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRenderingUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IRenderingUsage renderingUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IRenderingUsage", "dataItem"); - } - - return renderingUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementConstraintMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementConstraintMembershipDictionaryWriter.cs deleted file mode 100644 index 3c3caba02..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementConstraintMembershipDictionaryWriter.cs +++ /dev/null @@ -1,209 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class RequirementConstraintMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var requirementConstraintMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(requirementConstraintMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(requirementConstraintMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IRequirementConstraintMembership requirementConstraintMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "RequirementConstraintMembership" }, - { "@id", requirementConstraintMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", requirementConstraintMembershipInstance.AliasIds); - dictionary.Add("declaredName", requirementConstraintMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", requirementConstraintMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", requirementConstraintMembershipInstance.ElementId); - dictionary.Add("isImplied", requirementConstraintMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", requirementConstraintMembershipInstance.IsImpliedIncluded); - dictionary.Add("kind", requirementConstraintMembershipInstance.Kind); - dictionary.Add("memberElement", requirementConstraintMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", requirementConstraintMembershipInstance.MemberName); - dictionary.Add("memberShortName", requirementConstraintMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", requirementConstraintMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", requirementConstraintMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", requirementConstraintMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", requirementConstraintMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", requirementConstraintMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", requirementConstraintMembershipInstance.Target)} ]"); - dictionary.Add("visibility", requirementConstraintMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IRequirementConstraintMembership requirementConstraintMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "RequirementConstraintMembership" }, - { "@id", requirementConstraintMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", requirementConstraintMembershipInstance.AliasIds); - dictionary.Add("declaredName", requirementConstraintMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", requirementConstraintMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", requirementConstraintMembershipInstance.ElementId); - dictionary.Add("isImplied", requirementConstraintMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", requirementConstraintMembershipInstance.IsImpliedIncluded); - dictionary.Add("kind", requirementConstraintMembershipInstance.Kind); - dictionary.Add("memberElement", requirementConstraintMembershipInstance.MemberElement); - dictionary.Add("memberName", requirementConstraintMembershipInstance.MemberName); - dictionary.Add("memberShortName", requirementConstraintMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", requirementConstraintMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", requirementConstraintMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", requirementConstraintMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", requirementConstraintMembershipInstance.OwningRelationship); - dictionary.Add("source", requirementConstraintMembershipInstance.Source); - dictionary.Add("target", requirementConstraintMembershipInstance.Target); - dictionary.Add("visibility", requirementConstraintMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRequirementConstraintMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IRequirementConstraintMembership requirementConstraintMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IRequirementConstraintMembership", "dataItem"); - } - - return requirementConstraintMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementDefinitionDictionaryWriter.cs deleted file mode 100644 index a7c009ae7..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,199 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class RequirementDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var requirementDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(requirementDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(requirementDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IRequirementDefinition requirementDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "RequirementDefinition" }, - { "@id", requirementDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", requirementDefinitionInstance.AliasIds); - dictionary.Add("declaredName", requirementDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", requirementDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", requirementDefinitionInstance.ElementId); - dictionary.Add("isAbstract", requirementDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", requirementDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", requirementDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", requirementDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", requirementDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", requirementDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", requirementDefinitionInstance.OwningRelationship.ToString()); - dictionary.Add("reqId", requirementDefinitionInstance.ReqId); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IRequirementDefinition requirementDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "RequirementDefinition" }, - { "@id", requirementDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", requirementDefinitionInstance.AliasIds); - dictionary.Add("declaredName", requirementDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", requirementDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", requirementDefinitionInstance.ElementId); - dictionary.Add("isAbstract", requirementDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", requirementDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", requirementDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", requirementDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", requirementDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", requirementDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", requirementDefinitionInstance.OwningRelationship); - dictionary.Add("reqId", requirementDefinitionInstance.ReqId); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRequirementDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IRequirementDefinition requirementDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IRequirementDefinition", "dataItem"); - } - - return requirementDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementUsageDictionaryWriter.cs deleted file mode 100644 index 3473fe386..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementUsageDictionaryWriter.cs +++ /dev/null @@ -1,219 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class RequirementUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var requirementUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(requirementUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(requirementUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IRequirementUsage requirementUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "RequirementUsage" }, - { "@id", requirementUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", requirementUsageInstance.AliasIds); - dictionary.Add("declaredName", requirementUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", requirementUsageInstance.DeclaredShortName); - dictionary.Add("direction", requirementUsageInstance.Direction); - dictionary.Add("elementId", requirementUsageInstance.ElementId); - dictionary.Add("isAbstract", requirementUsageInstance.IsAbstract); - dictionary.Add("isComposite", requirementUsageInstance.IsComposite); - dictionary.Add("isConstant", requirementUsageInstance.IsConstant); - dictionary.Add("isDerived", requirementUsageInstance.IsDerived); - dictionary.Add("isEnd", requirementUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", requirementUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", requirementUsageInstance.IsIndividual); - dictionary.Add("isOrdered", requirementUsageInstance.IsOrdered); - dictionary.Add("isPortion", requirementUsageInstance.IsPortion); - dictionary.Add("isSufficient", requirementUsageInstance.IsSufficient); - dictionary.Add("isUnique", requirementUsageInstance.IsUnique); - dictionary.Add("isVariable", requirementUsageInstance.IsVariable); - dictionary.Add("isVariation", requirementUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", requirementUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", requirementUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", requirementUsageInstance.PortionKind); - dictionary.Add("reqId", requirementUsageInstance.ReqId); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IRequirementUsage requirementUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "RequirementUsage" }, - { "@id", requirementUsageInstance.Id } - }; - - dictionary.Add("aliasIds", requirementUsageInstance.AliasIds); - dictionary.Add("declaredName", requirementUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", requirementUsageInstance.DeclaredShortName); - dictionary.Add("direction", requirementUsageInstance.Direction); - dictionary.Add("elementId", requirementUsageInstance.ElementId); - dictionary.Add("isAbstract", requirementUsageInstance.IsAbstract); - dictionary.Add("isComposite", requirementUsageInstance.IsComposite); - dictionary.Add("isConstant", requirementUsageInstance.IsConstant); - dictionary.Add("isDerived", requirementUsageInstance.IsDerived); - dictionary.Add("isEnd", requirementUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", requirementUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", requirementUsageInstance.IsIndividual); - dictionary.Add("isOrdered", requirementUsageInstance.IsOrdered); - dictionary.Add("isPortion", requirementUsageInstance.IsPortion); - dictionary.Add("isSufficient", requirementUsageInstance.IsSufficient); - dictionary.Add("isUnique", requirementUsageInstance.IsUnique); - dictionary.Add("isVariable", requirementUsageInstance.IsVariable); - dictionary.Add("isVariation", requirementUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", requirementUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", requirementUsageInstance.OwningRelationship); - dictionary.Add("portionKind", requirementUsageInstance.PortionKind); - dictionary.Add("reqId", requirementUsageInstance.ReqId); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRequirementUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IRequirementUsage requirementUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IRequirementUsage", "dataItem"); - } - - return requirementUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementVerificationMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementVerificationMembershipDictionaryWriter.cs deleted file mode 100644 index 61992c6cf..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/RequirementVerificationMembershipDictionaryWriter.cs +++ /dev/null @@ -1,209 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class RequirementVerificationMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var requirementVerificationMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(requirementVerificationMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(requirementVerificationMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IRequirementVerificationMembership requirementVerificationMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "RequirementVerificationMembership" }, - { "@id", requirementVerificationMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", requirementVerificationMembershipInstance.AliasIds); - dictionary.Add("declaredName", requirementVerificationMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", requirementVerificationMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", requirementVerificationMembershipInstance.ElementId); - dictionary.Add("isImplied", requirementVerificationMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", requirementVerificationMembershipInstance.IsImpliedIncluded); - dictionary.Add("kind", requirementVerificationMembershipInstance.Kind); - dictionary.Add("memberElement", requirementVerificationMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", requirementVerificationMembershipInstance.MemberName); - dictionary.Add("memberShortName", requirementVerificationMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", requirementVerificationMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", requirementVerificationMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", requirementVerificationMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", requirementVerificationMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", requirementVerificationMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", requirementVerificationMembershipInstance.Target)} ]"); - dictionary.Add("visibility", requirementVerificationMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IRequirementVerificationMembership requirementVerificationMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "RequirementVerificationMembership" }, - { "@id", requirementVerificationMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", requirementVerificationMembershipInstance.AliasIds); - dictionary.Add("declaredName", requirementVerificationMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", requirementVerificationMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", requirementVerificationMembershipInstance.ElementId); - dictionary.Add("isImplied", requirementVerificationMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", requirementVerificationMembershipInstance.IsImpliedIncluded); - dictionary.Add("kind", requirementVerificationMembershipInstance.Kind); - dictionary.Add("memberElement", requirementVerificationMembershipInstance.MemberElement); - dictionary.Add("memberName", requirementVerificationMembershipInstance.MemberName); - dictionary.Add("memberShortName", requirementVerificationMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", requirementVerificationMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", requirementVerificationMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", requirementVerificationMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", requirementVerificationMembershipInstance.OwningRelationship); - dictionary.Add("source", requirementVerificationMembershipInstance.Source); - dictionary.Add("target", requirementVerificationMembershipInstance.Target); - dictionary.Add("visibility", requirementVerificationMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IRequirementVerificationMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IRequirementVerificationMembership requirementVerificationMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IRequirementVerificationMembership", "dataItem"); - } - - return requirementVerificationMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ResultExpressionMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ResultExpressionMembershipDictionaryWriter.cs deleted file mode 100644 index 51e10c3e7..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ResultExpressionMembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ResultExpressionMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var resultExpressionMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(resultExpressionMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(resultExpressionMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IResultExpressionMembership resultExpressionMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ResultExpressionMembership" }, - { "@id", resultExpressionMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", resultExpressionMembershipInstance.AliasIds); - dictionary.Add("declaredName", resultExpressionMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", resultExpressionMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", resultExpressionMembershipInstance.ElementId); - dictionary.Add("isImplied", resultExpressionMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", resultExpressionMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", resultExpressionMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", resultExpressionMembershipInstance.MemberName); - dictionary.Add("memberShortName", resultExpressionMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", resultExpressionMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", resultExpressionMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", resultExpressionMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", resultExpressionMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", resultExpressionMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", resultExpressionMembershipInstance.Target)} ]"); - dictionary.Add("visibility", resultExpressionMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IResultExpressionMembership resultExpressionMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ResultExpressionMembership" }, - { "@id", resultExpressionMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", resultExpressionMembershipInstance.AliasIds); - dictionary.Add("declaredName", resultExpressionMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", resultExpressionMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", resultExpressionMembershipInstance.ElementId); - dictionary.Add("isImplied", resultExpressionMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", resultExpressionMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", resultExpressionMembershipInstance.MemberElement); - dictionary.Add("memberName", resultExpressionMembershipInstance.MemberName); - dictionary.Add("memberShortName", resultExpressionMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", resultExpressionMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", resultExpressionMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", resultExpressionMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", resultExpressionMembershipInstance.OwningRelationship); - dictionary.Add("source", resultExpressionMembershipInstance.Source); - dictionary.Add("target", resultExpressionMembershipInstance.Target); - dictionary.Add("visibility", resultExpressionMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IResultExpressionMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IResultExpressionMembership resultExpressionMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IResultExpressionMembership", "dataItem"); - } - - return resultExpressionMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ReturnParameterMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ReturnParameterMembershipDictionaryWriter.cs deleted file mode 100644 index c777e7bd7..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ReturnParameterMembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ReturnParameterMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var returnParameterMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(returnParameterMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(returnParameterMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IReturnParameterMembership returnParameterMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ReturnParameterMembership" }, - { "@id", returnParameterMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", returnParameterMembershipInstance.AliasIds); - dictionary.Add("declaredName", returnParameterMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", returnParameterMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", returnParameterMembershipInstance.ElementId); - dictionary.Add("isImplied", returnParameterMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", returnParameterMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", returnParameterMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", returnParameterMembershipInstance.MemberName); - dictionary.Add("memberShortName", returnParameterMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", returnParameterMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", returnParameterMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", returnParameterMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", returnParameterMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", returnParameterMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", returnParameterMembershipInstance.Target)} ]"); - dictionary.Add("visibility", returnParameterMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IReturnParameterMembership returnParameterMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ReturnParameterMembership" }, - { "@id", returnParameterMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", returnParameterMembershipInstance.AliasIds); - dictionary.Add("declaredName", returnParameterMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", returnParameterMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", returnParameterMembershipInstance.ElementId); - dictionary.Add("isImplied", returnParameterMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", returnParameterMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", returnParameterMembershipInstance.MemberElement); - dictionary.Add("memberName", returnParameterMembershipInstance.MemberName); - dictionary.Add("memberShortName", returnParameterMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", returnParameterMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", returnParameterMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", returnParameterMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", returnParameterMembershipInstance.OwningRelationship); - dictionary.Add("source", returnParameterMembershipInstance.Source); - dictionary.Add("target", returnParameterMembershipInstance.Target); - dictionary.Add("visibility", returnParameterMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IReturnParameterMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IReturnParameterMembership returnParameterMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IReturnParameterMembership", "dataItem"); - } - - return returnParameterMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SatisfyRequirementUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SatisfyRequirementUsageDictionaryWriter.cs deleted file mode 100644 index d3ab5de88..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SatisfyRequirementUsageDictionaryWriter.cs +++ /dev/null @@ -1,221 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class SatisfyRequirementUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var satisfyRequirementUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(satisfyRequirementUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(satisfyRequirementUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ISatisfyRequirementUsage satisfyRequirementUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "SatisfyRequirementUsage" }, - { "@id", satisfyRequirementUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", satisfyRequirementUsageInstance.AliasIds); - dictionary.Add("declaredName", satisfyRequirementUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", satisfyRequirementUsageInstance.DeclaredShortName); - dictionary.Add("direction", satisfyRequirementUsageInstance.Direction); - dictionary.Add("elementId", satisfyRequirementUsageInstance.ElementId); - dictionary.Add("isAbstract", satisfyRequirementUsageInstance.IsAbstract); - dictionary.Add("isComposite", satisfyRequirementUsageInstance.IsComposite); - dictionary.Add("isConstant", satisfyRequirementUsageInstance.IsConstant); - dictionary.Add("isDerived", satisfyRequirementUsageInstance.IsDerived); - dictionary.Add("isEnd", satisfyRequirementUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", satisfyRequirementUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", satisfyRequirementUsageInstance.IsIndividual); - dictionary.Add("isNegated", satisfyRequirementUsageInstance.IsNegated); - dictionary.Add("isOrdered", satisfyRequirementUsageInstance.IsOrdered); - dictionary.Add("isPortion", satisfyRequirementUsageInstance.IsPortion); - dictionary.Add("isSufficient", satisfyRequirementUsageInstance.IsSufficient); - dictionary.Add("isUnique", satisfyRequirementUsageInstance.IsUnique); - dictionary.Add("isVariable", satisfyRequirementUsageInstance.IsVariable); - dictionary.Add("isVariation", satisfyRequirementUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", satisfyRequirementUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", satisfyRequirementUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", satisfyRequirementUsageInstance.PortionKind); - dictionary.Add("reqId", satisfyRequirementUsageInstance.ReqId); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ISatisfyRequirementUsage satisfyRequirementUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "SatisfyRequirementUsage" }, - { "@id", satisfyRequirementUsageInstance.Id } - }; - - dictionary.Add("aliasIds", satisfyRequirementUsageInstance.AliasIds); - dictionary.Add("declaredName", satisfyRequirementUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", satisfyRequirementUsageInstance.DeclaredShortName); - dictionary.Add("direction", satisfyRequirementUsageInstance.Direction); - dictionary.Add("elementId", satisfyRequirementUsageInstance.ElementId); - dictionary.Add("isAbstract", satisfyRequirementUsageInstance.IsAbstract); - dictionary.Add("isComposite", satisfyRequirementUsageInstance.IsComposite); - dictionary.Add("isConstant", satisfyRequirementUsageInstance.IsConstant); - dictionary.Add("isDerived", satisfyRequirementUsageInstance.IsDerived); - dictionary.Add("isEnd", satisfyRequirementUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", satisfyRequirementUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", satisfyRequirementUsageInstance.IsIndividual); - dictionary.Add("isNegated", satisfyRequirementUsageInstance.IsNegated); - dictionary.Add("isOrdered", satisfyRequirementUsageInstance.IsOrdered); - dictionary.Add("isPortion", satisfyRequirementUsageInstance.IsPortion); - dictionary.Add("isSufficient", satisfyRequirementUsageInstance.IsSufficient); - dictionary.Add("isUnique", satisfyRequirementUsageInstance.IsUnique); - dictionary.Add("isVariable", satisfyRequirementUsageInstance.IsVariable); - dictionary.Add("isVariation", satisfyRequirementUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", satisfyRequirementUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", satisfyRequirementUsageInstance.OwningRelationship); - dictionary.Add("portionKind", satisfyRequirementUsageInstance.PortionKind); - dictionary.Add("reqId", satisfyRequirementUsageInstance.ReqId); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISatisfyRequirementUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ISatisfyRequirementUsage satisfyRequirementUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type ISatisfyRequirementUsage", "dataItem"); - } - - return satisfyRequirementUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SelectExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SelectExpressionDictionaryWriter.cs deleted file mode 100644 index 3f72c3eea..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SelectExpressionDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class SelectExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var selectExpressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(selectExpressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(selectExpressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ISelectExpression selectExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "SelectExpression" }, - { "@id", selectExpressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", selectExpressionInstance.AliasIds); - dictionary.Add("declaredName", selectExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", selectExpressionInstance.DeclaredShortName); - dictionary.Add("direction", selectExpressionInstance.Direction); - dictionary.Add("elementId", selectExpressionInstance.ElementId); - dictionary.Add("isAbstract", selectExpressionInstance.IsAbstract); - dictionary.Add("isComposite", selectExpressionInstance.IsComposite); - dictionary.Add("isConstant", selectExpressionInstance.IsConstant); - dictionary.Add("isDerived", selectExpressionInstance.IsDerived); - dictionary.Add("isEnd", selectExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", selectExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", selectExpressionInstance.IsOrdered); - dictionary.Add("isPortion", selectExpressionInstance.IsPortion); - dictionary.Add("isSufficient", selectExpressionInstance.IsSufficient); - dictionary.Add("isUnique", selectExpressionInstance.IsUnique); - dictionary.Add("isVariable", selectExpressionInstance.IsVariable); - dictionary.Add("operator", selectExpressionInstance.Operator); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", selectExpressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", selectExpressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ISelectExpression selectExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "SelectExpression" }, - { "@id", selectExpressionInstance.Id } - }; - - dictionary.Add("aliasIds", selectExpressionInstance.AliasIds); - dictionary.Add("declaredName", selectExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", selectExpressionInstance.DeclaredShortName); - dictionary.Add("direction", selectExpressionInstance.Direction); - dictionary.Add("elementId", selectExpressionInstance.ElementId); - dictionary.Add("isAbstract", selectExpressionInstance.IsAbstract); - dictionary.Add("isComposite", selectExpressionInstance.IsComposite); - dictionary.Add("isConstant", selectExpressionInstance.IsConstant); - dictionary.Add("isDerived", selectExpressionInstance.IsDerived); - dictionary.Add("isEnd", selectExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", selectExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", selectExpressionInstance.IsOrdered); - dictionary.Add("isPortion", selectExpressionInstance.IsPortion); - dictionary.Add("isSufficient", selectExpressionInstance.IsSufficient); - dictionary.Add("isUnique", selectExpressionInstance.IsUnique); - dictionary.Add("isVariable", selectExpressionInstance.IsVariable); - dictionary.Add("operator", selectExpressionInstance.Operator); - dictionary.Add("ownedRelationship", selectExpressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", selectExpressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISelectExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ISelectExpression selectExpressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type ISelectExpression", "dataItem"); - } - - return selectExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SendActionUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SendActionUsageDictionaryWriter.cs deleted file mode 100644 index cfb260681..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SendActionUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class SendActionUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var sendActionUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(sendActionUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(sendActionUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ISendActionUsage sendActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "SendActionUsage" }, - { "@id", sendActionUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", sendActionUsageInstance.AliasIds); - dictionary.Add("declaredName", sendActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", sendActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", sendActionUsageInstance.Direction); - dictionary.Add("elementId", sendActionUsageInstance.ElementId); - dictionary.Add("isAbstract", sendActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", sendActionUsageInstance.IsComposite); - dictionary.Add("isConstant", sendActionUsageInstance.IsConstant); - dictionary.Add("isDerived", sendActionUsageInstance.IsDerived); - dictionary.Add("isEnd", sendActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", sendActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", sendActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", sendActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", sendActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", sendActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", sendActionUsageInstance.IsUnique); - dictionary.Add("isVariable", sendActionUsageInstance.IsVariable); - dictionary.Add("isVariation", sendActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", sendActionUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", sendActionUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", sendActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ISendActionUsage sendActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "SendActionUsage" }, - { "@id", sendActionUsageInstance.Id } - }; - - dictionary.Add("aliasIds", sendActionUsageInstance.AliasIds); - dictionary.Add("declaredName", sendActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", sendActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", sendActionUsageInstance.Direction); - dictionary.Add("elementId", sendActionUsageInstance.ElementId); - dictionary.Add("isAbstract", sendActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", sendActionUsageInstance.IsComposite); - dictionary.Add("isConstant", sendActionUsageInstance.IsConstant); - dictionary.Add("isDerived", sendActionUsageInstance.IsDerived); - dictionary.Add("isEnd", sendActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", sendActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", sendActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", sendActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", sendActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", sendActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", sendActionUsageInstance.IsUnique); - dictionary.Add("isVariable", sendActionUsageInstance.IsVariable); - dictionary.Add("isVariation", sendActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", sendActionUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", sendActionUsageInstance.OwningRelationship); - dictionary.Add("portionKind", sendActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISendActionUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ISendActionUsage sendActionUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type ISendActionUsage", "dataItem"); - } - - return sendActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SpecializationDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SpecializationDictionaryWriter.cs deleted file mode 100644 index dd77235ae..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SpecializationDictionaryWriter.cs +++ /dev/null @@ -1,203 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class SpecializationDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var specializationInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(specializationInstance); - case DictionaryKind.Simplified: - return WriteSimplified(specializationInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ISpecialization specializationInstance) - { - var dictionary = new Dictionary - { - { "@type", "Specialization" }, - { "@id", specializationInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", specializationInstance.AliasIds); - dictionary.Add("declaredName", specializationInstance.DeclaredName); - dictionary.Add("declaredShortName", specializationInstance.DeclaredShortName); - dictionary.Add("elementId", specializationInstance.ElementId); - dictionary.Add("general", specializationInstance.General.ToString()); - dictionary.Add("isImplied", specializationInstance.IsImplied); - dictionary.Add("isImpliedIncluded", specializationInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", specializationInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", specializationInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", specializationInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", specializationInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", specializationInstance.Source)} ]"); - dictionary.Add("specific", specializationInstance.Specific.ToString()); - dictionary.Add("target", $"[ {string.Join(",", specializationInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ISpecialization specializationInstance) - { - var dictionary = new Dictionary - { - { "@type", "Specialization" }, - { "@id", specializationInstance.Id } - }; - - dictionary.Add("aliasIds", specializationInstance.AliasIds); - dictionary.Add("declaredName", specializationInstance.DeclaredName); - dictionary.Add("declaredShortName", specializationInstance.DeclaredShortName); - dictionary.Add("elementId", specializationInstance.ElementId); - dictionary.Add("general", specializationInstance.General); - dictionary.Add("isImplied", specializationInstance.IsImplied); - dictionary.Add("isImpliedIncluded", specializationInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", specializationInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", specializationInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", specializationInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", specializationInstance.OwningRelationship); - dictionary.Add("source", specializationInstance.Source); - dictionary.Add("specific", specializationInstance.Specific); - dictionary.Add("target", specializationInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISpecialization ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ISpecialization specializationInstance)) - { - throw new ArgumentException("The dataItem must be of Type ISpecialization", "dataItem"); - } - - return specializationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StakeholderMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StakeholderMembershipDictionaryWriter.cs deleted file mode 100644 index 7971371e7..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StakeholderMembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class StakeholderMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var stakeholderMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(stakeholderMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(stakeholderMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IStakeholderMembership stakeholderMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "StakeholderMembership" }, - { "@id", stakeholderMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", stakeholderMembershipInstance.AliasIds); - dictionary.Add("declaredName", stakeholderMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", stakeholderMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", stakeholderMembershipInstance.ElementId); - dictionary.Add("isImplied", stakeholderMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", stakeholderMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", stakeholderMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", stakeholderMembershipInstance.MemberName); - dictionary.Add("memberShortName", stakeholderMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", stakeholderMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", stakeholderMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", stakeholderMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", stakeholderMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", stakeholderMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", stakeholderMembershipInstance.Target)} ]"); - dictionary.Add("visibility", stakeholderMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IStakeholderMembership stakeholderMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "StakeholderMembership" }, - { "@id", stakeholderMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", stakeholderMembershipInstance.AliasIds); - dictionary.Add("declaredName", stakeholderMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", stakeholderMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", stakeholderMembershipInstance.ElementId); - dictionary.Add("isImplied", stakeholderMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", stakeholderMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", stakeholderMembershipInstance.MemberElement); - dictionary.Add("memberName", stakeholderMembershipInstance.MemberName); - dictionary.Add("memberShortName", stakeholderMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", stakeholderMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", stakeholderMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", stakeholderMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", stakeholderMembershipInstance.OwningRelationship); - dictionary.Add("source", stakeholderMembershipInstance.Source); - dictionary.Add("target", stakeholderMembershipInstance.Target); - dictionary.Add("visibility", stakeholderMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IStakeholderMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IStakeholderMembership stakeholderMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IStakeholderMembership", "dataItem"); - } - - return stakeholderMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StateDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StateDefinitionDictionaryWriter.cs deleted file mode 100644 index 0d423a394..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StateDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,199 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class StateDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var stateDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(stateDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(stateDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IStateDefinition stateDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "StateDefinition" }, - { "@id", stateDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", stateDefinitionInstance.AliasIds); - dictionary.Add("declaredName", stateDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", stateDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", stateDefinitionInstance.ElementId); - dictionary.Add("isAbstract", stateDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", stateDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", stateDefinitionInstance.IsIndividual); - dictionary.Add("isParallel", stateDefinitionInstance.IsParallel); - dictionary.Add("isSufficient", stateDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", stateDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", stateDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", stateDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IStateDefinition stateDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "StateDefinition" }, - { "@id", stateDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", stateDefinitionInstance.AliasIds); - dictionary.Add("declaredName", stateDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", stateDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", stateDefinitionInstance.ElementId); - dictionary.Add("isAbstract", stateDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", stateDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", stateDefinitionInstance.IsIndividual); - dictionary.Add("isParallel", stateDefinitionInstance.IsParallel); - dictionary.Add("isSufficient", stateDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", stateDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", stateDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", stateDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IStateDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IStateDefinition stateDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IStateDefinition", "dataItem"); - } - - return stateDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StateSubactionMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StateSubactionMembershipDictionaryWriter.cs deleted file mode 100644 index 5f39c5c4b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StateSubactionMembershipDictionaryWriter.cs +++ /dev/null @@ -1,209 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class StateSubactionMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var stateSubactionMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(stateSubactionMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(stateSubactionMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IStateSubactionMembership stateSubactionMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "StateSubactionMembership" }, - { "@id", stateSubactionMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", stateSubactionMembershipInstance.AliasIds); - dictionary.Add("declaredName", stateSubactionMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", stateSubactionMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", stateSubactionMembershipInstance.ElementId); - dictionary.Add("isImplied", stateSubactionMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", stateSubactionMembershipInstance.IsImpliedIncluded); - dictionary.Add("kind", stateSubactionMembershipInstance.Kind); - dictionary.Add("memberElement", stateSubactionMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", stateSubactionMembershipInstance.MemberName); - dictionary.Add("memberShortName", stateSubactionMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", stateSubactionMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", stateSubactionMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", stateSubactionMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", stateSubactionMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", stateSubactionMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", stateSubactionMembershipInstance.Target)} ]"); - dictionary.Add("visibility", stateSubactionMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IStateSubactionMembership stateSubactionMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "StateSubactionMembership" }, - { "@id", stateSubactionMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", stateSubactionMembershipInstance.AliasIds); - dictionary.Add("declaredName", stateSubactionMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", stateSubactionMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", stateSubactionMembershipInstance.ElementId); - dictionary.Add("isImplied", stateSubactionMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", stateSubactionMembershipInstance.IsImpliedIncluded); - dictionary.Add("kind", stateSubactionMembershipInstance.Kind); - dictionary.Add("memberElement", stateSubactionMembershipInstance.MemberElement); - dictionary.Add("memberName", stateSubactionMembershipInstance.MemberName); - dictionary.Add("memberShortName", stateSubactionMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", stateSubactionMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", stateSubactionMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", stateSubactionMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", stateSubactionMembershipInstance.OwningRelationship); - dictionary.Add("source", stateSubactionMembershipInstance.Source); - dictionary.Add("target", stateSubactionMembershipInstance.Target); - dictionary.Add("visibility", stateSubactionMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IStateSubactionMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IStateSubactionMembership stateSubactionMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IStateSubactionMembership", "dataItem"); - } - - return stateSubactionMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StateUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StateUsageDictionaryWriter.cs deleted file mode 100644 index 1c4126092..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StateUsageDictionaryWriter.cs +++ /dev/null @@ -1,219 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class StateUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var stateUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(stateUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(stateUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IStateUsage stateUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "StateUsage" }, - { "@id", stateUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", stateUsageInstance.AliasIds); - dictionary.Add("declaredName", stateUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", stateUsageInstance.DeclaredShortName); - dictionary.Add("direction", stateUsageInstance.Direction); - dictionary.Add("elementId", stateUsageInstance.ElementId); - dictionary.Add("isAbstract", stateUsageInstance.IsAbstract); - dictionary.Add("isComposite", stateUsageInstance.IsComposite); - dictionary.Add("isConstant", stateUsageInstance.IsConstant); - dictionary.Add("isDerived", stateUsageInstance.IsDerived); - dictionary.Add("isEnd", stateUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", stateUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", stateUsageInstance.IsIndividual); - dictionary.Add("isOrdered", stateUsageInstance.IsOrdered); - dictionary.Add("isParallel", stateUsageInstance.IsParallel); - dictionary.Add("isPortion", stateUsageInstance.IsPortion); - dictionary.Add("isSufficient", stateUsageInstance.IsSufficient); - dictionary.Add("isUnique", stateUsageInstance.IsUnique); - dictionary.Add("isVariable", stateUsageInstance.IsVariable); - dictionary.Add("isVariation", stateUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", stateUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", stateUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", stateUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IStateUsage stateUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "StateUsage" }, - { "@id", stateUsageInstance.Id } - }; - - dictionary.Add("aliasIds", stateUsageInstance.AliasIds); - dictionary.Add("declaredName", stateUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", stateUsageInstance.DeclaredShortName); - dictionary.Add("direction", stateUsageInstance.Direction); - dictionary.Add("elementId", stateUsageInstance.ElementId); - dictionary.Add("isAbstract", stateUsageInstance.IsAbstract); - dictionary.Add("isComposite", stateUsageInstance.IsComposite); - dictionary.Add("isConstant", stateUsageInstance.IsConstant); - dictionary.Add("isDerived", stateUsageInstance.IsDerived); - dictionary.Add("isEnd", stateUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", stateUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", stateUsageInstance.IsIndividual); - dictionary.Add("isOrdered", stateUsageInstance.IsOrdered); - dictionary.Add("isParallel", stateUsageInstance.IsParallel); - dictionary.Add("isPortion", stateUsageInstance.IsPortion); - dictionary.Add("isSufficient", stateUsageInstance.IsSufficient); - dictionary.Add("isUnique", stateUsageInstance.IsUnique); - dictionary.Add("isVariable", stateUsageInstance.IsVariable); - dictionary.Add("isVariation", stateUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", stateUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", stateUsageInstance.OwningRelationship); - dictionary.Add("portionKind", stateUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IStateUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IStateUsage stateUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IStateUsage", "dataItem"); - } - - return stateUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StepDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StepDictionaryWriter.cs deleted file mode 100644 index 9d20ca480..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StepDictionaryWriter.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class StepDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var stepInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(stepInstance); - case DictionaryKind.Simplified: - return WriteSimplified(stepInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IStep stepInstance) - { - var dictionary = new Dictionary - { - { "@type", "Step" }, - { "@id", stepInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", stepInstance.AliasIds); - dictionary.Add("declaredName", stepInstance.DeclaredName); - dictionary.Add("declaredShortName", stepInstance.DeclaredShortName); - dictionary.Add("direction", stepInstance.Direction); - dictionary.Add("elementId", stepInstance.ElementId); - dictionary.Add("isAbstract", stepInstance.IsAbstract); - dictionary.Add("isComposite", stepInstance.IsComposite); - dictionary.Add("isConstant", stepInstance.IsConstant); - dictionary.Add("isDerived", stepInstance.IsDerived); - dictionary.Add("isEnd", stepInstance.IsEnd); - dictionary.Add("isImpliedIncluded", stepInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", stepInstance.IsOrdered); - dictionary.Add("isPortion", stepInstance.IsPortion); - dictionary.Add("isSufficient", stepInstance.IsSufficient); - dictionary.Add("isUnique", stepInstance.IsUnique); - dictionary.Add("isVariable", stepInstance.IsVariable); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", stepInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", stepInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IStep stepInstance) - { - var dictionary = new Dictionary - { - { "@type", "Step" }, - { "@id", stepInstance.Id } - }; - - dictionary.Add("aliasIds", stepInstance.AliasIds); - dictionary.Add("declaredName", stepInstance.DeclaredName); - dictionary.Add("declaredShortName", stepInstance.DeclaredShortName); - dictionary.Add("direction", stepInstance.Direction); - dictionary.Add("elementId", stepInstance.ElementId); - dictionary.Add("isAbstract", stepInstance.IsAbstract); - dictionary.Add("isComposite", stepInstance.IsComposite); - dictionary.Add("isConstant", stepInstance.IsConstant); - dictionary.Add("isDerived", stepInstance.IsDerived); - dictionary.Add("isEnd", stepInstance.IsEnd); - dictionary.Add("isImpliedIncluded", stepInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", stepInstance.IsOrdered); - dictionary.Add("isPortion", stepInstance.IsPortion); - dictionary.Add("isSufficient", stepInstance.IsSufficient); - dictionary.Add("isUnique", stepInstance.IsUnique); - dictionary.Add("isVariable", stepInstance.IsVariable); - dictionary.Add("ownedRelationship", stepInstance.OwnedRelationship); - dictionary.Add("owningRelationship", stepInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IStep ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IStep stepInstance)) - { - throw new ArgumentException("The dataItem must be of Type IStep", "dataItem"); - } - - return stepInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StructureDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StructureDictionaryWriter.cs deleted file mode 100644 index 63f7946dc..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/StructureDictionaryWriter.cs +++ /dev/null @@ -1,193 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class StructureDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var structureInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(structureInstance); - case DictionaryKind.Simplified: - return WriteSimplified(structureInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IStructure structureInstance) - { - var dictionary = new Dictionary - { - { "@type", "Structure" }, - { "@id", structureInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", structureInstance.AliasIds); - dictionary.Add("declaredName", structureInstance.DeclaredName); - dictionary.Add("declaredShortName", structureInstance.DeclaredShortName); - dictionary.Add("elementId", structureInstance.ElementId); - dictionary.Add("isAbstract", structureInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", structureInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", structureInstance.IsSufficient); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", structureInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", structureInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IStructure structureInstance) - { - var dictionary = new Dictionary - { - { "@type", "Structure" }, - { "@id", structureInstance.Id } - }; - - dictionary.Add("aliasIds", structureInstance.AliasIds); - dictionary.Add("declaredName", structureInstance.DeclaredName); - dictionary.Add("declaredShortName", structureInstance.DeclaredShortName); - dictionary.Add("elementId", structureInstance.ElementId); - dictionary.Add("isAbstract", structureInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", structureInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", structureInstance.IsSufficient); - dictionary.Add("ownedRelationship", structureInstance.OwnedRelationship); - dictionary.Add("owningRelationship", structureInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IStructure ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IStructure structureInstance)) - { - throw new ArgumentException("The dataItem must be of Type IStructure", "dataItem"); - } - - return structureInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SubclassificationDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SubclassificationDictionaryWriter.cs deleted file mode 100644 index 6e1dc0317..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SubclassificationDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class SubclassificationDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var subclassificationInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(subclassificationInstance); - case DictionaryKind.Simplified: - return WriteSimplified(subclassificationInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ISubclassification subclassificationInstance) - { - var dictionary = new Dictionary - { - { "@type", "Subclassification" }, - { "@id", subclassificationInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", subclassificationInstance.AliasIds); - dictionary.Add("declaredName", subclassificationInstance.DeclaredName); - dictionary.Add("declaredShortName", subclassificationInstance.DeclaredShortName); - dictionary.Add("elementId", subclassificationInstance.ElementId); - dictionary.Add("general", subclassificationInstance.General.ToString()); - dictionary.Add("isImplied", subclassificationInstance.IsImplied); - dictionary.Add("isImpliedIncluded", subclassificationInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", subclassificationInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", subclassificationInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", subclassificationInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", subclassificationInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", subclassificationInstance.Source)} ]"); - dictionary.Add("specific", subclassificationInstance.Specific.ToString()); - dictionary.Add("subclassifier", subclassificationInstance.Subclassifier.ToString()); - dictionary.Add("superclassifier", subclassificationInstance.Superclassifier.ToString()); - dictionary.Add("target", $"[ {string.Join(",", subclassificationInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ISubclassification subclassificationInstance) - { - var dictionary = new Dictionary - { - { "@type", "Subclassification" }, - { "@id", subclassificationInstance.Id } - }; - - dictionary.Add("aliasIds", subclassificationInstance.AliasIds); - dictionary.Add("declaredName", subclassificationInstance.DeclaredName); - dictionary.Add("declaredShortName", subclassificationInstance.DeclaredShortName); - dictionary.Add("elementId", subclassificationInstance.ElementId); - dictionary.Add("general", subclassificationInstance.General); - dictionary.Add("isImplied", subclassificationInstance.IsImplied); - dictionary.Add("isImpliedIncluded", subclassificationInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", subclassificationInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", subclassificationInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", subclassificationInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", subclassificationInstance.OwningRelationship); - dictionary.Add("source", subclassificationInstance.Source); - dictionary.Add("specific", subclassificationInstance.Specific); - dictionary.Add("subclassifier", subclassificationInstance.Subclassifier); - dictionary.Add("superclassifier", subclassificationInstance.Superclassifier); - dictionary.Add("target", subclassificationInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISubclassification ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ISubclassification subclassificationInstance)) - { - throw new ArgumentException("The dataItem must be of Type ISubclassification", "dataItem"); - } - - return subclassificationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SubjectMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SubjectMembershipDictionaryWriter.cs deleted file mode 100644 index 709a8cf18..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SubjectMembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class SubjectMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var subjectMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(subjectMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(subjectMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ISubjectMembership subjectMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "SubjectMembership" }, - { "@id", subjectMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", subjectMembershipInstance.AliasIds); - dictionary.Add("declaredName", subjectMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", subjectMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", subjectMembershipInstance.ElementId); - dictionary.Add("isImplied", subjectMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", subjectMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", subjectMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", subjectMembershipInstance.MemberName); - dictionary.Add("memberShortName", subjectMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", subjectMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", subjectMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", subjectMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", subjectMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", subjectMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", subjectMembershipInstance.Target)} ]"); - dictionary.Add("visibility", subjectMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ISubjectMembership subjectMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "SubjectMembership" }, - { "@id", subjectMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", subjectMembershipInstance.AliasIds); - dictionary.Add("declaredName", subjectMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", subjectMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", subjectMembershipInstance.ElementId); - dictionary.Add("isImplied", subjectMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", subjectMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", subjectMembershipInstance.MemberElement); - dictionary.Add("memberName", subjectMembershipInstance.MemberName); - dictionary.Add("memberShortName", subjectMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", subjectMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", subjectMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", subjectMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", subjectMembershipInstance.OwningRelationship); - dictionary.Add("source", subjectMembershipInstance.Source); - dictionary.Add("target", subjectMembershipInstance.Target); - dictionary.Add("visibility", subjectMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISubjectMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ISubjectMembership subjectMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type ISubjectMembership", "dataItem"); - } - - return subjectMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SubsettingDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SubsettingDictionaryWriter.cs deleted file mode 100644 index 284fb0ff7..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SubsettingDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class SubsettingDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var subsettingInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(subsettingInstance); - case DictionaryKind.Simplified: - return WriteSimplified(subsettingInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ISubsetting subsettingInstance) - { - var dictionary = new Dictionary - { - { "@type", "Subsetting" }, - { "@id", subsettingInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", subsettingInstance.AliasIds); - dictionary.Add("declaredName", subsettingInstance.DeclaredName); - dictionary.Add("declaredShortName", subsettingInstance.DeclaredShortName); - dictionary.Add("elementId", subsettingInstance.ElementId); - dictionary.Add("general", subsettingInstance.General.ToString()); - dictionary.Add("isImplied", subsettingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", subsettingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", subsettingInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", subsettingInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", subsettingInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", subsettingInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", subsettingInstance.Source)} ]"); - dictionary.Add("specific", subsettingInstance.Specific.ToString()); - dictionary.Add("subsettedFeature", subsettingInstance.SubsettedFeature.ToString()); - dictionary.Add("subsettingFeature", subsettingInstance.SubsettingFeature.ToString()); - dictionary.Add("target", $"[ {string.Join(",", subsettingInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ISubsetting subsettingInstance) - { - var dictionary = new Dictionary - { - { "@type", "Subsetting" }, - { "@id", subsettingInstance.Id } - }; - - dictionary.Add("aliasIds", subsettingInstance.AliasIds); - dictionary.Add("declaredName", subsettingInstance.DeclaredName); - dictionary.Add("declaredShortName", subsettingInstance.DeclaredShortName); - dictionary.Add("elementId", subsettingInstance.ElementId); - dictionary.Add("general", subsettingInstance.General); - dictionary.Add("isImplied", subsettingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", subsettingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", subsettingInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", subsettingInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", subsettingInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", subsettingInstance.OwningRelationship); - dictionary.Add("source", subsettingInstance.Source); - dictionary.Add("specific", subsettingInstance.Specific); - dictionary.Add("subsettedFeature", subsettingInstance.SubsettedFeature); - dictionary.Add("subsettingFeature", subsettingInstance.SubsettingFeature); - dictionary.Add("target", subsettingInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISubsetting ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ISubsetting subsettingInstance)) - { - throw new ArgumentException("The dataItem must be of Type ISubsetting", "dataItem"); - } - - return subsettingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionAsUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionAsUsageDictionaryWriter.cs deleted file mode 100644 index d4d3ca635..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionAsUsageDictionaryWriter.cs +++ /dev/null @@ -1,223 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class SuccessionAsUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var successionAsUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(successionAsUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(successionAsUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ISuccessionAsUsage successionAsUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "SuccessionAsUsage" }, - { "@id", successionAsUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", successionAsUsageInstance.AliasIds); - dictionary.Add("declaredName", successionAsUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", successionAsUsageInstance.DeclaredShortName); - dictionary.Add("direction", successionAsUsageInstance.Direction); - dictionary.Add("elementId", successionAsUsageInstance.ElementId); - dictionary.Add("isAbstract", successionAsUsageInstance.IsAbstract); - dictionary.Add("isComposite", successionAsUsageInstance.IsComposite); - dictionary.Add("isConstant", successionAsUsageInstance.IsConstant); - dictionary.Add("isDerived", successionAsUsageInstance.IsDerived); - dictionary.Add("isEnd", successionAsUsageInstance.IsEnd); - dictionary.Add("isImplied", successionAsUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", successionAsUsageInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", successionAsUsageInstance.IsOrdered); - dictionary.Add("isPortion", successionAsUsageInstance.IsPortion); - dictionary.Add("isSufficient", successionAsUsageInstance.IsSufficient); - dictionary.Add("isUnique", successionAsUsageInstance.IsUnique); - dictionary.Add("isVariable", successionAsUsageInstance.IsVariable); - dictionary.Add("isVariation", successionAsUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", successionAsUsageInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", successionAsUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", successionAsUsageInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", successionAsUsageInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", successionAsUsageInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", successionAsUsageInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ISuccessionAsUsage successionAsUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "SuccessionAsUsage" }, - { "@id", successionAsUsageInstance.Id } - }; - - dictionary.Add("aliasIds", successionAsUsageInstance.AliasIds); - dictionary.Add("declaredName", successionAsUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", successionAsUsageInstance.DeclaredShortName); - dictionary.Add("direction", successionAsUsageInstance.Direction); - dictionary.Add("elementId", successionAsUsageInstance.ElementId); - dictionary.Add("isAbstract", successionAsUsageInstance.IsAbstract); - dictionary.Add("isComposite", successionAsUsageInstance.IsComposite); - dictionary.Add("isConstant", successionAsUsageInstance.IsConstant); - dictionary.Add("isDerived", successionAsUsageInstance.IsDerived); - dictionary.Add("isEnd", successionAsUsageInstance.IsEnd); - dictionary.Add("isImplied", successionAsUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", successionAsUsageInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", successionAsUsageInstance.IsOrdered); - dictionary.Add("isPortion", successionAsUsageInstance.IsPortion); - dictionary.Add("isSufficient", successionAsUsageInstance.IsSufficient); - dictionary.Add("isUnique", successionAsUsageInstance.IsUnique); - dictionary.Add("isVariable", successionAsUsageInstance.IsVariable); - dictionary.Add("isVariation", successionAsUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", successionAsUsageInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", successionAsUsageInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", successionAsUsageInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", successionAsUsageInstance.OwningRelationship); - dictionary.Add("source", successionAsUsageInstance.Source); - dictionary.Add("target", successionAsUsageInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISuccessionAsUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ISuccessionAsUsage successionAsUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type ISuccessionAsUsage", "dataItem"); - } - - return successionAsUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionDictionaryWriter.cs deleted file mode 100644 index d204137a4..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionDictionaryWriter.cs +++ /dev/null @@ -1,221 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class SuccessionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var successionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(successionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(successionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ISuccession successionInstance) - { - var dictionary = new Dictionary - { - { "@type", "Succession" }, - { "@id", successionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", successionInstance.AliasIds); - dictionary.Add("declaredName", successionInstance.DeclaredName); - dictionary.Add("declaredShortName", successionInstance.DeclaredShortName); - dictionary.Add("direction", successionInstance.Direction); - dictionary.Add("elementId", successionInstance.ElementId); - dictionary.Add("isAbstract", successionInstance.IsAbstract); - dictionary.Add("isComposite", successionInstance.IsComposite); - dictionary.Add("isConstant", successionInstance.IsConstant); - dictionary.Add("isDerived", successionInstance.IsDerived); - dictionary.Add("isEnd", successionInstance.IsEnd); - dictionary.Add("isImplied", successionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", successionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", successionInstance.IsOrdered); - dictionary.Add("isPortion", successionInstance.IsPortion); - dictionary.Add("isSufficient", successionInstance.IsSufficient); - dictionary.Add("isUnique", successionInstance.IsUnique); - dictionary.Add("isVariable", successionInstance.IsVariable); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", successionInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", successionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", successionInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", successionInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", successionInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", successionInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ISuccession successionInstance) - { - var dictionary = new Dictionary - { - { "@type", "Succession" }, - { "@id", successionInstance.Id } - }; - - dictionary.Add("aliasIds", successionInstance.AliasIds); - dictionary.Add("declaredName", successionInstance.DeclaredName); - dictionary.Add("declaredShortName", successionInstance.DeclaredShortName); - dictionary.Add("direction", successionInstance.Direction); - dictionary.Add("elementId", successionInstance.ElementId); - dictionary.Add("isAbstract", successionInstance.IsAbstract); - dictionary.Add("isComposite", successionInstance.IsComposite); - dictionary.Add("isConstant", successionInstance.IsConstant); - dictionary.Add("isDerived", successionInstance.IsDerived); - dictionary.Add("isEnd", successionInstance.IsEnd); - dictionary.Add("isImplied", successionInstance.IsImplied); - dictionary.Add("isImpliedIncluded", successionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", successionInstance.IsOrdered); - dictionary.Add("isPortion", successionInstance.IsPortion); - dictionary.Add("isSufficient", successionInstance.IsSufficient); - dictionary.Add("isUnique", successionInstance.IsUnique); - dictionary.Add("isVariable", successionInstance.IsVariable); - dictionary.Add("ownedRelatedElement", successionInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", successionInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", successionInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", successionInstance.OwningRelationship); - dictionary.Add("source", successionInstance.Source); - dictionary.Add("target", successionInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISuccession ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ISuccession successionInstance)) - { - throw new ArgumentException("The dataItem must be of Type ISuccession", "dataItem"); - } - - return successionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionFlowDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionFlowDictionaryWriter.cs deleted file mode 100644 index f6577d3ab..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionFlowDictionaryWriter.cs +++ /dev/null @@ -1,221 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class SuccessionFlowDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var successionFlowInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(successionFlowInstance); - case DictionaryKind.Simplified: - return WriteSimplified(successionFlowInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ISuccessionFlow successionFlowInstance) - { - var dictionary = new Dictionary - { - { "@type", "SuccessionFlow" }, - { "@id", successionFlowInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", successionFlowInstance.AliasIds); - dictionary.Add("declaredName", successionFlowInstance.DeclaredName); - dictionary.Add("declaredShortName", successionFlowInstance.DeclaredShortName); - dictionary.Add("direction", successionFlowInstance.Direction); - dictionary.Add("elementId", successionFlowInstance.ElementId); - dictionary.Add("isAbstract", successionFlowInstance.IsAbstract); - dictionary.Add("isComposite", successionFlowInstance.IsComposite); - dictionary.Add("isConstant", successionFlowInstance.IsConstant); - dictionary.Add("isDerived", successionFlowInstance.IsDerived); - dictionary.Add("isEnd", successionFlowInstance.IsEnd); - dictionary.Add("isImplied", successionFlowInstance.IsImplied); - dictionary.Add("isImpliedIncluded", successionFlowInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", successionFlowInstance.IsOrdered); - dictionary.Add("isPortion", successionFlowInstance.IsPortion); - dictionary.Add("isSufficient", successionFlowInstance.IsSufficient); - dictionary.Add("isUnique", successionFlowInstance.IsUnique); - dictionary.Add("isVariable", successionFlowInstance.IsVariable); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", successionFlowInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", successionFlowInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", successionFlowInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", successionFlowInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", successionFlowInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", successionFlowInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ISuccessionFlow successionFlowInstance) - { - var dictionary = new Dictionary - { - { "@type", "SuccessionFlow" }, - { "@id", successionFlowInstance.Id } - }; - - dictionary.Add("aliasIds", successionFlowInstance.AliasIds); - dictionary.Add("declaredName", successionFlowInstance.DeclaredName); - dictionary.Add("declaredShortName", successionFlowInstance.DeclaredShortName); - dictionary.Add("direction", successionFlowInstance.Direction); - dictionary.Add("elementId", successionFlowInstance.ElementId); - dictionary.Add("isAbstract", successionFlowInstance.IsAbstract); - dictionary.Add("isComposite", successionFlowInstance.IsComposite); - dictionary.Add("isConstant", successionFlowInstance.IsConstant); - dictionary.Add("isDerived", successionFlowInstance.IsDerived); - dictionary.Add("isEnd", successionFlowInstance.IsEnd); - dictionary.Add("isImplied", successionFlowInstance.IsImplied); - dictionary.Add("isImpliedIncluded", successionFlowInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", successionFlowInstance.IsOrdered); - dictionary.Add("isPortion", successionFlowInstance.IsPortion); - dictionary.Add("isSufficient", successionFlowInstance.IsSufficient); - dictionary.Add("isUnique", successionFlowInstance.IsUnique); - dictionary.Add("isVariable", successionFlowInstance.IsVariable); - dictionary.Add("ownedRelatedElement", successionFlowInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", successionFlowInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", successionFlowInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", successionFlowInstance.OwningRelationship); - dictionary.Add("source", successionFlowInstance.Source); - dictionary.Add("target", successionFlowInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISuccessionFlow ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ISuccessionFlow successionFlowInstance)) - { - throw new ArgumentException("The dataItem must be of Type ISuccessionFlow", "dataItem"); - } - - return successionFlowInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionFlowUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionFlowUsageDictionaryWriter.cs deleted file mode 100644 index 29883f7e5..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/SuccessionFlowUsageDictionaryWriter.cs +++ /dev/null @@ -1,227 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class SuccessionFlowUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var successionFlowUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(successionFlowUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(successionFlowUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ISuccessionFlowUsage successionFlowUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "SuccessionFlowUsage" }, - { "@id", successionFlowUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", successionFlowUsageInstance.AliasIds); - dictionary.Add("declaredName", successionFlowUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", successionFlowUsageInstance.DeclaredShortName); - dictionary.Add("direction", successionFlowUsageInstance.Direction); - dictionary.Add("elementId", successionFlowUsageInstance.ElementId); - dictionary.Add("isAbstract", successionFlowUsageInstance.IsAbstract); - dictionary.Add("isComposite", successionFlowUsageInstance.IsComposite); - dictionary.Add("isConstant", successionFlowUsageInstance.IsConstant); - dictionary.Add("isDerived", successionFlowUsageInstance.IsDerived); - dictionary.Add("isEnd", successionFlowUsageInstance.IsEnd); - dictionary.Add("isImplied", successionFlowUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", successionFlowUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", successionFlowUsageInstance.IsIndividual); - dictionary.Add("isOrdered", successionFlowUsageInstance.IsOrdered); - dictionary.Add("isPortion", successionFlowUsageInstance.IsPortion); - dictionary.Add("isSufficient", successionFlowUsageInstance.IsSufficient); - dictionary.Add("isUnique", successionFlowUsageInstance.IsUnique); - dictionary.Add("isVariable", successionFlowUsageInstance.IsVariable); - dictionary.Add("isVariation", successionFlowUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", successionFlowUsageInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", successionFlowUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", successionFlowUsageInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", successionFlowUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", successionFlowUsageInstance.PortionKind); - dictionary.Add("source", $"[ {string.Join(",", successionFlowUsageInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", successionFlowUsageInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ISuccessionFlowUsage successionFlowUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "SuccessionFlowUsage" }, - { "@id", successionFlowUsageInstance.Id } - }; - - dictionary.Add("aliasIds", successionFlowUsageInstance.AliasIds); - dictionary.Add("declaredName", successionFlowUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", successionFlowUsageInstance.DeclaredShortName); - dictionary.Add("direction", successionFlowUsageInstance.Direction); - dictionary.Add("elementId", successionFlowUsageInstance.ElementId); - dictionary.Add("isAbstract", successionFlowUsageInstance.IsAbstract); - dictionary.Add("isComposite", successionFlowUsageInstance.IsComposite); - dictionary.Add("isConstant", successionFlowUsageInstance.IsConstant); - dictionary.Add("isDerived", successionFlowUsageInstance.IsDerived); - dictionary.Add("isEnd", successionFlowUsageInstance.IsEnd); - dictionary.Add("isImplied", successionFlowUsageInstance.IsImplied); - dictionary.Add("isImpliedIncluded", successionFlowUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", successionFlowUsageInstance.IsIndividual); - dictionary.Add("isOrdered", successionFlowUsageInstance.IsOrdered); - dictionary.Add("isPortion", successionFlowUsageInstance.IsPortion); - dictionary.Add("isSufficient", successionFlowUsageInstance.IsSufficient); - dictionary.Add("isUnique", successionFlowUsageInstance.IsUnique); - dictionary.Add("isVariable", successionFlowUsageInstance.IsVariable); - dictionary.Add("isVariation", successionFlowUsageInstance.IsVariation); - dictionary.Add("ownedRelatedElement", successionFlowUsageInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", successionFlowUsageInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", successionFlowUsageInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", successionFlowUsageInstance.OwningRelationship); - dictionary.Add("portionKind", successionFlowUsageInstance.PortionKind); - dictionary.Add("source", successionFlowUsageInstance.Source); - dictionary.Add("target", successionFlowUsageInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ISuccessionFlowUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ISuccessionFlowUsage successionFlowUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type ISuccessionFlowUsage", "dataItem"); - } - - return successionFlowUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TerminateActionUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TerminateActionUsageDictionaryWriter.cs deleted file mode 100644 index c2c970a9c..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TerminateActionUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class TerminateActionUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var terminateActionUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(terminateActionUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(terminateActionUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ITerminateActionUsage terminateActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "TerminateActionUsage" }, - { "@id", terminateActionUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", terminateActionUsageInstance.AliasIds); - dictionary.Add("declaredName", terminateActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", terminateActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", terminateActionUsageInstance.Direction); - dictionary.Add("elementId", terminateActionUsageInstance.ElementId); - dictionary.Add("isAbstract", terminateActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", terminateActionUsageInstance.IsComposite); - dictionary.Add("isConstant", terminateActionUsageInstance.IsConstant); - dictionary.Add("isDerived", terminateActionUsageInstance.IsDerived); - dictionary.Add("isEnd", terminateActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", terminateActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", terminateActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", terminateActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", terminateActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", terminateActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", terminateActionUsageInstance.IsUnique); - dictionary.Add("isVariable", terminateActionUsageInstance.IsVariable); - dictionary.Add("isVariation", terminateActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", terminateActionUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", terminateActionUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", terminateActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ITerminateActionUsage terminateActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "TerminateActionUsage" }, - { "@id", terminateActionUsageInstance.Id } - }; - - dictionary.Add("aliasIds", terminateActionUsageInstance.AliasIds); - dictionary.Add("declaredName", terminateActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", terminateActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", terminateActionUsageInstance.Direction); - dictionary.Add("elementId", terminateActionUsageInstance.ElementId); - dictionary.Add("isAbstract", terminateActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", terminateActionUsageInstance.IsComposite); - dictionary.Add("isConstant", terminateActionUsageInstance.IsConstant); - dictionary.Add("isDerived", terminateActionUsageInstance.IsDerived); - dictionary.Add("isEnd", terminateActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", terminateActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", terminateActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", terminateActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", terminateActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", terminateActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", terminateActionUsageInstance.IsUnique); - dictionary.Add("isVariable", terminateActionUsageInstance.IsVariable); - dictionary.Add("isVariation", terminateActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", terminateActionUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", terminateActionUsageInstance.OwningRelationship); - dictionary.Add("portionKind", terminateActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ITerminateActionUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ITerminateActionUsage terminateActionUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type ITerminateActionUsage", "dataItem"); - } - - return terminateActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TextualRepresentationDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TextualRepresentationDictionaryWriter.cs deleted file mode 100644 index 468bc703b..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TextualRepresentationDictionaryWriter.cs +++ /dev/null @@ -1,193 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class TextualRepresentationDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var textualRepresentationInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(textualRepresentationInstance); - case DictionaryKind.Simplified: - return WriteSimplified(textualRepresentationInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ITextualRepresentation textualRepresentationInstance) - { - var dictionary = new Dictionary - { - { "@type", "TextualRepresentation" }, - { "@id", textualRepresentationInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", textualRepresentationInstance.AliasIds); - dictionary.Add("body", textualRepresentationInstance.Body); - dictionary.Add("declaredName", textualRepresentationInstance.DeclaredName); - dictionary.Add("declaredShortName", textualRepresentationInstance.DeclaredShortName); - dictionary.Add("elementId", textualRepresentationInstance.ElementId); - dictionary.Add("isImpliedIncluded", textualRepresentationInstance.IsImpliedIncluded); - dictionary.Add("language", textualRepresentationInstance.Language); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", textualRepresentationInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", textualRepresentationInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ITextualRepresentation textualRepresentationInstance) - { - var dictionary = new Dictionary - { - { "@type", "TextualRepresentation" }, - { "@id", textualRepresentationInstance.Id } - }; - - dictionary.Add("aliasIds", textualRepresentationInstance.AliasIds); - dictionary.Add("body", textualRepresentationInstance.Body); - dictionary.Add("declaredName", textualRepresentationInstance.DeclaredName); - dictionary.Add("declaredShortName", textualRepresentationInstance.DeclaredShortName); - dictionary.Add("elementId", textualRepresentationInstance.ElementId); - dictionary.Add("isImpliedIncluded", textualRepresentationInstance.IsImpliedIncluded); - dictionary.Add("language", textualRepresentationInstance.Language); - dictionary.Add("ownedRelationship", textualRepresentationInstance.OwnedRelationship); - dictionary.Add("owningRelationship", textualRepresentationInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ITextualRepresentation ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ITextualRepresentation textualRepresentationInstance)) - { - throw new ArgumentException("The dataItem must be of Type ITextualRepresentation", "dataItem"); - } - - return textualRepresentationInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TransitionFeatureMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TransitionFeatureMembershipDictionaryWriter.cs deleted file mode 100644 index 09c190069..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TransitionFeatureMembershipDictionaryWriter.cs +++ /dev/null @@ -1,209 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class TransitionFeatureMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var transitionFeatureMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(transitionFeatureMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(transitionFeatureMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ITransitionFeatureMembership transitionFeatureMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "TransitionFeatureMembership" }, - { "@id", transitionFeatureMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", transitionFeatureMembershipInstance.AliasIds); - dictionary.Add("declaredName", transitionFeatureMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", transitionFeatureMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", transitionFeatureMembershipInstance.ElementId); - dictionary.Add("isImplied", transitionFeatureMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", transitionFeatureMembershipInstance.IsImpliedIncluded); - dictionary.Add("kind", transitionFeatureMembershipInstance.Kind); - dictionary.Add("memberElement", transitionFeatureMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", transitionFeatureMembershipInstance.MemberName); - dictionary.Add("memberShortName", transitionFeatureMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", transitionFeatureMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", transitionFeatureMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", transitionFeatureMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", transitionFeatureMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", transitionFeatureMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", transitionFeatureMembershipInstance.Target)} ]"); - dictionary.Add("visibility", transitionFeatureMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ITransitionFeatureMembership transitionFeatureMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "TransitionFeatureMembership" }, - { "@id", transitionFeatureMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", transitionFeatureMembershipInstance.AliasIds); - dictionary.Add("declaredName", transitionFeatureMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", transitionFeatureMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", transitionFeatureMembershipInstance.ElementId); - dictionary.Add("isImplied", transitionFeatureMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", transitionFeatureMembershipInstance.IsImpliedIncluded); - dictionary.Add("kind", transitionFeatureMembershipInstance.Kind); - dictionary.Add("memberElement", transitionFeatureMembershipInstance.MemberElement); - dictionary.Add("memberName", transitionFeatureMembershipInstance.MemberName); - dictionary.Add("memberShortName", transitionFeatureMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", transitionFeatureMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", transitionFeatureMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", transitionFeatureMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", transitionFeatureMembershipInstance.OwningRelationship); - dictionary.Add("source", transitionFeatureMembershipInstance.Source); - dictionary.Add("target", transitionFeatureMembershipInstance.Target); - dictionary.Add("visibility", transitionFeatureMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ITransitionFeatureMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ITransitionFeatureMembership transitionFeatureMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type ITransitionFeatureMembership", "dataItem"); - } - - return transitionFeatureMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TransitionUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TransitionUsageDictionaryWriter.cs deleted file mode 100644 index 4bceeda44..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TransitionUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class TransitionUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var transitionUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(transitionUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(transitionUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ITransitionUsage transitionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "TransitionUsage" }, - { "@id", transitionUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", transitionUsageInstance.AliasIds); - dictionary.Add("declaredName", transitionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", transitionUsageInstance.DeclaredShortName); - dictionary.Add("direction", transitionUsageInstance.Direction); - dictionary.Add("elementId", transitionUsageInstance.ElementId); - dictionary.Add("isAbstract", transitionUsageInstance.IsAbstract); - dictionary.Add("isComposite", transitionUsageInstance.IsComposite); - dictionary.Add("isConstant", transitionUsageInstance.IsConstant); - dictionary.Add("isDerived", transitionUsageInstance.IsDerived); - dictionary.Add("isEnd", transitionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", transitionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", transitionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", transitionUsageInstance.IsOrdered); - dictionary.Add("isPortion", transitionUsageInstance.IsPortion); - dictionary.Add("isSufficient", transitionUsageInstance.IsSufficient); - dictionary.Add("isUnique", transitionUsageInstance.IsUnique); - dictionary.Add("isVariable", transitionUsageInstance.IsVariable); - dictionary.Add("isVariation", transitionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", transitionUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", transitionUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", transitionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ITransitionUsage transitionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "TransitionUsage" }, - { "@id", transitionUsageInstance.Id } - }; - - dictionary.Add("aliasIds", transitionUsageInstance.AliasIds); - dictionary.Add("declaredName", transitionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", transitionUsageInstance.DeclaredShortName); - dictionary.Add("direction", transitionUsageInstance.Direction); - dictionary.Add("elementId", transitionUsageInstance.ElementId); - dictionary.Add("isAbstract", transitionUsageInstance.IsAbstract); - dictionary.Add("isComposite", transitionUsageInstance.IsComposite); - dictionary.Add("isConstant", transitionUsageInstance.IsConstant); - dictionary.Add("isDerived", transitionUsageInstance.IsDerived); - dictionary.Add("isEnd", transitionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", transitionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", transitionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", transitionUsageInstance.IsOrdered); - dictionary.Add("isPortion", transitionUsageInstance.IsPortion); - dictionary.Add("isSufficient", transitionUsageInstance.IsSufficient); - dictionary.Add("isUnique", transitionUsageInstance.IsUnique); - dictionary.Add("isVariable", transitionUsageInstance.IsVariable); - dictionary.Add("isVariation", transitionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", transitionUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", transitionUsageInstance.OwningRelationship); - dictionary.Add("portionKind", transitionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ITransitionUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ITransitionUsage transitionUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type ITransitionUsage", "dataItem"); - } - - return transitionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TriggerInvocationExpressionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TriggerInvocationExpressionDictionaryWriter.cs deleted file mode 100644 index f26b15669..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TriggerInvocationExpressionDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class TriggerInvocationExpressionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var triggerInvocationExpressionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(triggerInvocationExpressionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(triggerInvocationExpressionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ITriggerInvocationExpression triggerInvocationExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "TriggerInvocationExpression" }, - { "@id", triggerInvocationExpressionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", triggerInvocationExpressionInstance.AliasIds); - dictionary.Add("declaredName", triggerInvocationExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", triggerInvocationExpressionInstance.DeclaredShortName); - dictionary.Add("direction", triggerInvocationExpressionInstance.Direction); - dictionary.Add("elementId", triggerInvocationExpressionInstance.ElementId); - dictionary.Add("isAbstract", triggerInvocationExpressionInstance.IsAbstract); - dictionary.Add("isComposite", triggerInvocationExpressionInstance.IsComposite); - dictionary.Add("isConstant", triggerInvocationExpressionInstance.IsConstant); - dictionary.Add("isDerived", triggerInvocationExpressionInstance.IsDerived); - dictionary.Add("isEnd", triggerInvocationExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", triggerInvocationExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", triggerInvocationExpressionInstance.IsOrdered); - dictionary.Add("isPortion", triggerInvocationExpressionInstance.IsPortion); - dictionary.Add("isSufficient", triggerInvocationExpressionInstance.IsSufficient); - dictionary.Add("isUnique", triggerInvocationExpressionInstance.IsUnique); - dictionary.Add("isVariable", triggerInvocationExpressionInstance.IsVariable); - dictionary.Add("kind", triggerInvocationExpressionInstance.Kind); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", triggerInvocationExpressionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", triggerInvocationExpressionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ITriggerInvocationExpression triggerInvocationExpressionInstance) - { - var dictionary = new Dictionary - { - { "@type", "TriggerInvocationExpression" }, - { "@id", triggerInvocationExpressionInstance.Id } - }; - - dictionary.Add("aliasIds", triggerInvocationExpressionInstance.AliasIds); - dictionary.Add("declaredName", triggerInvocationExpressionInstance.DeclaredName); - dictionary.Add("declaredShortName", triggerInvocationExpressionInstance.DeclaredShortName); - dictionary.Add("direction", triggerInvocationExpressionInstance.Direction); - dictionary.Add("elementId", triggerInvocationExpressionInstance.ElementId); - dictionary.Add("isAbstract", triggerInvocationExpressionInstance.IsAbstract); - dictionary.Add("isComposite", triggerInvocationExpressionInstance.IsComposite); - dictionary.Add("isConstant", triggerInvocationExpressionInstance.IsConstant); - dictionary.Add("isDerived", triggerInvocationExpressionInstance.IsDerived); - dictionary.Add("isEnd", triggerInvocationExpressionInstance.IsEnd); - dictionary.Add("isImpliedIncluded", triggerInvocationExpressionInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", triggerInvocationExpressionInstance.IsOrdered); - dictionary.Add("isPortion", triggerInvocationExpressionInstance.IsPortion); - dictionary.Add("isSufficient", triggerInvocationExpressionInstance.IsSufficient); - dictionary.Add("isUnique", triggerInvocationExpressionInstance.IsUnique); - dictionary.Add("isVariable", triggerInvocationExpressionInstance.IsVariable); - dictionary.Add("kind", triggerInvocationExpressionInstance.Kind); - dictionary.Add("ownedRelationship", triggerInvocationExpressionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", triggerInvocationExpressionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ITriggerInvocationExpression ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ITriggerInvocationExpression triggerInvocationExpressionInstance)) - { - throw new ArgumentException("The dataItem must be of Type ITriggerInvocationExpression", "dataItem"); - } - - return triggerInvocationExpressionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TypeDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TypeDictionaryWriter.cs deleted file mode 100644 index e4f287218..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TypeDictionaryWriter.cs +++ /dev/null @@ -1,193 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class TypeDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var typeInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(typeInstance); - case DictionaryKind.Simplified: - return WriteSimplified(typeInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IType typeInstance) - { - var dictionary = new Dictionary - { - { "@type", "Type" }, - { "@id", typeInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", typeInstance.AliasIds); - dictionary.Add("declaredName", typeInstance.DeclaredName); - dictionary.Add("declaredShortName", typeInstance.DeclaredShortName); - dictionary.Add("elementId", typeInstance.ElementId); - dictionary.Add("isAbstract", typeInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", typeInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", typeInstance.IsSufficient); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", typeInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", typeInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IType typeInstance) - { - var dictionary = new Dictionary - { - { "@type", "Type" }, - { "@id", typeInstance.Id } - }; - - dictionary.Add("aliasIds", typeInstance.AliasIds); - dictionary.Add("declaredName", typeInstance.DeclaredName); - dictionary.Add("declaredShortName", typeInstance.DeclaredShortName); - dictionary.Add("elementId", typeInstance.ElementId); - dictionary.Add("isAbstract", typeInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", typeInstance.IsImpliedIncluded); - dictionary.Add("isSufficient", typeInstance.IsSufficient); - dictionary.Add("ownedRelationship", typeInstance.OwnedRelationship); - dictionary.Add("owningRelationship", typeInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IType ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IType typeInstance)) - { - throw new ArgumentException("The dataItem must be of Type IType", "dataItem"); - } - - return typeInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TypeFeaturingDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TypeFeaturingDictionaryWriter.cs deleted file mode 100644 index c56269b14..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/TypeFeaturingDictionaryWriter.cs +++ /dev/null @@ -1,203 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class TypeFeaturingDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var typeFeaturingInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(typeFeaturingInstance); - case DictionaryKind.Simplified: - return WriteSimplified(typeFeaturingInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(ITypeFeaturing typeFeaturingInstance) - { - var dictionary = new Dictionary - { - { "@type", "TypeFeaturing" }, - { "@id", typeFeaturingInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", typeFeaturingInstance.AliasIds); - dictionary.Add("declaredName", typeFeaturingInstance.DeclaredName); - dictionary.Add("declaredShortName", typeFeaturingInstance.DeclaredShortName); - dictionary.Add("elementId", typeFeaturingInstance.ElementId); - dictionary.Add("featureOfType", typeFeaturingInstance.FeatureOfType.ToString()); - dictionary.Add("featuringType", typeFeaturingInstance.FeaturingType.ToString()); - dictionary.Add("isImplied", typeFeaturingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", typeFeaturingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", typeFeaturingInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", typeFeaturingInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", typeFeaturingInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", typeFeaturingInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", typeFeaturingInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", typeFeaturingInstance.Target)} ]"); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(ITypeFeaturing typeFeaturingInstance) - { - var dictionary = new Dictionary - { - { "@type", "TypeFeaturing" }, - { "@id", typeFeaturingInstance.Id } - }; - - dictionary.Add("aliasIds", typeFeaturingInstance.AliasIds); - dictionary.Add("declaredName", typeFeaturingInstance.DeclaredName); - dictionary.Add("declaredShortName", typeFeaturingInstance.DeclaredShortName); - dictionary.Add("elementId", typeFeaturingInstance.ElementId); - dictionary.Add("featureOfType", typeFeaturingInstance.FeatureOfType); - dictionary.Add("featuringType", typeFeaturingInstance.FeaturingType); - dictionary.Add("isImplied", typeFeaturingInstance.IsImplied); - dictionary.Add("isImpliedIncluded", typeFeaturingInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", typeFeaturingInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", typeFeaturingInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", typeFeaturingInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", typeFeaturingInstance.OwningRelationship); - dictionary.Add("source", typeFeaturingInstance.Source); - dictionary.Add("target", typeFeaturingInstance.Target); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static ITypeFeaturing ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is ITypeFeaturing typeFeaturingInstance)) - { - throw new ArgumentException("The dataItem must be of Type ITypeFeaturing", "dataItem"); - } - - return typeFeaturingInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UnioningDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UnioningDictionaryWriter.cs deleted file mode 100644 index 536883a20..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UnioningDictionaryWriter.cs +++ /dev/null @@ -1,201 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class UnioningDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var unioningInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(unioningInstance); - case DictionaryKind.Simplified: - return WriteSimplified(unioningInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IUnioning unioningInstance) - { - var dictionary = new Dictionary - { - { "@type", "Unioning" }, - { "@id", unioningInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", unioningInstance.AliasIds); - dictionary.Add("declaredName", unioningInstance.DeclaredName); - dictionary.Add("declaredShortName", unioningInstance.DeclaredShortName); - dictionary.Add("elementId", unioningInstance.ElementId); - dictionary.Add("isImplied", unioningInstance.IsImplied); - dictionary.Add("isImpliedIncluded", unioningInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", unioningInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", unioningInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", unioningInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", unioningInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", unioningInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", unioningInstance.Target)} ]"); - dictionary.Add("unioningType", unioningInstance.UnioningType.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IUnioning unioningInstance) - { - var dictionary = new Dictionary - { - { "@type", "Unioning" }, - { "@id", unioningInstance.Id } - }; - - dictionary.Add("aliasIds", unioningInstance.AliasIds); - dictionary.Add("declaredName", unioningInstance.DeclaredName); - dictionary.Add("declaredShortName", unioningInstance.DeclaredShortName); - dictionary.Add("elementId", unioningInstance.ElementId); - dictionary.Add("isImplied", unioningInstance.IsImplied); - dictionary.Add("isImpliedIncluded", unioningInstance.IsImpliedIncluded); - dictionary.Add("ownedRelatedElement", unioningInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", unioningInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", unioningInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", unioningInstance.OwningRelationship); - dictionary.Add("source", unioningInstance.Source); - dictionary.Add("target", unioningInstance.Target); - dictionary.Add("unioningType", unioningInstance.UnioningType); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IUnioning ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IUnioning unioningInstance)) - { - throw new ArgumentException("The dataItem must be of Type IUnioning", "dataItem"); - } - - return unioningInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UsageDictionaryWriter.cs deleted file mode 100644 index 2eb067ea9..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UsageDictionaryWriter.cs +++ /dev/null @@ -1,213 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class UsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var usageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(usageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(usageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IUsage usageInstance) - { - var dictionary = new Dictionary - { - { "@type", "Usage" }, - { "@id", usageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", usageInstance.AliasIds); - dictionary.Add("declaredName", usageInstance.DeclaredName); - dictionary.Add("declaredShortName", usageInstance.DeclaredShortName); - dictionary.Add("direction", usageInstance.Direction); - dictionary.Add("elementId", usageInstance.ElementId); - dictionary.Add("isAbstract", usageInstance.IsAbstract); - dictionary.Add("isComposite", usageInstance.IsComposite); - dictionary.Add("isConstant", usageInstance.IsConstant); - dictionary.Add("isDerived", usageInstance.IsDerived); - dictionary.Add("isEnd", usageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", usageInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", usageInstance.IsOrdered); - dictionary.Add("isPortion", usageInstance.IsPortion); - dictionary.Add("isSufficient", usageInstance.IsSufficient); - dictionary.Add("isUnique", usageInstance.IsUnique); - dictionary.Add("isVariable", usageInstance.IsVariable); - dictionary.Add("isVariation", usageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", usageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", usageInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IUsage usageInstance) - { - var dictionary = new Dictionary - { - { "@type", "Usage" }, - { "@id", usageInstance.Id } - }; - - dictionary.Add("aliasIds", usageInstance.AliasIds); - dictionary.Add("declaredName", usageInstance.DeclaredName); - dictionary.Add("declaredShortName", usageInstance.DeclaredShortName); - dictionary.Add("direction", usageInstance.Direction); - dictionary.Add("elementId", usageInstance.ElementId); - dictionary.Add("isAbstract", usageInstance.IsAbstract); - dictionary.Add("isComposite", usageInstance.IsComposite); - dictionary.Add("isConstant", usageInstance.IsConstant); - dictionary.Add("isDerived", usageInstance.IsDerived); - dictionary.Add("isEnd", usageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", usageInstance.IsImpliedIncluded); - dictionary.Add("isOrdered", usageInstance.IsOrdered); - dictionary.Add("isPortion", usageInstance.IsPortion); - dictionary.Add("isSufficient", usageInstance.IsSufficient); - dictionary.Add("isUnique", usageInstance.IsUnique); - dictionary.Add("isVariable", usageInstance.IsVariable); - dictionary.Add("isVariation", usageInstance.IsVariation); - dictionary.Add("ownedRelationship", usageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", usageInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IUsage usageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IUsage", "dataItem"); - } - - return usageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UseCaseDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UseCaseDefinitionDictionaryWriter.cs deleted file mode 100644 index 5f11936d3..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UseCaseDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class UseCaseDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var useCaseDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(useCaseDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(useCaseDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IUseCaseDefinition useCaseDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "UseCaseDefinition" }, - { "@id", useCaseDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", useCaseDefinitionInstance.AliasIds); - dictionary.Add("declaredName", useCaseDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", useCaseDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", useCaseDefinitionInstance.ElementId); - dictionary.Add("isAbstract", useCaseDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", useCaseDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", useCaseDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", useCaseDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", useCaseDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", useCaseDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", useCaseDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IUseCaseDefinition useCaseDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "UseCaseDefinition" }, - { "@id", useCaseDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", useCaseDefinitionInstance.AliasIds); - dictionary.Add("declaredName", useCaseDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", useCaseDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", useCaseDefinitionInstance.ElementId); - dictionary.Add("isAbstract", useCaseDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", useCaseDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", useCaseDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", useCaseDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", useCaseDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", useCaseDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", useCaseDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IUseCaseDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IUseCaseDefinition useCaseDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IUseCaseDefinition", "dataItem"); - } - - return useCaseDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UseCaseUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UseCaseUsageDictionaryWriter.cs deleted file mode 100644 index c9388a093..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/UseCaseUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class UseCaseUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var useCaseUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(useCaseUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(useCaseUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IUseCaseUsage useCaseUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "UseCaseUsage" }, - { "@id", useCaseUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", useCaseUsageInstance.AliasIds); - dictionary.Add("declaredName", useCaseUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", useCaseUsageInstance.DeclaredShortName); - dictionary.Add("direction", useCaseUsageInstance.Direction); - dictionary.Add("elementId", useCaseUsageInstance.ElementId); - dictionary.Add("isAbstract", useCaseUsageInstance.IsAbstract); - dictionary.Add("isComposite", useCaseUsageInstance.IsComposite); - dictionary.Add("isConstant", useCaseUsageInstance.IsConstant); - dictionary.Add("isDerived", useCaseUsageInstance.IsDerived); - dictionary.Add("isEnd", useCaseUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", useCaseUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", useCaseUsageInstance.IsIndividual); - dictionary.Add("isOrdered", useCaseUsageInstance.IsOrdered); - dictionary.Add("isPortion", useCaseUsageInstance.IsPortion); - dictionary.Add("isSufficient", useCaseUsageInstance.IsSufficient); - dictionary.Add("isUnique", useCaseUsageInstance.IsUnique); - dictionary.Add("isVariable", useCaseUsageInstance.IsVariable); - dictionary.Add("isVariation", useCaseUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", useCaseUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", useCaseUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", useCaseUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IUseCaseUsage useCaseUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "UseCaseUsage" }, - { "@id", useCaseUsageInstance.Id } - }; - - dictionary.Add("aliasIds", useCaseUsageInstance.AliasIds); - dictionary.Add("declaredName", useCaseUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", useCaseUsageInstance.DeclaredShortName); - dictionary.Add("direction", useCaseUsageInstance.Direction); - dictionary.Add("elementId", useCaseUsageInstance.ElementId); - dictionary.Add("isAbstract", useCaseUsageInstance.IsAbstract); - dictionary.Add("isComposite", useCaseUsageInstance.IsComposite); - dictionary.Add("isConstant", useCaseUsageInstance.IsConstant); - dictionary.Add("isDerived", useCaseUsageInstance.IsDerived); - dictionary.Add("isEnd", useCaseUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", useCaseUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", useCaseUsageInstance.IsIndividual); - dictionary.Add("isOrdered", useCaseUsageInstance.IsOrdered); - dictionary.Add("isPortion", useCaseUsageInstance.IsPortion); - dictionary.Add("isSufficient", useCaseUsageInstance.IsSufficient); - dictionary.Add("isUnique", useCaseUsageInstance.IsUnique); - dictionary.Add("isVariable", useCaseUsageInstance.IsVariable); - dictionary.Add("isVariation", useCaseUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", useCaseUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", useCaseUsageInstance.OwningRelationship); - dictionary.Add("portionKind", useCaseUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IUseCaseUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IUseCaseUsage useCaseUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IUseCaseUsage", "dataItem"); - } - - return useCaseUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/VariantMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/VariantMembershipDictionaryWriter.cs deleted file mode 100644 index 93e4064af..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/VariantMembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class VariantMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var variantMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(variantMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(variantMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IVariantMembership variantMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "VariantMembership" }, - { "@id", variantMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", variantMembershipInstance.AliasIds); - dictionary.Add("declaredName", variantMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", variantMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", variantMembershipInstance.ElementId); - dictionary.Add("isImplied", variantMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", variantMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", variantMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", variantMembershipInstance.MemberName); - dictionary.Add("memberShortName", variantMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", variantMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", variantMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", variantMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", variantMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", variantMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", variantMembershipInstance.Target)} ]"); - dictionary.Add("visibility", variantMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IVariantMembership variantMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "VariantMembership" }, - { "@id", variantMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", variantMembershipInstance.AliasIds); - dictionary.Add("declaredName", variantMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", variantMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", variantMembershipInstance.ElementId); - dictionary.Add("isImplied", variantMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", variantMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", variantMembershipInstance.MemberElement); - dictionary.Add("memberName", variantMembershipInstance.MemberName); - dictionary.Add("memberShortName", variantMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", variantMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", variantMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", variantMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", variantMembershipInstance.OwningRelationship); - dictionary.Add("source", variantMembershipInstance.Source); - dictionary.Add("target", variantMembershipInstance.Target); - dictionary.Add("visibility", variantMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IVariantMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IVariantMembership variantMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IVariantMembership", "dataItem"); - } - - return variantMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/VerificationCaseDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/VerificationCaseDefinitionDictionaryWriter.cs deleted file mode 100644 index 26991c255..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/VerificationCaseDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class VerificationCaseDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var verificationCaseDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(verificationCaseDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(verificationCaseDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IVerificationCaseDefinition verificationCaseDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "VerificationCaseDefinition" }, - { "@id", verificationCaseDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", verificationCaseDefinitionInstance.AliasIds); - dictionary.Add("declaredName", verificationCaseDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", verificationCaseDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", verificationCaseDefinitionInstance.ElementId); - dictionary.Add("isAbstract", verificationCaseDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", verificationCaseDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", verificationCaseDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", verificationCaseDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", verificationCaseDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", verificationCaseDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", verificationCaseDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IVerificationCaseDefinition verificationCaseDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "VerificationCaseDefinition" }, - { "@id", verificationCaseDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", verificationCaseDefinitionInstance.AliasIds); - dictionary.Add("declaredName", verificationCaseDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", verificationCaseDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", verificationCaseDefinitionInstance.ElementId); - dictionary.Add("isAbstract", verificationCaseDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", verificationCaseDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", verificationCaseDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", verificationCaseDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", verificationCaseDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", verificationCaseDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", verificationCaseDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IVerificationCaseDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IVerificationCaseDefinition verificationCaseDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IVerificationCaseDefinition", "dataItem"); - } - - return verificationCaseDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/VerificationCaseUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/VerificationCaseUsageDictionaryWriter.cs deleted file mode 100644 index 13ddf7ce6..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/VerificationCaseUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class VerificationCaseUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var verificationCaseUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(verificationCaseUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(verificationCaseUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IVerificationCaseUsage verificationCaseUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "VerificationCaseUsage" }, - { "@id", verificationCaseUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", verificationCaseUsageInstance.AliasIds); - dictionary.Add("declaredName", verificationCaseUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", verificationCaseUsageInstance.DeclaredShortName); - dictionary.Add("direction", verificationCaseUsageInstance.Direction); - dictionary.Add("elementId", verificationCaseUsageInstance.ElementId); - dictionary.Add("isAbstract", verificationCaseUsageInstance.IsAbstract); - dictionary.Add("isComposite", verificationCaseUsageInstance.IsComposite); - dictionary.Add("isConstant", verificationCaseUsageInstance.IsConstant); - dictionary.Add("isDerived", verificationCaseUsageInstance.IsDerived); - dictionary.Add("isEnd", verificationCaseUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", verificationCaseUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", verificationCaseUsageInstance.IsIndividual); - dictionary.Add("isOrdered", verificationCaseUsageInstance.IsOrdered); - dictionary.Add("isPortion", verificationCaseUsageInstance.IsPortion); - dictionary.Add("isSufficient", verificationCaseUsageInstance.IsSufficient); - dictionary.Add("isUnique", verificationCaseUsageInstance.IsUnique); - dictionary.Add("isVariable", verificationCaseUsageInstance.IsVariable); - dictionary.Add("isVariation", verificationCaseUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", verificationCaseUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", verificationCaseUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", verificationCaseUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IVerificationCaseUsage verificationCaseUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "VerificationCaseUsage" }, - { "@id", verificationCaseUsageInstance.Id } - }; - - dictionary.Add("aliasIds", verificationCaseUsageInstance.AliasIds); - dictionary.Add("declaredName", verificationCaseUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", verificationCaseUsageInstance.DeclaredShortName); - dictionary.Add("direction", verificationCaseUsageInstance.Direction); - dictionary.Add("elementId", verificationCaseUsageInstance.ElementId); - dictionary.Add("isAbstract", verificationCaseUsageInstance.IsAbstract); - dictionary.Add("isComposite", verificationCaseUsageInstance.IsComposite); - dictionary.Add("isConstant", verificationCaseUsageInstance.IsConstant); - dictionary.Add("isDerived", verificationCaseUsageInstance.IsDerived); - dictionary.Add("isEnd", verificationCaseUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", verificationCaseUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", verificationCaseUsageInstance.IsIndividual); - dictionary.Add("isOrdered", verificationCaseUsageInstance.IsOrdered); - dictionary.Add("isPortion", verificationCaseUsageInstance.IsPortion); - dictionary.Add("isSufficient", verificationCaseUsageInstance.IsSufficient); - dictionary.Add("isUnique", verificationCaseUsageInstance.IsUnique); - dictionary.Add("isVariable", verificationCaseUsageInstance.IsVariable); - dictionary.Add("isVariation", verificationCaseUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", verificationCaseUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", verificationCaseUsageInstance.OwningRelationship); - dictionary.Add("portionKind", verificationCaseUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IVerificationCaseUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IVerificationCaseUsage verificationCaseUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IVerificationCaseUsage", "dataItem"); - } - - return verificationCaseUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewDefinitionDictionaryWriter.cs deleted file mode 100644 index 60e1d3294..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ViewDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var viewDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(viewDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(viewDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IViewDefinition viewDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ViewDefinition" }, - { "@id", viewDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", viewDefinitionInstance.AliasIds); - dictionary.Add("declaredName", viewDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", viewDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", viewDefinitionInstance.ElementId); - dictionary.Add("isAbstract", viewDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", viewDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", viewDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", viewDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", viewDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", viewDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", viewDefinitionInstance.OwningRelationship.ToString()); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IViewDefinition viewDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ViewDefinition" }, - { "@id", viewDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", viewDefinitionInstance.AliasIds); - dictionary.Add("declaredName", viewDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", viewDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", viewDefinitionInstance.ElementId); - dictionary.Add("isAbstract", viewDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", viewDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", viewDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", viewDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", viewDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", viewDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", viewDefinitionInstance.OwningRelationship); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IViewDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IViewDefinition viewDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IViewDefinition", "dataItem"); - } - - return viewDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewRenderingMembershipDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewRenderingMembershipDictionaryWriter.cs deleted file mode 100644 index c6f93af42..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewRenderingMembershipDictionaryWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ViewRenderingMembershipDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var viewRenderingMembershipInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(viewRenderingMembershipInstance); - case DictionaryKind.Simplified: - return WriteSimplified(viewRenderingMembershipInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IViewRenderingMembership viewRenderingMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ViewRenderingMembership" }, - { "@id", viewRenderingMembershipInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", viewRenderingMembershipInstance.AliasIds); - dictionary.Add("declaredName", viewRenderingMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", viewRenderingMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", viewRenderingMembershipInstance.ElementId); - dictionary.Add("isImplied", viewRenderingMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", viewRenderingMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", viewRenderingMembershipInstance.MemberElement.ToString()); - dictionary.Add("memberName", viewRenderingMembershipInstance.MemberName); - dictionary.Add("memberShortName", viewRenderingMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", $"[ {string.Join(",", viewRenderingMembershipInstance.OwnedRelatedElement)} ]"); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", viewRenderingMembershipInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelatedElement", viewRenderingMembershipInstance.OwningRelatedElement.ToString()); - dictionary.Add("owningRelationship", viewRenderingMembershipInstance.OwningRelationship.ToString()); - dictionary.Add("source", $"[ {string.Join(",", viewRenderingMembershipInstance.Source)} ]"); - dictionary.Add("target", $"[ {string.Join(",", viewRenderingMembershipInstance.Target)} ]"); - dictionary.Add("visibility", viewRenderingMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IViewRenderingMembership viewRenderingMembershipInstance) - { - var dictionary = new Dictionary - { - { "@type", "ViewRenderingMembership" }, - { "@id", viewRenderingMembershipInstance.Id } - }; - - dictionary.Add("aliasIds", viewRenderingMembershipInstance.AliasIds); - dictionary.Add("declaredName", viewRenderingMembershipInstance.DeclaredName); - dictionary.Add("declaredShortName", viewRenderingMembershipInstance.DeclaredShortName); - dictionary.Add("elementId", viewRenderingMembershipInstance.ElementId); - dictionary.Add("isImplied", viewRenderingMembershipInstance.IsImplied); - dictionary.Add("isImpliedIncluded", viewRenderingMembershipInstance.IsImpliedIncluded); - dictionary.Add("memberElement", viewRenderingMembershipInstance.MemberElement); - dictionary.Add("memberName", viewRenderingMembershipInstance.MemberName); - dictionary.Add("memberShortName", viewRenderingMembershipInstance.MemberShortName); - dictionary.Add("ownedRelatedElement", viewRenderingMembershipInstance.OwnedRelatedElement); - dictionary.Add("ownedRelationship", viewRenderingMembershipInstance.OwnedRelationship); - dictionary.Add("owningRelatedElement", viewRenderingMembershipInstance.OwningRelatedElement); - dictionary.Add("owningRelationship", viewRenderingMembershipInstance.OwningRelationship); - dictionary.Add("source", viewRenderingMembershipInstance.Source); - dictionary.Add("target", viewRenderingMembershipInstance.Target); - dictionary.Add("visibility", viewRenderingMembershipInstance.Visibility); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IViewRenderingMembership ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IViewRenderingMembership viewRenderingMembershipInstance)) - { - throw new ArgumentException("The dataItem must be of Type IViewRenderingMembership", "dataItem"); - } - - return viewRenderingMembershipInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewUsageDictionaryWriter.cs deleted file mode 100644 index 79ce09cd4..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ViewUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var viewUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(viewUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(viewUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IViewUsage viewUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ViewUsage" }, - { "@id", viewUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", viewUsageInstance.AliasIds); - dictionary.Add("declaredName", viewUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", viewUsageInstance.DeclaredShortName); - dictionary.Add("direction", viewUsageInstance.Direction); - dictionary.Add("elementId", viewUsageInstance.ElementId); - dictionary.Add("isAbstract", viewUsageInstance.IsAbstract); - dictionary.Add("isComposite", viewUsageInstance.IsComposite); - dictionary.Add("isConstant", viewUsageInstance.IsConstant); - dictionary.Add("isDerived", viewUsageInstance.IsDerived); - dictionary.Add("isEnd", viewUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", viewUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", viewUsageInstance.IsIndividual); - dictionary.Add("isOrdered", viewUsageInstance.IsOrdered); - dictionary.Add("isPortion", viewUsageInstance.IsPortion); - dictionary.Add("isSufficient", viewUsageInstance.IsSufficient); - dictionary.Add("isUnique", viewUsageInstance.IsUnique); - dictionary.Add("isVariable", viewUsageInstance.IsVariable); - dictionary.Add("isVariation", viewUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", viewUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", viewUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", viewUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IViewUsage viewUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ViewUsage" }, - { "@id", viewUsageInstance.Id } - }; - - dictionary.Add("aliasIds", viewUsageInstance.AliasIds); - dictionary.Add("declaredName", viewUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", viewUsageInstance.DeclaredShortName); - dictionary.Add("direction", viewUsageInstance.Direction); - dictionary.Add("elementId", viewUsageInstance.ElementId); - dictionary.Add("isAbstract", viewUsageInstance.IsAbstract); - dictionary.Add("isComposite", viewUsageInstance.IsComposite); - dictionary.Add("isConstant", viewUsageInstance.IsConstant); - dictionary.Add("isDerived", viewUsageInstance.IsDerived); - dictionary.Add("isEnd", viewUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", viewUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", viewUsageInstance.IsIndividual); - dictionary.Add("isOrdered", viewUsageInstance.IsOrdered); - dictionary.Add("isPortion", viewUsageInstance.IsPortion); - dictionary.Add("isSufficient", viewUsageInstance.IsSufficient); - dictionary.Add("isUnique", viewUsageInstance.IsUnique); - dictionary.Add("isVariable", viewUsageInstance.IsVariable); - dictionary.Add("isVariation", viewUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", viewUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", viewUsageInstance.OwningRelationship); - dictionary.Add("portionKind", viewUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IViewUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IViewUsage viewUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IViewUsage", "dataItem"); - } - - return viewUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewpointDefinitionDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewpointDefinitionDictionaryWriter.cs deleted file mode 100644 index aa3e5f2c4..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewpointDefinitionDictionaryWriter.cs +++ /dev/null @@ -1,199 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ViewpointDefinitionDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var viewpointDefinitionInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(viewpointDefinitionInstance); - case DictionaryKind.Simplified: - return WriteSimplified(viewpointDefinitionInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IViewpointDefinition viewpointDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ViewpointDefinition" }, - { "@id", viewpointDefinitionInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", viewpointDefinitionInstance.AliasIds); - dictionary.Add("declaredName", viewpointDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", viewpointDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", viewpointDefinitionInstance.ElementId); - dictionary.Add("isAbstract", viewpointDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", viewpointDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", viewpointDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", viewpointDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", viewpointDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", viewpointDefinitionInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", viewpointDefinitionInstance.OwningRelationship.ToString()); - dictionary.Add("reqId", viewpointDefinitionInstance.ReqId); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IViewpointDefinition viewpointDefinitionInstance) - { - var dictionary = new Dictionary - { - { "@type", "ViewpointDefinition" }, - { "@id", viewpointDefinitionInstance.Id } - }; - - dictionary.Add("aliasIds", viewpointDefinitionInstance.AliasIds); - dictionary.Add("declaredName", viewpointDefinitionInstance.DeclaredName); - dictionary.Add("declaredShortName", viewpointDefinitionInstance.DeclaredShortName); - dictionary.Add("elementId", viewpointDefinitionInstance.ElementId); - dictionary.Add("isAbstract", viewpointDefinitionInstance.IsAbstract); - dictionary.Add("isImpliedIncluded", viewpointDefinitionInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", viewpointDefinitionInstance.IsIndividual); - dictionary.Add("isSufficient", viewpointDefinitionInstance.IsSufficient); - dictionary.Add("isVariation", viewpointDefinitionInstance.IsVariation); - dictionary.Add("ownedRelationship", viewpointDefinitionInstance.OwnedRelationship); - dictionary.Add("owningRelationship", viewpointDefinitionInstance.OwningRelationship); - dictionary.Add("reqId", viewpointDefinitionInstance.ReqId); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IViewpointDefinition ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IViewpointDefinition viewpointDefinitionInstance)) - { - throw new ArgumentException("The dataItem must be of Type IViewpointDefinition", "dataItem"); - } - - return viewpointDefinitionInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewpointUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewpointUsageDictionaryWriter.cs deleted file mode 100644 index 65c828cab..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/ViewpointUsageDictionaryWriter.cs +++ /dev/null @@ -1,219 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class ViewpointUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var viewpointUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(viewpointUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(viewpointUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IViewpointUsage viewpointUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ViewpointUsage" }, - { "@id", viewpointUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", viewpointUsageInstance.AliasIds); - dictionary.Add("declaredName", viewpointUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", viewpointUsageInstance.DeclaredShortName); - dictionary.Add("direction", viewpointUsageInstance.Direction); - dictionary.Add("elementId", viewpointUsageInstance.ElementId); - dictionary.Add("isAbstract", viewpointUsageInstance.IsAbstract); - dictionary.Add("isComposite", viewpointUsageInstance.IsComposite); - dictionary.Add("isConstant", viewpointUsageInstance.IsConstant); - dictionary.Add("isDerived", viewpointUsageInstance.IsDerived); - dictionary.Add("isEnd", viewpointUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", viewpointUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", viewpointUsageInstance.IsIndividual); - dictionary.Add("isOrdered", viewpointUsageInstance.IsOrdered); - dictionary.Add("isPortion", viewpointUsageInstance.IsPortion); - dictionary.Add("isSufficient", viewpointUsageInstance.IsSufficient); - dictionary.Add("isUnique", viewpointUsageInstance.IsUnique); - dictionary.Add("isVariable", viewpointUsageInstance.IsVariable); - dictionary.Add("isVariation", viewpointUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", viewpointUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", viewpointUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", viewpointUsageInstance.PortionKind); - dictionary.Add("reqId", viewpointUsageInstance.ReqId); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IViewpointUsage viewpointUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "ViewpointUsage" }, - { "@id", viewpointUsageInstance.Id } - }; - - dictionary.Add("aliasIds", viewpointUsageInstance.AliasIds); - dictionary.Add("declaredName", viewpointUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", viewpointUsageInstance.DeclaredShortName); - dictionary.Add("direction", viewpointUsageInstance.Direction); - dictionary.Add("elementId", viewpointUsageInstance.ElementId); - dictionary.Add("isAbstract", viewpointUsageInstance.IsAbstract); - dictionary.Add("isComposite", viewpointUsageInstance.IsComposite); - dictionary.Add("isConstant", viewpointUsageInstance.IsConstant); - dictionary.Add("isDerived", viewpointUsageInstance.IsDerived); - dictionary.Add("isEnd", viewpointUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", viewpointUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", viewpointUsageInstance.IsIndividual); - dictionary.Add("isOrdered", viewpointUsageInstance.IsOrdered); - dictionary.Add("isPortion", viewpointUsageInstance.IsPortion); - dictionary.Add("isSufficient", viewpointUsageInstance.IsSufficient); - dictionary.Add("isUnique", viewpointUsageInstance.IsUnique); - dictionary.Add("isVariable", viewpointUsageInstance.IsVariable); - dictionary.Add("isVariation", viewpointUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", viewpointUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", viewpointUsageInstance.OwningRelationship); - dictionary.Add("portionKind", viewpointUsageInstance.PortionKind); - dictionary.Add("reqId", viewpointUsageInstance.ReqId); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IViewpointUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IViewpointUsage viewpointUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IViewpointUsage", "dataItem"); - } - - return viewpointUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/WhileLoopActionUsageDictionaryWriter.cs b/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/WhileLoopActionUsageDictionaryWriter.cs deleted file mode 100644 index 93eb15dc8..000000000 --- a/SysML2.NET.Serializer.Dictionary/Core/AutoGenDictionaryWriter/WhileLoopActionUsageDictionaryWriter.cs +++ /dev/null @@ -1,217 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary.Core.DTO -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - using SysML2.NET.Core.DTO; - - /// - /// The purpose of the is to write (convert) a - /// to a . - /// - public static class WhileLoopActionUsageDictionaryWriter - { - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// The target that is to be created - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// When the is then the values are written to the - /// as is. When the is - /// then the following applies: - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public static Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var whileLoopActionUsageInstance = ThingNullAndTypeCheck(dataItem); - - switch (dictionaryKind) - { - case DictionaryKind.Complex: - return WriteComplex(whileLoopActionUsageInstance); - case DictionaryKind.Simplified: - return WriteSimplified(whileLoopActionUsageInstance); - default: - throw new NotSupportedException($"The dictionaryKind:{dictionaryKind} is not supported"); - } - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// The values that are of the following types are stored as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted to string, in case these are an then - /// the values are converted to an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - private static Dictionary WriteSimplified(IWhileLoopActionUsage whileLoopActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "WhileLoopActionUsage" }, - { "@id", whileLoopActionUsageInstance.Id.ToString() } - }; - - dictionary.Add("aliasIds", whileLoopActionUsageInstance.AliasIds); - dictionary.Add("declaredName", whileLoopActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", whileLoopActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", whileLoopActionUsageInstance.Direction); - dictionary.Add("elementId", whileLoopActionUsageInstance.ElementId); - dictionary.Add("isAbstract", whileLoopActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", whileLoopActionUsageInstance.IsComposite); - dictionary.Add("isConstant", whileLoopActionUsageInstance.IsConstant); - dictionary.Add("isDerived", whileLoopActionUsageInstance.IsDerived); - dictionary.Add("isEnd", whileLoopActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", whileLoopActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", whileLoopActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", whileLoopActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", whileLoopActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", whileLoopActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", whileLoopActionUsageInstance.IsUnique); - dictionary.Add("isVariable", whileLoopActionUsageInstance.IsVariable); - dictionary.Add("isVariation", whileLoopActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", $"[ {string.Join(",", whileLoopActionUsageInstance.OwnedRelationship)} ]"); - dictionary.Add("owningRelationship", whileLoopActionUsageInstance.OwningRelationship.ToString()); - dictionary.Add("portionKind", whileLoopActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Writes a to a that contains a key-value-pair - /// for each property. The type key is used to store type information (name of the Type). - /// - /// - /// The subject that is to be written to a . - /// - /// - /// An instance of that contains all the properties as key-value-pairs as well - /// as a type key that is used to store type information (name of the Type). - /// - /// - /// All values are stored as is, no conversion is done - /// - private static Dictionary WriteComplex(IWhileLoopActionUsage whileLoopActionUsageInstance) - { - var dictionary = new Dictionary - { - { "@type", "WhileLoopActionUsage" }, - { "@id", whileLoopActionUsageInstance.Id } - }; - - dictionary.Add("aliasIds", whileLoopActionUsageInstance.AliasIds); - dictionary.Add("declaredName", whileLoopActionUsageInstance.DeclaredName); - dictionary.Add("declaredShortName", whileLoopActionUsageInstance.DeclaredShortName); - dictionary.Add("direction", whileLoopActionUsageInstance.Direction); - dictionary.Add("elementId", whileLoopActionUsageInstance.ElementId); - dictionary.Add("isAbstract", whileLoopActionUsageInstance.IsAbstract); - dictionary.Add("isComposite", whileLoopActionUsageInstance.IsComposite); - dictionary.Add("isConstant", whileLoopActionUsageInstance.IsConstant); - dictionary.Add("isDerived", whileLoopActionUsageInstance.IsDerived); - dictionary.Add("isEnd", whileLoopActionUsageInstance.IsEnd); - dictionary.Add("isImpliedIncluded", whileLoopActionUsageInstance.IsImpliedIncluded); - dictionary.Add("isIndividual", whileLoopActionUsageInstance.IsIndividual); - dictionary.Add("isOrdered", whileLoopActionUsageInstance.IsOrdered); - dictionary.Add("isPortion", whileLoopActionUsageInstance.IsPortion); - dictionary.Add("isSufficient", whileLoopActionUsageInstance.IsSufficient); - dictionary.Add("isUnique", whileLoopActionUsageInstance.IsUnique); - dictionary.Add("isVariable", whileLoopActionUsageInstance.IsVariable); - dictionary.Add("isVariation", whileLoopActionUsageInstance.IsVariation); - dictionary.Add("ownedRelationship", whileLoopActionUsageInstance.OwnedRelationship); - dictionary.Add("owningRelationship", whileLoopActionUsageInstance.OwningRelationship); - dictionary.Add("portionKind", whileLoopActionUsageInstance.PortionKind); - - return dictionary; - } - - /// - /// Checks whether the is not null and whether it is - /// of type - /// - /// - /// The subject - /// - /// - /// an instance of - /// - /// - /// Thrown when is null - /// - /// - /// Thrown when is not of type - /// - private static IWhileLoopActionUsage ThingNullAndTypeCheck(IData dataItem) - { - if (dataItem == null) - { - throw new ArgumentNullException("dataItem", "The dataItem may not be null"); - } - - if (!(dataItem is IWhileLoopActionUsage whileLoopActionUsageInstance)) - { - throw new ArgumentException("The dataItem must be of Type IWhileLoopActionUsage", "dataItem"); - } - - return whileLoopActionUsageInstance; - } - } -} - -// ------------------------------------------------------------------------------------------------ -// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- -// ------------------------------------------------------------------------------------------------ diff --git a/SysML2.NET.Serializer.Dictionary/DictionaryKind.cs b/SysML2.NET.Serializer.Dictionary/DictionaryKind.cs deleted file mode 100644 index ff9071a4a..000000000 --- a/SysML2.NET.Serializer.Dictionary/DictionaryKind.cs +++ /dev/null @@ -1,46 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary -{ - using System.Collections.Generic; - - using SysML2.NET.Common; - - /// - /// An enumeration data-type data that defines the structure (content) of a - /// - public enum DictionaryKind - { - /// - /// The values of the dictionary are simplified (as string) C# data-types. - /// - /// - /// The following data-types are converted to string: - /// - Guid - /// - Simplified, - - /// - /// The values of the dictionary are complex C# data-types - /// - Complex - } -} diff --git a/SysML2.NET.Serializer.Dictionary/IReader.cs b/SysML2.NET.Serializer.Dictionary/IReader.cs deleted file mode 100644 index a984186bd..000000000 --- a/SysML2.NET.Serializer.Dictionary/IReader.cs +++ /dev/null @@ -1,87 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary -{ - using System.Collections.Generic; - - using SysML2.NET.Common; - - /// - /// The purpose of the is to read an and - /// from a - /// - public interface IReader - { - /// - /// Reads the from a - /// - /// - /// The subject instance - /// - /// - /// The that specifies whether the source should be complex or simplified - /// - /// - /// the resulting - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - IData Read(Dictionary dictionary, DictionaryKind dictionaryKind); - - /// - /// Reads the to from of - /// - /// - /// The subject list of instances - /// - /// - /// The that specifies whether the source should be complex or simplified - /// - /// - /// the resulting - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - IEnumerable Read(IEnumerable> dictionaries, DictionaryKind dictionaryKind); - } -} diff --git a/SysML2.NET.Serializer.Dictionary/IWriter.cs b/SysML2.NET.Serializer.Dictionary/IWriter.cs deleted file mode 100644 index 0e61134bd..000000000 --- a/SysML2.NET.Serializer.Dictionary/IWriter.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary -{ - using System.Collections.Generic; - - using SysML2.NET.Common; - - /// - /// The purpose of the is to write an and - /// to a - /// - public interface IWriter - { - /// - /// Writes the to a - /// - /// - /// The subject instance - /// - /// - /// The that specifies whether the result should be complex or simplified - /// - /// - /// the resulting - /// - Dictionary Write(IData dataItem, DictionaryKind dictionaryKind); - - /// - /// Writes the to an of - /// - /// - /// The subject instance - /// - /// - /// The that specifies whether the result should be complex or simplified - /// - /// - /// the resulting where T is an - /// - IEnumerable> Write(IEnumerable dataItems, DictionaryKind dictionaryKind); - } -} diff --git a/SysML2.NET.Serializer.Dictionary/Reader.cs b/SysML2.NET.Serializer.Dictionary/Reader.cs deleted file mode 100644 index 373a3ce56..000000000 --- a/SysML2.NET.Serializer.Dictionary/Reader.cs +++ /dev/null @@ -1,112 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary -{ - using System; - using System.Collections.Generic; - - using SysML2.NET.Common; - - /// - /// The purpose of the is to read an and - /// from a - /// - public class Reader : IReader - { - /// - /// Reads the from a - /// - /// - /// The subject instance - /// - /// - /// The that specifies whether the source should be complex or simplified - /// - /// - /// the resulting - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public IData Read(Dictionary dictionary, DictionaryKind dictionaryKind) - { - if (!dictionary.TryGetValue("@type", out object typeObject)) - { - throw new ArgumentException("The type property is missing from the dictionary, the dictionary cannot be converted into a WhileLoopActionUsage"); - } - - var type = Convert.ToString(typeObject); - - var reader = SysML2.NET.Serializer.Dictionary.Core.DTO.DictionaryReaderProvider.Provide(type); - - return reader (dictionary, dictionaryKind); - } - - /// - /// Reads the to from of - /// - /// - /// The subject list of instances - /// - /// - /// The that specifies whether the source should be complex or simplified - /// - /// - /// the resulting - /// - /// - /// When the is then the values that are read from the - /// are read as is. When the is - /// then the following applies: - /// The values that are of the following types are read as is: - /// - Number, an abstract type, which has the subtypes Integer and Float - /// - String - /// - Boolean - /// - The spatial type Point - /// - Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration - /// values of other types are converted from string, in case these are an then - /// the values are converted from an Array of String using JSON notation, i.e. [ value_1, ..., value_n ] - /// - public IEnumerable Read(IEnumerable> dictionaries, DictionaryKind dictionaryKind) - { - var result = new List(); - - foreach (var dictionary in dictionaries) - { - var dataItem = this.Read(dictionary, dictionaryKind); - - result.Add(dataItem); - } - - return result; - } - } -} diff --git a/SysML2.NET.Serializer.Dictionary/SysML2.NET.Serializer.Dictionary.csproj b/SysML2.NET.Serializer.Dictionary/SysML2.NET.Serializer.Dictionary.csproj deleted file mode 100644 index 4a793fa0d..000000000 --- a/SysML2.NET.Serializer.Dictionary/SysML2.NET.Serializer.Dictionary.csproj +++ /dev/null @@ -1,41 +0,0 @@ - - - - netstandard2.0 - 12.0 - 0.17.0 - A .NET implementation of the OMG SysML v2 Dictionary serializer. - SysML2.NET.Serializer.Dictionary - Starion Group S.A. - Copyright © Starion Group S.A. - Apache-2.0 - https://github.com/STARIONGROUP/SysML2.NET.git - Git - Sam Gerené - true - - [Update] to SysML2.NET version 0.17.0 - [Update] SysML.ecore from source git repos - [TAG: 2025-06] (regenerate code) - - cdp4-icon.png - README.md - true - true - - - - - - - - - - - - - - - - - - diff --git a/SysML2.NET.Serializer.Dictionary/Writer.cs b/SysML2.NET.Serializer.Dictionary/Writer.cs deleted file mode 100644 index 60d3b21b5..000000000 --- a/SysML2.NET.Serializer.Dictionary/Writer.cs +++ /dev/null @@ -1,77 +0,0 @@ -// ------------------------------------------------------------------------------------------------- -// -// -// Copyright 2022-2025 Starion Group S.A. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// -// ------------------------------------------------------------------------------------------------ - -namespace SysML2.NET.Serializer.Dictionary -{ - using System.Collections.Generic; - - using SysML2.NET.Common; - - /// - /// The purpose of the is to write an and - /// to a - /// - public class Writer : IWriter - { - /// - /// Writes the to a - /// - /// - /// The subject instance - /// - /// - /// The that specifies whether the result should be complex or simplified - /// - /// - /// the resulting - /// - public Dictionary Write(IData dataItem, DictionaryKind dictionaryKind) - { - var writer = SysML2.NET.Serializer.Dictionary.Core.DTO.DictionaryWriterProvider.Provide(dataItem.GetType()); - - return writer(dataItem, dictionaryKind); - } - - /// - /// Writes the to an of - /// - /// - /// The subject instance - /// - /// - /// The that specifies whether the result should be complex or simplified - /// - /// - /// the resulting where T is an - /// - public IEnumerable> Write(IEnumerable dataItems, DictionaryKind dictionaryKind) - { - var result = new List>(); - - foreach (var dataItem in dataItems) - { - var dictionary = this.Write(dataItem, dictionaryKind); - result.Add(dictionary); - } - - return result; - } - } -} diff --git a/SysML2.NET.sln b/SysML2.NET.sln index a7a0cc3b7..fd77bcf06 100644 --- a/SysML2.NET.sln +++ b/SysML2.NET.sln @@ -38,10 +38,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SySML2.NET.REST.Tests", "Sy EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SysML2.NET.Viewer.Tests", "SysML2.NET.Viewer.Tests\SysML2.NET.Viewer.Tests.csproj", "{2E1877CB-255F-49C9-A0F0-5DCB34FCD06A}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SysML2.NET.Serializer.Dictionary", "SysML2.NET.Serializer.Dictionary\SysML2.NET.Serializer.Dictionary.csproj", "{03D37FC3-CFEC-4B90-852D-CE1BAA504C84}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SysML2.NET.Serializer.Dictionary.Tests", "SysML2.NET.Serializer.Dictionary.Tests\SysML2.NET.Serializer.Dictionary.Tests.csproj", "{102AD589-6440-4D27-84BA-BB5DB9A43B21}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "htmldocs", "htmldocs", "{3C4D5413-519A-406D-A9DB-7A63B4225DA4}" ProjectSection(SolutionItems) = preProject HtmlDocs\Dockerfile = HtmlDocs\Dockerfile @@ -103,14 +99,6 @@ Global {2E1877CB-255F-49C9-A0F0-5DCB34FCD06A}.Debug|Any CPU.Build.0 = Debug|Any CPU {2E1877CB-255F-49C9-A0F0-5DCB34FCD06A}.Release|Any CPU.ActiveCfg = Release|Any CPU {2E1877CB-255F-49C9-A0F0-5DCB34FCD06A}.Release|Any CPU.Build.0 = Release|Any CPU - {03D37FC3-CFEC-4B90-852D-CE1BAA504C84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {03D37FC3-CFEC-4B90-852D-CE1BAA504C84}.Debug|Any CPU.Build.0 = Debug|Any CPU - {03D37FC3-CFEC-4B90-852D-CE1BAA504C84}.Release|Any CPU.ActiveCfg = Release|Any CPU - {03D37FC3-CFEC-4B90-852D-CE1BAA504C84}.Release|Any CPU.Build.0 = Release|Any CPU - {102AD589-6440-4D27-84BA-BB5DB9A43B21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {102AD589-6440-4D27-84BA-BB5DB9A43B21}.Debug|Any CPU.Build.0 = Debug|Any CPU - {102AD589-6440-4D27-84BA-BB5DB9A43B21}.Release|Any CPU.ActiveCfg = Release|Any CPU - {102AD589-6440-4D27-84BA-BB5DB9A43B21}.Release|Any CPU.Build.0 = Release|Any CPU {2E57385C-C63B-41B9-BA51-4B72070DFAF1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2E57385C-C63B-41B9-BA51-4B72070DFAF1}.Debug|Any CPU.Build.0 = Debug|Any CPU {2E57385C-C63B-41B9-BA51-4B72070DFAF1}.Release|Any CPU.ActiveCfg = Release|Any CPU From 5a66699d0eaff9cb40327ee0342828ecca09460f Mon Sep 17 00:00:00 2001 From: atheate Date: Tue, 20 Jan 2026 10:10:51 +0100 Subject: [PATCH 6/6] Serializes redefined properties --- .../AssociationSerializer.cs | 72 ++++++++ .../AutoGenSerializer/DependencySerializer.cs | 48 +++++ .../EnumerationDefinitionSerializer.cs | 12 ++ .../FeatureTypingSerializer.cs | 86 +++++++++ .../Core/AutoGenSerializer/FlowSerializer.cs | 120 ++++++++++++ .../FramedConcernMembershipSerializer.cs | 105 +++++++++++ .../LiteralIntegerSerializer.cs | 24 +++ .../LiteralRationalSerializer.cs | 24 +++ .../AutoGenSerializer/MembershipSerializer.cs | 48 +++++ .../OwningMembershipSerializer.cs | 75 ++++++++ .../ReferenceSubsettingSerializer.cs | 124 +++++++++++++ .../RequirementUsageSerializer.cs | 102 ++++++++++ .../SelectExpressionSerializer.cs | 24 +++ .../SubclassificationSerializer.cs | 86 +++++++++ .../TextualRepresentationSerializer.cs | 12 ++ .../Core/AutoGenSerializer/UsageSerializer.cs | 18 ++ .../core-json-dto-serializer-uml-template.hbs | 4 +- .../AcceptActionUsageSerializer.cs | 66 +++++++ .../ActionDefinitionSerializer.cs | 12 ++ .../ActionUsageSerializer.cs | 66 +++++++ .../ActorMembershipSerializer.cs | 99 ++++++++++ .../AllocationDefinitionSerializer.cs | 84 +++++++++ .../AllocationUsageSerializer.cs | 126 +++++++++++++ .../AnalysisCaseDefinitionSerializer.cs | 12 ++ .../AnalysisCaseUsageSerializer.cs | 120 ++++++++++++ .../AutoGenSerializer/AnnotationSerializer.cs | 48 +++++ .../AssertConstraintUsageSerializer.cs | 82 +++++++++ .../AssignmentActionUsageSerializer.cs | 66 +++++++ .../AssociationSerializer.cs | 72 ++++++++ .../AssociationStructureSerializer.cs | 72 ++++++++ .../AttributeUsageSerializer.cs | 30 +++ .../AutoGenSerializer/BehaviorSerializer.cs | 12 ++ .../BindingConnectorAsUsageSerializer.cs | 90 +++++++++ .../BindingConnectorSerializer.cs | 84 +++++++++ .../BooleanExpressionSerializer.cs | 38 ++++ .../CalculationDefinitionSerializer.cs | 12 ++ .../CalculationUsageSerializer.cs | 92 +++++++++ .../CaseDefinitionSerializer.cs | 12 ++ .../AutoGenSerializer/CaseUsageSerializer.cs | 106 +++++++++++ .../CollectExpressionSerializer.cs | 24 +++ .../ConcernDefinitionSerializer.cs | 18 ++ .../ConcernUsageSerializer.cs | 116 ++++++++++++ .../ConjugatedPortDefinitionSerializer.cs | 28 +++ .../ConjugatedPortTypingSerializer.cs | 98 ++++++++++ .../ConjugationSerializer.cs | 48 +++++ .../ConnectionDefinitionSerializer.cs | 84 +++++++++ .../ConnectionUsageSerializer.cs | 114 ++++++++++++ .../AutoGenSerializer/ConnectorSerializer.cs | 84 +++++++++ .../ConstraintDefinitionSerializer.cs | 12 ++ .../ConstraintUsageSerializer.cs | 82 +++++++++ .../ConstructorExpressionSerializer.cs | 24 +++ .../CrossSubsettingSerializer.cs | 124 +++++++++++++ .../DecisionNodeSerializer.cs | 66 +++++++ .../AutoGenSerializer/DependencySerializer.cs | 48 +++++ .../DifferencingSerializer.cs | 48 +++++ .../AutoGenSerializer/DisjoiningSerializer.cs | 48 +++++ .../DocumentationSerializer.cs | 12 ++ .../ElementFilterMembershipSerializer.cs | 81 ++++++++ .../EndFeatureMembershipSerializer.cs | 87 +++++++++ .../EnumerationDefinitionSerializer.cs | 12 ++ .../EnumerationUsageSerializer.cs | 42 +++++ .../EventOccurrenceUsageSerializer.cs | 30 +++ .../ExhibitStateUsageSerializer.cs | 90 +++++++++ .../AutoGenSerializer/ExpressionSerializer.cs | 24 +++ .../FeatureChainExpressionSerializer.cs | 24 +++ .../FeatureChainingSerializer.cs | 48 +++++ .../FeatureInvertingSerializer.cs | 48 +++++ .../FeatureMembershipSerializer.cs | 87 +++++++++ .../FeatureReferenceExpressionSerializer.cs | 24 +++ .../FeatureTypingSerializer.cs | 86 +++++++++ .../FeatureValueSerializer.cs | 81 ++++++++ .../FlowDefinitionSerializer.cs | 96 ++++++++++ .../Core/AutoGenSerializer/FlowSerializer.cs | 120 ++++++++++++ .../AutoGenSerializer/FlowUsageSerializer.cs | 174 ++++++++++++++++++ .../ForLoopActionUsageSerializer.cs | 66 +++++++ .../AutoGenSerializer/ForkNodeSerializer.cs | 66 +++++++ .../FramedConcernMembershipSerializer.cs | 105 +++++++++++ .../AutoGenSerializer/FunctionSerializer.cs | 12 ++ .../IfActionUsageSerializer.cs | 66 +++++++ .../IncludeUseCaseUsageSerializer.cs | 132 +++++++++++++ .../IndexExpressionSerializer.cs | 24 +++ .../InteractionSerializer.cs | 84 +++++++++ .../InterfaceDefinitionSerializer.cs | 96 ++++++++++ .../InterfaceUsageSerializer.cs | 126 +++++++++++++ .../IntersectingSerializer.cs | 48 +++++ .../AutoGenSerializer/InvariantSerializer.cs | 38 ++++ .../InvocationExpressionSerializer.cs | 24 +++ .../AutoGenSerializer/ItemUsageSerializer.cs | 30 +++ .../AutoGenSerializer/JoinNodeSerializer.cs | 66 +++++++ .../LiteralBooleanSerializer.cs | 24 +++ .../LiteralExpressionSerializer.cs | 24 +++ .../LiteralInfinitySerializer.cs | 24 +++ .../LiteralIntegerSerializer.cs | 24 +++ .../LiteralRationalSerializer.cs | 24 +++ .../LiteralStringSerializer.cs | 24 +++ .../MembershipExposeSerializer.cs | 48 +++++ .../MembershipImportSerializer.cs | 48 +++++ .../AutoGenSerializer/MembershipSerializer.cs | 48 +++++ .../AutoGenSerializer/MergeNodeSerializer.cs | 66 +++++++ .../MetadataAccessExpressionSerializer.cs | 24 +++ .../MetadataUsageSerializer.cs | 56 ++++++ .../NamespaceExposeSerializer.cs | 48 +++++ .../NamespaceImportSerializer.cs | 48 +++++ .../NullExpressionSerializer.cs | 24 +++ .../ObjectiveMembershipSerializer.cs | 93 ++++++++++ .../OccurrenceUsageSerializer.cs | 30 +++ .../OperatorExpressionSerializer.cs | 24 +++ .../OwningMembershipSerializer.cs | 75 ++++++++ .../ParameterMembershipSerializer.cs | 93 ++++++++++ .../AutoGenSerializer/PartUsageSerializer.cs | 30 +++ .../PerformActionUsageSerializer.cs | 72 ++++++++ .../PortConjugationSerializer.cs | 74 ++++++++ .../AutoGenSerializer/PortUsageSerializer.cs | 42 +++++ .../AutoGenSerializer/PredicateSerializer.cs | 12 ++ .../RedefinitionSerializer.cs | 110 +++++++++++ .../ReferenceSubsettingSerializer.cs | 124 +++++++++++++ .../ReferenceUsageSerializer.cs | 18 ++ .../RenderingUsageSerializer.cs | 42 +++++ ...quirementConstraintMembershipSerializer.cs | 93 ++++++++++ .../RequirementDefinitionSerializer.cs | 18 ++ .../RequirementUsageSerializer.cs | 102 ++++++++++ ...irementVerificationMembershipSerializer.cs | 105 +++++++++++ .../ResultExpressionMembershipSerializer.cs | 93 ++++++++++ .../ReturnParameterMembershipSerializer.cs | 93 ++++++++++ .../SatisfyRequirementUsageSerializer.cs | 108 +++++++++++ .../SelectExpressionSerializer.cs | 24 +++ .../SendActionUsageSerializer.cs | 66 +++++++ .../SpecializationSerializer.cs | 48 +++++ .../StakeholderMembershipSerializer.cs | 99 ++++++++++ .../StateDefinitionSerializer.cs | 12 ++ .../StateSubactionMembershipSerializer.cs | 93 ++++++++++ .../AutoGenSerializer/StateUsageSerializer.cs | 78 ++++++++ .../Core/AutoGenSerializer/StepSerializer.cs | 12 ++ .../SubclassificationSerializer.cs | 86 +++++++++ .../SubjectMembershipSerializer.cs | 99 ++++++++++ .../AutoGenSerializer/SubsettingSerializer.cs | 86 +++++++++ .../SuccessionAsUsageSerializer.cs | 90 +++++++++ .../SuccessionFlowSerializer.cs | 120 ++++++++++++ .../SuccessionFlowUsageSerializer.cs | 174 ++++++++++++++++++ .../AutoGenSerializer/SuccessionSerializer.cs | 84 +++++++++ .../TerminateActionUsageSerializer.cs | 66 +++++++ .../TextualRepresentationSerializer.cs | 12 ++ .../TransitionFeatureMembershipSerializer.cs | 93 ++++++++++ .../TransitionUsageSerializer.cs | 66 +++++++ .../TriggerInvocationExpressionSerializer.cs | 24 +++ .../TypeFeaturingSerializer.cs | 48 +++++ .../AutoGenSerializer/UnioningSerializer.cs | 48 +++++ .../Core/AutoGenSerializer/UsageSerializer.cs | 18 ++ .../UseCaseDefinitionSerializer.cs | 12 ++ .../UseCaseUsageSerializer.cs | 120 ++++++++++++ .../VariantMembershipSerializer.cs | 81 ++++++++ .../VerificationCaseDefinitionSerializer.cs | 12 ++ .../VerificationCaseUsageSerializer.cs | 106 +++++++++++ .../ViewRenderingMembershipSerializer.cs | 93 ++++++++++ .../AutoGenSerializer/ViewUsageSerializer.cs | 42 +++++ .../ViewpointDefinitionSerializer.cs | 18 ++ .../ViewpointUsageSerializer.cs | 116 ++++++++++++ .../WhileLoopActionUsageSerializer.cs | 66 +++++++ 158 files changed, 9815 insertions(+), 2 deletions(-) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AssociationSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AssociationSerializer.cs index 695fed1b8..7c994785a 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AssociationSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/AssociationSerializer.cs @@ -156,6 +156,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAssociation.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAssociation.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("feature"u8); foreach (var item in iAssociation.feature) @@ -590,6 +602,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iAssociation.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iAssociation.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedType"u8); foreach (var item in iAssociation.relatedType) @@ -605,6 +629,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iAssociation.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iAssociation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceType"u8); if (iAssociation.sourceType.HasValue) @@ -619,6 +655,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iAssociation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetType"u8); foreach (var item in iAssociation.targetType) @@ -750,6 +798,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAssociation iAssoci writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iAssociation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iAssociation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/DependencySerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/DependencySerializer.cs index 6e93e85f4..6209a62f5 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/DependencySerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/DependencySerializer.cs @@ -280,6 +280,18 @@ private static void SerializeAsJsonWithDerivedProperties(IDependency iDependency writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iDependency.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iDependency.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("supplier"u8); foreach (var item in iDependency.Supplier) @@ -292,6 +304,18 @@ private static void SerializeAsJsonWithDerivedProperties(IDependency iDependency writer.WriteEndArray(); + writer.WriteStartArray("target"u8); + + foreach (var item in iDependency.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iDependency.textualRepresentation) @@ -405,6 +429,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDependency iDepende writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iDependency.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("supplier"u8); foreach (var item in iDependency.Supplier) @@ -417,6 +453,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDependency iDepende writer.WriteEndArray(); + writer.WriteStartArray("target"u8); + + foreach (var item in iDependency.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs index 55be9e28a..f50753362 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs @@ -951,6 +951,18 @@ private static void SerializeAsJsonWithDerivedProperties(IEnumerationDefinition writer.WriteEndArray(); + writer.WriteStartArray("variant"u8); + + foreach (var item in iEnumerationDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("variantMembership"u8); foreach (var item in iEnumerationDefinition.variantMembership) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureTypingSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureTypingSerializer.cs index 9f53bba57..0d2e618b5 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureTypingSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FeatureTypingSerializer.cs @@ -120,6 +120,12 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeature writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureTyping.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iFeatureTyping.IsImplied); @@ -264,6 +270,20 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeature writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iFeatureTyping.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iFeatureTyping.qualifiedName); @@ -282,6 +302,36 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeature writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFeatureTyping.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureTyping.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.Specific); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureTyping.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFeatureTyping.textualRepresentation) @@ -337,6 +387,12 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureTyping iFeat writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureTyping.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iFeatureTyping.IsImplied); @@ -395,6 +451,36 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureTyping iFeat writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureTyping.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.Specific); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureTyping.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("type"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FlowSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FlowSerializer.cs index 37d58e0ae..348f2753c 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FlowSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FlowSerializer.cs @@ -99,6 +99,30 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteEndArray(); + writer.WriteStartArray("association"u8); + + foreach (var item in iFlow.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iFlow.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iFlow.chainingFeature) @@ -169,6 +193,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFlow.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iFlow.Direction.HasValue) @@ -195,6 +231,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFlow.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFlow.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("endOwningType"u8); if (iFlow.endOwningType.HasValue) @@ -863,6 +911,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iFlow.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFlow.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedFeature"u8); foreach (var item in iFlow.relatedFeature) @@ -878,6 +938,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFlow.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iFlow.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceFeature"u8); if (iFlow.sourceFeature.HasValue) @@ -906,6 +978,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iFlow.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetFeature"u8); foreach (var item in iFlow.targetFeature) @@ -944,6 +1028,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iFlow.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iFlow.unioningType) @@ -1086,6 +1182,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFlow iFlow, Utf8Jso writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iFlow.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFlow.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs index 4b092ba39..dcc15c599 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs @@ -132,6 +132,27 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WritePropertyName("kind"u8); writer.WriteStringValue(iFramedConcernMembership.Kind.ToString().ToLower()); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iFramedConcernMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iFramedConcernMembership.name); @@ -153,6 +174,12 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WriteStringValue(iFramedConcernMembership.ownedConcern); writer.WriteEndObject(); + writer.WritePropertyName("ownedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedConstraint); + writer.WriteEndObject(); + writer.WriteStartArray("ownedElement"u8); foreach (var item in iFramedConcernMembership.ownedElement) @@ -165,9 +192,21 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iFramedConcernMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iFramedConcernMembership.ownedMemberName); @@ -283,6 +322,12 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WriteStringValue(iFramedConcernMembership.referencedConcern); writer.WriteEndObject(); + writer.WritePropertyName("referencedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.referencedConstraint); + writer.WriteEndObject(); + writer.WriteStartArray("relatedElement"u8); foreach (var item in iFramedConcernMembership.relatedElement) @@ -298,6 +343,30 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFramedConcernMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iFramedConcernMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFramedConcernMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFramedConcernMembership.textualRepresentation) @@ -353,6 +422,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFramedConcernMember writer.WritePropertyName("kind"u8); writer.WriteStringValue(iFramedConcernMembership.Kind.ToString().ToLower()); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFramedConcernMembership.OwnedRelatedElement) @@ -405,6 +486,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFramedConcernMember writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iFramedConcernMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFramedConcernMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iFramedConcernMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralIntegerSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralIntegerSerializer.cs index 880c0ff22..57fce9ec2 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralIntegerSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralIntegerSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralInteger iLitera writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralInteger.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralInteger.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralInteger iLitera writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralInteger.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iLiteralInteger.Direction.HasValue) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralRationalSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralRationalSerializer.cs index 7e7ddd4f4..0a0427ab8 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralRationalSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/LiteralRationalSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralRational iLiter writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralRational.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralRational.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralRational iLiter writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralRational.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iLiteralRational.Direction.HasValue) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MembershipSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MembershipSerializer.cs index fd54e59b0..afd21edc7 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MembershipSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/MembershipSerializer.cs @@ -289,6 +289,30 @@ private static void SerializeAsJsonWithDerivedProperties(IMembership iMembership writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iMembership.textualRepresentation) @@ -405,6 +429,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IMembership iMembers writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/OwningMembershipSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/OwningMembershipSerializer.cs index 1359bec82..0d664aa76 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/OwningMembershipSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/OwningMembershipSerializer.cs @@ -129,12 +129,27 @@ private static void SerializeAsJsonWithDerivedProperties(IOwningMembership iOwni writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iOwningMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iOwningMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iOwningMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iOwningMembership.membershipOwningNamespace); writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iOwningMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iOwningMembership.name); @@ -289,6 +304,30 @@ private static void SerializeAsJsonWithDerivedProperties(IOwningMembership iOwni writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iOwningMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iOwningMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iOwningMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iOwningMembership.textualRepresentation) @@ -341,6 +380,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IOwningMembership iO writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iOwningMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iOwningMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iOwningMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iOwningMembership.OwnedRelatedElement) @@ -393,6 +444,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IOwningMembership iO writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iOwningMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iOwningMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iOwningMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs index 8aad493e4..d71581432 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs @@ -120,6 +120,12 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iReferenceSubsetting.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iReferenceSubsetting.IsImplied); @@ -194,6 +200,20 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WriteNullValue(); } + writer.WritePropertyName("owningFeature"u8); + + if (iReferenceSubsetting.owningFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owningFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningMembership"u8); if (iReferenceSubsetting.owningMembership.HasValue) @@ -250,6 +270,20 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iReferenceSubsetting.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iReferenceSubsetting.qualifiedName); @@ -280,6 +314,48 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iReferenceSubsetting.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iReferenceSubsetting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.SubsettedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.SubsettingFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iReferenceSubsetting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iReferenceSubsetting.textualRepresentation) @@ -323,6 +399,12 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReferenceSubsetting writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iReferenceSubsetting.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iReferenceSubsetting.IsImplied); @@ -387,6 +469,48 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReferenceSubsetting writer.WriteStringValue(iReferenceSubsetting.ReferencedFeature); writer.WriteEndObject(); + writer.WriteStartArray("source"u8); + + foreach (var item in iReferenceSubsetting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.SubsettedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.SubsettingFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iReferenceSubsetting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/RequirementUsageSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/RequirementUsageSerializer.cs index 4cfb73c90..3ae507840 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/RequirementUsageSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/RequirementUsageSerializer.cs @@ -123,6 +123,18 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iRequirementUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iRequirementUsage.chainingFeature) @@ -135,6 +147,20 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); + writer.WritePropertyName("constraintDefinition"u8); + + if (iRequirementUsage.constraintDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.constraintDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("crossFeature"u8); if (iRequirementUsage.crossFeature.HasValue) @@ -152,6 +178,21 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iRequirementUsage.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRequirementUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iRequirementUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iRequirementUsage.differencingType) @@ -164,6 +205,18 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iRequirementUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iRequirementUsage.directedUsage) @@ -282,6 +335,20 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iRequirementUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iRequirementUsage.importedMembership) @@ -401,6 +468,9 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iRequirementUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iRequirementUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iRequirementUsage.IsVariation); @@ -1213,6 +1283,20 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteNullValue(); } + writer.WritePropertyName("predicate"u8); + + if (iRequirementUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iRequirementUsage.qualifiedName); @@ -1293,6 +1377,18 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iRequirementUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iRequirementUsage.unioningType) @@ -1366,6 +1462,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementUsage iR writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iRequirementUsage.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRequirementUsage.DeclaredShortName); + writer.WritePropertyName("direction"u8); if (iRequirementUsage.Direction.HasValue) @@ -1413,6 +1512,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementUsage iR writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iRequirementUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iRequirementUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iRequirementUsage.IsVariation); diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SelectExpressionSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SelectExpressionSerializer.cs index c0bc9c0de..84be29b54 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SelectExpressionSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SelectExpressionSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISelectExpression iSele writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iSelectExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iSelectExpression.chainingFeature) @@ -155,6 +167,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISelectExpression iSele writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSelectExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iSelectExpression.Direction.HasValue) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SubclassificationSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SubclassificationSerializer.cs index 242f3b84a..f627523ca 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SubclassificationSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/SubclassificationSerializer.cs @@ -120,6 +120,12 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubclassification.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iSubclassification.IsImplied); @@ -264,6 +270,20 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iSubclassification.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSubclassification.qualifiedName); @@ -282,6 +302,24 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSubclassification.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iSubclassification.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.Specific); + writer.WriteEndObject(); + writer.WritePropertyName("subclassifier"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -294,6 +332,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WriteStringValue(iSubclassification.Superclassifier); writer.WriteEndObject(); + writer.WriteStartArray("target"u8); + + foreach (var item in iSubclassification.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iSubclassification.textualRepresentation) @@ -337,6 +387,12 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification i writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubclassification.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iSubclassification.IsImplied); @@ -395,6 +451,24 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification i writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iSubclassification.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.Specific); + writer.WriteEndObject(); + writer.WritePropertyName("subclassifier"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -407,6 +481,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification i writer.WriteStringValue(iSubclassification.Superclassifier); writer.WriteEndObject(); + writer.WriteStartArray("target"u8); + + foreach (var item in iSubclassification.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/TextualRepresentationSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/TextualRepresentationSerializer.cs index 64b762cf4..210ba1a28 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/TextualRepresentationSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/TextualRepresentationSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITextualRepresentation writer.WriteEndArray(); + writer.WriteStartArray("annotatedElement"u8); + + foreach (var item in iTextualRepresentation.annotatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("annotation"u8); foreach (var item in iTextualRepresentation.annotation) diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/UsageSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/UsageSerializer.cs index af6b7b221..0ffb507ee 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/UsageSerializer.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenSerializer/UsageSerializer.cs @@ -372,6 +372,9 @@ private static void SerializeAsJsonWithDerivedProperties(IUsage iUsage, Utf8Json writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUsage.IsVariation); @@ -1167,6 +1170,18 @@ private static void SerializeAsJsonWithDerivedProperties(IUsage iUsage, Utf8Json writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iUsage.unioningType) @@ -1287,6 +1302,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IUsage iUsage, Utf8J writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUsage.IsVariation); diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs index 9b702c759..e36e89e28 100644 --- a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs +++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs @@ -93,7 +93,7 @@ namespace SysML2.NET.Serializer.Json.Core.DTO {{#with this as |class| }} {{ #each (Class.QueryAllProperties this) as | property | }} {{#unless this.IsTransient}} - {{#unless (Property.IsPropertyRedefinedInClass this class)}} + {{#unless (Property.IsRedefinedByPropertyWithSameName this class)}} {{#if (Property.QueryIsEnumerable property)}} writer.WriteStartArray("{{String.LowerCaseFirstLetter property.Name }}"u8); @@ -185,7 +185,7 @@ namespace SysML2.NET.Serializer.Json.Core.DTO {{ #each (Class.QueryAllProperties this) as | property | }} {{#unless this.IsDerived}} {{#unless this.IsTransient}} - {{#unless (Property.IsPropertyRedefinedInClass this class)}} + {{#unless (Property.IsRedefinedByPropertyWithSameName this class)}} {{#if (Property.QueryIsEnumerable property)}} writer.WriteStartArray("{{String.LowerCaseFirstLetter property.Name }}"u8); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AcceptActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AcceptActionUsageSerializer.cs index f648a7542..a8749e83e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AcceptActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AcceptActionUsageSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAcceptActionUsage iAcc writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iAcceptActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iAcceptActionUsage.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAcceptActionUsage iAcc writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAcceptActionUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iAcceptActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iAcceptActionUsage.differencingType) @@ -155,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAcceptActionUsage iAcc writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAcceptActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iAcceptActionUsage.directedUsage) @@ -377,6 +413,9 @@ private static void SerializeAsJsonWithDerivedProperties(IAcceptActionUsage iAcc writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAcceptActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAcceptActionUsage.IsVariation); @@ -748,6 +787,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAcceptActionUsage iAcc writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iAcceptActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iAcceptActionUsage.output) @@ -1229,6 +1280,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAcceptActionUsage iAcc writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iAcceptActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iAcceptActionUsage.unioningType) @@ -1352,6 +1415,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAcceptActionUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAcceptActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAcceptActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAcceptActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionDefinitionSerializer.cs index 221da9f6c..8e56c9e40 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionDefinitionSerializer.cs @@ -129,6 +129,18 @@ private static void SerializeAsJsonWithDerivedProperties(IActionDefinition iActi writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iActionDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iActionDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionUsageSerializer.cs index 27fc0394a..0e6897c9b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActionUsageSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IActionUsage iActionUsa writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iActionUsage.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IActionUsage iActionUsa writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iActionUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iActionUsage.differencingType) @@ -155,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(IActionUsage iActionUsa writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iActionUsage.directedUsage) @@ -377,6 +413,9 @@ private static void SerializeAsJsonWithDerivedProperties(IActionUsage iActionUsa writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iActionUsage.IsVariation); @@ -748,6 +787,18 @@ private static void SerializeAsJsonWithDerivedProperties(IActionUsage iActionUsa writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iActionUsage.output) @@ -1195,6 +1246,18 @@ private static void SerializeAsJsonWithDerivedProperties(IActionUsage iActionUsa writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iActionUsage.unioningType) @@ -1318,6 +1381,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IActionUsage iAction writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActorMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActorMembershipSerializer.cs index fad73c2fd..f25a12ede 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActorMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ActorMembershipSerializer.cs @@ -129,6 +129,27 @@ private static void SerializeAsJsonWithDerivedProperties(IActorMembership iActor writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iActorMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iActorMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iActorMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iActorMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iActorMembership.name); @@ -162,12 +183,30 @@ private static void SerializeAsJsonWithDerivedProperties(IActorMembership iActor writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iActorMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iActorMembership.ownedMemberName); + writer.WritePropertyName("ownedMemberParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.ownedMemberParameter); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberShortName"u8); writer.WriteStringValue(iActorMembership.ownedMemberShortName); @@ -289,6 +328,30 @@ private static void SerializeAsJsonWithDerivedProperties(IActorMembership iActor writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iActorMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iActorMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iActorMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iActorMembership.textualRepresentation) @@ -341,6 +404,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IActorMembership iAc writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iActorMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iActorMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iActorMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iActorMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iActorMembership.OwnedRelatedElement) @@ -393,6 +468,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IActorMembership iAc writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iActorMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iActorMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iActorMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationDefinitionSerializer.cs index 7cc8b57f7..2d3ab961a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationDefinitionSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationDefinition i writer.WriteEndArray(); + writer.WriteStartArray("associationEnd"u8); + + foreach (var item in iAllocationDefinition.associationEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("connectionEnd"u8); foreach (var item in iAllocationDefinition.connectionEnd) @@ -180,6 +192,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationDefinition i writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAllocationDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAllocationDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("feature"u8); foreach (var item in iAllocationDefinition.feature) @@ -944,6 +968,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationDefinition i writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iAllocationDefinition.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iAllocationDefinition.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedType"u8); foreach (var item in iAllocationDefinition.relatedType) @@ -959,6 +995,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationDefinition i writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iAllocationDefinition.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iAllocationDefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceType"u8); if (iAllocationDefinition.sourceType.HasValue) @@ -973,6 +1021,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationDefinition i writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iAllocationDefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetType"u8); foreach (var item in iAllocationDefinition.targetType) @@ -1146,6 +1206,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAllocationDefinitio writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iAllocationDefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iAllocationDefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationUsageSerializer.cs index 11b72e5de..37021417b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AllocationUsageSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WriteEndArray(); + writer.WriteStartArray("association"u8); + + foreach (var item in iAllocationUsage.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iAllocationUsage.chainingFeature) @@ -123,6 +135,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WriteEndArray(); + writer.WriteStartArray("connectionDefinition"u8); + + foreach (var item in iAllocationUsage.connectionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("connectorEnd"u8); foreach (var item in iAllocationUsage.connectorEnd) @@ -169,6 +193,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WriteNullValue(); } + writer.WriteStartArray("definition"u8); + + foreach (var item in iAllocationUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iAllocationUsage.differencingType) @@ -231,6 +267,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAllocationUsage.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAllocationUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("endOwningType"u8); if (iAllocationUsage.endOwningType.HasValue) @@ -406,6 +454,9 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAllocationUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAllocationUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAllocationUsage.IsVariation); @@ -1259,6 +1310,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iAllocationUsage.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iAllocationUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedFeature"u8); foreach (var item in iAllocationUsage.relatedFeature) @@ -1274,6 +1337,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iAllocationUsage.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iAllocationUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceFeature"u8); if (iAllocationUsage.sourceFeature.HasValue) @@ -1288,6 +1363,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iAllocationUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetFeature"u8); foreach (var item in iAllocationUsage.targetFeature) @@ -1312,6 +1399,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAllocationUsage iAlloc writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iAllocationUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iAllocationUsage.unioningType) @@ -1438,6 +1537,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAllocationUsage iAl writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAllocationUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAllocationUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAllocationUsage.IsVariation); @@ -1504,6 +1606,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAllocationUsage iAl writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iAllocationUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iAllocationUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseDefinitionSerializer.cs index 87947cec5..f742dd3f5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseDefinitionSerializer.cs @@ -153,6 +153,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseDefinition writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAnalysisCaseDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iAnalysisCaseDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseUsageSerializer.cs index 2a4434a04..012b27025 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnalysisCaseUsageSerializer.cs @@ -90,6 +90,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAnalysisCaseUsage, Utf8JsonWriter writer) { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iAnalysisCaseUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("actorParameter"u8); foreach (var item in iAnalysisCaseUsage.actorParameter) @@ -125,6 +137,46 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WriteNullValue(); } + writer.WriteStartArray("behavior"u8); + + foreach (var item in iAnalysisCaseUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("calculationDefinition"u8); + + if (iAnalysisCaseUsage.calculationDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.calculationDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("caseDefinition"u8); + + if (iAnalysisCaseUsage.caseDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.caseDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iAnalysisCaseUsage.chainingFeature) @@ -157,6 +209,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAnalysisCaseUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iAnalysisCaseUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iAnalysisCaseUsage.differencingType) @@ -169,6 +233,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAnalysisCaseUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iAnalysisCaseUsage.directedUsage) @@ -275,6 +351,20 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iAnalysisCaseUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAnalysisCaseUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iAnalysisCaseUsage.importedMembership) @@ -394,6 +484,9 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAnalysisCaseUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAnalysisCaseUsage.IsVariation); @@ -779,6 +872,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WriteNullValue(); } + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iAnalysisCaseUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iAnalysisCaseUsage.output) @@ -1252,6 +1357,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAnalysisCaseUsage iAna writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iAnalysisCaseUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iAnalysisCaseUsage.unioningType) @@ -1375,6 +1492,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAnalysisCaseUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAnalysisCaseUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAnalysisCaseUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAnalysisCaseUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotationSerializer.cs index 280cc1587..87e741a60 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AnnotationSerializer.cs @@ -322,6 +322,30 @@ private static void SerializeAsJsonWithDerivedProperties(IAnnotation iAnnotation writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iAnnotation.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iAnnotation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iAnnotation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iAnnotation.textualRepresentation) @@ -429,6 +453,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAnnotation iAnnotat writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iAnnotation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iAnnotation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssertConstraintUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssertConstraintUsageSerializer.cs index b150b6f58..ced1492cd 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssertConstraintUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssertConstraintUsageSerializer.cs @@ -105,6 +105,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WriteStringValue(iAssertConstraintUsage.assertedConstraint); writer.WriteEndObject(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iAssertConstraintUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iAssertConstraintUsage.chainingFeature) @@ -151,6 +163,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAssertConstraintUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iAssertConstraintUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iAssertConstraintUsage.differencingType) @@ -163,6 +187,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAssertConstraintUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iAssertConstraintUsage.directedUsage) @@ -269,6 +305,20 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iAssertConstraintUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iAssertConstraintUsage.importedMembership) @@ -391,6 +441,9 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAssertConstraintUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAssertConstraintUsage.IsVariation); @@ -1203,6 +1256,20 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WriteNullValue(); } + writer.WritePropertyName("predicate"u8); + + if (iAssertConstraintUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iAssertConstraintUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iAssertConstraintUsage.qualifiedName); @@ -1227,6 +1294,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssertConstraintUsage writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iAssertConstraintUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iAssertConstraintUsage.unioningType) @@ -1353,6 +1432,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAssertConstraintUsa writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAssertConstraintUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAssertConstraintUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAssertConstraintUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssignmentActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssignmentActionUsageSerializer.cs index 22787040a..934f374a5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssignmentActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssignmentActionUsageSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssignmentActionUsage writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iAssignmentActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iAssignmentActionUsage.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssignmentActionUsage writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAssignmentActionUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iAssignmentActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iAssignmentActionUsage.differencingType) @@ -155,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssignmentActionUsage writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iAssignmentActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iAssignmentActionUsage.directedUsage) @@ -377,6 +413,9 @@ private static void SerializeAsJsonWithDerivedProperties(IAssignmentActionUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAssignmentActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAssignmentActionUsage.IsVariation); @@ -748,6 +787,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssignmentActionUsage writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iAssignmentActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iAssignmentActionUsage.output) @@ -1215,6 +1266,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssignmentActionUsage writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iAssignmentActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iAssignmentActionUsage.unioningType) @@ -1352,6 +1415,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAssignmentActionUsa writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAssignmentActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAssignmentActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAssignmentActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationSerializer.cs index 58b929d5a..e44811c10 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationSerializer.cs @@ -156,6 +156,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAssociation.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAssociation.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("feature"u8); foreach (var item in iAssociation.feature) @@ -590,6 +602,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iAssociation.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iAssociation.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedType"u8); foreach (var item in iAssociation.relatedType) @@ -605,6 +629,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iAssociation.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iAssociation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceType"u8); if (iAssociation.sourceType.HasValue) @@ -619,6 +655,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociation iAssociati writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iAssociation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetType"u8); foreach (var item in iAssociation.targetType) @@ -750,6 +798,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAssociation iAssoci writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iAssociation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iAssociation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationStructureSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationStructureSerializer.cs index 129f1acc7..e8567da85 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationStructureSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AssociationStructureSerializer.cs @@ -156,6 +156,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociationStructure i writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iAssociationStructure.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iAssociationStructure.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("feature"u8); foreach (var item in iAssociationStructure.feature) @@ -590,6 +602,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociationStructure i writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iAssociationStructure.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iAssociationStructure.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedType"u8); foreach (var item in iAssociationStructure.relatedType) @@ -605,6 +629,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociationStructure i writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iAssociationStructure.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iAssociationStructure.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceType"u8); if (iAssociationStructure.sourceType.HasValue) @@ -619,6 +655,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAssociationStructure i writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iAssociationStructure.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetType"u8); foreach (var item in iAssociationStructure.targetType) @@ -750,6 +798,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAssociationStructur writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iAssociationStructure.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iAssociationStructure.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeUsageSerializer.cs index 9ee6c0a9b..96b582967 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/AttributeUsageSerializer.cs @@ -143,6 +143,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAttributeUsage iAttrib writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iAttributeUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iAttributeUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iAttributeUsage.differencingType) @@ -372,6 +384,9 @@ private static void SerializeAsJsonWithDerivedProperties(IAttributeUsage iAttrib writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAttributeUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAttributeUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAttributeUsage.IsVariation); @@ -1167,6 +1182,18 @@ private static void SerializeAsJsonWithDerivedProperties(IAttributeUsage iAttrib writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iAttributeUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iAttributeUsage.unioningType) @@ -1287,6 +1314,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IAttributeUsage iAtt writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iAttributeUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iAttributeUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iAttributeUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BehaviorSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BehaviorSerializer.cs index f955de774..e58666eb6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BehaviorSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BehaviorSerializer.cs @@ -117,6 +117,18 @@ private static void SerializeAsJsonWithDerivedProperties(IBehavior iBehavior, Ut writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iBehavior.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("documentation"u8); foreach (var item in iBehavior.documentation) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorAsUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorAsUsageSerializer.cs index 1386ef0c0..5e2537057 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorAsUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorAsUsageSerializer.cs @@ -243,6 +243,18 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnectorAsUsag writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iBindingConnectorAsUsage.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iBindingConnectorAsUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("endOwningType"u8); if (iBindingConnectorAsUsage.endOwningType.HasValue) @@ -401,6 +413,9 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnectorAsUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iBindingConnectorAsUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iBindingConnectorAsUsage.IsVariation); @@ -1207,6 +1222,18 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnectorAsUsag writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iBindingConnectorAsUsage.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iBindingConnectorAsUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedFeature"u8); foreach (var item in iBindingConnectorAsUsage.relatedFeature) @@ -1222,6 +1249,18 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnectorAsUsag writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iBindingConnectorAsUsage.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iBindingConnectorAsUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceFeature"u8); if (iBindingConnectorAsUsage.sourceFeature.HasValue) @@ -1236,6 +1275,18 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnectorAsUsag writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iBindingConnectorAsUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetFeature"u8); foreach (var item in iBindingConnectorAsUsage.targetFeature) @@ -1260,6 +1311,18 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnectorAsUsag writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iBindingConnectorAsUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iBindingConnectorAsUsage.unioningType) @@ -1383,6 +1446,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IBindingConnectorAsU writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iBindingConnectorAsUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iBindingConnectorAsUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iBindingConnectorAsUsage.IsVariation); @@ -1438,6 +1504,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IBindingConnectorAsU writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iBindingConnectorAsUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iBindingConnectorAsUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorSerializer.cs index cf5ba5a69..03d73ea50 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BindingConnectorSerializer.cs @@ -219,6 +219,18 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnector iBind writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iBindingConnector.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iBindingConnector.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("endOwningType"u8); if (iBindingConnector.endOwningType.HasValue) @@ -825,6 +837,18 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnector iBind writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iBindingConnector.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iBindingConnector.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedFeature"u8); foreach (var item in iBindingConnector.relatedFeature) @@ -840,6 +864,18 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnector iBind writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iBindingConnector.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iBindingConnector.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceFeature"u8); if (iBindingConnector.sourceFeature.HasValue) @@ -854,6 +890,18 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnector iBind writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iBindingConnector.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetFeature"u8); foreach (var item in iBindingConnector.targetFeature) @@ -878,6 +926,18 @@ private static void SerializeAsJsonWithDerivedProperties(IBindingConnector iBind writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iBindingConnector.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iBindingConnector.unioningType) @@ -1020,6 +1080,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IBindingConnector iB writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iBindingConnector.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iBindingConnector.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BooleanExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BooleanExpressionSerializer.cs index c9f8d255c..12e369a9e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BooleanExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/BooleanExpressionSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(IBooleanExpression iBoo writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iBooleanExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iBooleanExpression.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IBooleanExpression iBoo writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iBooleanExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iBooleanExpression.Direction.HasValue) @@ -237,6 +261,20 @@ private static void SerializeAsJsonWithDerivedProperties(IBooleanExpression iBoo writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iBooleanExpression.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iBooleanExpression.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iBooleanExpression.importedMembership) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationDefinitionSerializer.cs index f675895d7..5ca4fbc12 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationDefinitionSerializer.cs @@ -141,6 +141,18 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationDefinition writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iCalculationDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iCalculationDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationUsageSerializer.cs index 02e9b53df..d02ff2e1c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CalculationUsageSerializer.cs @@ -90,6 +90,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalculationUsage, Utf8JsonWriter writer) { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iCalculationUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("aliasIds"u8); foreach (var item in iCalculationUsage.AliasIds) @@ -99,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iCalculationUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("calculationDefinition"u8); if (iCalculationUsage.calculationDefinition.HasValue) @@ -145,6 +169,18 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iCalculationUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iCalculationUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iCalculationUsage.differencingType) @@ -157,6 +193,18 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iCalculationUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iCalculationUsage.directedUsage) @@ -263,6 +311,20 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iCalculationUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCalculationUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iCalculationUsage.importedMembership) @@ -382,6 +444,9 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iCalculationUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iCalculationUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iCalculationUsage.IsVariation); @@ -753,6 +818,18 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iCalculationUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iCalculationUsage.output) @@ -1206,6 +1283,18 @@ private static void SerializeAsJsonWithDerivedProperties(ICalculationUsage iCalc writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iCalculationUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iCalculationUsage.unioningType) @@ -1329,6 +1418,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(ICalculationUsage iC writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iCalculationUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iCalculationUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iCalculationUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseDefinitionSerializer.cs index 78c23aca4..4990f2870 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseDefinitionSerializer.cs @@ -153,6 +153,18 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseDefinition iCaseDe writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iCaseDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iCaseDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseUsageSerializer.cs index 0421fb3eb..765d122c3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CaseUsageSerializer.cs @@ -90,6 +90,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, Utf8JsonWriter writer) { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iCaseUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("actorParameter"u8); foreach (var item in iCaseUsage.actorParameter) @@ -111,6 +123,32 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iCaseUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("calculationDefinition"u8); + + if (iCaseUsage.calculationDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.calculationDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("caseDefinition"u8); if (iCaseUsage.caseDefinition.HasValue) @@ -157,6 +195,18 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iCaseUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iCaseUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iCaseUsage.differencingType) @@ -169,6 +219,18 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iCaseUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iCaseUsage.directedUsage) @@ -275,6 +337,20 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iCaseUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCaseUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iCaseUsage.importedMembership) @@ -394,6 +470,9 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iCaseUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iCaseUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iCaseUsage.IsVariation); @@ -779,6 +858,18 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WriteNullValue(); } + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iCaseUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iCaseUsage.output) @@ -1238,6 +1329,18 @@ private static void SerializeAsJsonWithDerivedProperties(ICaseUsage iCaseUsage, writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iCaseUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iCaseUsage.unioningType) @@ -1361,6 +1464,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(ICaseUsage iCaseUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iCaseUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iCaseUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iCaseUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CollectExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CollectExpressionSerializer.cs index 19d587cf2..9c70e0566 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CollectExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CollectExpressionSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(ICollectExpression iCol writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iCollectExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iCollectExpression.chainingFeature) @@ -155,6 +167,18 @@ private static void SerializeAsJsonWithDerivedProperties(ICollectExpression iCol writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iCollectExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iCollectExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernDefinitionSerializer.cs index 526307256..7d9eb8a33 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernDefinitionSerializer.cs @@ -126,6 +126,9 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernDefinition iCon writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iConcernDefinition.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConcernDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); foreach (var item in iConcernDefinition.differencingType) @@ -138,6 +141,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernDefinition iCon writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConcernDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iConcernDefinition.directedUsage) @@ -1099,6 +1114,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConcernDefinition i writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iConcernDefinition.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConcernDefinition.DeclaredShortName); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConcernDefinition.ElementId); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernUsageSerializer.cs index b8e2a0062..d1fbe9bea 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConcernUsageSerializer.cs @@ -123,6 +123,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iConcernUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iConcernUsage.chainingFeature) @@ -149,6 +161,20 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteNullValue(); } + writer.WritePropertyName("constraintDefinition"u8); + + if (iConcernUsage.constraintDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.constraintDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("crossFeature"u8); if (iConcernUsage.crossFeature.HasValue) @@ -166,6 +192,21 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iConcernUsage.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConcernUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iConcernUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iConcernUsage.differencingType) @@ -178,6 +219,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConcernUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iConcernUsage.directedUsage) @@ -296,6 +349,20 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iConcernUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iConcernUsage.importedMembership) @@ -415,6 +482,9 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iConcernUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iConcernUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConcernUsage.IsVariation); @@ -1227,6 +1297,20 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteNullValue(); } + writer.WritePropertyName("predicate"u8); + + if (iConcernUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iConcernUsage.qualifiedName); @@ -1245,6 +1329,20 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteEndArray(); + writer.WritePropertyName("requirementDefinition"u8); + + if (iConcernUsage.requirementDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConcernUsage.requirementDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("result"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -1293,6 +1391,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConcernUsage iConcernU writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iConcernUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iConcernUsage.unioningType) @@ -1366,6 +1476,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConcernUsage iConce writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iConcernUsage.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iConcernUsage.DeclaredShortName); + writer.WritePropertyName("direction"u8); if (iConcernUsage.Direction.HasValue) @@ -1413,6 +1526,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConcernUsage iConce writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iConcernUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iConcernUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConcernUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortDefinitionSerializer.cs index be51892a5..9d0308bb4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortDefinitionSerializer.cs @@ -442,6 +442,20 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortDefiniti writer.WriteEndArray(); + writer.WritePropertyName("ownedConjugator"u8); + + if (iConjugatedPortDefinition.ownedConjugator.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortDefinition.ownedConjugator.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("ownedConnection"u8); foreach (var item in iConjugatedPortDefinition.ownedConnection) @@ -884,6 +898,20 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortDefiniti writer.WriteNullValue(); } + writer.WritePropertyName("owningNamespace"u8); + + if (iConjugatedPortDefinition.owningNamespace.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortDefinition.owningNamespace.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningRelationship"u8); if (iConjugatedPortDefinition.OwningRelationship.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortTypingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortTypingSerializer.cs index 0540fa4c1..0c4c135fd 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortTypingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugatedPortTypingSerializer.cs @@ -126,6 +126,12 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortTyping i writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConjugatedPortTyping.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iConjugatedPortTyping.IsImplied); @@ -270,6 +276,20 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortTyping i writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iConjugatedPortTyping.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("portDefinition"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -294,6 +314,36 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortTyping i writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iConjugatedPortTyping.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iConjugatedPortTyping.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.Specific); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iConjugatedPortTyping.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iConjugatedPortTyping.textualRepresentation) @@ -306,6 +356,12 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugatedPortTyping i writer.WriteEndArray(); + writer.WritePropertyName("type"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.Type); + writer.WriteEndObject(); + writer.WritePropertyName("typedFeature"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -349,6 +405,12 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConjugatedPortTypin writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConjugatedPortTyping.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iConjugatedPortTyping.IsImplied); @@ -407,6 +469,42 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConjugatedPortTypin writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iConjugatedPortTyping.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.Specific); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iConjugatedPortTyping.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("type"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConjugatedPortTyping.Type); + writer.WriteEndObject(); + writer.WritePropertyName("typedFeature"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugationSerializer.cs index 6048338cb..42c98f245 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConjugationSerializer.cs @@ -294,6 +294,30 @@ private static void SerializeAsJsonWithDerivedProperties(IConjugation iConjugati writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iConjugation.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iConjugation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iConjugation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iConjugation.textualRepresentation) @@ -407,6 +431,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConjugation iConjug writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iConjugation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iConjugation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionDefinitionSerializer.cs index 4a5fe947e..45b9881bd 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionDefinitionSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionDefinition i writer.WriteEndArray(); + writer.WriteStartArray("associationEnd"u8); + + foreach (var item in iConnectionDefinition.associationEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("connectionEnd"u8); foreach (var item in iConnectionDefinition.connectionEnd) @@ -168,6 +180,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionDefinition i writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConnectionDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iConnectionDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("feature"u8); foreach (var item in iConnectionDefinition.feature) @@ -932,6 +956,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionDefinition i writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iConnectionDefinition.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iConnectionDefinition.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedType"u8); foreach (var item in iConnectionDefinition.relatedType) @@ -947,6 +983,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionDefinition i writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iConnectionDefinition.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iConnectionDefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceType"u8); if (iConnectionDefinition.sourceType.HasValue) @@ -961,6 +1009,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionDefinition i writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iConnectionDefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetType"u8); foreach (var item in iConnectionDefinition.targetType) @@ -1134,6 +1194,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConnectionDefinitio writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iConnectionDefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iConnectionDefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionUsageSerializer.cs index 0e4217b98..50abf1f1e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectionUsageSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WriteEndArray(); + writer.WriteStartArray("association"u8); + + foreach (var item in iConnectionUsage.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iConnectionUsage.chainingFeature) @@ -169,6 +181,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WriteNullValue(); } + writer.WriteStartArray("definition"u8); + + foreach (var item in iConnectionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iConnectionUsage.differencingType) @@ -231,6 +255,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConnectionUsage.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iConnectionUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("endOwningType"u8); if (iConnectionUsage.endOwningType.HasValue) @@ -406,6 +442,9 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iConnectionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iConnectionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConnectionUsage.IsVariation); @@ -1259,6 +1298,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iConnectionUsage.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iConnectionUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedFeature"u8); foreach (var item in iConnectionUsage.relatedFeature) @@ -1274,6 +1325,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iConnectionUsage.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iConnectionUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceFeature"u8); if (iConnectionUsage.sourceFeature.HasValue) @@ -1288,6 +1351,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iConnectionUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetFeature"u8); foreach (var item in iConnectionUsage.targetFeature) @@ -1312,6 +1387,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnectionUsage iConne writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iConnectionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iConnectionUsage.unioningType) @@ -1438,6 +1525,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConnectionUsage iCo writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iConnectionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iConnectionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConnectionUsage.IsVariation); @@ -1504,6 +1594,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConnectionUsage iCo writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iConnectionUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iConnectionUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectorSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectorSerializer.cs index 1958cdb97..8b5bfd563 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectorSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConnectorSerializer.cs @@ -219,6 +219,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnector iConnector, writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iConnector.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iConnector.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("endOwningType"u8); if (iConnector.endOwningType.HasValue) @@ -825,6 +837,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnector iConnector, writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iConnector.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iConnector.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedFeature"u8); foreach (var item in iConnector.relatedFeature) @@ -840,6 +864,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnector iConnector, writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iConnector.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iConnector.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceFeature"u8); if (iConnector.sourceFeature.HasValue) @@ -854,6 +890,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnector iConnector, writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iConnector.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetFeature"u8); foreach (var item in iConnector.targetFeature) @@ -878,6 +926,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConnector iConnector, writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iConnector.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iConnector.unioningType) @@ -1020,6 +1080,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConnector iConnecto writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iConnector.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iConnector.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintDefinitionSerializer.cs index f88cfa78e..734cfa695 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintDefinitionSerializer.cs @@ -117,6 +117,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintDefinition i writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConstraintDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iConstraintDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintUsageSerializer.cs index 6d927e69c..adc7cc8d6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstraintUsageSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iConstraintUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iConstraintUsage.chainingFeature) @@ -145,6 +157,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iConstraintUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iConstraintUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iConstraintUsage.differencingType) @@ -157,6 +181,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConstraintUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iConstraintUsage.directedUsage) @@ -263,6 +299,20 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iConstraintUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iConstraintUsage.importedMembership) @@ -382,6 +432,9 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iConstraintUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iConstraintUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConstraintUsage.IsVariation); @@ -1194,6 +1247,20 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WriteNullValue(); } + writer.WritePropertyName("predicate"u8); + + if (iConstraintUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iConstraintUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iConstraintUsage.qualifiedName); @@ -1218,6 +1285,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConstraintUsage iConst writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iConstraintUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iConstraintUsage.unioningType) @@ -1341,6 +1420,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IConstraintUsage iCo writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iConstraintUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iConstraintUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iConstraintUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstructorExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstructorExpressionSerializer.cs index 85fa1ac08..2eb7f9b68 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstructorExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ConstructorExpressionSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConstructorExpression writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iConstructorExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iConstructorExpression.chainingFeature) @@ -155,6 +167,18 @@ private static void SerializeAsJsonWithDerivedProperties(IConstructorExpression writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iConstructorExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iConstructorExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CrossSubsettingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CrossSubsettingSerializer.cs index 22e3f7c19..a1bb15fac 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CrossSubsettingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/CrossSubsettingSerializer.cs @@ -132,6 +132,12 @@ private static void SerializeAsJsonWithDerivedProperties(ICrossSubsetting iCross writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iCrossSubsetting.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iCrossSubsetting.IsImplied); @@ -206,6 +212,20 @@ private static void SerializeAsJsonWithDerivedProperties(ICrossSubsetting iCross writer.WriteNullValue(); } + writer.WritePropertyName("owningFeature"u8); + + if (iCrossSubsetting.owningFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.owningFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningMembership"u8); if (iCrossSubsetting.owningMembership.HasValue) @@ -262,6 +282,20 @@ private static void SerializeAsJsonWithDerivedProperties(ICrossSubsetting iCross writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iCrossSubsetting.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iCrossSubsetting.qualifiedName); @@ -280,6 +314,48 @@ private static void SerializeAsJsonWithDerivedProperties(ICrossSubsetting iCross writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iCrossSubsetting.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iCrossSubsetting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.SubsettedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.SubsettingFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iCrossSubsetting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iCrossSubsetting.textualRepresentation) @@ -329,6 +405,12 @@ private static void SerializeAsJsonWithoutDerivedProperties(ICrossSubsetting iCr writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iCrossSubsetting.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iCrossSubsetting.IsImplied); @@ -387,6 +469,48 @@ private static void SerializeAsJsonWithoutDerivedProperties(ICrossSubsetting iCr writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iCrossSubsetting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.SubsettedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iCrossSubsetting.SubsettingFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iCrossSubsetting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DecisionNodeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DecisionNodeSerializer.cs index 327589ef1..991935cc5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DecisionNodeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DecisionNodeSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IDecisionNode iDecision writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iDecisionNode.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iDecisionNode.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IDecisionNode iDecision writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iDecisionNode.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iDecisionNode.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iDecisionNode.differencingType) @@ -155,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(IDecisionNode iDecision writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iDecisionNode.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iDecisionNode.directedUsage) @@ -377,6 +413,9 @@ private static void SerializeAsJsonWithDerivedProperties(IDecisionNode iDecision writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iDecisionNode.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iDecisionNode.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iDecisionNode.IsVariation); @@ -748,6 +787,18 @@ private static void SerializeAsJsonWithDerivedProperties(IDecisionNode iDecision writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iDecisionNode.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iDecisionNode.output) @@ -1195,6 +1246,18 @@ private static void SerializeAsJsonWithDerivedProperties(IDecisionNode iDecision writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iDecisionNode.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iDecisionNode.unioningType) @@ -1318,6 +1381,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDecisionNode iDecis writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iDecisionNode.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iDecisionNode.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iDecisionNode.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DependencySerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DependencySerializer.cs index 3106b838c..1a08b3d3f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DependencySerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DependencySerializer.cs @@ -280,6 +280,18 @@ private static void SerializeAsJsonWithDerivedProperties(IDependency iDependency writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iDependency.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iDependency.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("supplier"u8); foreach (var item in iDependency.Supplier) @@ -292,6 +304,18 @@ private static void SerializeAsJsonWithDerivedProperties(IDependency iDependency writer.WriteEndArray(); + writer.WriteStartArray("target"u8); + + foreach (var item in iDependency.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iDependency.textualRepresentation) @@ -405,6 +429,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDependency iDepende writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iDependency.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("supplier"u8); foreach (var item in iDependency.Supplier) @@ -417,6 +453,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDependency iDepende writer.WriteEndArray(); + writer.WriteStartArray("target"u8); + + foreach (var item in iDependency.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DifferencingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DifferencingSerializer.cs index b6a67767d..7817b0671 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DifferencingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DifferencingSerializer.cs @@ -274,6 +274,30 @@ private static void SerializeAsJsonWithDerivedProperties(IDifferencing iDifferen writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iDifferencing.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iDifferencing.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iDifferencing.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iDifferencing.textualRepresentation) @@ -387,6 +411,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDifferencing iDiffe writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iDifferencing.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iDifferencing.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DisjoiningSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DisjoiningSerializer.cs index b6d600474..b5430030a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DisjoiningSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DisjoiningSerializer.cs @@ -288,6 +288,30 @@ private static void SerializeAsJsonWithDerivedProperties(IDisjoining iDisjoining writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iDisjoining.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iDisjoining.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iDisjoining.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iDisjoining.textualRepresentation) @@ -401,6 +425,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IDisjoining iDisjoin writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iDisjoining.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iDisjoining.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("typeDisjoined"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DocumentationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DocumentationSerializer.cs index f9b96f305..7f80fd834 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DocumentationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/DocumentationSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(IDocumentation iDocumen writer.WriteEndArray(); + writer.WriteStartArray("annotatedElement"u8); + + foreach (var item in iDocumentation.annotatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("annotation"u8); foreach (var item in iDocumentation.annotation) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ElementFilterMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ElementFilterMembershipSerializer.cs index 1be196b0e..8c0f4738a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ElementFilterMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ElementFilterMembershipSerializer.cs @@ -135,12 +135,27 @@ private static void SerializeAsJsonWithDerivedProperties(IElementFilterMembershi writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iElementFilterMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iElementFilterMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iElementFilterMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iElementFilterMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iElementFilterMembership.membershipOwningNamespace); writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iElementFilterMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iElementFilterMembership.name); @@ -168,6 +183,12 @@ private static void SerializeAsJsonWithDerivedProperties(IElementFilterMembershi writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iElementFilterMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iElementFilterMembership.ownedMemberElementId); @@ -289,6 +310,30 @@ private static void SerializeAsJsonWithDerivedProperties(IElementFilterMembershi writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iElementFilterMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iElementFilterMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iElementFilterMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iElementFilterMembership.textualRepresentation) @@ -341,6 +386,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IElementFilterMember writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iElementFilterMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iElementFilterMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iElementFilterMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iElementFilterMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iElementFilterMembership.OwnedRelatedElement) @@ -393,6 +450,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IElementFilterMember writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iElementFilterMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iElementFilterMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iElementFilterMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EndFeatureMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EndFeatureMembershipSerializer.cs index b6c6302cb..a202f4258 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EndFeatureMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EndFeatureMembershipSerializer.cs @@ -129,6 +129,27 @@ private static void SerializeAsJsonWithDerivedProperties(IEndFeatureMembership i writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iEndFeatureMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iEndFeatureMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iEndFeatureMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iEndFeatureMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iEndFeatureMembership.name); @@ -156,6 +177,12 @@ private static void SerializeAsJsonWithDerivedProperties(IEndFeatureMembership i writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iEndFeatureMembership.ownedMemberElementId); @@ -289,6 +316,30 @@ private static void SerializeAsJsonWithDerivedProperties(IEndFeatureMembership i writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iEndFeatureMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iEndFeatureMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iEndFeatureMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iEndFeatureMembership.textualRepresentation) @@ -341,6 +392,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IEndFeatureMembershi writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iEndFeatureMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iEndFeatureMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iEndFeatureMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iEndFeatureMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iEndFeatureMembership.OwnedRelatedElement) @@ -393,6 +456,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IEndFeatureMembershi writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iEndFeatureMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iEndFeatureMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iEndFeatureMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs index 3de4215f9..3aacc384f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationDefinitionSerializer.cs @@ -951,6 +951,18 @@ private static void SerializeAsJsonWithDerivedProperties(IEnumerationDefinition writer.WriteEndArray(); + writer.WriteStartArray("variant"u8); + + foreach (var item in iEnumerationDefinition.variant) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("variantMembership"u8); foreach (var item in iEnumerationDefinition.variantMembership) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationUsageSerializer.cs index e7be50066..1092b6293 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EnumerationUsageSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(IEnumerationUsage iEnum writer.WriteEndArray(); + writer.WriteStartArray("attributeDefinition"u8); + + foreach (var item in iEnumerationUsage.attributeDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iEnumerationUsage.chainingFeature) @@ -131,6 +143,18 @@ private static void SerializeAsJsonWithDerivedProperties(IEnumerationUsage iEnum writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iEnumerationUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iEnumerationUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iEnumerationUsage.differencingType) @@ -366,6 +390,9 @@ private static void SerializeAsJsonWithDerivedProperties(IEnumerationUsage iEnum writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iEnumerationUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iEnumerationUsage.IsVariation); @@ -1161,6 +1188,18 @@ private static void SerializeAsJsonWithDerivedProperties(IEnumerationUsage iEnum writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iEnumerationUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iEnumerationUsage.unioningType) @@ -1281,6 +1320,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IEnumerationUsage iE writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iEnumerationUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iEnumerationUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iEnumerationUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EventOccurrenceUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EventOccurrenceUsageSerializer.cs index 4fa2e2045..4a4eac4b4 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EventOccurrenceUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/EventOccurrenceUsageSerializer.cs @@ -131,6 +131,18 @@ private static void SerializeAsJsonWithDerivedProperties(IEventOccurrenceUsage i writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iEventOccurrenceUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iEventOccurrenceUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iEventOccurrenceUsage.differencingType) @@ -383,6 +395,9 @@ private static void SerializeAsJsonWithDerivedProperties(IEventOccurrenceUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iEventOccurrenceUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iEventOccurrenceUsage.IsVariation); @@ -1201,6 +1216,18 @@ private static void SerializeAsJsonWithDerivedProperties(IEventOccurrenceUsage i writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iEventOccurrenceUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iEventOccurrenceUsage.unioningType) @@ -1324,6 +1351,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IEventOccurrenceUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iEventOccurrenceUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iEventOccurrenceUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iEventOccurrenceUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExhibitStateUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExhibitStateUsageSerializer.cs index 1c0f12f07..a45d265f8 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExhibitStateUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExhibitStateUsageSerializer.cs @@ -90,6 +90,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExhibitStateUsage, Utf8JsonWriter writer) { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iExhibitStateUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("aliasIds"u8); foreach (var item in iExhibitStateUsage.AliasIds) @@ -99,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iExhibitStateUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iExhibitStateUsage.chainingFeature) @@ -131,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iExhibitStateUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iExhibitStateUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iExhibitStateUsage.differencingType) @@ -143,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iExhibitStateUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iExhibitStateUsage.directedUsage) @@ -235,6 +283,12 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WriteNullValue(); } + writer.WritePropertyName("eventOccurrence"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.eventOccurrence); + writer.WriteEndObject(); + writer.WritePropertyName("exhibitedState"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -416,6 +470,9 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iExhibitStateUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iExhibitStateUsage.IsVariation); @@ -787,6 +844,18 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iExhibitStateUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iExhibitStateUsage.output) @@ -1205,6 +1274,12 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WriteEndArray(); + writer.WritePropertyName("performedAction"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iExhibitStateUsage.performedAction); + writer.WriteEndObject(); + writer.WritePropertyName("portionKind"u8); if (iExhibitStateUsage.PortionKind.HasValue) @@ -1246,6 +1321,18 @@ private static void SerializeAsJsonWithDerivedProperties(IExhibitStateUsage iExh writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iExhibitStateUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iExhibitStateUsage.unioningType) @@ -1372,6 +1459,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IExhibitStateUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iExhibitStateUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iExhibitStateUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iExhibitStateUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExpressionSerializer.cs index 9a3c195f5..e01b64ff2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ExpressionSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(IExpression iExpression writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iExpression.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IExpression iExpression writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainExpressionSerializer.cs index 94b567a1e..6969680c9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainExpressionSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureChainExpression writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iFeatureChainExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iFeatureChainExpression.chainingFeature) @@ -155,6 +167,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureChainExpression writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFeatureChainExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iFeatureChainExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainingSerializer.cs index fc28688ee..9f6ac232f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureChainingSerializer.cs @@ -280,6 +280,30 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureChaining iFeatu writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFeatureChaining.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureChaining.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureChaining.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFeatureChaining.textualRepresentation) @@ -387,6 +411,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureChaining iFe writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureChaining.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureChaining.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureInvertingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureInvertingSerializer.cs index 8a8439571..52287485c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureInvertingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureInvertingSerializer.cs @@ -294,6 +294,30 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureInverting iFeat writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFeatureInverting.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureInverting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureInverting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFeatureInverting.textualRepresentation) @@ -407,6 +431,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureInverting iF writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureInverting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureInverting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureMembershipSerializer.cs index 8f8139e7e..220065d67 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureMembershipSerializer.cs @@ -129,6 +129,27 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureMembership iFea writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iFeatureMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iFeatureMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iFeatureMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iFeatureMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iFeatureMembership.name); @@ -156,6 +177,12 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureMembership iFea writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iFeatureMembership.ownedMemberElementId); @@ -289,6 +316,30 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureMembership iFea writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFeatureMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFeatureMembership.textualRepresentation) @@ -341,6 +392,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureMembership i writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iFeatureMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iFeatureMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iFeatureMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFeatureMembership.OwnedRelatedElement) @@ -393,6 +456,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureMembership i writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iFeatureMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureReferenceExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureReferenceExpressionSerializer.cs index a9da01dee..983a1fd20 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureReferenceExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureReferenceExpressionSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureReferenceExpres writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iFeatureReferenceExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iFeatureReferenceExpression.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureReferenceExpres writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFeatureReferenceExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iFeatureReferenceExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureTypingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureTypingSerializer.cs index 118362af5..873c27be2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureTypingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureTypingSerializer.cs @@ -120,6 +120,12 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeature writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureTyping.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iFeatureTyping.IsImplied); @@ -264,6 +270,20 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeature writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iFeatureTyping.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iFeatureTyping.qualifiedName); @@ -282,6 +302,36 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureTyping iFeature writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFeatureTyping.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureTyping.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.Specific); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureTyping.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFeatureTyping.textualRepresentation) @@ -337,6 +387,12 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureTyping iFeat writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFeatureTyping.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iFeatureTyping.IsImplied); @@ -395,6 +451,36 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureTyping iFeat writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureTyping.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureTyping.Specific); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureTyping.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("type"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureValueSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureValueSerializer.cs index 921568b1e..a04266da5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureValueSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FeatureValueSerializer.cs @@ -141,12 +141,27 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureValue iFeatureV writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iFeatureValue.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureValue.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iFeatureValue.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iFeatureValue.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iFeatureValue.membershipOwningNamespace); writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iFeatureValue.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iFeatureValue.name); @@ -174,6 +189,12 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureValue iFeatureV writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureValue.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iFeatureValue.ownedMemberElementId); @@ -295,6 +316,30 @@ private static void SerializeAsJsonWithDerivedProperties(IFeatureValue iFeatureV writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFeatureValue.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureValue.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureValue.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFeatureValue.textualRepresentation) @@ -359,6 +404,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureValue iFeatu writer.WritePropertyName("isInitial"u8); writer.WriteBooleanValue(iFeatureValue.IsInitial); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFeatureValue.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iFeatureValue.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iFeatureValue.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFeatureValue.OwnedRelatedElement) @@ -411,6 +468,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFeatureValue iFeatu writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iFeatureValue.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFeatureValue.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iFeatureValue.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowDefinitionSerializer.cs index faf42f181..10afd769c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowDefinitionSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowDefinition iFlowDe writer.WriteEndArray(); + writer.WriteStartArray("associationEnd"u8); + + foreach (var item in iFlowDefinition.associationEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iFlowDefinition.DeclaredName); @@ -129,6 +141,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowDefinition iFlowDe writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFlowDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iFlowDefinition.directedUsage) @@ -156,6 +180,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowDefinition iFlowDe writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFlowDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFlowDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("feature"u8); foreach (var item in iFlowDefinition.feature) @@ -944,6 +980,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowDefinition iFlowDe writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iFlowDefinition.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFlowDefinition.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedType"u8); foreach (var item in iFlowDefinition.relatedType) @@ -959,6 +1007,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowDefinition iFlowDe writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFlowDefinition.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iFlowDefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceType"u8); if (iFlowDefinition.sourceType.HasValue) @@ -985,6 +1045,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowDefinition iFlowDe writer.WriteEndArray(); + writer.WriteStartArray("target"u8); + + foreach (var item in iFlowDefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetType"u8); foreach (var item in iFlowDefinition.targetType) @@ -1158,6 +1230,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFlowDefinition iFlo writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iFlowDefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFlowDefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowSerializer.cs index 37d58e0ae..348f2753c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowSerializer.cs @@ -99,6 +99,30 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteEndArray(); + writer.WriteStartArray("association"u8); + + foreach (var item in iFlow.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iFlow.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iFlow.chainingFeature) @@ -169,6 +193,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFlow.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iFlow.Direction.HasValue) @@ -195,6 +231,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFlow.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFlow.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("endOwningType"u8); if (iFlow.endOwningType.HasValue) @@ -863,6 +911,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iFlow.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFlow.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedFeature"u8); foreach (var item in iFlow.relatedFeature) @@ -878,6 +938,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFlow.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iFlow.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceFeature"u8); if (iFlow.sourceFeature.HasValue) @@ -906,6 +978,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iFlow.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetFeature"u8); foreach (var item in iFlow.targetFeature) @@ -944,6 +1028,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlow iFlow, Utf8JsonWr writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iFlow.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iFlow.unioningType) @@ -1086,6 +1182,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFlow iFlow, Utf8Jso writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iFlow.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFlow.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowUsageSerializer.cs index 1fdc628d8..5fc2e8b76 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FlowUsageSerializer.cs @@ -90,6 +90,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, Utf8JsonWriter writer) { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iFlowUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("aliasIds"u8); foreach (var item in iFlowUsage.AliasIds) @@ -99,6 +111,30 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteEndArray(); + writer.WriteStartArray("association"u8); + + foreach (var item in iFlowUsage.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iFlowUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iFlowUsage.chainingFeature) @@ -157,6 +193,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteNullValue(); } + writer.WriteStartArray("definition"u8); + + foreach (var item in iFlowUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iFlowUsage.differencingType) @@ -169,6 +217,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFlowUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iFlowUsage.directedUsage) @@ -207,6 +267,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iFlowUsage.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iFlowUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("endOwningType"u8); if (iFlowUsage.endOwningType.HasValue) @@ -349,6 +421,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteEndArray(); + writer.WriteStartArray("interaction"u8); + + foreach (var item in iFlowUsage.interaction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("intersectingType"u8); foreach (var item in iFlowUsage.intersectingType) @@ -406,6 +490,9 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iFlowUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iFlowUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iFlowUsage.IsVariation); @@ -777,6 +864,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iFlowUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iFlowUsage.output) @@ -1261,6 +1360,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iFlowUsage.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iFlowUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedFeature"u8); foreach (var item in iFlowUsage.relatedFeature) @@ -1276,6 +1387,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFlowUsage.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iFlowUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceFeature"u8); if (iFlowUsage.sourceFeature.HasValue) @@ -1304,6 +1427,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iFlowUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetFeature"u8); foreach (var item in iFlowUsage.targetFeature) @@ -1342,6 +1477,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFlowUsage iFlowUsage, writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iFlowUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iFlowUsage.unioningType) @@ -1468,6 +1615,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFlowUsage iFlowUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iFlowUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iFlowUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iFlowUsage.IsVariation); @@ -1534,6 +1684,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFlowUsage iFlowUsag writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iFlowUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFlowUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForLoopActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForLoopActionUsageSerializer.cs index 42b274985..8f81fd3c6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForLoopActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForLoopActionUsageSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IForLoopActionUsage iFo writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iForLoopActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("bodyAction"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -149,6 +161,18 @@ private static void SerializeAsJsonWithDerivedProperties(IForLoopActionUsage iFo writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iForLoopActionUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iForLoopActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iForLoopActionUsage.differencingType) @@ -161,6 +185,18 @@ private static void SerializeAsJsonWithDerivedProperties(IForLoopActionUsage iFo writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iForLoopActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iForLoopActionUsage.directedUsage) @@ -383,6 +419,9 @@ private static void SerializeAsJsonWithDerivedProperties(IForLoopActionUsage iFo writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iForLoopActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iForLoopActionUsage.IsVariation); @@ -760,6 +799,18 @@ private static void SerializeAsJsonWithDerivedProperties(IForLoopActionUsage iFo writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iForLoopActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iForLoopActionUsage.output) @@ -1213,6 +1264,18 @@ private static void SerializeAsJsonWithDerivedProperties(IForLoopActionUsage iFo writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iForLoopActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iForLoopActionUsage.unioningType) @@ -1336,6 +1399,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IForLoopActionUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iForLoopActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iForLoopActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iForLoopActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForkNodeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForkNodeSerializer.cs index 5b187da07..1edb675d1 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForkNodeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ForkNodeSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IForkNode iForkNode, Ut writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iForkNode.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iForkNode.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IForkNode iForkNode, Ut writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iForkNode.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iForkNode.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iForkNode.differencingType) @@ -155,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(IForkNode iForkNode, Ut writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iForkNode.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iForkNode.directedUsage) @@ -377,6 +413,9 @@ private static void SerializeAsJsonWithDerivedProperties(IForkNode iForkNode, Ut writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iForkNode.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iForkNode.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iForkNode.IsVariation); @@ -748,6 +787,18 @@ private static void SerializeAsJsonWithDerivedProperties(IForkNode iForkNode, Ut writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iForkNode.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iForkNode.output) @@ -1195,6 +1246,18 @@ private static void SerializeAsJsonWithDerivedProperties(IForkNode iForkNode, Ut writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iForkNode.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iForkNode.unioningType) @@ -1318,6 +1381,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IForkNode iForkNode, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iForkNode.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iForkNode.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iForkNode.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs index 58590c353..fdf04e9fd 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FramedConcernMembershipSerializer.cs @@ -132,6 +132,27 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WritePropertyName("kind"u8); writer.WriteStringValue(iFramedConcernMembership.Kind.ToString().ToLower()); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iFramedConcernMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iFramedConcernMembership.name); @@ -153,6 +174,12 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WriteStringValue(iFramedConcernMembership.ownedConcern); writer.WriteEndObject(); + writer.WritePropertyName("ownedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedConstraint); + writer.WriteEndObject(); + writer.WriteStartArray("ownedElement"u8); foreach (var item in iFramedConcernMembership.ownedElement) @@ -165,9 +192,21 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iFramedConcernMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iFramedConcernMembership.ownedMemberName); @@ -283,6 +322,12 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WriteStringValue(iFramedConcernMembership.referencedConcern); writer.WriteEndObject(); + writer.WritePropertyName("referencedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.referencedConstraint); + writer.WriteEndObject(); + writer.WriteStartArray("relatedElement"u8); foreach (var item in iFramedConcernMembership.relatedElement) @@ -298,6 +343,30 @@ private static void SerializeAsJsonWithDerivedProperties(IFramedConcernMembershi writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iFramedConcernMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iFramedConcernMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFramedConcernMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iFramedConcernMembership.textualRepresentation) @@ -353,6 +422,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFramedConcernMember writer.WritePropertyName("kind"u8); writer.WriteStringValue(iFramedConcernMembership.Kind.ToString().ToLower()); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iFramedConcernMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iFramedConcernMembership.OwnedRelatedElement) @@ -405,6 +486,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IFramedConcernMember writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iFramedConcernMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iFramedConcernMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iFramedConcernMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FunctionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FunctionSerializer.cs index be342ec94..efcb94e02 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FunctionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/FunctionSerializer.cs @@ -117,6 +117,18 @@ private static void SerializeAsJsonWithDerivedProperties(IFunction iFunction, Ut writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iFunction.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("documentation"u8); foreach (var item in iFunction.documentation) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IfActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IfActionUsageSerializer.cs index ea6b02df4..16693470c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IfActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IfActionUsageSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IIfActionUsage iIfActio writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iIfActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iIfActionUsage.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IIfActionUsage iIfActio writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iIfActionUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iIfActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iIfActionUsage.differencingType) @@ -155,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(IIfActionUsage iIfActio writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iIfActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iIfActionUsage.directedUsage) @@ -397,6 +433,9 @@ private static void SerializeAsJsonWithDerivedProperties(IIfActionUsage iIfActio writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iIfActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iIfActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iIfActionUsage.IsVariation); @@ -768,6 +807,18 @@ private static void SerializeAsJsonWithDerivedProperties(IIfActionUsage iIfActio writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iIfActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iIfActionUsage.output) @@ -1221,6 +1272,18 @@ private static void SerializeAsJsonWithDerivedProperties(IIfActionUsage iIfActio writer.WriteStringValue(iIfActionUsage.thenAction); writer.WriteEndObject(); + writer.WriteStartArray("type"u8); + + foreach (var item in iIfActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iIfActionUsage.unioningType) @@ -1344,6 +1407,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IIfActionUsage iIfAc writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iIfActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iIfActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iIfActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IncludeUseCaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IncludeUseCaseUsageSerializer.cs index 02c2cf691..4452ea202 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IncludeUseCaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IncludeUseCaseUsageSerializer.cs @@ -90,6 +90,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iIncludeUseCaseUsage, Utf8JsonWriter writer) { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iIncludeUseCaseUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("actorParameter"u8); foreach (var item in iIncludeUseCaseUsage.actorParameter) @@ -111,6 +123,46 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iIncludeUseCaseUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("calculationDefinition"u8); + + if (iIncludeUseCaseUsage.calculationDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.calculationDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("caseDefinition"u8); + + if (iIncludeUseCaseUsage.caseDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.caseDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iIncludeUseCaseUsage.chainingFeature) @@ -143,6 +195,18 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iIncludeUseCaseUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iIncludeUseCaseUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iIncludeUseCaseUsage.differencingType) @@ -155,6 +219,18 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iIncludeUseCaseUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iIncludeUseCaseUsage.directedUsage) @@ -219,6 +295,12 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteNullValue(); } + writer.WritePropertyName("eventOccurrence"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.eventOccurrence); + writer.WriteEndObject(); + writer.WriteStartArray("feature"u8); foreach (var item in iIncludeUseCaseUsage.feature) @@ -261,6 +343,20 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iIncludeUseCaseUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iIncludeUseCaseUsage.importedMembership) @@ -392,6 +488,9 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iIncludeUseCaseUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iIncludeUseCaseUsage.IsVariation); @@ -777,6 +876,18 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteNullValue(); } + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iIncludeUseCaseUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iIncludeUseCaseUsage.output) @@ -1195,6 +1306,12 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteEndArray(); + writer.WritePropertyName("performedAction"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iIncludeUseCaseUsage.performedAction); + writer.WriteEndObject(); + writer.WritePropertyName("portionKind"u8); if (iIncludeUseCaseUsage.PortionKind.HasValue) @@ -1236,6 +1353,18 @@ private static void SerializeAsJsonWithDerivedProperties(IIncludeUseCaseUsage iI writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iIncludeUseCaseUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iIncludeUseCaseUsage.unioningType) @@ -1379,6 +1508,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IIncludeUseCaseUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iIncludeUseCaseUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iIncludeUseCaseUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iIncludeUseCaseUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IndexExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IndexExpressionSerializer.cs index 1e93fe383..1826106be 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IndexExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IndexExpressionSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IIndexExpression iIndex writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iIndexExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iIndexExpression.chainingFeature) @@ -155,6 +167,18 @@ private static void SerializeAsJsonWithDerivedProperties(IIndexExpression iIndex writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iIndexExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iIndexExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InteractionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InteractionSerializer.cs index bcaba6aeb..9f5316bbc 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InteractionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InteractionSerializer.cs @@ -129,6 +129,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInteraction iInteracti writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iInteraction.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("documentation"u8); foreach (var item in iInteraction.documentation) @@ -144,6 +156,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInteraction iInteracti writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iInteraction.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iInteraction.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("feature"u8); foreach (var item in iInteraction.feature) @@ -590,6 +614,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInteraction iInteracti writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iInteraction.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iInteraction.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedType"u8); foreach (var item in iInteraction.relatedType) @@ -605,6 +641,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInteraction iInteracti writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iInteraction.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iInteraction.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceType"u8); if (iInteraction.sourceType.HasValue) @@ -631,6 +679,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInteraction iInteracti writer.WriteEndArray(); + writer.WriteStartArray("target"u8); + + foreach (var item in iInteraction.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetType"u8); foreach (var item in iInteraction.targetType) @@ -762,6 +822,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IInteraction iIntera writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iInteraction.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iInteraction.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceDefinitionSerializer.cs index fcff6321e..f7b68da90 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceDefinitionSerializer.cs @@ -99,6 +99,30 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceDefinition iI writer.WriteEndArray(); + writer.WriteStartArray("associationEnd"u8); + + foreach (var item in iInterfaceDefinition.associationEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("connectionEnd"u8); + + foreach (var item in iInterfaceDefinition.connectionEnd) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iInterfaceDefinition.DeclaredName); @@ -156,6 +180,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceDefinition iI writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iInterfaceDefinition.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iInterfaceDefinition.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("feature"u8); foreach (var item in iInterfaceDefinition.feature) @@ -932,6 +968,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceDefinition iI writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iInterfaceDefinition.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iInterfaceDefinition.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedType"u8); foreach (var item in iInterfaceDefinition.relatedType) @@ -947,6 +995,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceDefinition iI writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iInterfaceDefinition.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iInterfaceDefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceType"u8); if (iInterfaceDefinition.sourceType.HasValue) @@ -961,6 +1021,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceDefinition iI writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iInterfaceDefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetType"u8); foreach (var item in iInterfaceDefinition.targetType) @@ -1134,6 +1206,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IInterfaceDefinition writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iInterfaceDefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iInterfaceDefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceUsageSerializer.cs index 2ece7f6f2..7f4c43b42 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InterfaceUsageSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WriteEndArray(); + writer.WriteStartArray("association"u8); + + foreach (var item in iInterfaceUsage.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iInterfaceUsage.chainingFeature) @@ -111,6 +123,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WriteEndArray(); + writer.WriteStartArray("connectionDefinition"u8); + + foreach (var item in iInterfaceUsage.connectionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("connectorEnd"u8); foreach (var item in iInterfaceUsage.connectorEnd) @@ -157,6 +181,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WriteNullValue(); } + writer.WriteStartArray("definition"u8); + + foreach (var item in iInterfaceUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iInterfaceUsage.differencingType) @@ -219,6 +255,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iInterfaceUsage.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iInterfaceUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("endOwningType"u8); if (iInterfaceUsage.endOwningType.HasValue) @@ -406,6 +454,9 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iInterfaceUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iInterfaceUsage.IsVariation); @@ -1259,6 +1310,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iInterfaceUsage.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iInterfaceUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedFeature"u8); foreach (var item in iInterfaceUsage.relatedFeature) @@ -1274,6 +1337,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iInterfaceUsage.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iInterfaceUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceFeature"u8); if (iInterfaceUsage.sourceFeature.HasValue) @@ -1288,6 +1363,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iInterfaceUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetFeature"u8); foreach (var item in iInterfaceUsage.targetFeature) @@ -1312,6 +1399,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInterfaceUsage iInterf writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iInterfaceUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iInterfaceUsage.unioningType) @@ -1438,6 +1537,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IInterfaceUsage iInt writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iInterfaceUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iInterfaceUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iInterfaceUsage.IsVariation); @@ -1504,6 +1606,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IInterfaceUsage iInt writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iInterfaceUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iInterfaceUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IntersectingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IntersectingSerializer.cs index 008502683..8b6ed17f5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IntersectingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/IntersectingSerializer.cs @@ -274,6 +274,30 @@ private static void SerializeAsJsonWithDerivedProperties(IIntersecting iIntersec writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iIntersecting.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iIntersecting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iIntersecting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iIntersecting.textualRepresentation) @@ -387,6 +411,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IIntersecting iInter writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iIntersecting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iIntersecting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvariantSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvariantSerializer.cs index 14ea396e3..4ec041e1a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvariantSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvariantSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInvariant iInvariant, writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iInvariant.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iInvariant.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInvariant iInvariant, writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iInvariant.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iInvariant.Direction.HasValue) @@ -237,6 +261,20 @@ private static void SerializeAsJsonWithDerivedProperties(IInvariant iInvariant, writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iInvariant.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iInvariant.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iInvariant.importedMembership) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvocationExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvocationExpressionSerializer.cs index 1a2386df8..e6881d8dc 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvocationExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/InvocationExpressionSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInvocationExpression i writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iInvocationExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iInvocationExpression.chainingFeature) @@ -155,6 +167,18 @@ private static void SerializeAsJsonWithDerivedProperties(IInvocationExpression i writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iInvocationExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iInvocationExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemUsageSerializer.cs index bde5e9b99..bb530128b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ItemUsageSerializer.cs @@ -131,6 +131,18 @@ private static void SerializeAsJsonWithDerivedProperties(IItemUsage iItemUsage, writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iItemUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iItemUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iItemUsage.differencingType) @@ -377,6 +389,9 @@ private static void SerializeAsJsonWithDerivedProperties(IItemUsage iItemUsage, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iItemUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iItemUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iItemUsage.IsVariation); @@ -1207,6 +1222,18 @@ private static void SerializeAsJsonWithDerivedProperties(IItemUsage iItemUsage, writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iItemUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iItemUsage.unioningType) @@ -1330,6 +1357,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IItemUsage iItemUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iItemUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iItemUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iItemUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/JoinNodeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/JoinNodeSerializer.cs index 89c5b62e0..6cb90c1ca 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/JoinNodeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/JoinNodeSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IJoinNode iJoinNode, Ut writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iJoinNode.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iJoinNode.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IJoinNode iJoinNode, Ut writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iJoinNode.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iJoinNode.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iJoinNode.differencingType) @@ -155,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(IJoinNode iJoinNode, Ut writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iJoinNode.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iJoinNode.directedUsage) @@ -377,6 +413,9 @@ private static void SerializeAsJsonWithDerivedProperties(IJoinNode iJoinNode, Ut writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iJoinNode.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iJoinNode.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iJoinNode.IsVariation); @@ -748,6 +787,18 @@ private static void SerializeAsJsonWithDerivedProperties(IJoinNode iJoinNode, Ut writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iJoinNode.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iJoinNode.output) @@ -1195,6 +1246,18 @@ private static void SerializeAsJsonWithDerivedProperties(IJoinNode iJoinNode, Ut writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iJoinNode.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iJoinNode.unioningType) @@ -1318,6 +1381,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IJoinNode iJoinNode, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iJoinNode.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iJoinNode.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iJoinNode.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralBooleanSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralBooleanSerializer.cs index 2d03380b6..9c7b6edc5 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralBooleanSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralBooleanSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralBoolean iLitera writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralBoolean.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralBoolean.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralBoolean iLitera writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralBoolean.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iLiteralBoolean.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralExpressionSerializer.cs index e31dcaefa..29ae6e75f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralExpressionSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralExpression iLit writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralExpression.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralExpression iLit writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iLiteralExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralInfinitySerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralInfinitySerializer.cs index 873161765..fef42a5f9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralInfinitySerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralInfinitySerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralInfinity iLiter writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralInfinity.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralInfinity.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralInfinity iLiter writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralInfinity.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iLiteralInfinity.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralIntegerSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralIntegerSerializer.cs index c18bd1ef8..8d33deb7b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralIntegerSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralIntegerSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralInteger iLitera writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralInteger.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralInteger.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralInteger iLitera writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralInteger.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iLiteralInteger.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralRationalSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralRationalSerializer.cs index 4a846a883..cb68b6d8f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralRationalSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralRationalSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralRational iLiter writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralRational.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralRational.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralRational iLiter writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralRational.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iLiteralRational.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralStringSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralStringSerializer.cs index 89ddecf83..5bb725436 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralStringSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/LiteralStringSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralString iLiteral writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iLiteralString.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iLiteralString.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(ILiteralString iLiteral writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iLiteralString.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iLiteralString.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipExposeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipExposeSerializer.cs index 6115b5a11..513455c37 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipExposeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipExposeSerializer.cs @@ -292,6 +292,30 @@ private static void SerializeAsJsonWithDerivedProperties(IMembershipExpose iMemb writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iMembershipExpose.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iMembershipExpose.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iMembershipExpose.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iMembershipExpose.textualRepresentation) @@ -408,6 +432,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IMembershipExpose iM writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iMembershipExpose.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iMembershipExpose.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iMembershipExpose.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipImportSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipImportSerializer.cs index 1fdcefc22..f40156e2b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipImportSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipImportSerializer.cs @@ -292,6 +292,30 @@ private static void SerializeAsJsonWithDerivedProperties(IMembershipImport iMemb writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iMembershipImport.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iMembershipImport.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iMembershipImport.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iMembershipImport.textualRepresentation) @@ -408,6 +432,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IMembershipImport iM writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iMembershipImport.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iMembershipImport.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iMembershipImport.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipSerializer.cs index 364b39927..c5c24186b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MembershipSerializer.cs @@ -289,6 +289,30 @@ private static void SerializeAsJsonWithDerivedProperties(IMembership iMembership writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iMembership.textualRepresentation) @@ -405,6 +429,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IMembership iMembers writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MergeNodeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MergeNodeSerializer.cs index b2ece18b2..a29173118 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MergeNodeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MergeNodeSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IMergeNode iMergeNode, writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iMergeNode.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iMergeNode.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IMergeNode iMergeNode, writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMergeNode.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iMergeNode.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iMergeNode.differencingType) @@ -155,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(IMergeNode iMergeNode, writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iMergeNode.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iMergeNode.directedUsage) @@ -377,6 +413,9 @@ private static void SerializeAsJsonWithDerivedProperties(IMergeNode iMergeNode, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iMergeNode.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iMergeNode.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iMergeNode.IsVariation); @@ -748,6 +787,18 @@ private static void SerializeAsJsonWithDerivedProperties(IMergeNode iMergeNode, writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iMergeNode.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iMergeNode.output) @@ -1195,6 +1246,18 @@ private static void SerializeAsJsonWithDerivedProperties(IMergeNode iMergeNode, writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iMergeNode.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iMergeNode.unioningType) @@ -1318,6 +1381,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IMergeNode iMergeNod writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iMergeNode.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iMergeNode.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iMergeNode.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataAccessExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataAccessExpressionSerializer.cs index 358cda8eb..5d7952c15 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataAccessExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataAccessExpressionSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(IMetadataAccessExpressi writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iMetadataAccessExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iMetadataAccessExpression.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IMetadataAccessExpressi writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iMetadataAccessExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iMetadataAccessExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataUsageSerializer.cs index 41ae0b5af..1a10098f6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/MetadataUsageSerializer.cs @@ -155,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IMetadataUsage iMetadat writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iMetadataUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iMetadataUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iMetadataUsage.differencingType) @@ -401,9 +413,24 @@ private static void SerializeAsJsonWithDerivedProperties(IMetadataUsage iMetadat writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iMetadataUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iMetadataUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iMetadataUsage.IsVariation); + writer.WriteStartArray("itemDefinition"u8); + + foreach (var item in iMetadataUsage.itemDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("mayTimeVary"u8); writer.WriteBooleanValue(iMetadataUsage.mayTimeVary); @@ -431,6 +458,20 @@ private static void SerializeAsJsonWithDerivedProperties(IMetadataUsage iMetadat writer.WriteEndArray(); + writer.WritePropertyName("metaclass"u8); + + if (iMetadataUsage.metaclass.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iMetadataUsage.metaclass.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("metadataDefinition"u8); if (iMetadataUsage.metadataDefinition.HasValue) @@ -1259,6 +1300,18 @@ private static void SerializeAsJsonWithDerivedProperties(IMetadataUsage iMetadat writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iMetadataUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iMetadataUsage.unioningType) @@ -1382,6 +1435,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IMetadataUsage iMeta writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iMetadataUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iMetadataUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iMetadataUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceExposeSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceExposeSerializer.cs index ede6b8858..81ff12cee 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceExposeSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceExposeSerializer.cs @@ -292,6 +292,30 @@ private static void SerializeAsJsonWithDerivedProperties(INamespaceExpose iNames writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iNamespaceExpose.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iNamespaceExpose.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iNamespaceExpose.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iNamespaceExpose.textualRepresentation) @@ -408,6 +432,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(INamespaceExpose iNa writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iNamespaceExpose.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iNamespaceExpose.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iNamespaceExpose.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceImportSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceImportSerializer.cs index f522294ed..416a11046 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceImportSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NamespaceImportSerializer.cs @@ -292,6 +292,30 @@ private static void SerializeAsJsonWithDerivedProperties(INamespaceImport iNames writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iNamespaceImport.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iNamespaceImport.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iNamespaceImport.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iNamespaceImport.textualRepresentation) @@ -408,6 +432,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(INamespaceImport iNa writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iNamespaceImport.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iNamespaceImport.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iNamespaceImport.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NullExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NullExpressionSerializer.cs index a00109d99..e1506118b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NullExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/NullExpressionSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(INullExpression iNullEx writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iNullExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iNullExpression.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(INullExpression iNullEx writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iNullExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iNullExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ObjectiveMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ObjectiveMembershipSerializer.cs index e29721ba1..2286bca8e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ObjectiveMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ObjectiveMembershipSerializer.cs @@ -129,6 +129,27 @@ private static void SerializeAsJsonWithDerivedProperties(IObjectiveMembership iO writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iObjectiveMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iObjectiveMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iObjectiveMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iObjectiveMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iObjectiveMembership.name); @@ -156,9 +177,21 @@ private static void SerializeAsJsonWithDerivedProperties(IObjectiveMembership iO writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iObjectiveMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iObjectiveMembership.ownedMemberName); @@ -289,6 +322,30 @@ private static void SerializeAsJsonWithDerivedProperties(IObjectiveMembership iO writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iObjectiveMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iObjectiveMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iObjectiveMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iObjectiveMembership.textualRepresentation) @@ -341,6 +398,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IObjectiveMembership writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iObjectiveMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iObjectiveMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iObjectiveMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iObjectiveMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iObjectiveMembership.OwnedRelatedElement) @@ -393,6 +462,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IObjectiveMembership writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iObjectiveMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iObjectiveMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iObjectiveMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceUsageSerializer.cs index 4886f4805..5c374b436 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OccurrenceUsageSerializer.cs @@ -131,6 +131,18 @@ private static void SerializeAsJsonWithDerivedProperties(IOccurrenceUsage iOccur writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iOccurrenceUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iOccurrenceUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iOccurrenceUsage.differencingType) @@ -377,6 +389,9 @@ private static void SerializeAsJsonWithDerivedProperties(IOccurrenceUsage iOccur writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iOccurrenceUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iOccurrenceUsage.IsVariation); @@ -1195,6 +1210,18 @@ private static void SerializeAsJsonWithDerivedProperties(IOccurrenceUsage iOccur writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iOccurrenceUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iOccurrenceUsage.unioningType) @@ -1318,6 +1345,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IOccurrenceUsage iOc writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iOccurrenceUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iOccurrenceUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iOccurrenceUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OperatorExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OperatorExpressionSerializer.cs index f326dfc3b..ffb80ee74 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OperatorExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OperatorExpressionSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IOperatorExpression iOp writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iOperatorExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iOperatorExpression.chainingFeature) @@ -155,6 +167,18 @@ private static void SerializeAsJsonWithDerivedProperties(IOperatorExpression iOp writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iOperatorExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iOperatorExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OwningMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OwningMembershipSerializer.cs index b791fcdb4..826c6e206 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OwningMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/OwningMembershipSerializer.cs @@ -129,12 +129,27 @@ private static void SerializeAsJsonWithDerivedProperties(IOwningMembership iOwni writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iOwningMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iOwningMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iOwningMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iOwningMembership.membershipOwningNamespace); writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iOwningMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iOwningMembership.name); @@ -289,6 +304,30 @@ private static void SerializeAsJsonWithDerivedProperties(IOwningMembership iOwni writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iOwningMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iOwningMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iOwningMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iOwningMembership.textualRepresentation) @@ -341,6 +380,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IOwningMembership iO writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iOwningMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iOwningMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iOwningMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iOwningMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iOwningMembership.OwnedRelatedElement) @@ -393,6 +444,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IOwningMembership iO writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iOwningMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iOwningMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iOwningMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ParameterMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ParameterMembershipSerializer.cs index 94ecce419..efc6b0502 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ParameterMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ParameterMembershipSerializer.cs @@ -129,6 +129,27 @@ private static void SerializeAsJsonWithDerivedProperties(IParameterMembership iP writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iParameterMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iParameterMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iParameterMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iParameterMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iParameterMembership.name); @@ -156,9 +177,21 @@ private static void SerializeAsJsonWithDerivedProperties(IParameterMembership iP writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iParameterMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iParameterMembership.ownedMemberName); @@ -289,6 +322,30 @@ private static void SerializeAsJsonWithDerivedProperties(IParameterMembership iP writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iParameterMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iParameterMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iParameterMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iParameterMembership.textualRepresentation) @@ -341,6 +398,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IParameterMembership writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iParameterMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iParameterMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iParameterMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iParameterMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iParameterMembership.OwnedRelatedElement) @@ -393,6 +462,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IParameterMembership writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iParameterMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iParameterMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iParameterMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartUsageSerializer.cs index a63a10d79..433e6293a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PartUsageSerializer.cs @@ -131,6 +131,18 @@ private static void SerializeAsJsonWithDerivedProperties(IPartUsage iPartUsage, writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iPartUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iPartUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iPartUsage.differencingType) @@ -377,6 +389,9 @@ private static void SerializeAsJsonWithDerivedProperties(IPartUsage iPartUsage, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iPartUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iPartUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPartUsage.IsVariation); @@ -1219,6 +1234,18 @@ private static void SerializeAsJsonWithDerivedProperties(IPartUsage iPartUsage, writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iPartUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iPartUsage.unioningType) @@ -1342,6 +1369,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IPartUsage iPartUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iPartUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iPartUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPartUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PerformActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PerformActionUsageSerializer.cs index 6ef126d74..820b123d8 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PerformActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PerformActionUsageSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iPerformActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iPerformActionUsage.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iPerformActionUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iPerformActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iPerformActionUsage.differencingType) @@ -155,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iPerformActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iPerformActionUsage.directedUsage) @@ -219,6 +255,12 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WriteNullValue(); } + writer.WritePropertyName("eventOccurrence"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPerformActionUsage.eventOccurrence); + writer.WriteEndObject(); + writer.WriteStartArray("feature"u8); foreach (var item in iPerformActionUsage.feature) @@ -377,6 +419,9 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iPerformActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPerformActionUsage.IsVariation); @@ -748,6 +793,18 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iPerformActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iPerformActionUsage.output) @@ -1201,6 +1258,18 @@ private static void SerializeAsJsonWithDerivedProperties(IPerformActionUsage iPe writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iPerformActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iPerformActionUsage.unioningType) @@ -1324,6 +1393,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IPerformActionUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iPerformActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iPerformActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPerformActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortConjugationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortConjugationSerializer.cs index 430bbf608..0c50afab7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortConjugationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortConjugationSerializer.cs @@ -150,6 +150,12 @@ private static void SerializeAsJsonWithDerivedProperties(IPortConjugation iPortC writer.WriteStringValue(iPortConjugation.OriginalPortDefinition); writer.WriteEndObject(); + writer.WritePropertyName("originalType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortConjugation.OriginalType); + writer.WriteEndObject(); + writer.WriteStartArray("ownedAnnotation"u8); foreach (var item in iPortConjugation.ownedAnnotation) @@ -268,6 +274,20 @@ private static void SerializeAsJsonWithDerivedProperties(IPortConjugation iPortC writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iPortConjugation.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortConjugation.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iPortConjugation.qualifiedName); @@ -286,6 +306,30 @@ private static void SerializeAsJsonWithDerivedProperties(IPortConjugation iPortC writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iPortConjugation.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iPortConjugation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iPortConjugation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iPortConjugation.textualRepresentation) @@ -347,6 +391,12 @@ private static void SerializeAsJsonWithoutDerivedProperties(IPortConjugation iPo writer.WriteStringValue(iPortConjugation.OriginalPortDefinition); writer.WriteEndObject(); + writer.WritePropertyName("originalType"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iPortConjugation.OriginalType); + writer.WriteEndObject(); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iPortConjugation.OwnedRelatedElement) @@ -399,6 +449,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IPortConjugation iPo writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iPortConjugation.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iPortConjugation.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortUsageSerializer.cs index 5170f5013..76a3e3362 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PortUsageSerializer.cs @@ -131,6 +131,18 @@ private static void SerializeAsJsonWithDerivedProperties(IPortUsage iPortUsage, writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iPortUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iPortUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iPortUsage.differencingType) @@ -377,6 +389,9 @@ private static void SerializeAsJsonWithDerivedProperties(IPortUsage iPortUsage, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iPortUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iPortUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPortUsage.IsVariation); @@ -748,6 +763,18 @@ private static void SerializeAsJsonWithDerivedProperties(IPortUsage iPortUsage, writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iPortUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iPortUsage.output) @@ -1195,6 +1222,18 @@ private static void SerializeAsJsonWithDerivedProperties(IPortUsage iPortUsage, writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iPortUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iPortUsage.unioningType) @@ -1318,6 +1357,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IPortUsage iPortUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iPortUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iPortUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iPortUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PredicateSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PredicateSerializer.cs index c4336bd9c..168b210bf 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PredicateSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/PredicateSerializer.cs @@ -117,6 +117,18 @@ private static void SerializeAsJsonWithDerivedProperties(IPredicate iPredicate, writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iPredicate.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("documentation"u8); foreach (var item in iPredicate.documentation) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RedefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RedefinitionSerializer.cs index ea80bd33e..f72a33363 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RedefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RedefinitionSerializer.cs @@ -120,6 +120,12 @@ private static void SerializeAsJsonWithDerivedProperties(IRedefinition iRedefini writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iRedefinition.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iRedefinition.IsImplied); @@ -264,6 +270,20 @@ private static void SerializeAsJsonWithDerivedProperties(IRedefinition iRedefini writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iRedefinition.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iRedefinition.qualifiedName); @@ -294,6 +314,48 @@ private static void SerializeAsJsonWithDerivedProperties(IRedefinition iRedefini writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iRedefinition.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iRedefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.SubsettedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.SubsettingFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iRedefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iRedefinition.textualRepresentation) @@ -337,6 +399,12 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRedefinition iRedef writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iRedefinition.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iRedefinition.IsImplied); @@ -407,6 +475,48 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRedefinition iRedef writer.WriteStringValue(iRedefinition.RedefiningFeature); writer.WriteEndObject(); + writer.WriteStartArray("source"u8); + + foreach (var item in iRedefinition.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.SubsettedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRedefinition.SubsettingFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iRedefinition.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs index da2ac9e21..9472218f7 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceSubsettingSerializer.cs @@ -120,6 +120,12 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iReferenceSubsetting.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iReferenceSubsetting.IsImplied); @@ -194,6 +200,20 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WriteNullValue(); } + writer.WritePropertyName("owningFeature"u8); + + if (iReferenceSubsetting.owningFeature.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owningFeature.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("owningMembership"u8); if (iReferenceSubsetting.owningMembership.HasValue) @@ -250,6 +270,20 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iReferenceSubsetting.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iReferenceSubsetting.qualifiedName); @@ -280,6 +314,48 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceSubsetting iR writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iReferenceSubsetting.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iReferenceSubsetting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.SubsettedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.SubsettingFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iReferenceSubsetting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iReferenceSubsetting.textualRepresentation) @@ -323,6 +399,12 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReferenceSubsetting writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iReferenceSubsetting.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iReferenceSubsetting.IsImplied); @@ -387,6 +469,48 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReferenceSubsetting writer.WriteStringValue(iReferenceSubsetting.ReferencedFeature); writer.WriteEndObject(); + writer.WriteStartArray("source"u8); + + foreach (var item in iReferenceSubsetting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.Specific); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettedFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.SubsettedFeature); + writer.WriteEndObject(); + + writer.WritePropertyName("subsettingFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReferenceSubsetting.SubsettingFeature); + writer.WriteEndObject(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iReferenceSubsetting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceUsageSerializer.cs index 04065163d..215b11424 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReferenceUsageSerializer.cs @@ -372,6 +372,9 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceUsage iRefere writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iReferenceUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iReferenceUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iReferenceUsage.IsVariation); @@ -1167,6 +1170,18 @@ private static void SerializeAsJsonWithDerivedProperties(IReferenceUsage iRefere writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iReferenceUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iReferenceUsage.unioningType) @@ -1287,6 +1302,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReferenceUsage iRef writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iReferenceUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iReferenceUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iReferenceUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingUsageSerializer.cs index f92882263..058a23b35 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RenderingUsageSerializer.cs @@ -131,6 +131,18 @@ private static void SerializeAsJsonWithDerivedProperties(IRenderingUsage iRender writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iRenderingUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iRenderingUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iRenderingUsage.differencingType) @@ -377,6 +389,9 @@ private static void SerializeAsJsonWithDerivedProperties(IRenderingUsage iRender writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iRenderingUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iRenderingUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iRenderingUsage.IsVariation); @@ -1178,6 +1193,18 @@ private static void SerializeAsJsonWithDerivedProperties(IRenderingUsage iRender writer.WriteNullValue(); } + writer.WriteStartArray("partDefinition"u8); + + foreach (var item in iRenderingUsage.partDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("portionKind"u8); if (iRenderingUsage.PortionKind.HasValue) @@ -1221,6 +1248,18 @@ private static void SerializeAsJsonWithDerivedProperties(IRenderingUsage iRender writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iRenderingUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iRenderingUsage.unioningType) @@ -1344,6 +1383,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRenderingUsage iRen writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iRenderingUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iRenderingUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iRenderingUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementConstraintMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementConstraintMembershipSerializer.cs index f190c29ee..1436df696 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementConstraintMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementConstraintMembershipSerializer.cs @@ -132,6 +132,27 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementConstraintM writer.WritePropertyName("kind"u8); writer.WriteStringValue(iRequirementConstraintMembership.Kind.ToString().ToLower()); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iRequirementConstraintMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iRequirementConstraintMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iRequirementConstraintMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iRequirementConstraintMembership.name); @@ -165,9 +186,21 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementConstraintM writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iRequirementConstraintMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iRequirementConstraintMembership.ownedMemberName); @@ -298,6 +331,30 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementConstraintM writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iRequirementConstraintMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iRequirementConstraintMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iRequirementConstraintMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iRequirementConstraintMembership.textualRepresentation) @@ -353,6 +410,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementConstrai writer.WritePropertyName("kind"u8); writer.WriteStringValue(iRequirementConstraintMembership.Kind.ToString().ToLower()); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementConstraintMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iRequirementConstraintMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iRequirementConstraintMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iRequirementConstraintMembership.OwnedRelatedElement) @@ -405,6 +474,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementConstrai writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iRequirementConstraintMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iRequirementConstraintMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iRequirementConstraintMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementDefinitionSerializer.cs index dc42b9067..7757bd62c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementDefinitionSerializer.cs @@ -126,6 +126,9 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementDefinition writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iRequirementDefinition.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRequirementDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); foreach (var item in iRequirementDefinition.differencingType) @@ -138,6 +141,18 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementDefinition writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iRequirementDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iRequirementDefinition.directedUsage) @@ -1099,6 +1114,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementDefiniti writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iRequirementDefinition.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRequirementDefinition.DeclaredShortName); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iRequirementDefinition.ElementId); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementUsageSerializer.cs index 6a8372a23..d540eaab0 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementUsageSerializer.cs @@ -123,6 +123,18 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iRequirementUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iRequirementUsage.chainingFeature) @@ -135,6 +147,20 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); + writer.WritePropertyName("constraintDefinition"u8); + + if (iRequirementUsage.constraintDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.constraintDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("crossFeature"u8); if (iRequirementUsage.crossFeature.HasValue) @@ -152,6 +178,21 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iRequirementUsage.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRequirementUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iRequirementUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iRequirementUsage.differencingType) @@ -164,6 +205,18 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iRequirementUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iRequirementUsage.directedUsage) @@ -282,6 +335,20 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iRequirementUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iRequirementUsage.importedMembership) @@ -401,6 +468,9 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iRequirementUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iRequirementUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iRequirementUsage.IsVariation); @@ -1213,6 +1283,20 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteNullValue(); } + writer.WritePropertyName("predicate"u8); + + if (iRequirementUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iRequirementUsage.qualifiedName); @@ -1293,6 +1377,18 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementUsage iRequ writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iRequirementUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iRequirementUsage.unioningType) @@ -1366,6 +1462,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementUsage iR writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iRequirementUsage.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iRequirementUsage.DeclaredShortName); + writer.WritePropertyName("direction"u8); if (iRequirementUsage.Direction.HasValue) @@ -1413,6 +1512,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementUsage iR writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iRequirementUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iRequirementUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iRequirementUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementVerificationMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementVerificationMembershipSerializer.cs index 0d06e9539..e68ed91dc 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementVerificationMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/RequirementVerificationMembershipSerializer.cs @@ -132,6 +132,27 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementVerificatio writer.WritePropertyName("kind"u8); writer.WriteStringValue(iRequirementVerificationMembership.Kind.ToString().ToLower()); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iRequirementVerificationMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iRequirementVerificationMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iRequirementVerificationMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iRequirementVerificationMembership.name); @@ -147,6 +168,12 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementVerificatio writer.WriteEndArray(); + writer.WritePropertyName("ownedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.ownedConstraint); + writer.WriteEndObject(); + writer.WriteStartArray("ownedElement"u8); foreach (var item in iRequirementVerificationMembership.ownedElement) @@ -159,9 +186,21 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementVerificatio writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iRequirementVerificationMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iRequirementVerificationMembership.ownedMemberName); @@ -277,6 +316,12 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementVerificatio writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iRequirementVerificationMembership.qualifiedName); + writer.WritePropertyName("referencedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.referencedConstraint); + writer.WriteEndObject(); + writer.WriteStartArray("relatedElement"u8); foreach (var item in iRequirementVerificationMembership.relatedElement) @@ -292,6 +337,30 @@ private static void SerializeAsJsonWithDerivedProperties(IRequirementVerificatio writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iRequirementVerificationMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iRequirementVerificationMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iRequirementVerificationMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iRequirementVerificationMembership.textualRepresentation) @@ -353,6 +422,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementVerifica writer.WritePropertyName("kind"u8); writer.WriteStringValue(iRequirementVerificationMembership.Kind.ToString().ToLower()); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iRequirementVerificationMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iRequirementVerificationMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iRequirementVerificationMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iRequirementVerificationMembership.OwnedRelatedElement) @@ -405,6 +486,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IRequirementVerifica writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iRequirementVerificationMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iRequirementVerificationMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iRequirementVerificationMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ResultExpressionMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ResultExpressionMembershipSerializer.cs index abe4dfd28..e6ec5ea9e 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ResultExpressionMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ResultExpressionMembershipSerializer.cs @@ -129,6 +129,27 @@ private static void SerializeAsJsonWithDerivedProperties(IResultExpressionMember writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iResultExpressionMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iResultExpressionMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iResultExpressionMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iResultExpressionMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iResultExpressionMembership.name); @@ -156,9 +177,21 @@ private static void SerializeAsJsonWithDerivedProperties(IResultExpressionMember writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iResultExpressionMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iResultExpressionMembership.ownedMemberName); @@ -289,6 +322,30 @@ private static void SerializeAsJsonWithDerivedProperties(IResultExpressionMember writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iResultExpressionMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iResultExpressionMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iResultExpressionMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iResultExpressionMembership.textualRepresentation) @@ -341,6 +398,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IResultExpressionMem writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iResultExpressionMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iResultExpressionMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iResultExpressionMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iResultExpressionMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iResultExpressionMembership.OwnedRelatedElement) @@ -393,6 +462,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IResultExpressionMem writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iResultExpressionMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iResultExpressionMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iResultExpressionMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReturnParameterMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReturnParameterMembershipSerializer.cs index 7f9fc21ff..5d7a2f911 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReturnParameterMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ReturnParameterMembershipSerializer.cs @@ -129,6 +129,27 @@ private static void SerializeAsJsonWithDerivedProperties(IReturnParameterMembers writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iReturnParameterMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iReturnParameterMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iReturnParameterMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iReturnParameterMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iReturnParameterMembership.name); @@ -156,9 +177,21 @@ private static void SerializeAsJsonWithDerivedProperties(IReturnParameterMembers writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iReturnParameterMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iReturnParameterMembership.ownedMemberName); @@ -289,6 +322,30 @@ private static void SerializeAsJsonWithDerivedProperties(IReturnParameterMembers writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iReturnParameterMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iReturnParameterMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iReturnParameterMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iReturnParameterMembership.textualRepresentation) @@ -341,6 +398,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReturnParameterMemb writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iReturnParameterMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iReturnParameterMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iReturnParameterMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iReturnParameterMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iReturnParameterMembership.OwnedRelatedElement) @@ -393,6 +462,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IReturnParameterMemb writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iReturnParameterMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iReturnParameterMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iReturnParameterMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SatisfyRequirementUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SatisfyRequirementUsageSerializer.cs index 0cc613693..c3a1e7e03 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SatisfyRequirementUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SatisfyRequirementUsageSerializer.cs @@ -111,6 +111,12 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteEndArray(); + writer.WritePropertyName("assertedConstraint"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.assertedConstraint); + writer.WriteEndObject(); + writer.WriteStartArray("assumedConstraint"u8); foreach (var item in iSatisfyRequirementUsage.assumedConstraint) @@ -123,6 +129,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iSatisfyRequirementUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iSatisfyRequirementUsage.chainingFeature) @@ -135,6 +153,20 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteEndArray(); + writer.WritePropertyName("constraintDefinition"u8); + + if (iSatisfyRequirementUsage.constraintDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.constraintDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("crossFeature"u8); if (iSatisfyRequirementUsage.crossFeature.HasValue) @@ -152,6 +184,21 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iSatisfyRequirementUsage.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iSatisfyRequirementUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iSatisfyRequirementUsage.differencingType) @@ -164,6 +211,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSatisfyRequirementUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iSatisfyRequirementUsage.directedUsage) @@ -282,6 +341,20 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iSatisfyRequirementUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iSatisfyRequirementUsage.importedMembership) @@ -404,6 +477,9 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSatisfyRequirementUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSatisfyRequirementUsage.IsVariation); @@ -1216,6 +1292,20 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteNullValue(); } + writer.WritePropertyName("predicate"u8); + + if (iSatisfyRequirementUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSatisfyRequirementUsage.qualifiedName); @@ -1308,6 +1398,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISatisfyRequirementUsag writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iSatisfyRequirementUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iSatisfyRequirementUsage.unioningType) @@ -1381,6 +1483,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISatisfyRequirementU writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iSatisfyRequirementUsage.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iSatisfyRequirementUsage.DeclaredShortName); + writer.WritePropertyName("direction"u8); if (iSatisfyRequirementUsage.Direction.HasValue) @@ -1431,6 +1536,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISatisfyRequirementU writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSatisfyRequirementUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSatisfyRequirementUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSatisfyRequirementUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SelectExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SelectExpressionSerializer.cs index 94de8a171..7628ed59c 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SelectExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SelectExpressionSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISelectExpression iSele writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iSelectExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iSelectExpression.chainingFeature) @@ -155,6 +167,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISelectExpression iSele writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSelectExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iSelectExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SendActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SendActionUsageSerializer.cs index d284cc8f0..37fa218f6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SendActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SendActionUsageSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISendActionUsage iSendA writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iSendActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iSendActionUsage.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISendActionUsage iSendA writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iSendActionUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iSendActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iSendActionUsage.differencingType) @@ -155,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISendActionUsage iSendA writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSendActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iSendActionUsage.directedUsage) @@ -377,6 +413,9 @@ private static void SerializeAsJsonWithDerivedProperties(ISendActionUsage iSendA writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSendActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSendActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSendActionUsage.IsVariation); @@ -748,6 +787,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISendActionUsage iSendA writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iSendActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iSendActionUsage.output) @@ -1229,6 +1280,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISendActionUsage iSendA writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iSendActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iSendActionUsage.unioningType) @@ -1352,6 +1415,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISendActionUsage iSe writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSendActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSendActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSendActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SpecializationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SpecializationSerializer.cs index be53421be..70a5df007 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SpecializationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SpecializationSerializer.cs @@ -288,12 +288,36 @@ private static void SerializeAsJsonWithDerivedProperties(ISpecialization iSpecia writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSpecialization.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iSpecialization.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("specific"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iSpecialization.Specific); writer.WriteEndObject(); + writer.WriteStartArray("target"u8); + + foreach (var item in iSpecialization.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iSpecialization.textualRepresentation) @@ -401,12 +425,36 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISpecialization iSpe writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iSpecialization.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("specific"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iSpecialization.Specific); writer.WriteEndObject(); + writer.WriteStartArray("target"u8); + + foreach (var item in iSpecialization.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StakeholderMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StakeholderMembershipSerializer.cs index 930a5dd93..2d756998f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StakeholderMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StakeholderMembershipSerializer.cs @@ -129,6 +129,27 @@ private static void SerializeAsJsonWithDerivedProperties(IStakeholderMembership writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iStakeholderMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iStakeholderMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iStakeholderMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iStakeholderMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iStakeholderMembership.name); @@ -156,12 +177,30 @@ private static void SerializeAsJsonWithDerivedProperties(IStakeholderMembership writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iStakeholderMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iStakeholderMembership.ownedMemberName); + writer.WritePropertyName("ownedMemberParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.ownedMemberParameter); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberShortName"u8); writer.WriteStringValue(iStakeholderMembership.ownedMemberShortName); @@ -289,6 +328,30 @@ private static void SerializeAsJsonWithDerivedProperties(IStakeholderMembership writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iStakeholderMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iStakeholderMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iStakeholderMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iStakeholderMembership.textualRepresentation) @@ -341,6 +404,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IStakeholderMembersh writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iStakeholderMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStakeholderMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iStakeholderMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iStakeholderMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iStakeholderMembership.OwnedRelatedElement) @@ -393,6 +468,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IStakeholderMembersh writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iStakeholderMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iStakeholderMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iStakeholderMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateDefinitionSerializer.cs index 7cfbf66fe..37c97add6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateDefinitionSerializer.cs @@ -129,6 +129,18 @@ private static void SerializeAsJsonWithDerivedProperties(IStateDefinition iState writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iStateDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iStateDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateSubactionMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateSubactionMembershipSerializer.cs index 95c61efa1..d22eb9832 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateSubactionMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateSubactionMembershipSerializer.cs @@ -138,6 +138,27 @@ private static void SerializeAsJsonWithDerivedProperties(IStateSubactionMembersh writer.WritePropertyName("kind"u8); writer.WriteStringValue(iStateSubactionMembership.Kind.ToString().ToLower()); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iStateSubactionMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iStateSubactionMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iStateSubactionMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iStateSubactionMembership.name); @@ -165,9 +186,21 @@ private static void SerializeAsJsonWithDerivedProperties(IStateSubactionMembersh writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iStateSubactionMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iStateSubactionMembership.ownedMemberName); @@ -292,6 +325,30 @@ private static void SerializeAsJsonWithDerivedProperties(IStateSubactionMembersh writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iStateSubactionMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iStateSubactionMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iStateSubactionMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iStateSubactionMembership.textualRepresentation) @@ -347,6 +404,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IStateSubactionMembe writer.WritePropertyName("kind"u8); writer.WriteStringValue(iStateSubactionMembership.Kind.ToString().ToLower()); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iStateSubactionMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iStateSubactionMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iStateSubactionMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iStateSubactionMembership.OwnedRelatedElement) @@ -399,6 +468,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IStateSubactionMembe writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iStateSubactionMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iStateSubactionMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iStateSubactionMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateUsageSerializer.cs index 0077ce51c..68a9e645b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StateUsageSerializer.cs @@ -90,6 +90,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage, Utf8JsonWriter writer) { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iStateUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("aliasIds"u8); foreach (var item in iStateUsage.AliasIds) @@ -99,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iStateUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iStateUsage.chainingFeature) @@ -131,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iStateUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iStateUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iStateUsage.differencingType) @@ -143,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iStateUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iStateUsage.directedUsage) @@ -410,6 +458,9 @@ private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iStateUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iStateUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iStateUsage.IsVariation); @@ -781,6 +832,18 @@ private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iStateUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iStateUsage.output) @@ -1240,6 +1303,18 @@ private static void SerializeAsJsonWithDerivedProperties(IStateUsage iStateUsage writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iStateUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iStateUsage.unioningType) @@ -1366,6 +1441,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IStateUsage iStateUs writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iStateUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iStateUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iStateUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StepSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StepSerializer.cs index f85c94b7a..a26af8942 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StepSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/StepSerializer.cs @@ -155,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(IStep iStep, Utf8JsonWr writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iStep.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iStep.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubclassificationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubclassificationSerializer.cs index 3c0bdb8ea..f7d0327fa 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubclassificationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubclassificationSerializer.cs @@ -120,6 +120,12 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubclassification.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iSubclassification.IsImplied); @@ -264,6 +270,20 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iSubclassification.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSubclassification.qualifiedName); @@ -282,6 +302,24 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSubclassification.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iSubclassification.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.Specific); + writer.WriteEndObject(); + writer.WritePropertyName("subclassifier"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -294,6 +332,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISubclassification iSub writer.WriteStringValue(iSubclassification.Superclassifier); writer.WriteEndObject(); + writer.WriteStartArray("target"u8); + + foreach (var item in iSubclassification.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iSubclassification.textualRepresentation) @@ -337,6 +387,12 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification i writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubclassification.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iSubclassification.IsImplied); @@ -395,6 +451,24 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification i writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iSubclassification.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubclassification.Specific); + writer.WriteEndObject(); + writer.WritePropertyName("subclassifier"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -407,6 +481,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubclassification i writer.WriteStringValue(iSubclassification.Superclassifier); writer.WriteEndObject(); + writer.WriteStartArray("target"u8); + + foreach (var item in iSubclassification.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubjectMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubjectMembershipSerializer.cs index 4d5926a28..99dacad08 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubjectMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubjectMembershipSerializer.cs @@ -129,6 +129,27 @@ private static void SerializeAsJsonWithDerivedProperties(ISubjectMembership iSub writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iSubjectMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iSubjectMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iSubjectMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iSubjectMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iSubjectMembership.name); @@ -156,12 +177,30 @@ private static void SerializeAsJsonWithDerivedProperties(ISubjectMembership iSub writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iSubjectMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iSubjectMembership.ownedMemberName); + writer.WritePropertyName("ownedMemberParameter"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.ownedMemberParameter); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberShortName"u8); writer.WriteStringValue(iSubjectMembership.ownedMemberShortName); @@ -289,6 +328,30 @@ private static void SerializeAsJsonWithDerivedProperties(ISubjectMembership iSub writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSubjectMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iSubjectMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iSubjectMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iSubjectMembership.textualRepresentation) @@ -341,6 +404,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubjectMembership i writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iSubjectMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubjectMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iSubjectMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iSubjectMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iSubjectMembership.OwnedRelatedElement) @@ -393,6 +468,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubjectMembership i writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iSubjectMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iSubjectMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iSubjectMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubsettingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubsettingSerializer.cs index 53902ed26..9f19296f2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubsettingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SubsettingSerializer.cs @@ -120,6 +120,12 @@ private static void SerializeAsJsonWithDerivedProperties(ISubsetting iSubsetting writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubsetting.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iSubsetting.IsImplied); @@ -264,6 +270,20 @@ private static void SerializeAsJsonWithDerivedProperties(ISubsetting iSubsetting writer.WriteNullValue(); } + writer.WritePropertyName("owningType"u8); + + if (iSubsetting.owningType.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.owningType.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSubsetting.qualifiedName); @@ -282,6 +302,24 @@ private static void SerializeAsJsonWithDerivedProperties(ISubsetting iSubsetting writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSubsetting.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iSubsetting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.Specific); + writer.WriteEndObject(); + writer.WritePropertyName("subsettedFeature"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -294,6 +332,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISubsetting iSubsetting writer.WriteStringValue(iSubsetting.SubsettingFeature); writer.WriteEndObject(); + writer.WriteStartArray("target"u8); + + foreach (var item in iSubsetting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iSubsetting.textualRepresentation) @@ -337,6 +387,12 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubsetting iSubsett writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSubsetting.ElementId); + writer.WritePropertyName("general"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.General); + writer.WriteEndObject(); + writer.WritePropertyName("isImplied"u8); writer.WriteBooleanValue(iSubsetting.IsImplied); @@ -395,6 +451,24 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubsetting iSubsett writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iSubsetting.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("specific"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iSubsetting.Specific); + writer.WriteEndObject(); + writer.WritePropertyName("subsettedFeature"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -407,6 +481,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISubsetting iSubsett writer.WriteStringValue(iSubsetting.SubsettingFeature); writer.WriteEndObject(); + writer.WriteStartArray("target"u8); + + foreach (var item in iSubsetting.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionAsUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionAsUsageSerializer.cs index 4f3460ef2..e9b6ebb53 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionAsUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionAsUsageSerializer.cs @@ -243,6 +243,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionAsUsage iSuc writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSuccessionAsUsage.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iSuccessionAsUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("endOwningType"u8); if (iSuccessionAsUsage.endOwningType.HasValue) @@ -401,6 +413,9 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionAsUsage iSuc writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSuccessionAsUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSuccessionAsUsage.IsVariation); @@ -1207,6 +1222,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionAsUsage iSuc writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSuccessionAsUsage.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iSuccessionAsUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedFeature"u8); foreach (var item in iSuccessionAsUsage.relatedFeature) @@ -1222,6 +1249,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionAsUsage iSuc writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSuccessionAsUsage.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iSuccessionAsUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceFeature"u8); if (iSuccessionAsUsage.sourceFeature.HasValue) @@ -1236,6 +1275,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionAsUsage iSuc writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iSuccessionAsUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetFeature"u8); foreach (var item in iSuccessionAsUsage.targetFeature) @@ -1260,6 +1311,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionAsUsage iSuc writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iSuccessionAsUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iSuccessionAsUsage.unioningType) @@ -1383,6 +1446,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISuccessionAsUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSuccessionAsUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSuccessionAsUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSuccessionAsUsage.IsVariation); @@ -1438,6 +1504,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISuccessionAsUsage i writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iSuccessionAsUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iSuccessionAsUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowSerializer.cs index 0c37d91e0..87b1f3383 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowSerializer.cs @@ -99,6 +99,30 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WriteEndArray(); + writer.WriteStartArray("association"u8); + + foreach (var item in iSuccessionFlow.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iSuccessionFlow.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iSuccessionFlow.chainingFeature) @@ -169,6 +193,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSuccessionFlow.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iSuccessionFlow.Direction.HasValue) @@ -195,6 +231,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSuccessionFlow.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iSuccessionFlow.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("endOwningType"u8); if (iSuccessionFlow.endOwningType.HasValue) @@ -863,6 +911,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSuccessionFlow.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iSuccessionFlow.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedFeature"u8); foreach (var item in iSuccessionFlow.relatedFeature) @@ -878,6 +938,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSuccessionFlow.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iSuccessionFlow.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceFeature"u8); if (iSuccessionFlow.sourceFeature.HasValue) @@ -906,6 +978,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iSuccessionFlow.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetFeature"u8); foreach (var item in iSuccessionFlow.targetFeature) @@ -944,6 +1028,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlow iSucces writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iSuccessionFlow.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iSuccessionFlow.unioningType) @@ -1086,6 +1182,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISuccessionFlow iSuc writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iSuccessionFlow.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iSuccessionFlow.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowUsageSerializer.cs index 863b631df..c8a5a2c15 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionFlowUsageSerializer.cs @@ -90,6 +90,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iSuccessionFlowUsage, Utf8JsonWriter writer) { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iSuccessionFlowUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("aliasIds"u8); foreach (var item in iSuccessionFlowUsage.AliasIds) @@ -99,6 +111,30 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteEndArray(); + writer.WriteStartArray("association"u8); + + foreach (var item in iSuccessionFlowUsage.association) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("behavior"u8); + + foreach (var item in iSuccessionFlowUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iSuccessionFlowUsage.chainingFeature) @@ -157,6 +193,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteNullValue(); } + writer.WriteStartArray("definition"u8); + + foreach (var item in iSuccessionFlowUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iSuccessionFlowUsage.differencingType) @@ -169,6 +217,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iSuccessionFlowUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iSuccessionFlowUsage.directedUsage) @@ -207,6 +267,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSuccessionFlowUsage.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iSuccessionFlowUsage.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("endOwningType"u8); if (iSuccessionFlowUsage.endOwningType.HasValue) @@ -349,6 +421,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteEndArray(); + writer.WriteStartArray("interaction"u8); + + foreach (var item in iSuccessionFlowUsage.interaction) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("intersectingType"u8); foreach (var item in iSuccessionFlowUsage.intersectingType) @@ -406,6 +490,9 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSuccessionFlowUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSuccessionFlowUsage.IsVariation); @@ -777,6 +864,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iSuccessionFlowUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iSuccessionFlowUsage.output) @@ -1261,6 +1360,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSuccessionFlowUsage.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iSuccessionFlowUsage.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedFeature"u8); foreach (var item in iSuccessionFlowUsage.relatedFeature) @@ -1276,6 +1387,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSuccessionFlowUsage.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iSuccessionFlowUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceFeature"u8); if (iSuccessionFlowUsage.sourceFeature.HasValue) @@ -1304,6 +1427,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iSuccessionFlowUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetFeature"u8); foreach (var item in iSuccessionFlowUsage.targetFeature) @@ -1342,6 +1477,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccessionFlowUsage iS writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iSuccessionFlowUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iSuccessionFlowUsage.unioningType) @@ -1468,6 +1615,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISuccessionFlowUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iSuccessionFlowUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iSuccessionFlowUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iSuccessionFlowUsage.IsVariation); @@ -1534,6 +1684,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISuccessionFlowUsage writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iSuccessionFlowUsage.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iSuccessionFlowUsage.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionSerializer.cs index 0feb7953b..bcabcd1d6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/SuccessionSerializer.cs @@ -219,6 +219,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccession iSuccession writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iSuccession.ElementId); + writer.WriteStartArray("endFeature"u8); + + foreach (var item in iSuccession.endFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("endOwningType"u8); if (iSuccession.endOwningType.HasValue) @@ -825,6 +837,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccession iSuccession writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iSuccession.qualifiedName); + writer.WriteStartArray("relatedElement"u8); + + foreach (var item in iSuccession.relatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("relatedFeature"u8); foreach (var item in iSuccession.relatedFeature) @@ -840,6 +864,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccession iSuccession writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iSuccession.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iSuccession.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("sourceFeature"u8); if (iSuccession.sourceFeature.HasValue) @@ -854,6 +890,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccession iSuccession writer.WriteNullValue(); } + writer.WriteStartArray("target"u8); + + foreach (var item in iSuccession.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("targetFeature"u8); foreach (var item in iSuccession.targetFeature) @@ -878,6 +926,18 @@ private static void SerializeAsJsonWithDerivedProperties(ISuccession iSuccession writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iSuccession.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iSuccession.unioningType) @@ -1020,6 +1080,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(ISuccession iSuccess writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iSuccession.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iSuccession.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TerminateActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TerminateActionUsageSerializer.cs index 81ef1975d..40bfa6ea9 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TerminateActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TerminateActionUsageSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITerminateActionUsage i writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iTerminateActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iTerminateActionUsage.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITerminateActionUsage i writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iTerminateActionUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iTerminateActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iTerminateActionUsage.differencingType) @@ -155,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITerminateActionUsage i writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iTerminateActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iTerminateActionUsage.directedUsage) @@ -377,6 +413,9 @@ private static void SerializeAsJsonWithDerivedProperties(ITerminateActionUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iTerminateActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iTerminateActionUsage.IsVariation); @@ -748,6 +787,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITerminateActionUsage i writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iTerminateActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iTerminateActionUsage.output) @@ -1209,6 +1260,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITerminateActionUsage i writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iTerminateActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iTerminateActionUsage.unioningType) @@ -1332,6 +1395,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(ITerminateActionUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iTerminateActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iTerminateActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iTerminateActionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TextualRepresentationSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TextualRepresentationSerializer.cs index 4ace894eb..b91f87283 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TextualRepresentationSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TextualRepresentationSerializer.cs @@ -99,6 +99,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITextualRepresentation writer.WriteEndArray(); + writer.WriteStartArray("annotatedElement"u8); + + foreach (var item in iTextualRepresentation.annotatedElement) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("annotation"u8); foreach (var item in iTextualRepresentation.annotation) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionFeatureMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionFeatureMembershipSerializer.cs index 2ddfdc7e2..ab97c610a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionFeatureMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionFeatureMembershipSerializer.cs @@ -132,6 +132,27 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionFeatureMembe writer.WritePropertyName("kind"u8); writer.WriteStringValue(iTransitionFeatureMembership.Kind.ToString().ToLower()); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iTransitionFeatureMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iTransitionFeatureMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iTransitionFeatureMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iTransitionFeatureMembership.name); @@ -159,9 +180,21 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionFeatureMembe writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iTransitionFeatureMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iTransitionFeatureMembership.ownedMemberName); @@ -286,6 +319,30 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionFeatureMembe writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iTransitionFeatureMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iTransitionFeatureMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iTransitionFeatureMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iTransitionFeatureMembership.textualRepresentation) @@ -347,6 +404,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(ITransitionFeatureMe writer.WritePropertyName("kind"u8); writer.WriteStringValue(iTransitionFeatureMembership.Kind.ToString().ToLower()); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iTransitionFeatureMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iTransitionFeatureMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iTransitionFeatureMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iTransitionFeatureMembership.OwnedRelatedElement) @@ -399,6 +468,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(ITransitionFeatureMe writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iTransitionFeatureMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iTransitionFeatureMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iTransitionFeatureMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionUsageSerializer.cs index ab61ac939..b6f4d8bf3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TransitionUsageSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionUsage iTrans writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iTransitionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iTransitionUsage.chainingFeature) @@ -143,6 +155,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionUsage iTrans writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iTransitionUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iTransitionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iTransitionUsage.differencingType) @@ -155,6 +179,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionUsage iTrans writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iTransitionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iTransitionUsage.directedUsage) @@ -401,6 +437,9 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionUsage iTrans writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iTransitionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iTransitionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iTransitionUsage.IsVariation); @@ -772,6 +811,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionUsage iTrans writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iTransitionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iTransitionUsage.output) @@ -1249,6 +1300,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITransitionUsage iTrans writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iTransitionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iTransitionUsage.unioningType) @@ -1372,6 +1435,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(ITransitionUsage iTr writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iTransitionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iTransitionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iTransitionUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TriggerInvocationExpressionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TriggerInvocationExpressionSerializer.cs index 6fbdef8da..18a8ee81f 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TriggerInvocationExpressionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TriggerInvocationExpressionSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITriggerInvocationExpre writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iTriggerInvocationExpression.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iTriggerInvocationExpression.chainingFeature) @@ -155,6 +167,18 @@ private static void SerializeAsJsonWithDerivedProperties(ITriggerInvocationExpre writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iTriggerInvocationExpression.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("direction"u8); if (iTriggerInvocationExpression.Direction.HasValue) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeFeaturingSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeFeaturingSerializer.cs index f3ea460b8..ce6e1ed2a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeFeaturingSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/TypeFeaturingSerializer.cs @@ -294,6 +294,30 @@ private static void SerializeAsJsonWithDerivedProperties(ITypeFeaturing iTypeFea writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iTypeFeaturing.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iTypeFeaturing.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iTypeFeaturing.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iTypeFeaturing.textualRepresentation) @@ -407,6 +431,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(ITypeFeaturing iType writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iTypeFeaturing.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iTypeFeaturing.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + } } } diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UnioningSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UnioningSerializer.cs index 2df7426e5..fe29b36e6 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UnioningSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UnioningSerializer.cs @@ -268,6 +268,30 @@ private static void SerializeAsJsonWithDerivedProperties(IUnioning iUnioning, Ut writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iUnioning.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iUnioning.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iUnioning.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iUnioning.textualRepresentation) @@ -381,6 +405,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IUnioning iUnioning, writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iUnioning.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iUnioning.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("unioningType"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UsageSerializer.cs index 5be79da85..8fc211dbf 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UsageSerializer.cs @@ -372,6 +372,9 @@ private static void SerializeAsJsonWithDerivedProperties(IUsage iUsage, Utf8Json writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUsage.IsVariation); @@ -1167,6 +1170,18 @@ private static void SerializeAsJsonWithDerivedProperties(IUsage iUsage, Utf8Json writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iUsage.unioningType) @@ -1287,6 +1302,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IUsage iUsage, Utf8J writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseDefinitionSerializer.cs index a3954c49a..19ee6a0bc 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseDefinitionSerializer.cs @@ -153,6 +153,18 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseDefinition iUse writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iUseCaseDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iUseCaseDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseUsageSerializer.cs index 71f0672a9..8849f1134 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/UseCaseUsageSerializer.cs @@ -90,6 +90,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseUsage, Utf8JsonWriter writer) { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iUseCaseUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("actorParameter"u8); foreach (var item in iUseCaseUsage.actorParameter) @@ -111,6 +123,46 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iUseCaseUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("calculationDefinition"u8); + + if (iUseCaseUsage.calculationDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.calculationDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + + writer.WritePropertyName("caseDefinition"u8); + + if (iUseCaseUsage.caseDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.caseDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iUseCaseUsage.chainingFeature) @@ -143,6 +195,18 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iUseCaseUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iUseCaseUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iUseCaseUsage.differencingType) @@ -155,6 +219,18 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iUseCaseUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iUseCaseUsage.directedUsage) @@ -261,6 +337,20 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iUseCaseUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iUseCaseUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iUseCaseUsage.importedMembership) @@ -392,6 +482,9 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iUseCaseUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUseCaseUsage.IsVariation); @@ -777,6 +870,18 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WriteNullValue(); } + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iUseCaseUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iUseCaseUsage.output) @@ -1236,6 +1341,18 @@ private static void SerializeAsJsonWithDerivedProperties(IUseCaseUsage iUseCaseU writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iUseCaseUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iUseCaseUsage.unioningType) @@ -1373,6 +1490,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IUseCaseUsage iUseCa writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iUseCaseUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iUseCaseUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iUseCaseUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VariantMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VariantMembershipSerializer.cs index 3c37fba79..abc69a919 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VariantMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VariantMembershipSerializer.cs @@ -129,12 +129,27 @@ private static void SerializeAsJsonWithDerivedProperties(IVariantMembership iVar writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iVariantMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVariantMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iVariantMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iVariantMembership.MemberName); + writer.WritePropertyName("membershipOwningNamespace"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); writer.WriteStringValue(iVariantMembership.membershipOwningNamespace); writer.WriteEndObject(); + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iVariantMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iVariantMembership.name); @@ -162,6 +177,12 @@ private static void SerializeAsJsonWithDerivedProperties(IVariantMembership iVar writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVariantMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iVariantMembership.ownedMemberElementId); @@ -289,6 +310,30 @@ private static void SerializeAsJsonWithDerivedProperties(IVariantMembership iVar writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iVariantMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iVariantMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iVariantMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iVariantMembership.textualRepresentation) @@ -341,6 +386,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IVariantMembership i writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iVariantMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVariantMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iVariantMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iVariantMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iVariantMembership.OwnedRelatedElement) @@ -393,6 +450,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IVariantMembership i writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iVariantMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iVariantMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iVariantMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseDefinitionSerializer.cs index 1ff8f0adf..d82e55a7b 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseDefinitionSerializer.cs @@ -153,6 +153,18 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseDefini writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iVerificationCaseDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iVerificationCaseDefinition.directedUsage) diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseUsageSerializer.cs index 332c4f985..566e060f2 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/VerificationCaseUsageSerializer.cs @@ -90,6 +90,18 @@ internal static void Serialize(object obj, Utf8JsonWriter writer, SerializationM /// private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage iVerificationCaseUsage, Utf8JsonWriter writer) { + writer.WriteStartArray("actionDefinition"u8); + + foreach (var item in iVerificationCaseUsage.actionDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("actorParameter"u8); foreach (var item in iVerificationCaseUsage.actorParameter) @@ -111,6 +123,32 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iVerificationCaseUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WritePropertyName("calculationDefinition"u8); + + if (iVerificationCaseUsage.calculationDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.calculationDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("caseDefinition"u8); if (iVerificationCaseUsage.caseDefinition.HasValue) @@ -157,6 +195,18 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iVerificationCaseUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iVerificationCaseUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iVerificationCaseUsage.differencingType) @@ -169,6 +219,18 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iVerificationCaseUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iVerificationCaseUsage.directedUsage) @@ -275,6 +337,20 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iVerificationCaseUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iVerificationCaseUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iVerificationCaseUsage.importedMembership) @@ -394,6 +470,9 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iVerificationCaseUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iVerificationCaseUsage.IsVariation); @@ -779,6 +858,18 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WriteNullValue(); } + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iVerificationCaseUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iVerificationCaseUsage.output) @@ -1238,6 +1329,18 @@ private static void SerializeAsJsonWithDerivedProperties(IVerificationCaseUsage writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iVerificationCaseUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iVerificationCaseUsage.unioningType) @@ -1387,6 +1490,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IVerificationCaseUsa writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iVerificationCaseUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iVerificationCaseUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iVerificationCaseUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewRenderingMembershipSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewRenderingMembershipSerializer.cs index 9afc1354f..a3d446a43 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewRenderingMembershipSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewRenderingMembershipSerializer.cs @@ -129,6 +129,27 @@ private static void SerializeAsJsonWithDerivedProperties(IViewRenderingMembershi writer.WritePropertyName("isLibraryElement"u8); writer.WriteBooleanValue(iViewRenderingMembership.isLibraryElement); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberElementId"u8); + writer.WriteStringValue(iViewRenderingMembership.memberElementId); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iViewRenderingMembership.MemberName); + + writer.WritePropertyName("membershipOwningNamespace"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.membershipOwningNamespace); + writer.WriteEndObject(); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iViewRenderingMembership.MemberShortName); + writer.WritePropertyName("name"u8); writer.WriteStringValue(iViewRenderingMembership.name); @@ -156,9 +177,21 @@ private static void SerializeAsJsonWithDerivedProperties(IViewRenderingMembershi writer.WriteEndArray(); + writer.WritePropertyName("ownedMemberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.ownedMemberElement); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberElementId"u8); writer.WriteStringValue(iViewRenderingMembership.ownedMemberElementId); + writer.WritePropertyName("ownedMemberFeature"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.ownedMemberFeature); + writer.WriteEndObject(); + writer.WritePropertyName("ownedMemberName"u8); writer.WriteStringValue(iViewRenderingMembership.ownedMemberName); @@ -295,6 +328,30 @@ private static void SerializeAsJsonWithDerivedProperties(IViewRenderingMembershi writer.WritePropertyName("shortName"u8); writer.WriteStringValue(iViewRenderingMembership.shortName); + writer.WriteStartArray("source"u8); + + foreach (var item in iViewRenderingMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iViewRenderingMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("textualRepresentation"u8); foreach (var item in iViewRenderingMembership.textualRepresentation) @@ -347,6 +404,18 @@ private static void SerializeAsJsonWithoutDerivedProperties(IViewRenderingMember writer.WritePropertyName("isImpliedIncluded"u8); writer.WriteBooleanValue(iViewRenderingMembership.IsImpliedIncluded); + writer.WritePropertyName("memberElement"u8); + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewRenderingMembership.MemberElement); + writer.WriteEndObject(); + + writer.WritePropertyName("memberName"u8); + writer.WriteStringValue(iViewRenderingMembership.MemberName); + + writer.WritePropertyName("memberShortName"u8); + writer.WriteStringValue(iViewRenderingMembership.MemberShortName); + writer.WriteStartArray("ownedRelatedElement"u8); foreach (var item in iViewRenderingMembership.OwnedRelatedElement) @@ -399,6 +468,30 @@ private static void SerializeAsJsonWithoutDerivedProperties(IViewRenderingMember writer.WriteNullValue(); } + writer.WriteStartArray("source"u8); + + foreach (var item in iViewRenderingMembership.Source) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + + writer.WriteStartArray("target"u8); + + foreach (var item in iViewRenderingMembership.Target) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("visibility"u8); writer.WriteStringValue(iViewRenderingMembership.Visibility.ToString().ToLower()); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewUsageSerializer.cs index d8111a81d..a561a7bb3 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewUsageSerializer.cs @@ -131,6 +131,18 @@ private static void SerializeAsJsonWithDerivedProperties(IViewUsage iViewUsage, writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iViewUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iViewUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iViewUsage.differencingType) @@ -389,6 +401,9 @@ private static void SerializeAsJsonWithDerivedProperties(IViewUsage iViewUsage, writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iViewUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iViewUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iViewUsage.IsVariation); @@ -1190,6 +1205,18 @@ private static void SerializeAsJsonWithDerivedProperties(IViewUsage iViewUsage, writer.WriteNullValue(); } + writer.WriteStartArray("partDefinition"u8); + + foreach (var item in iViewUsage.partDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("portionKind"u8); if (iViewUsage.PortionKind.HasValue) @@ -1231,6 +1258,18 @@ private static void SerializeAsJsonWithDerivedProperties(IViewUsage iViewUsage, writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iViewUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iViewUsage.unioningType) @@ -1394,6 +1433,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IViewUsage iViewUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iViewUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iViewUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iViewUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointDefinitionSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointDefinitionSerializer.cs index 05a16d5d0..d5d617e02 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointDefinitionSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointDefinitionSerializer.cs @@ -126,6 +126,9 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointDefinition iV writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iViewpointDefinition.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iViewpointDefinition.DeclaredShortName); + writer.WriteStartArray("differencingType"u8); foreach (var item in iViewpointDefinition.differencingType) @@ -138,6 +141,18 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointDefinition iV writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iViewpointDefinition.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iViewpointDefinition.directedUsage) @@ -1111,6 +1126,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IViewpointDefinition writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iViewpointDefinition.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iViewpointDefinition.DeclaredShortName); + writer.WritePropertyName("elementId"u8); writer.WriteStringValue(iViewpointDefinition.ElementId); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointUsageSerializer.cs index 745254e3e..f2b23fb3a 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/ViewpointUsageSerializer.cs @@ -123,6 +123,18 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iViewpointUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("chainingFeature"u8); foreach (var item in iViewpointUsage.chainingFeature) @@ -135,6 +147,20 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteEndArray(); + writer.WritePropertyName("constraintDefinition"u8); + + if (iViewpointUsage.constraintDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.constraintDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("crossFeature"u8); if (iViewpointUsage.crossFeature.HasValue) @@ -152,6 +178,21 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iViewpointUsage.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iViewpointUsage.DeclaredShortName); + + writer.WriteStartArray("definition"u8); + + foreach (var item in iViewpointUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iViewpointUsage.differencingType) @@ -164,6 +205,18 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iViewpointUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iViewpointUsage.directedUsage) @@ -282,6 +335,20 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteEndArray(); + writer.WritePropertyName("function"u8); + + if (iViewpointUsage.function.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.function.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WriteStartArray("importedMembership"u8); foreach (var item in iViewpointUsage.importedMembership) @@ -401,6 +468,9 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iViewpointUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iViewpointUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iViewpointUsage.IsVariation); @@ -1213,6 +1283,20 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteNullValue(); } + writer.WritePropertyName("predicate"u8); + + if (iViewpointUsage.predicate.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.predicate.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("qualifiedName"u8); writer.WriteStringValue(iViewpointUsage.qualifiedName); @@ -1231,6 +1315,20 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteEndArray(); + writer.WritePropertyName("requirementDefinition"u8); + + if (iViewpointUsage.requirementDefinition.HasValue) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(iViewpointUsage.requirementDefinition.Value); + writer.WriteEndObject(); + } + else + { + writer.WriteNullValue(); + } + writer.WritePropertyName("result"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -1279,6 +1377,18 @@ private static void SerializeAsJsonWithDerivedProperties(IViewpointUsage iViewpo writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iViewpointUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iViewpointUsage.unioningType) @@ -1378,6 +1488,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IViewpointUsage iVie writer.WritePropertyName("declaredName"u8); writer.WriteStringValue(iViewpointUsage.DeclaredName); + writer.WritePropertyName("declaredShortName"u8); + writer.WriteStringValue(iViewpointUsage.DeclaredShortName); + writer.WritePropertyName("direction"u8); if (iViewpointUsage.Direction.HasValue) @@ -1425,6 +1538,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IViewpointUsage iVie writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iViewpointUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iViewpointUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iViewpointUsage.IsVariation); diff --git a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/WhileLoopActionUsageSerializer.cs b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/WhileLoopActionUsageSerializer.cs index 3d30a8d18..2978bff40 100644 --- a/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/WhileLoopActionUsageSerializer.cs +++ b/SysML2.NET.Serializer.Json/Core/AutoGenSerializer/WhileLoopActionUsageSerializer.cs @@ -111,6 +111,18 @@ private static void SerializeAsJsonWithDerivedProperties(IWhileLoopActionUsage i writer.WriteEndArray(); + writer.WriteStartArray("behavior"u8); + + foreach (var item in iWhileLoopActionUsage.behavior) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WritePropertyName("bodyAction"u8); writer.WriteStartObject(); writer.WritePropertyName("@id"u8); @@ -149,6 +161,18 @@ private static void SerializeAsJsonWithDerivedProperties(IWhileLoopActionUsage i writer.WritePropertyName("declaredShortName"u8); writer.WriteStringValue(iWhileLoopActionUsage.DeclaredShortName); + writer.WriteStartArray("definition"u8); + + foreach (var item in iWhileLoopActionUsage.definition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("differencingType"u8); foreach (var item in iWhileLoopActionUsage.differencingType) @@ -161,6 +185,18 @@ private static void SerializeAsJsonWithDerivedProperties(IWhileLoopActionUsage i writer.WriteEndArray(); + writer.WriteStartArray("directedFeature"u8); + + foreach (var item in iWhileLoopActionUsage.directedFeature) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("directedUsage"u8); foreach (var item in iWhileLoopActionUsage.directedUsage) @@ -383,6 +419,9 @@ private static void SerializeAsJsonWithDerivedProperties(IWhileLoopActionUsage i writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iWhileLoopActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iWhileLoopActionUsage.IsVariation); @@ -754,6 +793,18 @@ private static void SerializeAsJsonWithDerivedProperties(IWhileLoopActionUsage i writer.WriteEndArray(); + writer.WriteStartArray("occurrenceDefinition"u8); + + foreach (var item in iWhileLoopActionUsage.occurrenceDefinition) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("output"u8); foreach (var item in iWhileLoopActionUsage.output) @@ -1201,6 +1252,18 @@ private static void SerializeAsJsonWithDerivedProperties(IWhileLoopActionUsage i writer.WriteEndArray(); + writer.WriteStartArray("type"u8); + + foreach (var item in iWhileLoopActionUsage.type) + { + writer.WriteStartObject(); + writer.WritePropertyName("@id"u8); + writer.WriteStringValue(item); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteStartArray("unioningType"u8); foreach (var item in iWhileLoopActionUsage.unioningType) @@ -1344,6 +1407,9 @@ private static void SerializeAsJsonWithoutDerivedProperties(IWhileLoopActionUsag writer.WritePropertyName("isUnique"u8); writer.WriteBooleanValue(iWhileLoopActionUsage.IsUnique); + writer.WritePropertyName("isVariable"u8); + writer.WriteBooleanValue(iWhileLoopActionUsage.IsVariable); + writer.WritePropertyName("isVariation"u8); writer.WriteBooleanValue(iWhileLoopActionUsage.IsVariation);